index-e497b666.js 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935
  1. (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();function Sa(e,t){const o=Object.create(null),i=e.split(",");for(let n=0;n<i.length;n++)o[i[n]]=!0;return t?n=>!!o[n.toLowerCase()]:n=>!!o[n]}const ht={},xn=[],vo=()=>{},nb=()=>!1,rb=/^on[^a-z]/,es=e=>rb.test(e),ed=e=>e.startsWith("onUpdate:"),vt=Object.assign,td=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},sb=Object.prototype.hasOwnProperty,st=(e,t)=>sb.call(e,t),je=Array.isArray,bn=e=>Nn(e)==="[object Map]",Ki=e=>Nn(e)==="[object Set]",wh=e=>Nn(e)==="[object Date]",ab=e=>Nn(e)==="[object RegExp]",qe=e=>typeof e=="function",yt=e=>typeof e=="string",Lr=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",od=e=>ft(e)&&qe(e.then)&&qe(e.catch),up=Object.prototype.toString,Nn=e=>up.call(e),lb=e=>Nn(e).slice(8,-1),fp=e=>Nn(e)==="[object Object]",id=e=>yt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yr=Sa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ka=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},cb=/-(\w)/g,ro=ka(e=>e.replace(cb,(t,o)=>o?o.toUpperCase():"")),db=/\B([A-Z])/g,co=ka(e=>e.replace(db,"-$1").toLowerCase()),Ta=ka(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=ka(e=>e?`on${Ta(e)}`:""),En=(e,t)=>!Object.is(e,t),yn=(e,t)=>{for(let o=0;o<e.length;o++)e[o](t)},Js=(e,t,o)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},Qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ea=e=>{const t=yt(e)?Number(e):NaN;return isNaN(t)?e:t};let Sh;const Zl=()=>Sh||(Sh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),hb="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",ub=Sa(hb);function Pa(e){if(je(e)){const t={};for(let o=0;o<e.length;o++){const i=e[o],n=yt(i)?mb(i):Pa(i);if(n)for(const r in n)t[r]=n[r]}return t}else{if(yt(e))return e;if(ft(e))return e}}const fb=/;(?![^(]*\))/g,pb=/:([^]+)/,gb=/\/\*[^]*?\*\//g;function mb(e){const t={};return e.replace(gb,"").split(fb).forEach(o=>{if(o){const i=o.split(pb);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Aa(e){let t="";if(yt(e))t=e;else if(je(e))for(let o=0;o<e.length;o++){const i=Aa(e[o]);i&&(t+=i+" ")}else if(ft(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}function t3(e){if(!e)return null;let{class:t,style:o}=e;return t&&!yt(t)&&(e.class=Aa(t)),o&&(e.style=Pa(o)),e}const vb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xb=Sa(vb);function pp(e){return!!e||e===""}function bb(e,t){if(e.length!==t.length)return!1;let o=!0;for(let i=0;o&&i<e.length;i++)o=vi(e[i],t[i]);return o}function vi(e,t){if(e===t)return!0;let o=wh(e),i=wh(t);if(o||i)return o&&i?e.getTime()===t.getTime():!1;if(o=Lr(e),i=Lr(t),o||i)return e===t;if(o=je(e),i=je(t),o||i)return o&&i?bb(e,t):!1;if(o=ft(e),i=ft(t),o||i){if(!o||!i)return!1;const n=Object.keys(e).length,r=Object.keys(t).length;if(n!==r)return!1;for(const s in e){const c=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(c&&!u||!c&&u||!vi(e[s],t[s]))return!1}}return String(e)===String(t)}function Ma(e,t){return e.findIndex(o=>vi(o,t))}const o3=e=>yt(e)?e:e==null?"":je(e)||ft(e)&&(e.toString===up||!qe(e.toString))?JSON.stringify(e,gp,2):String(e),gp=(e,t)=>t&&t.__v_isRef?gp(e,t.value):bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[i,n])=>(o[`${i} =>`]=n,o),{})}:Ki(t)?{[`Set(${t.size})`]:[...t.values()]}:ft(t)&&!je(t)&&!fp(t)?String(t):t;let oo;class mp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=oo,!t&&oo&&(this.index=(oo.scopes||(oo.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const o=oo;try{return oo=this,t()}finally{oo=o}}}on(){oo=this}off(){oo=this.parent}stop(t){if(this._active){let o,i;for(o=0,i=this.effects.length;o<i;o++)this.effects[o].stop();for(o=0,i=this.cleanups.length;o<i;o++)this.cleanups[o]();if(this.scopes)for(o=0,i=this.scopes.length;o<i;o++)this.scopes[o].stop(!0);if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this._active=!1}}}function vp(e){return new mp(e)}function xp(e,t=oo){t&&t.active&&t.effects.push(e)}function yb(){return oo}function i3(e){oo&&oo.cleanups.push(e)}const nd=e=>{const t=new Set(e);return t.w=0,t.n=0,t},bp=e=>(e.w&xi)>0,yp=e=>(e.n&xi)>0,Cb=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=xi},wb=e=>{const{deps:t}=e;if(t.length){let o=0;for(let i=0;i<t.length;i++){const n=t[i];bp(n)&&!yp(n)?n.delete(e):t[o++]=n,n.w&=~xi,n.n&=~xi}t.length=o}},ta=new WeakMap;let pr=0,xi=1;const Jl=30;let go;const ji=Symbol(""),Ql=Symbol("");class Ea{constructor(t,o=null,i){this.fn=t,this.scheduler=o,this.active=!0,this.deps=[],this.parent=void 0,xp(this,i)}run(){if(!this.active)return this.fn();let t=go,o=fi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=go,go=this,fi=!0,xi=1<<++pr,pr<=Jl?Cb(this):kh(this),this.fn()}finally{pr<=Jl&&wb(this),xi=1<<--pr,go=this.parent,fi=o,this.parent=void 0,this.deferStop&&this.stop()}}stop(){go===this?this.deferStop=!0:this.active&&(kh(this),this.onStop&&this.onStop(),this.active=!1)}}function kh(e){const{deps:t}=e;if(t.length){for(let o=0;o<t.length;o++)t[o].delete(e);t.length=0}}function n3(e,t){e.effect&&(e=e.effect.fn);const o=new Ea(e);t&&(vt(o,t),t.scope&&xp(o,t.scope)),(!t||!t.lazy)&&o.run();const i=o.run.bind(o);return i.effect=o,i}function r3(e){e.effect.stop()}let fi=!0;const Cp=[];function Wn(){Cp.push(fi),fi=!1}function Un(){const e=Cp.pop();fi=e===void 0?!0:e}function Zt(e,t,o){if(fi&&go){let i=ta.get(e);i||ta.set(e,i=new Map);let n=i.get(o);n||i.set(o,n=nd()),wp(n)}}function wp(e,t){let o=!1;pr<=Jl?yp(e)||(e.n|=xi,o=!bp(e)):o=!e.has(go),o&&(e.add(go),go.deps.push(e))}function Wo(e,t,o,i,n,r){const s=ta.get(e);if(!s)return;let c=[];if(t==="clear")c=[...s.values()];else if(o==="length"&&je(e)){const u=Number(i);s.forEach((f,p)=>{(p==="length"||p>=u)&&c.push(f)})}else switch(o!==void 0&&c.push(s.get(o)),t){case"add":je(e)?id(o)&&c.push(s.get("length")):(c.push(s.get(ji)),bn(e)&&c.push(s.get(Ql)));break;case"delete":je(e)||(c.push(s.get(ji)),bn(e)&&c.push(s.get(Ql)));break;case"set":bn(e)&&c.push(s.get(ji));break}if(c.length===1)c[0]&&ec(c[0]);else{const u=[];for(const f of c)f&&u.push(...f);ec(nd(u))}}function ec(e,t){const o=je(e)?e:[...e];for(const i of o)i.computed&&Th(i);for(const i of o)i.computed||Th(i)}function Th(e,t){(e!==go||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Sb(e,t){var o;return(o=ta.get(e))==null?void 0:o.get(t)}const kb=Sa("__proto__,__v_isRef,__isVue"),Sp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lr)),Tb=Oa(),Pb=Oa(!1,!0),Ab=Oa(!0),Mb=Oa(!0,!0),Ph=Eb();function Eb(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...o){const i=nt(this);for(let r=0,s=this.length;r<s;r++)Zt(i,"get",r+"");const n=i[t](...o);return n===-1||n===!1?i[t](...o.map(nt)):n}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...o){Wn();const i=nt(this)[t].apply(this,o);return Un(),i}}),e}function Ob(e){const t=nt(this);return Zt(t,"has",e),t.hasOwnProperty(e)}function Oa(e=!1,t=!1){return function(i,n,r){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_isShallow")return t;if(n==="__v_raw"&&r===(e?t?Op:Ep:t?Mp:Ap).get(i))return i;const s=je(i);if(!e){if(s&&st(Ph,n))return Reflect.get(Ph,n,r);if(n==="hasOwnProperty")return Ob}const c=Reflect.get(i,n,r);return(Lr(n)?Sp.has(n):kb(n))||(e||Zt(i,"get",n),t)?c:zt(c)?s&&id(n)?c:c.value:ft(c)?e?Uo(c):Oo(c):c}}const Rb=kp(),Lb=kp(!0);function kp(e=!1){return function(o,i,n,r){let s=o[i];if(On(s)&&zt(s)&&!zt(n))return!1;if(!e&&(!oa(n)&&!On(n)&&(s=nt(s),n=nt(n)),!je(o)&&zt(s)&&!zt(n)))return s.value=n,!0;const c=je(o)&&id(i)?Number(i)<o.length:st(o,i),u=Reflect.set(o,i,n,r);return o===nt(r)&&(c?En(n,s)&&Wo(o,"set",i,n):Wo(o,"add",i,n)),u}}function Db(e,t){const o=st(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&o&&Wo(e,"delete",t,void 0),i}function Ib(e,t){const o=Reflect.has(e,t);return(!Lr(t)||!Sp.has(t))&&Zt(e,"has",t),o}function Bb(e){return Zt(e,"iterate",je(e)?"length":ji),Reflect.ownKeys(e)}const Tp={get:Tb,set:Rb,deleteProperty:Db,has:Ib,ownKeys:Bb},Pp={get:Ab,set(e,t){return!0},deleteProperty(e,t){return!0}},_b=vt({},Tp,{get:Pb,set:Lb}),zb=vt({},Pp,{get:Mb}),rd=e=>e,Ra=e=>Reflect.getPrototypeOf(e);function ps(e,t,o=!1,i=!1){e=e.__v_raw;const n=nt(e),r=nt(t);o||(t!==r&&Zt(n,"get",t),Zt(n,"get",r));const{has:s}=Ra(n),c=i?rd:o?sd:Ir;if(s.call(n,t))return c(e.get(t));if(s.call(n,r))return c(e.get(r));e!==n&&e.get(t)}function gs(e,t=!1){const o=this.__v_raw,i=nt(o),n=nt(e);return t||(e!==n&&Zt(i,"has",e),Zt(i,"has",n)),e===n?o.has(e):o.has(e)||o.has(n)}function ms(e,t=!1){return e=e.__v_raw,!t&&Zt(nt(e),"iterate",ji),Reflect.get(e,"size",e)}function Ah(e){e=nt(e);const t=nt(this);return Ra(t).has.call(t,e)||(t.add(e),Wo(t,"add",e,e)),this}function Mh(e,t){t=nt(t);const o=nt(this),{has:i,get:n}=Ra(o);let r=i.call(o,e);r||(e=nt(e),r=i.call(o,e));const s=n.call(o,e);return o.set(e,t),r?En(t,s)&&Wo(o,"set",e,t):Wo(o,"add",e,t),this}function Eh(e){const t=nt(this),{has:o,get:i}=Ra(t);let n=o.call(t,e);n||(e=nt(e),n=o.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return n&&Wo(t,"delete",e,void 0),r}function Oh(){const e=nt(this),t=e.size!==0,o=e.clear();return t&&Wo(e,"clear",void 0,void 0),o}function vs(e,t){return function(i,n){const r=this,s=r.__v_raw,c=nt(s),u=t?rd:e?sd:Ir;return!e&&Zt(c,"iterate",ji),s.forEach((f,p)=>i.call(n,u(f),u(p),r))}}function xs(e,t,o){return function(...i){const n=this.__v_raw,r=nt(n),s=bn(r),c=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,f=n[e](...i),p=o?rd:t?sd:Ir;return!t&&Zt(r,"iterate",u?Ql:ji),{next(){const{value:d,done:v}=f.next();return v?{value:d,done:v}:{value:c?[p(d[0]),p(d[1])]:p(d),done:v}},[Symbol.iterator](){return this}}}}function oi(e){return function(...t){return e==="delete"?!1:this}}function $b(){const e={get(r){return ps(this,r)},get size(){return ms(this)},has:gs,add:Ah,set:Mh,delete:Eh,clear:Oh,forEach:vs(!1,!1)},t={get(r){return ps(this,r,!1,!0)},get size(){return ms(this)},has:gs,add:Ah,set:Mh,delete:Eh,clear:Oh,forEach:vs(!1,!0)},o={get(r){return ps(this,r,!0)},get size(){return ms(this,!0)},has(r){return gs.call(this,r,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:vs(!0,!1)},i={get(r){return ps(this,r,!0,!0)},get size(){return ms(this,!0)},has(r){return gs.call(this,r,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:vs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=xs(r,!1,!1),o[r]=xs(r,!0,!1),t[r]=xs(r,!1,!0),i[r]=xs(r,!0,!0)}),[e,o,t,i]}const[Fb,Hb,jb,Nb]=$b();function La(e,t){const o=t?e?Nb:jb:e?Hb:Fb;return(i,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(st(o,n)&&n in i?o:i,n,r)}const Wb={get:La(!1,!1)},Ub={get:La(!1,!0)},Gb={get:La(!0,!1)},Vb={get:La(!0,!0)},Ap=new WeakMap,Mp=new WeakMap,Ep=new WeakMap,Op=new WeakMap;function Xb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qb(e){return e.__v_skip||!Object.isExtensible(e)?0:Xb(lb(e))}function Oo(e){return On(e)?e:Da(e,!1,Tp,Wb,Ap)}function Yb(e){return Da(e,!1,_b,Ub,Mp)}function Uo(e){return Da(e,!0,Pp,Gb,Ep)}function s3(e){return Da(e,!0,zb,Vb,Op)}function Da(e,t,o,i,n){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const s=qb(e);if(s===0)return e;const c=new Proxy(e,s===2?i:o);return n.set(e,c),c}function Cn(e){return On(e)?Cn(e.__v_raw):!!(e&&e.__v_isReactive)}function On(e){return!!(e&&e.__v_isReadonly)}function oa(e){return!!(e&&e.__v_isShallow)}function Rp(e){return Cn(e)||On(e)}function nt(e){const t=e&&e.__v_raw;return t?nt(t):e}function Dr(e){return Js(e,"__v_skip",!0),e}const Ir=e=>ft(e)?Oo(e):e,sd=e=>ft(e)?Uo(e):e;function ad(e){fi&&go&&(e=nt(e),wp(e.dep||(e.dep=nd())))}function Ia(e,t){e=nt(e);const o=e.dep;o&&ec(o)}function zt(e){return!!(e&&e.__v_isRef===!0)}function ke(e){return Lp(e,!1)}function Kb(e){return Lp(e,!0)}function Lp(e,t){return zt(e)?e:new Zb(e,t)}class Zb{constructor(t,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?t:nt(t),this._value=o?t:Ir(t)}get value(){return ad(this),this._value}set value(t){const o=this.__v_isShallow||oa(t)||On(t);t=o?t:nt(t),En(t,this._rawValue)&&(this._rawValue=t,this._value=o?t:Ir(t),Ia(this))}}function a3(e){Ia(e)}function St(e){return zt(e)?e.value:e}function l3(e){return qe(e)?e():St(e)}const Jb={get:(e,t,o)=>St(Reflect.get(e,t,o)),set:(e,t,o,i)=>{const n=e[t];return zt(n)&&!zt(o)?(n.value=o,!0):Reflect.set(e,t,o,i)}};function Dp(e){return Cn(e)?e:new Proxy(e,Jb)}class Qb{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:o,set:i}=t(()=>ad(this),()=>Ia(this));this._get=o,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function c3(e){return new Qb(e)}function d3(e){const t=je(e)?new Array(e.length):{};for(const o in e)t[o]=Ip(e,o);return t}class ey{constructor(t,o,i){this._object=t,this._key=o,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Sb(nt(this._object),this._key)}}class ty{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function et(e,t,o){return zt(e)?e:qe(e)?new ty(e):ft(e)&&arguments.length>1?Ip(e,t,o):ke(e)}function Ip(e,t,o){const i=e[t];return zt(i)?i:new ey(e,t,o)}class oy{constructor(t,o,i,n){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ea(t,()=>{this._dirty||(this._dirty=!0,Ia(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=i}get value(){const t=nt(this);return ad(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function iy(e,t,o=!1){let i,n;const r=qe(e);return r?(i=e,n=vo):(i=e.get,n=e.set),new oy(i,n,r||!n,o)}function h3(e,...t){}function u3(e,t){}function pi(e,t,o,i){let n;try{n=i?e(...i):e()}catch(r){Gn(r,t,o)}return n}function ho(e,t,o,i){if(qe(e)){const r=pi(e,t,o,i);return r&&od(r)&&r.catch(s=>{Gn(s,t,o)}),r}const n=[];for(let r=0;r<e.length;r++)n.push(ho(e[r],t,o,i));return n}function Gn(e,t,o,i=!0){const n=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,c=o;for(;r;){const f=r.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,s,c)===!1)return}r=r.parent}const u=t.appContext.config.errorHandler;if(u){pi(u,null,10,[e,s,c]);return}}ny(e,o,n,i)}function ny(e,t,o,i=!0){console.error(e)}let Br=!1,tc=!1;const Gt=[];let ko=0;const wn=[];let Ho=null,Ii=0;const Bp=Promise.resolve();let ld=null;function Ft(e){const t=ld||Bp;return e?t.then(this?e.bind(this):e):t}function ry(e){let t=ko+1,o=Gt.length;for(;t<o;){const i=t+o>>>1;_r(Gt[i])<e?t=i+1:o=i}return t}function Ba(e){(!Gt.length||!Gt.includes(e,Br&&e.allowRecurse?ko+1:ko))&&(e.id==null?Gt.push(e):Gt.splice(ry(e.id),0,e),_p())}function _p(){!Br&&!tc&&(tc=!0,ld=Bp.then($p))}function sy(e){const t=Gt.indexOf(e);t>ko&&Gt.splice(t,1)}function zp(e){je(e)?wn.push(...e):(!Ho||!Ho.includes(e,e.allowRecurse?Ii+1:Ii))&&wn.push(e),_p()}function Rh(e,t=Br?ko+1:0){for(;t<Gt.length;t++){const o=Gt[t];o&&o.pre&&(Gt.splice(t,1),t--,o())}}function ia(e){if(wn.length){const t=[...new Set(wn)];if(wn.length=0,Ho){Ho.push(...t);return}for(Ho=t,Ho.sort((o,i)=>_r(o)-_r(i)),Ii=0;Ii<Ho.length;Ii++)Ho[Ii]();Ho=null,Ii=0}}const _r=e=>e.id==null?1/0:e.id,ay=(e,t)=>{const o=_r(e)-_r(t);if(o===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function $p(e){tc=!1,Br=!0,Gt.sort(ay);const t=vo;try{for(ko=0;ko<Gt.length;ko++){const o=Gt[ko];o&&o.active!==!1&&pi(o,null,14)}}finally{ko=0,Gt.length=0,ia(),Br=!1,ld=null,(Gt.length||wn.length)&&$p()}}let sr,bs=[];function ly(e,t){var o,i;sr=e,sr?(sr.enabled=!0,bs.forEach(({event:n,args:r})=>sr.emit(n,...r)),bs=[]):typeof window<"u"&&window.HTMLElement&&!((i=(o=window.navigator)==null?void 0:o.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{ly(r,t)}),setTimeout(()=>{sr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,bs=[])},3e3)):bs=[]}function cy(e,t,...o){if(e.isUnmounted)return;const i=e.vnode.props||ht;let n=o;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in i){const p=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:v}=i[p]||ht;v&&(n=o.map(x=>yt(x)?x.trim():x)),d&&(n=o.map(Qs))}let c,u=i[c=js(t)]||i[c=js(ro(t))];!u&&r&&(u=i[c=js(co(t))]),u&&ho(u,e,6,n);const f=i[c+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,ho(f,e,6,n)}}function Fp(e,t,o=!1){const i=t.emitsCache,n=i.get(e);if(n!==void 0)return n;const r=e.emits;let s={},c=!1;if(!qe(e)){const u=f=>{const p=Fp(f,t,!0);p&&(c=!0,vt(s,p))};!o&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(ft(e)&&i.set(e,null),null):(je(r)?r.forEach(u=>s[u]=null):vt(s,r),ft(e)&&i.set(e,s),s)}function _a(e,t){return!e||!es(t)?!1:(t=t.slice(2).replace(/Once$/,""),st(e,t[0].toLowerCase()+t.slice(1))||st(e,co(t))||st(e,t))}let $t=null,za=null;function zr(e){const t=$t;return $t=e,za=e&&e.type.__scopeId||null,t}function f3(e){za=e}function p3(){za=null}const g3=e=>At;function At(e,t=$t,o){if(!t||e._n)return e;const i=(...n)=>{i._d&&Uh(-1);const r=zr(t);let s;try{s=e(...n)}finally{zr(r),i._d&&Uh(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Ns(e){const{type:t,vnode:o,proxy:i,withProxy:n,props:r,propsOptions:[s],slots:c,attrs:u,emit:f,render:p,renderCache:d,data:v,setupState:x,ctx:g,inheritAttrs:k}=e;let M,y;const T=zr(e);try{if(o.shapeFlag&4){const A=n||i;M=io(p.call(A,A,d,r,x,v,g)),y=u}else{const A=t;M=io(A.length>1?A(r,{attrs:u,slots:c,emit:f}):A(r,null)),y=t.props?u:hy(u)}}catch(A){Sr.length=0,Gn(A,e,1),M=Ze(Ht)}let I=M;if(y&&k!==!1){const A=Object.keys(y),{shapeFlag:R}=I;A.length&&R&7&&(s&&A.some(ed)&&(y=uy(y,s)),I=xo(I,y))}return o.dirs&&(I=xo(I),I.dirs=I.dirs?I.dirs.concat(o.dirs):o.dirs),o.transition&&(I.transition=o.transition),M=I,zr(T),M}function dy(e){let t;for(let o=0;o<e.length;o++){const i=e[o];if(bi(i)){if(i.type!==Ht||i.children==="v-if"){if(t)return;t=i}}else return}return t}const hy=e=>{let t;for(const o in e)(o==="class"||o==="style"||es(o))&&((t||(t={}))[o]=e[o]);return t},uy=(e,t)=>{const o={};for(const i in e)(!ed(i)||!(i.slice(9)in t))&&(o[i]=e[i]);return o};function fy(e,t,o){const{props:i,children:n,component:r}=e,{props:s,children:c,patchFlag:u}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&u>=0){if(u&1024)return!0;if(u&16)return i?Lh(i,s,f):!!s;if(u&8){const p=t.dynamicProps;for(let d=0;d<p.length;d++){const v=p[d];if(s[v]!==i[v]&&!_a(f,v))return!0}}}else return(n||c)&&(!c||!c.$stable)?!0:i===s?!1:i?s?Lh(i,s,f):!0:!!s;return!1}function Lh(e,t,o){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let n=0;n<i.length;n++){const r=i[n];if(t[r]!==e[r]&&!_a(o,r))return!0}return!1}function cd({vnode:e,parent:t},o){for(;t&&t.subTree===e;)(e=t.vnode).el=o,t=t.parent}const Hp=e=>e.__isSuspense,py={name:"Suspense",__isSuspense:!0,process(e,t,o,i,n,r,s,c,u,f){e==null?gy(t,o,i,n,r,s,c,u,f):my(e,t,o,i,n,s,c,u,f)},hydrate:vy,create:dd,normalize:xy},m3=py;function $r(e,t){const o=e.props&&e.props[t];qe(o)&&o()}function gy(e,t,o,i,n,r,s,c,u){const{p:f,o:{createElement:p}}=u,d=p("div"),v=e.suspense=dd(e,n,i,t,d,o,r,s,c,u);f(null,v.pendingBranch=e.ssContent,d,null,i,v,r,s),v.deps>0?($r(e,"onPending"),$r(e,"onFallback"),f(null,e.ssFallback,t,o,i,null,r,s),Sn(v,e.ssFallback)):v.resolve(!1,!0)}function my(e,t,o,i,n,r,s,c,{p:u,um:f,o:{createElement:p}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const v=t.ssContent,x=t.ssFallback,{activeBranch:g,pendingBranch:k,isInFallback:M,isHydrating:y}=d;if(k)d.pendingBranch=v,mo(v,k)?(u(k,v,d.hiddenContainer,null,n,d,r,s,c),d.deps<=0?d.resolve():M&&(u(g,x,o,i,n,null,r,s,c),Sn(d,x))):(d.pendingId++,y?(d.isHydrating=!1,d.activeBranch=k):f(k,n,d),d.deps=0,d.effects.length=0,d.hiddenContainer=p("div"),M?(u(null,v,d.hiddenContainer,null,n,d,r,s,c),d.deps<=0?d.resolve():(u(g,x,o,i,n,null,r,s,c),Sn(d,x))):g&&mo(v,g)?(u(g,v,o,i,n,d,r,s,c),d.resolve(!0)):(u(null,v,d.hiddenContainer,null,n,d,r,s,c),d.deps<=0&&d.resolve()));else if(g&&mo(v,g))u(g,v,o,i,n,d,r,s,c),Sn(d,v);else if($r(t,"onPending"),d.pendingBranch=v,d.pendingId++,u(null,v,d.hiddenContainer,null,n,d,r,s,c),d.deps<=0)d.resolve();else{const{timeout:T,pendingId:I}=d;T>0?setTimeout(()=>{d.pendingId===I&&d.fallback(x)},T):T===0&&d.fallback(x)}}function dd(e,t,o,i,n,r,s,c,u,f,p=!1){const{p:d,m:v,um:x,n:g,o:{parentNode:k,remove:M}}=f;let y;const T=by(e);T&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const I=e.props?ea(e.props.timeout):void 0,A={vnode:e,parent:t,parentComponent:o,isSVG:s,container:i,hiddenContainer:n,anchor:r,deps:0,pendingId:0,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(R=!1,z=!1){const{vnode:P,activeBranch:L,pendingBranch:S,pendingId:w,effects:E,parentComponent:m,container:C}=A;if(A.isHydrating)A.isHydrating=!1;else if(!R){const h=L&&S.transition&&S.transition.mode==="out-in";h&&(L.transition.afterLeave=()=>{w===A.pendingId&&v(S,C,b,0)});let{anchor:b}=A;L&&(b=g(L),x(L,m,A,!0)),h||v(S,C,b,0)}Sn(A,S),A.pendingBranch=null,A.isInFallback=!1;let a=A.parent,l=!1;for(;a;){if(a.pendingBranch){a.effects.push(...E),l=!0;break}a=a.parent}l||zp(E),A.effects=[],T&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!z&&t.resolve()),$r(P,"onResolve")},fallback(R){if(!A.pendingBranch)return;const{vnode:z,activeBranch:P,parentComponent:L,container:S,isSVG:w}=A;$r(z,"onFallback");const E=g(P),m=()=>{A.isInFallback&&(d(null,R,S,E,L,null,w,c,u),Sn(A,R))},C=R.transition&&R.transition.mode==="out-in";C&&(P.transition.afterLeave=m),A.isInFallback=!0,x(P,L,null,!0),C||m()},move(R,z,P){A.activeBranch&&v(A.activeBranch,R,z,P),A.container=R},next(){return A.activeBranch&&g(A.activeBranch)},registerDep(R,z){const P=!!A.pendingBranch;P&&A.deps++;const L=R.vnode.el;R.asyncDep.catch(S=>{Gn(S,R,0)}).then(S=>{if(R.isUnmounted||A.isUnmounted||A.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:w}=R;lc(R,S,!1),L&&(w.el=L);const E=!L&&R.subTree.el;z(R,w,k(L||R.subTree.el),L?null:g(R.subTree),A,s,u),E&&M(E),cd(R,w.el),P&&--A.deps===0&&A.resolve()})},unmount(R,z){A.isUnmounted=!0,A.activeBranch&&x(A.activeBranch,o,R,z),A.pendingBranch&&x(A.pendingBranch,o,R,z)}};return A}function vy(e,t,o,i,n,r,s,c,u){const f=t.suspense=dd(t,i,o,e.parentNode,document.createElement("div"),null,n,r,s,c,!0),p=u(e,f.pendingBranch=t.ssContent,o,f,r,s);return f.deps===0&&f.resolve(!1,!0),p}function xy(e){const{shapeFlag:t,children:o}=e,i=t&32;e.ssContent=Dh(i?o.default:o),e.ssFallback=i?Dh(o.fallback):Ze(Ht)}function Dh(e){let t;if(qe(e)){const o=Xi&&e._c;o&&(e._d=!1,Ti()),e=e(),o&&(e._d=!0,t=Yt,ag())}return je(e)&&(e=dy(e)),e=io(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(o=>o!==e)),e}function jp(e,t){t&&t.pendingBranch?je(e)?t.effects.push(...e):t.effects.push(e):zp(e)}function Sn(e,t){e.activeBranch=t;const{vnode:o,parentComponent:i}=e,n=o.el=t.el;i&&i.subTree===o&&(i.vnode.el=n,cd(i,n))}function by(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Go(e,t){return ts(e,null,t)}function yy(e,t){return ts(e,null,{flush:"post"})}function v3(e,t){return ts(e,null,{flush:"sync"})}const ys={};function lt(e,t,o){return ts(e,t,o)}function ts(e,t,{immediate:o,deep:i,flush:n,onTrack:r,onTrigger:s}=ht){var c;const u=yb()===((c=Mt)==null?void 0:c.scope)?Mt:null;let f,p=!1,d=!1;if(zt(e)?(f=()=>e.value,p=oa(e)):Cn(e)?(f=()=>e,i=!0):je(e)?(d=!0,p=e.some(A=>Cn(A)||oa(A)),f=()=>e.map(A=>{if(zt(A))return A.value;if(Cn(A))return _i(A);if(qe(A))return pi(A,u,2)})):qe(e)?t?f=()=>pi(e,u,2):f=()=>{if(!(u&&u.isUnmounted))return v&&v(),ho(e,u,3,[x])}:f=vo,t&&i){const A=f;f=()=>_i(A())}let v,x=A=>{v=T.onStop=()=>{pi(A,u,4)}},g;if(Dn)if(x=vo,t?o&&ho(t,u,3,[f(),d?[]:void 0,x]):f(),n==="sync"){const A=s1();g=A.__watcherHandles||(A.__watcherHandles=[])}else return vo;let k=d?new Array(e.length).fill(ys):ys;const M=()=>{if(T.active)if(t){const A=T.run();(i||p||(d?A.some((R,z)=>En(R,k[z])):En(A,k)))&&(v&&v(),ho(t,u,3,[A,k===ys?void 0:d&&k[0]===ys?[]:k,x]),k=A)}else T.run()};M.allowRecurse=!!t;let y;n==="sync"?y=M:n==="post"?y=()=>Nt(M,u&&u.suspense):(M.pre=!0,u&&(M.id=u.uid),y=()=>Ba(M));const T=new Ea(f,y);t?o?M():k=T.run():n==="post"?Nt(T.run.bind(T),u&&u.suspense):T.run();const I=()=>{T.stop(),u&&u.scope&&td(u.scope.effects,T)};return g&&g.push(I),I}function Cy(e,t,o){const i=this.proxy,n=yt(e)?e.includes(".")?Np(i,e):()=>i[e]:e.bind(i,i);let r;qe(t)?r=t:(r=t.handler,o=t);const s=Mt;yi(this);const c=ts(n,r.bind(i),o);return s?yi(s):gi(),c}function Np(e,t){const o=t.split(".");return()=>{let i=e;for(let n=0;n<o.length&&i;n++)i=i[o[n]];return i}}function _i(e,t){if(!ft(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),zt(e))_i(e.value,t);else if(je(e))for(let o=0;o<e.length;o++)_i(e[o],t);else if(Ki(e)||bn(e))e.forEach(o=>{_i(o,t)});else if(fp(e))for(const o in e)_i(e[o],t);return e}function Vo(e,t){const o=$t;if(o===null)return e;const i=Na(o)||o.proxy,n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,c,u,f=ht]=t[r];s&&(qe(s)&&(s={mounted:s,updated:s}),s.deep&&_i(c),n.push({dir:s,instance:i,value:c,oldValue:void 0,arg:u,modifiers:f}))}return e}function So(e,t,o,i){const n=e.dirs,r=t&&t.dirs;for(let s=0;s<n.length;s++){const c=n[s];r&&(c.oldValue=r[s].value);let u=c.dir[i];u&&(Wn(),ho(u,o,8,[e.el,c,e,t]),Un())}}function Wp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pt(()=>{e.isMounted=!0}),Ot(()=>{e.isUnmounting=!0}),e}const ao=[Function,Array],Up={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ao,onEnter:ao,onAfterEnter:ao,onEnterCancelled:ao,onBeforeLeave:ao,onLeave:ao,onAfterLeave:ao,onLeaveCancelled:ao,onBeforeAppear:ao,onAppear:ao,onAfterAppear:ao,onAppearCancelled:ao},wy={name:"BaseTransition",props:Up,setup(e,{slots:t}){const o=so(),i=Wp();let n;return()=>{const r=t.default&&hd(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const k of r)if(k.type!==Ht){s=k;break}}const c=nt(e),{mode:u}=c;if(i.isLeaving)return pl(s);const f=Ih(s);if(!f)return pl(s);const p=Fr(f,c,i,o);Rn(f,p);const d=o.subTree,v=d&&Ih(d);let x=!1;const{getTransitionKey:g}=f.type;if(g){const k=g();n===void 0?n=k:k!==n&&(n=k,x=!0)}if(v&&v.type!==Ht&&(!mo(f,v)||x)){const k=Fr(v,c,i,o);if(Rn(v,k),u==="out-in")return i.isLeaving=!0,k.afterLeave=()=>{i.isLeaving=!1,o.update.active!==!1&&o.update()},pl(s);u==="in-out"&&f.type!==Ht&&(k.delayLeave=(M,y,T)=>{const I=Gp(i,v);I[String(v.key)]=v,M._leaveCb=()=>{y(),M._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=T})}return s}}},Sy=wy;function Gp(e,t){const{leavingVNodes:o}=e;let i=o.get(t.type);return i||(i=Object.create(null),o.set(t.type,i)),i}function Fr(e,t,o,i){const{appear:n,mode:r,persisted:s=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:d,onLeave:v,onAfterLeave:x,onLeaveCancelled:g,onBeforeAppear:k,onAppear:M,onAfterAppear:y,onAppearCancelled:T}=t,I=String(e.key),A=Gp(o,e),R=(L,S)=>{L&&ho(L,i,9,S)},z=(L,S)=>{const w=S[1];R(L,S),je(L)?L.every(E=>E.length<=1)&&w():L.length<=1&&w()},P={mode:r,persisted:s,beforeEnter(L){let S=c;if(!o.isMounted)if(n)S=k||c;else return;L._leaveCb&&L._leaveCb(!0);const w=A[I];w&&mo(e,w)&&w.el._leaveCb&&w.el._leaveCb(),R(S,[L])},enter(L){let S=u,w=f,E=p;if(!o.isMounted)if(n)S=M||u,w=y||f,E=T||p;else return;let m=!1;const C=L._enterCb=a=>{m||(m=!0,a?R(E,[L]):R(w,[L]),P.delayedLeave&&P.delayedLeave(),L._enterCb=void 0)};S?z(S,[L,C]):C()},leave(L,S){const w=String(e.key);if(L._enterCb&&L._enterCb(!0),o.isUnmounting)return S();R(d,[L]);let E=!1;const m=L._leaveCb=C=>{E||(E=!0,S(),C?R(g,[L]):R(x,[L]),L._leaveCb=void 0,A[w]===e&&delete A[w])};A[w]=e,v?z(v,[L,m]):m()},clone(L){return Fr(L,t,o,i)}};return P}function pl(e){if(os(e))return e=xo(e),e.children=null,e}function Ih(e){return os(e)?e.children?e.children[0]:void 0:e}function Rn(e,t){e.shapeFlag&6&&e.component?Rn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hd(e,t=!1,o){let i=[],n=0;for(let r=0;r<e.length;r++){let s=e[r];const c=o==null?s.key:String(o)+String(s.key!=null?s.key:r);s.type===ut?(s.patchFlag&128&&n++,i=i.concat(hd(s.children,t,c))):(t||s.type!==Ht)&&i.push(c!=null?xo(s,{key:c}):s)}if(n>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function Ne(e,t){return qe(e)?(()=>vt({name:e.name},t,{setup:e}))():e}const Ni=e=>!!e.type.__asyncLoader;function x3(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:o,errorComponent:i,delay:n=200,timeout:r,suspensible:s=!0,onError:c}=e;let u=null,f,p=0;const d=()=>(p++,u=null,v()),v=()=>{let x;return u||(x=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),c)return new Promise((k,M)=>{c(g,()=>k(d()),()=>M(g),p+1)});throw g}).then(g=>x!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),f=g,g)))};return Ne({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return f},setup(){const x=Mt;if(f)return()=>gl(f,x);const g=T=>{u=null,Gn(T,x,13,!i)};if(s&&x.suspense||Dn)return v().then(T=>()=>gl(T,x)).catch(T=>(g(T),()=>i?Ze(i,{error:T}):null));const k=ke(!1),M=ke(),y=ke(!!n);return n&&setTimeout(()=>{y.value=!1},n),r!=null&&setTimeout(()=>{if(!k.value&&!M.value){const T=new Error(`Async component timed out after ${r}ms.`);g(T),M.value=T}},r),v().then(()=>{k.value=!0,x.parent&&os(x.parent.vnode)&&Ba(x.parent.update)}).catch(T=>{g(T),M.value=T}),()=>{if(k.value&&f)return gl(f,x);if(M.value&&i)return Ze(i,{error:M.value});if(o&&!y.value)return Ze(o)}}})}function gl(e,t){const{ref:o,props:i,children:n,ce:r}=t.vnode,s=Ze(e,i,n);return s.ref=o,s.ce=r,delete t.vnode.ce,s}const os=e=>e.type.__isKeepAlive,ky={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const o=so(),i=o.ctx;if(!i.renderer)return()=>{const T=t.default&&t.default();return T&&T.length===1?T[0]:T};const n=new Map,r=new Set;let s=null;const c=o.suspense,{renderer:{p:u,m:f,um:p,o:{createElement:d}}}=i,v=d("div");i.activate=(T,I,A,R,z)=>{const P=T.component;f(T,I,A,0,c),u(P.vnode,T,I,A,P,c,R,T.slotScopeIds,z),Nt(()=>{P.isDeactivated=!1,P.a&&yn(P.a);const L=T.props&&T.props.onVnodeMounted;L&&qt(L,P.parent,T)},c)},i.deactivate=T=>{const I=T.component;f(T,v,null,1,c),Nt(()=>{I.da&&yn(I.da);const A=T.props&&T.props.onVnodeUnmounted;A&&qt(A,I.parent,T),I.isDeactivated=!0},c)};function x(T){ml(T),p(T,o,c,!0)}function g(T){n.forEach((I,A)=>{const R=dc(I.type);R&&(!T||!T(R))&&k(A)})}function k(T){const I=n.get(T);!s||!mo(I,s)?x(I):s&&ml(s),n.delete(T),r.delete(T)}lt(()=>[e.include,e.exclude],([T,I])=>{T&&g(A=>gr(T,A)),I&&g(A=>!gr(I,A))},{flush:"post",deep:!0});let M=null;const y=()=>{M!=null&&n.set(M,vl(o.subTree))};return Pt(y),pd(y),Ot(()=>{n.forEach(T=>{const{subTree:I,suspense:A}=o,R=vl(I);if(T.type===R.type&&T.key===R.key){ml(R);const z=R.component.da;z&&Nt(z,A);return}x(T)})}),()=>{if(M=null,!t.default)return null;const T=t.default(),I=T[0];if(T.length>1)return s=null,T;if(!bi(I)||!(I.shapeFlag&4)&&!(I.shapeFlag&128))return s=null,I;let A=vl(I);const R=A.type,z=dc(Ni(A)?A.type.__asyncResolved||{}:R),{include:P,exclude:L,max:S}=e;if(P&&(!z||!gr(P,z))||L&&z&&gr(L,z))return s=A,I;const w=A.key==null?R:A.key,E=n.get(w);return A.el&&(A=xo(A),I.shapeFlag&128&&(I.ssContent=A)),M=w,E?(A.el=E.el,A.component=E.component,A.transition&&Rn(A,A.transition),A.shapeFlag|=512,r.delete(w),r.add(w)):(r.add(w),S&&r.size>parseInt(S,10)&&k(r.values().next().value)),A.shapeFlag|=256,s=A,Hp(I.type)?I:A}}},b3=ky;function gr(e,t){return je(e)?e.some(o=>gr(o,t)):yt(e)?e.split(",").includes(t):ab(e)?e.test(t):!1}function ud(e,t){Vp(e,"a",t)}function fd(e,t){Vp(e,"da",t)}function Vp(e,t,o=Mt){const i=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if($a(t,i,o),o){let n=o.parent;for(;n&&n.parent;)os(n.parent.vnode)&&Ty(i,t,o,n),n=n.parent}}function Ty(e,t,o,i){const n=$a(t,e,i,!0);gd(()=>{td(i[t],n)},o)}function ml(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function vl(e){return e.shapeFlag&128?e.ssContent:e}function $a(e,t,o=Mt,i=!1){if(o){const n=o[e]||(o[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(o.isUnmounted)return;Wn(),yi(o);const c=ho(t,o,e,s);return gi(),Un(),c});return i?n.unshift(r):n.push(r),r}}const Ko=e=>(t,o=Mt)=>(!Dn||e==="sp")&&$a(e,(...i)=>t(...i),o),Zi=Ko("bm"),Pt=Ko("m"),Py=Ko("bu"),pd=Ko("u"),Ot=Ko("bum"),gd=Ko("um"),Ay=Ko("sp"),My=Ko("rtg"),Ey=Ko("rtc");function Oy(e,t=Mt){$a("ec",e,t)}const md="components",Ry="directives";function Xp(e,t){return vd(md,e,!0,t)||e}const qp=Symbol.for("v-ndc");function y3(e){return yt(e)?vd(md,e,!1)||e:e||qp}function C3(e){return vd(Ry,e)}function vd(e,t,o=!0,i=!1){const n=$t||Mt;if(n){const r=n.type;if(e===md){const c=dc(r,!1);if(c&&(c===t||c===ro(t)||c===Ta(ro(t))))return r}const s=Bh(n[e]||r[e],t)||Bh(n.appContext[e],t);return!s&&i?r:s}}function Bh(e,t){return e&&(e[t]||e[ro(t)]||e[Ta(ro(t))])}function w3(e,t,o,i){let n;const r=o&&o[i];if(je(e)||yt(e)){n=new Array(e.length);for(let s=0,c=e.length;s<c;s++)n[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){n=new Array(e);for(let s=0;s<e;s++)n[s]=t(s+1,s,void 0,r&&r[s])}else if(ft(e))if(e[Symbol.iterator])n=Array.from(e,(s,c)=>t(s,c,void 0,r&&r[c]));else{const s=Object.keys(e);n=new Array(s.length);for(let c=0,u=s.length;c<u;c++){const f=s[c];n[c]=t(e[f],f,c,r&&r[c])}}else n=[];return o&&(o[i]=n),n}function S3(e,t){for(let o=0;o<t.length;o++){const i=t[o];if(je(i))for(let n=0;n<i.length;n++)e[i[n].name]=i[n].fn;else i&&(e[i.name]=i.key?(...n)=>{const r=i.fn(...n);return r&&(r.key=i.key),r}:i.fn)}return e}function Yp(e,t,o={},i,n){if($t.isCE||$t.parent&&Ni($t.parent)&&$t.parent.isCE)return t!=="default"&&(o.name=t),Ze("slot",o,i&&i());let r=e[t];r&&r._c&&(r._d=!1),Ti();const s=r&&Kp(r(o)),c=Ha(ut,{key:o.key||s&&s.key||`_${t}`},s||(i?i():[]),s&&e._===1?64:-2);return!n&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function Kp(e){return e.some(t=>bi(t)?!(t.type===Ht||t.type===ut&&!Kp(t.children)):!0)?e:null}function k3(e,t){const o={};for(const i in e)o[t&&/[A-Z]/.test(i)?`on:${i}`:js(i)]=e[i];return o}const oc=e=>e?hg(e)?Na(e)||e.proxy:oc(e.parent):null,Cr=vt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>oc(e.parent),$root:e=>oc(e.root),$emit:e=>e.emit,$options:e=>xd(e),$forceUpdate:e=>e.f||(e.f=()=>Ba(e.update)),$nextTick:e=>e.n||(e.n=Ft.bind(e.proxy)),$watch:e=>Cy.bind(e)}),xl=(e,t)=>e!==ht&&!e.__isScriptSetup&&st(e,t),ic={get({_:e},t){const{ctx:o,setupState:i,data:n,props:r,accessCache:s,type:c,appContext:u}=e;let f;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return i[t];case 2:return n[t];case 4:return o[t];case 3:return r[t]}else{if(xl(i,t))return s[t]=1,i[t];if(n!==ht&&st(n,t))return s[t]=2,n[t];if((f=e.propsOptions[0])&&st(f,t))return s[t]=3,r[t];if(o!==ht&&st(o,t))return s[t]=4,o[t];nc&&(s[t]=0)}}const p=Cr[t];let d,v;if(p)return t==="$attrs"&&Zt(e,"get",t),p(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(o!==ht&&st(o,t))return s[t]=4,o[t];if(v=u.config.globalProperties,st(v,t))return v[t]},set({_:e},t,o){const{data:i,setupState:n,ctx:r}=e;return xl(n,t)?(n[t]=o,!0):i!==ht&&st(i,t)?(i[t]=o,!0):st(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:i,appContext:n,propsOptions:r}},s){let c;return!!o[s]||e!==ht&&st(e,s)||xl(t,s)||(c=r[0])&&st(c,s)||st(i,s)||st(Cr,s)||st(n.config.globalProperties,s)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:st(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}},Ly=vt({},ic,{get(e,t){if(t!==Symbol.unscopables)return ic.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ub(t)}});function T3(){return null}function P3(){return null}function A3(e){}function M3(e){}function E3(){return null}function O3(){}function R3(e,t){return null}function L3(){return Zp().slots}function D3(){return Zp().attrs}function I3(e,t,o){const i=so();if(o&&o.local){const n=ke(e[t]);return lt(()=>e[t],r=>n.value=r),lt(n,r=>{r!==e[t]&&i.emit(`update:${t}`,r)}),n}else return{__v_isRef:!0,get value(){return e[t]},set value(n){i.emit(`update:${t}`,n)}}}function Zp(){const e=so();return e.setupContext||(e.setupContext=pg(e))}function Hr(e){return je(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}function B3(e,t){const o=Hr(e);for(const i in t){if(i.startsWith("__skip"))continue;let n=o[i];n?je(n)||qe(n)?n=o[i]={type:n,default:t[i]}:n.default=t[i]:n===null&&(n=o[i]={default:t[i]}),n&&t[`__skip_${i}`]&&(n.skipFactory=!0)}return o}function _3(e,t){return!e||!t?e||t:je(e)&&je(t)?e.concat(t):vt({},Hr(e),Hr(t))}function z3(e,t){const o={};for(const i in e)t.includes(i)||Object.defineProperty(o,i,{enumerable:!0,get:()=>e[i]});return o}function $3(e){const t=so();let o=e();return gi(),od(o)&&(o=o.catch(i=>{throw yi(t),i})),[o,()=>yi(t)]}let nc=!0;function Dy(e){const t=xd(e),o=e.proxy,i=e.ctx;nc=!1,t.beforeCreate&&_h(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:s,watch:c,provide:u,inject:f,created:p,beforeMount:d,mounted:v,beforeUpdate:x,updated:g,activated:k,deactivated:M,beforeDestroy:y,beforeUnmount:T,destroyed:I,unmounted:A,render:R,renderTracked:z,renderTriggered:P,errorCaptured:L,serverPrefetch:S,expose:w,inheritAttrs:E,components:m,directives:C,filters:a}=t;if(f&&Iy(f,i,null),s)for(const b in s){const B=s[b];qe(B)&&(i[b]=B.bind(o))}if(n){const b=n.call(o,o);ft(b)&&(e.data=Oo(b))}if(nc=!0,r)for(const b in r){const B=r[b],F=qe(B)?B.bind(o,o):qe(B.get)?B.get.bind(o,o):vo,O=!qe(B)&&qe(B.set)?B.set.bind(o):vo,W=be({get:F,set:O});Object.defineProperty(i,b,{enumerable:!0,configurable:!0,get:()=>W.value,set:X=>W.value=X})}if(c)for(const b in c)Jp(c[b],i,o,b);if(u){const b=qe(u)?u.call(o):u;Reflect.ownKeys(b).forEach(B=>{ct(B,b[B])})}p&&_h(p,e,"c");function h(b,B){je(B)?B.forEach(F=>b(F.bind(o))):B&&b(B.bind(o))}if(h(Zi,d),h(Pt,v),h(Py,x),h(pd,g),h(ud,k),h(fd,M),h(Oy,L),h(Ey,z),h(My,P),h(Ot,T),h(gd,A),h(Ay,S),je(w))if(w.length){const b=e.exposed||(e.exposed={});w.forEach(B=>{Object.defineProperty(b,B,{get:()=>o[B],set:F=>o[B]=F})})}else e.exposed||(e.exposed={});R&&e.render===vo&&(e.render=R),E!=null&&(e.inheritAttrs=E),m&&(e.components=m),C&&(e.directives=C)}function Iy(e,t,o=vo){je(e)&&(e=rc(e));for(const i in e){const n=e[i];let r;ft(n)?"default"in n?r=Xe(n.from||i,n.default,!0):r=Xe(n.from||i):r=Xe(n),zt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[i]=r}}function _h(e,t,o){ho(je(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,o)}function Jp(e,t,o,i){const n=i.includes(".")?Np(o,i):()=>o[i];if(yt(e)){const r=t[e];qe(r)&&lt(n,r)}else if(qe(e))lt(n,e.bind(o));else if(ft(e))if(je(e))e.forEach(r=>Jp(r,t,o,i));else{const r=qe(e.handler)?e.handler.bind(o):t[e.handler];qe(r)&&lt(n,r,e)}}function xd(e){const t=e.type,{mixins:o,extends:i}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,c=r.get(t);let u;return c?u=c:!n.length&&!o&&!i?u=t:(u={},n.length&&n.forEach(f=>na(u,f,s,!0)),na(u,t,s)),ft(t)&&r.set(t,u),u}function na(e,t,o,i=!1){const{mixins:n,extends:r}=t;r&&na(e,r,o,!0),n&&n.forEach(s=>na(e,s,o,!0));for(const s in t)if(!(i&&s==="expose")){const c=By[s]||o&&o[s];e[s]=c?c(e[s],t[s]):t[s]}return e}const By={data:zh,props:$h,emits:$h,methods:mr,computed:mr,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:mr,directives:mr,watch:zy,provide:zh,inject:_y};function zh(e,t){return t?e?function(){return vt(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function _y(e,t){return mr(rc(e),rc(t))}function rc(e){if(je(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Vt(e,t){return e?[...new Set([].concat(e,t))]:t}function mr(e,t){return e?vt(Object.create(null),e,t):t}function $h(e,t){return e?je(e)&&je(t)?[...new Set([...e,...t])]:vt(Object.create(null),Hr(e),Hr(t??{})):t}function zy(e,t){if(!e)return t;if(!t)return e;const o=vt(Object.create(null),e);for(const i in t)o[i]=Vt(e[i],t[i]);return o}function Qp(){return{app:null,config:{isNativeTag:nb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let $y=0;function Fy(e,t){return function(i,n=null){qe(i)||(i=vt({},i)),n!=null&&!ft(n)&&(n=null);const r=Qp(),s=new Set;let c=!1;const u=r.app={_uid:$y++,_component:i,_props:n,_container:null,_context:r,_instance:null,version:l1,get config(){return r.config},set config(f){},use(f,...p){return s.has(f)||(f&&qe(f.install)?(s.add(f),f.install(u,...p)):qe(f)&&(s.add(f),f(u,...p))),u},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),u},component(f,p){return p?(r.components[f]=p,u):r.components[f]},directive(f,p){return p?(r.directives[f]=p,u):r.directives[f]},mount(f,p,d){if(!c){const v=Ze(i,n);return v.appContext=r,p&&t?t(v,f):e(v,f,d),c=!0,u._container=f,f.__vue_app__=u,Na(v.component)||v.component.proxy}},unmount(){c&&(e(null,u._container),delete u._container.__vue_app__)},provide(f,p){return r.provides[f]=p,u},runWithContext(f){jr=u;try{return f()}finally{jr=null}}};return u}}let jr=null;function ct(e,t){if(Mt){let o=Mt.provides;const i=Mt.parent&&Mt.parent.provides;i===o&&(o=Mt.provides=Object.create(i)),o[e]=t}}function Xe(e,t,o=!1){const i=Mt||$t;if(i||jr){const n=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:jr._context.provides;if(n&&e in n)return n[e];if(arguments.length>1)return o&&qe(t)?t.call(i&&i.proxy):t}}function F3(){return!!(Mt||$t||jr)}function Hy(e,t,o,i=!1){const n={},r={};Js(r,ja,1),e.propsDefaults=Object.create(null),eg(e,t,n,r);for(const s in e.propsOptions[0])s in n||(n[s]=void 0);o?e.props=i?n:Yb(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function jy(e,t,o,i){const{props:n,attrs:r,vnode:{patchFlag:s}}=e,c=nt(n),[u]=e.propsOptions;let f=!1;if((i||s>0)&&!(s&16)){if(s&8){const p=e.vnode.dynamicProps;for(let d=0;d<p.length;d++){let v=p[d];if(_a(e.emitsOptions,v))continue;const x=t[v];if(u)if(st(r,v))x!==r[v]&&(r[v]=x,f=!0);else{const g=ro(v);n[g]=sc(u,c,g,x,e,!1)}else x!==r[v]&&(r[v]=x,f=!0)}}}else{eg(e,t,n,r)&&(f=!0);let p;for(const d in c)(!t||!st(t,d)&&((p=co(d))===d||!st(t,p)))&&(u?o&&(o[d]!==void 0||o[p]!==void 0)&&(n[d]=sc(u,c,d,void 0,e,!0)):delete n[d]);if(r!==c)for(const d in r)(!t||!st(t,d))&&(delete r[d],f=!0)}f&&Wo(e,"set","$attrs")}function eg(e,t,o,i){const[n,r]=e.propsOptions;let s=!1,c;if(t)for(let u in t){if(yr(u))continue;const f=t[u];let p;n&&st(n,p=ro(u))?!r||!r.includes(p)?o[p]=f:(c||(c={}))[p]=f:_a(e.emitsOptions,u)||(!(u in i)||f!==i[u])&&(i[u]=f,s=!0)}if(r){const u=nt(o),f=c||ht;for(let p=0;p<r.length;p++){const d=r[p];o[d]=sc(n,u,d,f[d],e,!st(f,d))}}return s}function sc(e,t,o,i,n,r){const s=e[o];if(s!=null){const c=st(s,"default");if(c&&i===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&qe(u)){const{propsDefaults:f}=n;o in f?i=f[o]:(yi(n),i=f[o]=u.call(null,t),gi())}else i=u}s[0]&&(r&&!c?i=!1:s[1]&&(i===""||i===co(o))&&(i=!0))}return i}function tg(e,t,o=!1){const i=t.propsCache,n=i.get(e);if(n)return n;const r=e.props,s={},c=[];let u=!1;if(!qe(e)){const p=d=>{u=!0;const[v,x]=tg(d,t,!0);vt(s,v),x&&c.push(...x)};!o&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!r&&!u)return ft(e)&&i.set(e,xn),xn;if(je(r))for(let p=0;p<r.length;p++){const d=ro(r[p]);Fh(d)&&(s[d]=ht)}else if(r)for(const p in r){const d=ro(p);if(Fh(d)){const v=r[p],x=s[d]=je(v)||qe(v)?{type:v}:vt({},v);if(x){const g=Nh(Boolean,x.type),k=Nh(String,x.type);x[0]=g>-1,x[1]=k<0||g<k,(g>-1||st(x,"default"))&&c.push(d)}}}const f=[s,c];return ft(e)&&i.set(e,f),f}function Fh(e){return e[0]!=="$"}function Hh(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jh(e,t){return Hh(e)===Hh(t)}function Nh(e,t){return je(t)?t.findIndex(o=>jh(o,e)):qe(t)&&jh(t,e)?0:-1}const og=e=>e[0]==="_"||e==="$stable",bd=e=>je(e)?e.map(io):[io(e)],Ny=(e,t,o)=>{if(t._n)return t;const i=At((...n)=>bd(t(...n)),o);return i._c=!1,i},ig=(e,t,o)=>{const i=e._ctx;for(const n in e){if(og(n))continue;const r=e[n];if(qe(r))t[n]=Ny(n,r,i);else if(r!=null){const s=bd(r);t[n]=()=>s}}},ng=(e,t)=>{const o=bd(t);e.slots.default=()=>o},Wy=(e,t)=>{if(e.vnode.shapeFlag&32){const o=t._;o?(e.slots=nt(t),Js(t,"_",o)):ig(t,e.slots={})}else e.slots={},t&&ng(e,t);Js(e.slots,ja,1)},Uy=(e,t,o)=>{const{vnode:i,slots:n}=e;let r=!0,s=ht;if(i.shapeFlag&32){const c=t._;c?o&&c===1?r=!1:(vt(n,t),!o&&c===1&&delete n._):(r=!t.$stable,ig(t,n)),s=t}else t&&(ng(e,t),s={default:1});if(r)for(const c in n)!og(c)&&!(c in s)&&delete n[c]};function ra(e,t,o,i,n=!1){if(je(e)){e.forEach((v,x)=>ra(v,t&&(je(t)?t[x]:t),o,i,n));return}if(Ni(i)&&!n)return;const r=i.shapeFlag&4?Na(i.component)||i.component.proxy:i.el,s=n?null:r,{i:c,r:u}=e,f=t&&t.r,p=c.refs===ht?c.refs={}:c.refs,d=c.setupState;if(f!=null&&f!==u&&(yt(f)?(p[f]=null,st(d,f)&&(d[f]=null)):zt(f)&&(f.value=null)),qe(u))pi(u,c,12,[s,p]);else{const v=yt(u),x=zt(u);if(v||x){const g=()=>{if(e.f){const k=v?st(d,u)?d[u]:p[u]:u.value;n?je(k)&&td(k,r):je(k)?k.includes(r)||k.push(r):v?(p[u]=[r],st(d,u)&&(d[u]=p[u])):(u.value=[r],e.k&&(p[e.k]=u.value))}else v?(p[u]=s,st(d,u)&&(d[u]=s)):x&&(u.value=s,e.k&&(p[e.k]=s))};s?(g.id=-1,Nt(g,o)):g()}}}let ii=!1;const Cs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",ws=e=>e.nodeType===8;function Gy(e){const{mt:t,p:o,o:{patchProp:i,createText:n,nextSibling:r,parentNode:s,remove:c,insert:u,createComment:f}}=e,p=(y,T)=>{if(!T.hasChildNodes()){o(null,y,T),ia(),T._vnode=y;return}ii=!1,d(T.firstChild,y,null,null,null),ia(),T._vnode=y,ii&&console.error("Hydration completed but contains mismatches.")},d=(y,T,I,A,R,z=!1)=>{const P=ws(y)&&y.data==="[",L=()=>k(y,T,I,A,R,P),{type:S,ref:w,shapeFlag:E,patchFlag:m}=T;let C=y.nodeType;T.el=y,m===-2&&(z=!1,T.dynamicChildren=null);let a=null;switch(S){case Vi:C!==3?T.children===""?(u(T.el=n(""),s(y),y),a=y):a=L():(y.data!==T.children&&(ii=!0,y.data=T.children),a=r(y));break;case Ht:C!==8||P?a=L():a=r(y);break;case kn:if(P&&(y=r(y),C=y.nodeType),C===1||C===3){a=y;const l=!T.children.length;for(let h=0;h<T.staticCount;h++)l&&(T.children+=a.nodeType===1?a.outerHTML:a.data),h===T.staticCount-1&&(T.anchor=a),a=r(a);return P?r(a):a}else L();break;case ut:P?a=g(y,T,I,A,R,z):a=L();break;default:if(E&1)C!==1||T.type.toLowerCase()!==y.tagName.toLowerCase()?a=L():a=v(y,T,I,A,R,z);else if(E&6){T.slotScopeIds=R;const l=s(y);if(t(T,l,null,I,A,Cs(l),z),a=P?M(y):r(y),a&&ws(a)&&a.data==="teleport end"&&(a=r(a)),Ni(T)){let h;P?(h=Ze(ut),h.anchor=a?a.previousSibling:l.lastChild):h=y.nodeType===3?Ln(""):Ze("div"),h.el=y,T.component.subTree=h}}else E&64?C!==8?a=L():a=T.type.hydrate(y,T,I,A,R,z,e,x):E&128&&(a=T.type.hydrate(y,T,I,A,Cs(s(y)),R,z,e,d))}return w!=null&&ra(w,null,A,T),a},v=(y,T,I,A,R,z)=>{z=z||!!T.dynamicChildren;const{type:P,props:L,patchFlag:S,shapeFlag:w,dirs:E}=T,m=P==="input"&&E||P==="option";if(m||S!==-1){if(E&&So(T,null,I,"created"),L)if(m||!z||S&48)for(const a in L)(m&&a.endsWith("value")||es(a)&&!yr(a))&&i(y,a,null,L[a],!1,void 0,I);else L.onClick&&i(y,"onClick",null,L.onClick,!1,void 0,I);let C;if((C=L&&L.onVnodeBeforeMount)&&qt(C,I,T),E&&So(T,null,I,"beforeMount"),((C=L&&L.onVnodeMounted)||E)&&jp(()=>{C&&qt(C,I,T),E&&So(T,null,I,"mounted")},A),w&16&&!(L&&(L.innerHTML||L.textContent))){let a=x(y.firstChild,T,y,I,A,R,z);for(;a;){ii=!0;const l=a;a=a.nextSibling,c(l)}}else w&8&&y.textContent!==T.children&&(ii=!0,y.textContent=T.children)}return y.nextSibling},x=(y,T,I,A,R,z,P)=>{P=P||!!T.dynamicChildren;const L=T.children,S=L.length;for(let w=0;w<S;w++){const E=P?L[w]:L[w]=io(L[w]);if(y)y=d(y,E,A,R,z,P);else{if(E.type===Vi&&!E.children)continue;ii=!0,o(null,E,I,null,A,R,Cs(I),z)}}return y},g=(y,T,I,A,R,z)=>{const{slotScopeIds:P}=T;P&&(R=R?R.concat(P):P);const L=s(y),S=x(r(y),T,L,I,A,R,z);return S&&ws(S)&&S.data==="]"?r(T.anchor=S):(ii=!0,u(T.anchor=f("]"),L,S),S)},k=(y,T,I,A,R,z)=>{if(ii=!0,T.el=null,z){const S=M(y);for(;;){const w=r(y);if(w&&w!==S)c(w);else break}}const P=r(y),L=s(y);return c(y),o(null,T,L,P,I,A,Cs(L),R),P},M=y=>{let T=0;for(;y;)if(y=r(y),y&&ws(y)&&(y.data==="["&&T++,y.data==="]")){if(T===0)return r(y);T--}return y};return[p,d]}const Nt=jp;function Vy(e){return rg(e)}function Xy(e){return rg(e,Gy)}function rg(e,t){const o=Zl();o.__VUE__=!0;const{insert:i,remove:n,patchProp:r,createElement:s,createText:c,createComment:u,setText:f,setElementText:p,parentNode:d,nextSibling:v,setScopeId:x=vo,insertStaticContent:g}=e,k=($,H,q,Z=null,J=null,te=null,se=!1,ce=null,ne=!!H.dynamicChildren)=>{if($===H)return;$&&!mo($,H)&&(Z=N($),X($,J,te,!0),$=null),H.patchFlag===-2&&(ne=!1,H.dynamicChildren=null);const{type:oe,ref:U,shapeFlag:G}=H;switch(oe){case Vi:M($,H,q,Z);break;case Ht:y($,H,q,Z);break;case kn:$==null&&T(H,q,Z,se);break;case ut:m($,H,q,Z,J,te,se,ce,ne);break;default:G&1?R($,H,q,Z,J,te,se,ce,ne):G&6?C($,H,q,Z,J,te,se,ce,ne):(G&64||G&128)&&oe.process($,H,q,Z,J,te,se,ce,ne,j)}U!=null&&J&&ra(U,$&&$.ref,te,H||$,!H)},M=($,H,q,Z)=>{if($==null)i(H.el=c(H.children),q,Z);else{const J=H.el=$.el;H.children!==$.children&&f(J,H.children)}},y=($,H,q,Z)=>{$==null?i(H.el=u(H.children||""),q,Z):H.el=$.el},T=($,H,q,Z)=>{[$.el,$.anchor]=g($.children,H,q,Z,$.el,$.anchor)},I=({el:$,anchor:H},q,Z)=>{let J;for(;$&&$!==H;)J=v($),i($,q,Z),$=J;i(H,q,Z)},A=({el:$,anchor:H})=>{let q;for(;$&&$!==H;)q=v($),n($),$=q;n(H)},R=($,H,q,Z,J,te,se,ce,ne)=>{se=se||H.type==="svg",$==null?z(H,q,Z,J,te,se,ce,ne):S($,H,J,te,se,ce,ne)},z=($,H,q,Z,J,te,se,ce)=>{let ne,oe;const{type:U,props:G,shapeFlag:re,transition:ie,dirs:ae}=$;if(ne=$.el=s($.type,te,G&&G.is,G),re&8?p(ne,$.children):re&16&&L($.children,ne,null,Z,J,te&&U!=="foreignObject",se,ce),ae&&So($,null,Z,"created"),P(ne,$,$.scopeId,se,Z),G){for(const he in G)he!=="value"&&!yr(he)&&r(ne,he,null,G[he],te,$.children,Z,J,D);"value"in G&&r(ne,"value",null,G.value),(oe=G.onVnodeBeforeMount)&&qt(oe,Z,$)}ae&&So($,null,Z,"beforeMount");const ue=(!J||J&&!J.pendingBranch)&&ie&&!ie.persisted;ue&&ie.beforeEnter(ne),i(ne,H,q),((oe=G&&G.onVnodeMounted)||ue||ae)&&Nt(()=>{oe&&qt(oe,Z,$),ue&&ie.enter(ne),ae&&So($,null,Z,"mounted")},J)},P=($,H,q,Z,J)=>{if(q&&x($,q),Z)for(let te=0;te<Z.length;te++)x($,Z[te]);if(J){let te=J.subTree;if(H===te){const se=J.vnode;P($,se,se.scopeId,se.slotScopeIds,J.parent)}}},L=($,H,q,Z,J,te,se,ce,ne=0)=>{for(let oe=ne;oe<$.length;oe++){const U=$[oe]=ce?di($[oe]):io($[oe]);k(null,U,H,q,Z,J,te,se,ce)}},S=($,H,q,Z,J,te,se)=>{const ce=H.el=$.el;let{patchFlag:ne,dynamicChildren:oe,dirs:U}=H;ne|=$.patchFlag&16;const G=$.props||ht,re=H.props||ht;let ie;q&&Ei(q,!1),(ie=re.onVnodeBeforeUpdate)&&qt(ie,q,H,$),U&&So(H,$,q,"beforeUpdate"),q&&Ei(q,!0);const ae=J&&H.type!=="foreignObject";if(oe?w($.dynamicChildren,oe,ce,q,Z,ae,te):se||B($,H,ce,null,q,Z,ae,te,!1),ne>0){if(ne&16)E(ce,H,G,re,q,Z,J);else if(ne&2&&G.class!==re.class&&r(ce,"class",null,re.class,J),ne&4&&r(ce,"style",G.style,re.style,J),ne&8){const ue=H.dynamicProps;for(let he=0;he<ue.length;he++){const me=ue[he],ve=G[me],pe=re[me];(pe!==ve||me==="value")&&r(ce,me,ve,pe,J,$.children,q,Z,D)}}ne&1&&$.children!==H.children&&p(ce,H.children)}else!se&&oe==null&&E(ce,H,G,re,q,Z,J);((ie=re.onVnodeUpdated)||U)&&Nt(()=>{ie&&qt(ie,q,H,$),U&&So(H,$,q,"updated")},Z)},w=($,H,q,Z,J,te,se)=>{for(let ce=0;ce<H.length;ce++){const ne=$[ce],oe=H[ce],U=ne.el&&(ne.type===ut||!mo(ne,oe)||ne.shapeFlag&70)?d(ne.el):q;k(ne,oe,U,null,Z,J,te,se,!0)}},E=($,H,q,Z,J,te,se)=>{if(q!==Z){if(q!==ht)for(const ce in q)!yr(ce)&&!(ce in Z)&&r($,ce,q[ce],null,se,H.children,J,te,D);for(const ce in Z){if(yr(ce))continue;const ne=Z[ce],oe=q[ce];ne!==oe&&ce!=="value"&&r($,ce,oe,ne,se,H.children,J,te,D)}"value"in Z&&r($,"value",q.value,Z.value)}},m=($,H,q,Z,J,te,se,ce,ne)=>{const oe=H.el=$?$.el:c(""),U=H.anchor=$?$.anchor:c("");let{patchFlag:G,dynamicChildren:re,slotScopeIds:ie}=H;ie&&(ce=ce?ce.concat(ie):ie),$==null?(i(oe,q,Z),i(U,q,Z),L(H.children,q,U,J,te,se,ce,ne)):G>0&&G&64&&re&&$.dynamicChildren?(w($.dynamicChildren,re,q,J,te,se,ce),(H.key!=null||J&&H===J.subTree)&&yd($,H,!0)):B($,H,q,U,J,te,se,ce,ne)},C=($,H,q,Z,J,te,se,ce,ne)=>{H.slotScopeIds=ce,$==null?H.shapeFlag&512?J.ctx.activate(H,q,Z,se,ne):a(H,q,Z,J,te,se,ne):l($,H,ne)},a=($,H,q,Z,J,te,se)=>{const ce=$.component=dg($,Z,J);if(os($)&&(ce.ctx.renderer=j),ug(ce),ce.asyncDep){if(J&&J.registerDep(ce,h),!$.el){const ne=ce.subTree=Ze(Ht);y(null,ne,H,q)}return}h(ce,$,H,q,J,te,se)},l=($,H,q)=>{const Z=H.component=$.component;if(fy($,H,q))if(Z.asyncDep&&!Z.asyncResolved){b(Z,H,q);return}else Z.next=H,sy(Z.update),Z.update();else H.el=$.el,Z.vnode=H},h=($,H,q,Z,J,te,se)=>{const ce=()=>{if($.isMounted){let{next:U,bu:G,u:re,parent:ie,vnode:ae}=$,ue=U,he;Ei($,!1),U?(U.el=ae.el,b($,U,se)):U=ae,G&&yn(G),(he=U.props&&U.props.onVnodeBeforeUpdate)&&qt(he,ie,U,ae),Ei($,!0);const me=Ns($),ve=$.subTree;$.subTree=me,k(ve,me,d(ve.el),N(ve),$,J,te),U.el=me.el,ue===null&&cd($,me.el),re&&Nt(re,J),(he=U.props&&U.props.onVnodeUpdated)&&Nt(()=>qt(he,ie,U,ae),J)}else{let U;const{el:G,props:re}=H,{bm:ie,m:ae,parent:ue}=$,he=Ni(H);if(Ei($,!1),ie&&yn(ie),!he&&(U=re&&re.onVnodeBeforeMount)&&qt(U,ue,H),Ei($,!0),G&&_){const me=()=>{$.subTree=Ns($),_(G,$.subTree,$,J,null)};he?H.type.__asyncLoader().then(()=>!$.isUnmounted&&me()):me()}else{const me=$.subTree=Ns($);k(null,me,q,Z,$,J,te),H.el=me.el}if(ae&&Nt(ae,J),!he&&(U=re&&re.onVnodeMounted)){const me=H;Nt(()=>qt(U,ue,me),J)}(H.shapeFlag&256||ue&&Ni(ue.vnode)&&ue.vnode.shapeFlag&256)&&$.a&&Nt($.a,J),$.isMounted=!0,H=q=Z=null}},ne=$.effect=new Ea(ce,()=>Ba(oe),$.scope),oe=$.update=()=>ne.run();oe.id=$.uid,Ei($,!0),oe()},b=($,H,q)=>{H.component=$;const Z=$.vnode.props;$.vnode=H,$.next=null,jy($,H.props,Z,q),Uy($,H.children,q),Wn(),Rh(),Un()},B=($,H,q,Z,J,te,se,ce,ne=!1)=>{const oe=$&&$.children,U=$?$.shapeFlag:0,G=H.children,{patchFlag:re,shapeFlag:ie}=H;if(re>0){if(re&128){O(oe,G,q,Z,J,te,se,ce,ne);return}else if(re&256){F(oe,G,q,Z,J,te,se,ce,ne);return}}ie&8?(U&16&&D(oe,J,te),G!==oe&&p(q,G)):U&16?ie&16?O(oe,G,q,Z,J,te,se,ce,ne):D(oe,J,te,!0):(U&8&&p(q,""),ie&16&&L(G,q,Z,J,te,se,ce,ne))},F=($,H,q,Z,J,te,se,ce,ne)=>{$=$||xn,H=H||xn;const oe=$.length,U=H.length,G=Math.min(oe,U);let re;for(re=0;re<G;re++){const ie=H[re]=ne?di(H[re]):io(H[re]);k($[re],ie,q,null,J,te,se,ce,ne)}oe>U?D($,J,te,!0,!1,G):L(H,q,Z,J,te,se,ce,ne,G)},O=($,H,q,Z,J,te,se,ce,ne)=>{let oe=0;const U=H.length;let G=$.length-1,re=U-1;for(;oe<=G&&oe<=re;){const ie=$[oe],ae=H[oe]=ne?di(H[oe]):io(H[oe]);if(mo(ie,ae))k(ie,ae,q,null,J,te,se,ce,ne);else break;oe++}for(;oe<=G&&oe<=re;){const ie=$[G],ae=H[re]=ne?di(H[re]):io(H[re]);if(mo(ie,ae))k(ie,ae,q,null,J,te,se,ce,ne);else break;G--,re--}if(oe>G){if(oe<=re){const ie=re+1,ae=ie<U?H[ie].el:Z;for(;oe<=re;)k(null,H[oe]=ne?di(H[oe]):io(H[oe]),q,ae,J,te,se,ce,ne),oe++}}else if(oe>re)for(;oe<=G;)X($[oe],J,te,!0),oe++;else{const ie=oe,ae=oe,ue=new Map;for(oe=ae;oe<=re;oe++){const Pe=H[oe]=ne?di(H[oe]):io(H[oe]);Pe.key!=null&&ue.set(Pe.key,oe)}let he,me=0;const ve=re-ae+1;let pe=!1,Se=0;const Le=new Array(ve);for(oe=0;oe<ve;oe++)Le[oe]=0;for(oe=ie;oe<=G;oe++){const Pe=$[oe];if(me>=ve){X(Pe,J,te,!0);continue}let de;if(Pe.key!=null)de=ue.get(Pe.key);else for(he=ae;he<=re;he++)if(Le[he-ae]===0&&mo(Pe,H[he])){de=he;break}de===void 0?X(Pe,J,te,!0):(Le[de-ae]=oe+1,de>=Se?Se=de:pe=!0,k(Pe,H[de],q,null,J,te,se,ce,ne),me++)}const Te=pe?qy(Le):xn;for(he=Te.length-1,oe=ve-1;oe>=0;oe--){const Pe=ae+oe,de=H[Pe],fe=Pe+1<U?H[Pe+1].el:Z;Le[oe]===0?k(null,de,q,fe,J,te,se,ce,ne):pe&&(he<0||oe!==Te[he]?W(de,q,fe,2):he--)}}},W=($,H,q,Z,J=null)=>{const{el:te,type:se,transition:ce,children:ne,shapeFlag:oe}=$;if(oe&6){W($.component.subTree,H,q,Z);return}if(oe&128){$.suspense.move(H,q,Z);return}if(oe&64){se.move($,H,q,j);return}if(se===ut){i(te,H,q);for(let G=0;G<ne.length;G++)W(ne[G],H,q,Z);i($.anchor,H,q);return}if(se===kn){I($,H,q);return}if(Z!==2&&oe&1&&ce)if(Z===0)ce.beforeEnter(te),i(te,H,q),Nt(()=>ce.enter(te),J);else{const{leave:G,delayLeave:re,afterLeave:ie}=ce,ae=()=>i(te,H,q),ue=()=>{G(te,()=>{ae(),ie&&ie()})};re?re(te,ae,ue):ue()}else i(te,H,q)},X=($,H,q,Z=!1,J=!1)=>{const{type:te,props:se,ref:ce,children:ne,dynamicChildren:oe,shapeFlag:U,patchFlag:G,dirs:re}=$;if(ce!=null&&ra(ce,null,q,$,!0),U&256){H.ctx.deactivate($);return}const ie=U&1&&re,ae=!Ni($);let ue;if(ae&&(ue=se&&se.onVnodeBeforeUnmount)&&qt(ue,H,$),U&6)Y($.component,q,Z);else{if(U&128){$.suspense.unmount(q,Z);return}ie&&So($,null,H,"beforeUnmount"),U&64?$.type.remove($,H,q,J,j,Z):oe&&(te!==ut||G>0&&G&64)?D(oe,H,q,!1,!0):(te===ut&&G&384||!J&&U&16)&&D(ne,H,q),Z&&Q($)}(ae&&(ue=se&&se.onVnodeUnmounted)||ie)&&Nt(()=>{ue&&qt(ue,H,$),ie&&So($,null,H,"unmounted")},q)},Q=$=>{const{type:H,el:q,anchor:Z,transition:J}=$;if(H===ut){ee(q,Z);return}if(H===kn){A($);return}const te=()=>{n(q),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if($.shapeFlag&1&&J&&!J.persisted){const{leave:se,delayLeave:ce}=J,ne=()=>se(q,te);ce?ce($.el,te,ne):ne()}else te()},ee=($,H)=>{let q;for(;$!==H;)q=v($),n($),$=q;n(H)},Y=($,H,q)=>{const{bum:Z,scope:J,update:te,subTree:se,um:ce}=$;Z&&yn(Z),J.stop(),te&&(te.active=!1,X(se,$,H,q)),ce&&Nt(ce,H),Nt(()=>{$.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},D=($,H,q,Z=!1,J=!1,te=0)=>{for(let se=te;se<$.length;se++)X($[se],H,q,Z,J)},N=$=>$.shapeFlag&6?N($.component.subTree):$.shapeFlag&128?$.suspense.next():v($.anchor||$.el),V=($,H,q)=>{$==null?H._vnode&&X(H._vnode,null,null,!0):k(H._vnode||null,$,H,null,null,null,q),Rh(),ia(),H._vnode=$},j={p:k,um:X,m:W,r:Q,mt:a,mc:L,pc:B,pbc:w,n:N,o:e};let K,_;return t&&([K,_]=t(j)),{render:V,hydrate:K,createApp:Fy(V,K)}}function Ei({effect:e,update:t},o){e.allowRecurse=t.allowRecurse=o}function yd(e,t,o=!1){const i=e.children,n=t.children;if(je(i)&&je(n))for(let r=0;r<i.length;r++){const s=i[r];let c=n[r];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=n[r]=di(n[r]),c.el=s.el),o||yd(s,c)),c.type===Vi&&(c.el=s.el)}}function qy(e){const t=e.slice(),o=[0];let i,n,r,s,c;const u=e.length;for(i=0;i<u;i++){const f=e[i];if(f!==0){if(n=o[o.length-1],e[n]<f){t[i]=n,o.push(i);continue}for(r=0,s=o.length-1;r<s;)c=r+s>>1,e[o[c]]<f?r=c+1:s=c;f<e[o[r]]&&(r>0&&(t[i]=o[r-1]),o[r]=i)}}for(r=o.length,s=o[r-1];r-- >0;)o[r]=s,s=t[s];return o}const Yy=e=>e.__isTeleport,wr=e=>e&&(e.disabled||e.disabled===""),Wh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ac=(e,t)=>{const o=e&&e.to;return yt(o)?t?t(o):null:o},Ky={__isTeleport:!0,process(e,t,o,i,n,r,s,c,u,f){const{mc:p,pc:d,pbc:v,o:{insert:x,querySelector:g,createText:k,createComment:M}}=f,y=wr(t.props);let{shapeFlag:T,children:I,dynamicChildren:A}=t;if(e==null){const R=t.el=k(""),z=t.anchor=k("");x(R,o,i),x(z,o,i);const P=t.target=ac(t.props,g),L=t.targetAnchor=k("");P&&(x(L,P),s=s||Wh(P));const S=(w,E)=>{T&16&&p(I,w,E,n,r,s,c,u)};y?S(o,z):P&&S(P,L)}else{t.el=e.el;const R=t.anchor=e.anchor,z=t.target=e.target,P=t.targetAnchor=e.targetAnchor,L=wr(e.props),S=L?o:z,w=L?R:P;if(s=s||Wh(z),A?(v(e.dynamicChildren,A,S,n,r,s,c),yd(e,t,!0)):u||d(e,t,S,w,n,r,s,c,!1),y)L||Ss(t,o,R,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=ac(t.props,g);E&&Ss(t,E,null,f,0)}else L&&Ss(t,z,P,f,1)}sg(t)},remove(e,t,o,i,{um:n,o:{remove:r}},s){const{shapeFlag:c,children:u,anchor:f,targetAnchor:p,target:d,props:v}=e;if(d&&r(p),(s||!wr(v))&&(r(f),c&16))for(let x=0;x<u.length;x++){const g=u[x];n(g,t,o,!0,!!g.dynamicChildren)}},move:Ss,hydrate:Zy};function Ss(e,t,o,{o:{insert:i},m:n},r=2){r===0&&i(e.targetAnchor,t,o);const{el:s,anchor:c,shapeFlag:u,children:f,props:p}=e,d=r===2;if(d&&i(s,t,o),(!d||wr(p))&&u&16)for(let v=0;v<f.length;v++)n(f[v],t,o,2);d&&i(c,t,o)}function Zy(e,t,o,i,n,r,{o:{nextSibling:s,parentNode:c,querySelector:u}},f){const p=t.target=ac(t.props,u);if(p){const d=p._lpa||p.firstChild;if(t.shapeFlag&16)if(wr(t.props))t.anchor=f(s(e),t,c(e),o,i,n,r),t.targetAnchor=d;else{t.anchor=s(e);let v=d;for(;v;)if(v=s(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&s(t.targetAnchor);break}f(d,t,p,o,i,n,r)}sg(t)}return t.anchor&&s(t.anchor)}const Fa=Ky;function sg(e){const t=e.ctx;if(t&&t.ut){let o=e.children[0].el;for(;o!==e.targetAnchor;)o.nodeType===1&&o.setAttribute("data-v-owner",t.uid),o=o.nextSibling;t.ut()}}const ut=Symbol.for("v-fgt"),Vi=Symbol.for("v-txt"),Ht=Symbol.for("v-cmt"),kn=Symbol.for("v-stc"),Sr=[];let Yt=null;function Ti(e=!1){Sr.push(Yt=e?null:[])}function ag(){Sr.pop(),Yt=Sr[Sr.length-1]||null}let Xi=1;function Uh(e){Xi+=e}function lg(e){return e.dynamicChildren=Xi>0?Yt||xn:null,ag(),Xi>0&&Yt&&Yt.push(e),e}function Cd(e,t,o,i,n,r){return lg(Vn(e,t,o,i,n,r,!0))}function Ha(e,t,o,i,n){return lg(Ze(e,t,o,i,n,!0))}function bi(e){return e?e.__v_isVNode===!0:!1}function mo(e,t){return e.type===t.type&&e.key===t.key}function H3(e){}const ja="__vInternal",cg=({key:e})=>e??null,Ws=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?yt(e)||zt(e)||qe(e)?{i:$t,r:e,k:t,f:!!o}:e:null);function Vn(e,t=null,o=null,i=0,n=null,r=e===ut?0:1,s=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cg(t),ref:t&&Ws(t),scopeId:za,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:$t};return c?(wd(u,o),r&128&&e.normalize(u)):o&&(u.shapeFlag|=yt(o)?8:16),Xi>0&&!s&&Yt&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Yt.push(u),u}const Ze=Jy;function Jy(e,t=null,o=null,i=0,n=null,r=!1){if((!e||e===qp)&&(e=Ht),bi(e)){const c=xo(e,t,!0);return o&&wd(c,o),Xi>0&&!r&&Yt&&(c.shapeFlag&6?Yt[Yt.indexOf(e)]=c:Yt.push(c)),c.patchFlag|=-2,c}if(n1(e)&&(e=e.__vccOpts),t){t=Qy(t);let{class:c,style:u}=t;c&&!yt(c)&&(t.class=Aa(c)),ft(u)&&(Rp(u)&&!je(u)&&(u=vt({},u)),t.style=Pa(u))}const s=yt(e)?1:Hp(e)?128:Yy(e)?64:ft(e)?4:qe(e)?2:0;return Vn(e,t,o,i,n,s,r,!0)}function Qy(e){return e?Rp(e)||ja in e?vt({},e):e:null}function xo(e,t,o=!1){const{props:i,ref:n,patchFlag:r,children:s}=e,c=t?Xn(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&cg(c),ref:t&&t.ref?o&&n?je(n)?n.concat(Ws(t)):[n,Ws(t)]:Ws(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ut?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xo(e.ssContent),ssFallback:e.ssFallback&&xo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ln(e=" ",t=0){return Ze(Vi,null,e,t)}function j3(e,t){const o=Ze(kn,null,e);return o.staticCount=t,o}function N3(e="",t=!1){return t?(Ti(),Ha(Ht,null,e)):Ze(Ht,null,e)}function io(e){return e==null||typeof e=="boolean"?Ze(Ht):je(e)?Ze(ut,null,e.slice()):typeof e=="object"?di(e):Ze(Vi,null,String(e))}function di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xo(e)}function wd(e,t){let o=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(je(t))o=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),wd(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!(ja in t)?t._ctx=$t:n===3&&$t&&($t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:$t},o=32):(t=String(t),i&64?(o=16,t=[Ln(t)]):o=8);e.children=t,e.shapeFlag|=o}function Xn(...e){const t={};for(let o=0;o<e.length;o++){const i=e[o];for(const n in i)if(n==="class")t.class!==i.class&&(t.class=Aa([t.class,i.class]));else if(n==="style")t.style=Pa([t.style,i.style]);else if(es(n)){const r=t[n],s=i[n];s&&r!==s&&!(je(r)&&r.includes(s))&&(t[n]=r?[].concat(r,s):s)}else n!==""&&(t[n]=i[n])}return t}function qt(e,t,o,i=null){ho(e,t,7,[o,i])}const e1=Qp();let t1=0;function dg(e,t,o){const i=e.type,n=(t?t.appContext:e.appContext)||e1,r={uid:t1++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,scope:new mp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tg(i,n),emitsOptions:Fp(i,n),emit:null,emitted:null,propsDefaults:ht,inheritAttrs:i.inheritAttrs,ctx:ht,data:ht,props:ht,attrs:ht,slots:ht,refs:ht,setupState:ht,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=cy.bind(null,r),e.ce&&e.ce(r),r}let Mt=null;const so=()=>Mt||$t;let Sd,cn,Gh="__VUE_INSTANCE_SETTERS__";(cn=Zl()[Gh])||(cn=Zl()[Gh]=[]),cn.push(e=>Mt=e),Sd=e=>{cn.length>1?cn.forEach(t=>t(e)):cn[0](e)};const yi=e=>{Sd(e),e.scope.on()},gi=()=>{Mt&&Mt.scope.off(),Sd(null)};function hg(e){return e.vnode.shapeFlag&4}let Dn=!1;function ug(e,t=!1){Dn=t;const{props:o,children:i}=e.vnode,n=hg(e);Hy(e,o,n,t),Wy(e,i);const r=n?o1(e,t):void 0;return Dn=!1,r}function o1(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=Dr(new Proxy(e.ctx,ic));const{setup:i}=o;if(i){const n=e.setupContext=i.length>1?pg(e):null;yi(e),Wn();const r=pi(i,e,0,[e.props,n]);if(Un(),gi(),od(r)){if(r.then(gi,gi),t)return r.then(s=>{lc(e,s,t)}).catch(s=>{Gn(s,e,0)});e.asyncDep=r}else lc(e,r,t)}else fg(e,t)}function lc(e,t,o){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Dp(t)),fg(e,o)}let sa,cc;function W3(e){sa=e,cc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Ly))}}const U3=()=>!sa;function fg(e,t,o){const i=e.type;if(!e.render){if(!t&&sa&&!i.render){const n=i.template||xd(e).template;if(n){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:c,compilerOptions:u}=i,f=vt(vt({isCustomElement:r,delimiters:c},s),u);i.render=sa(n,f)}}e.render=i.render||vo,cc&&cc(e)}yi(e),Wn(),Dy(e),Un(),gi()}function i1(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,o){return Zt(e,"get","$attrs"),t[o]}}))}function pg(e){const t=o=>{e.exposed=o||{}};return{get attrs(){return i1(e)},slots:e.slots,emit:e.emit,expose:t}}function Na(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Dp(Dr(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Cr)return Cr[o](e)},has(t,o){return o in t||o in Cr}}))}function dc(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function n1(e){return qe(e)&&"__vccOpts"in e}const be=(e,t)=>iy(e,t,Dn);function le(e,t,o){const i=arguments.length;return i===2?ft(t)&&!je(t)?bi(t)?Ze(e,null,[t]):Ze(e,t):Ze(e,null,t):(i>3?o=Array.prototype.slice.call(arguments,2):i===3&&bi(o)&&(o=[o]),Ze(e,t,o))}const r1=Symbol.for("v-scx"),s1=()=>Xe(r1);function G3(){}function V3(e,t,o,i){const n=o[i];if(n&&a1(n,e))return n;const r=t();return r.memo=e.slice(),o[i]=r}function a1(e,t){const o=e.memo;if(o.length!=t.length)return!1;for(let i=0;i<o.length;i++)if(En(o[i],t[i]))return!1;return Xi>0&&Yt&&Yt.push(e),!0}const l1="3.3.4",c1={createComponentInstance:dg,setupComponent:ug,renderComponentRoot:Ns,setCurrentRenderingInstance:zr,isVNode:bi,normalizeVNode:io},X3=c1,q3=null,Y3=null,d1="http://www.w3.org/2000/svg",Bi=typeof document<"u"?document:null,Vh=Bi&&Bi.createElement("template"),h1={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,i)=>{const n=t?Bi.createElementNS(d1,e):Bi.createElement(e,o?{is:o}:void 0);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>Bi.createTextNode(e),createComment:e=>Bi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,i,n,r){const s=o?o.previousSibling:t.lastChild;if(n&&(n===r||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===r||!(n=n.nextSibling)););else{Vh.innerHTML=i?`<svg>${e}</svg>`:e;const c=Vh.content;if(i){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,o)}return[s?s.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};function u1(e,t,o){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}function f1(e,t,o){const i=e.style,n=yt(o);if(o&&!n){if(t&&!yt(t))for(const r in t)o[r]==null&&hc(i,r,"");for(const r in o)hc(i,r,o[r])}else{const r=i.display;n?t!==o&&(i.cssText=o):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const Xh=/\s*!important$/;function hc(e,t,o){if(je(o))o.forEach(i=>hc(e,t,i));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const i=p1(e,t);Xh.test(o)?e.setProperty(co(i),o.replace(Xh,""),"important"):e[i]=o}}const qh=["Webkit","Moz","ms"],bl={};function p1(e,t){const o=bl[t];if(o)return o;let i=ro(t);if(i!=="filter"&&i in e)return bl[t]=i;i=Ta(i);for(let n=0;n<qh.length;n++){const r=qh[n]+i;if(r in e)return bl[t]=r}return t}const Yh="http://www.w3.org/1999/xlink";function g1(e,t,o,i,n){if(i&&t.startsWith("xlink:"))o==null?e.removeAttributeNS(Yh,t.slice(6,t.length)):e.setAttributeNS(Yh,t,o);else{const r=xb(t);o==null||r&&!pp(o)?e.removeAttribute(t):e.setAttribute(t,r?"":o)}}function m1(e,t,o,i,n,r,s){if(t==="innerHTML"||t==="textContent"){i&&s(i,n,r),e[t]=o??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=o;const f=c==="OPTION"?e.getAttribute("value"):e.value,p=o??"";f!==p&&(e.value=p),o==null&&e.removeAttribute(t);return}let u=!1;if(o===""||o==null){const f=typeof e[t];f==="boolean"?o=pp(o):o==null&&f==="string"?(o="",u=!0):f==="number"&&(o=0,u=!0)}try{e[t]=o}catch{}u&&e.removeAttribute(t)}function jo(e,t,o,i){e.addEventListener(t,o,i)}function v1(e,t,o,i){e.removeEventListener(t,o,i)}function x1(e,t,o,i,n=null){const r=e._vei||(e._vei={}),s=r[t];if(i&&s)s.value=i;else{const[c,u]=b1(t);if(i){const f=r[t]=w1(i,n);jo(e,c,f,u)}else s&&(v1(e,c,s,u),r[t]=void 0)}}const Kh=/(?:Once|Passive|Capture)$/;function b1(e){let t;if(Kh.test(e)){t={};let i;for(;i=e.match(Kh);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):co(e.slice(2)),t]}let yl=0;const y1=Promise.resolve(),C1=()=>yl||(y1.then(()=>yl=0),yl=Date.now());function w1(e,t){const o=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=o.attached)return;ho(S1(i,o.value),t,5,[i])};return o.value=e,o.attached=C1(),o}function S1(e,t){if(je(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i&&i(n))}else return t}const Zh=/^on[a-z]/,k1=(e,t,o,i,n=!1,r,s,c,u)=>{t==="class"?u1(e,i,n):t==="style"?f1(e,o,i):es(t)?ed(t)||x1(e,t,o,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):T1(e,t,i,n))?m1(e,t,i,r,s,c,u):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),g1(e,t,i,n))};function T1(e,t,o,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Zh.test(t)&&qe(o)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Zh.test(t)&&yt(o)?!1:t in e}function P1(e,t){const o=Ne(e);class i extends kd{constructor(r){super(o,r,t)}}return i.def=o,i}const K3=e=>P1(e,G1),A1=typeof HTMLElement<"u"?HTMLElement:class{};class kd extends A1{constructor(t,o={},i){super(),this._def=t,this._props=o,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ft(()=>{this._connected||(au(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);new MutationObserver(i=>{for(const n of i)this._setAttr(n.attributeName)}).observe(this,{attributes:!0});const t=(i,n=!1)=>{const{props:r,styles:s}=i;let c;if(r&&!je(r))for(const u in r){const f=r[u];(f===Number||f&&f.type===Number)&&(u in this._props&&(this._props[u]=ea(this._props[u])),(c||(c=Object.create(null)))[ro(u)]=!0)}this._numberProps=c,n&&this._resolveProps(i),this._applyStyles(s),this._update()},o=this._def.__asyncLoader;o?o().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:o}=t,i=je(o)?o:Object.keys(o||{});for(const n of Object.keys(this))n[0]!=="_"&&i.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of i.map(ro))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(r){this._setProp(n,r)}})}_setAttr(t){let o=this.getAttribute(t);const i=ro(t);this._numberProps&&this._numberProps[i]&&(o=ea(o)),this._setProp(i,o,!1)}_getProp(t){return this._props[t]}_setProp(t,o,i=!0,n=!0){o!==this._props[t]&&(this._props[t]=o,n&&this._instance&&this._update(),i&&(o===!0?this.setAttribute(co(t),""):typeof o=="string"||typeof o=="number"?this.setAttribute(co(t),o+""):o||this.removeAttribute(co(t))))}_update(){au(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ze(this._def,vt({},this._props));return this._instance||(t.ce=o=>{this._instance=o,o.isCE=!0;const i=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};o.emit=(r,...s)=>{i(r,s),co(r)!==r&&i(co(r),s)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof kd){o.parent=n._instance,o.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(o=>{const i=document.createElement("style");i.textContent=o,this.shadowRoot.appendChild(i)})}}function Z3(e="$style"){{const t=so();if(!t)return ht;const o=t.type.__cssModules;if(!o)return ht;const i=o[e];return i||ht}}function J3(e){const t=so();if(!t)return;const o=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>fc(r,n))},i=()=>{const n=e(t.proxy);uc(t.subTree,n),o(n)};yy(i),Pt(()=>{const n=new MutationObserver(i);n.observe(t.subTree.el.parentNode,{childList:!0}),gd(()=>n.disconnect())})}function uc(e,t){if(e.shapeFlag&128){const o=e.suspense;e=o.activeBranch,o.pendingBranch&&!o.isHydrating&&o.effects.push(()=>{uc(o.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fc(e.el,t);else if(e.type===ut)e.children.forEach(o=>uc(o,t));else if(e.type===kn){let{el:o,anchor:i}=e;for(;o&&(fc(o,t),o!==i);)o=o.nextSibling}}function fc(e,t){if(e.nodeType===1){const o=e.style;for(const i in t)o.setProperty(`--${i}`,t[i])}}const ni="transition",ar="animation",Jt=(e,{slots:t})=>le(Sy,mg(e),t);Jt.displayName="Transition";const gg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},M1=Jt.props=vt({},Up,gg),Oi=(e,t=[])=>{je(e)?e.forEach(o=>o(...t)):e&&e(...t)},Jh=e=>e?je(e)?e.some(t=>t.length>1):e.length>1:!1;function mg(e){const t={};for(const m in e)m in gg||(t[m]=e[m]);if(e.css===!1)return t;const{name:o="v",type:i,duration:n,enterFromClass:r=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:c=`${o}-enter-to`,appearFromClass:u=r,appearActiveClass:f=s,appearToClass:p=c,leaveFromClass:d=`${o}-leave-from`,leaveActiveClass:v=`${o}-leave-active`,leaveToClass:x=`${o}-leave-to`}=e,g=E1(n),k=g&&g[0],M=g&&g[1],{onBeforeEnter:y,onEnter:T,onEnterCancelled:I,onLeave:A,onLeaveCancelled:R,onBeforeAppear:z=y,onAppear:P=T,onAppearCancelled:L=I}=t,S=(m,C,a)=>{ci(m,C?p:c),ci(m,C?f:s),a&&a()},w=(m,C)=>{m._isLeaving=!1,ci(m,d),ci(m,x),ci(m,v),C&&C()},E=m=>(C,a)=>{const l=m?P:T,h=()=>S(C,m,a);Oi(l,[C,h]),Qh(()=>{ci(C,m?u:r),Fo(C,m?p:c),Jh(l)||eu(C,i,k,h)})};return vt(t,{onBeforeEnter(m){Oi(y,[m]),Fo(m,r),Fo(m,s)},onBeforeAppear(m){Oi(z,[m]),Fo(m,u),Fo(m,f)},onEnter:E(!1),onAppear:E(!0),onLeave(m,C){m._isLeaving=!0;const a=()=>w(m,C);Fo(m,d),xg(),Fo(m,v),Qh(()=>{m._isLeaving&&(ci(m,d),Fo(m,x),Jh(A)||eu(m,i,M,a))}),Oi(A,[m,a])},onEnterCancelled(m){S(m,!1),Oi(I,[m])},onAppearCancelled(m){S(m,!0),Oi(L,[m])},onLeaveCancelled(m){w(m),Oi(R,[m])}})}function E1(e){if(e==null)return null;if(ft(e))return[Cl(e.enter),Cl(e.leave)];{const t=Cl(e);return[t,t]}}function Cl(e){return ea(e)}function Fo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e._vtc||(e._vtc=new Set)).add(t)}function ci(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function Qh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let O1=0;function eu(e,t,o,i){const n=e._endId=++O1,r=()=>{n===e._endId&&i()};if(o)return setTimeout(r,o);const{type:s,timeout:c,propCount:u}=vg(e,t);if(!s)return i();const f=s+"end";let p=0;const d=()=>{e.removeEventListener(f,v),r()},v=x=>{x.target===e&&++p>=u&&d()};setTimeout(()=>{p<u&&d()},c+1),e.addEventListener(f,v)}function vg(e,t){const o=window.getComputedStyle(e),i=g=>(o[g]||"").split(", "),n=i(`${ni}Delay`),r=i(`${ni}Duration`),s=tu(n,r),c=i(`${ar}Delay`),u=i(`${ar}Duration`),f=tu(c,u);let p=null,d=0,v=0;t===ni?s>0&&(p=ni,d=s,v=r.length):t===ar?f>0&&(p=ar,d=f,v=u.length):(d=Math.max(s,f),p=d>0?s>f?ni:ar:null,v=p?p===ni?r.length:u.length:0);const x=p===ni&&/\b(transform|all)(,|$)/.test(i(`${ni}Property`).toString());return{type:p,timeout:d,propCount:v,hasTransform:x}}function tu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,i)=>ou(o)+ou(e[i])))}function ou(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function xg(){return document.body.offsetHeight}const bg=new WeakMap,yg=new WeakMap,Cg={name:"TransitionGroup",props:vt({},M1,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=so(),i=Wp();let n,r;return pd(()=>{if(!n.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!_1(n[0].el,o.vnode.el,s))return;n.forEach(D1),n.forEach(I1);const c=n.filter(B1);xg(),c.forEach(u=>{const f=u.el,p=f.style;Fo(f,s),p.transform=p.webkitTransform=p.transitionDuration="";const d=f._moveCb=v=>{v&&v.target!==f||(!v||/transform$/.test(v.propertyName))&&(f.removeEventListener("transitionend",d),f._moveCb=null,ci(f,s))};f.addEventListener("transitionend",d)})}),()=>{const s=nt(e),c=mg(s);let u=s.tag||ut;n=r,r=t.default?hd(t.default()):[];for(let f=0;f<r.length;f++){const p=r[f];p.key!=null&&Rn(p,Fr(p,c,i,o))}if(n)for(let f=0;f<n.length;f++){const p=n[f];Rn(p,Fr(p,c,i,o)),bg.set(p,p.el.getBoundingClientRect())}return Ze(u,null,r)}}},R1=e=>delete e.mode;Cg.props;const L1=Cg;function D1(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function I1(e){yg.set(e,e.el.getBoundingClientRect())}function B1(e){const t=bg.get(e),o=yg.get(e),i=t.left-o.left,n=t.top-o.top;if(i||n){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${i}px,${n}px)`,r.transitionDuration="0s",e}}function _1(e,t,o){const i=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(c=>c&&i.classList.remove(c))}),o.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(i);const{hasTransform:r}=vg(i);return n.removeChild(i),r}const Ci=e=>{const t=e.props["onUpdate:modelValue"]||!1;return je(t)?o=>yn(t,o):t};function z1(e){e.target.composing=!0}function iu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pc={created(e,{modifiers:{lazy:t,trim:o,number:i}},n){e._assign=Ci(n);const r=i||n.props&&n.props.type==="number";jo(e,t?"change":"input",s=>{if(s.target.composing)return;let c=e.value;o&&(c=c.trim()),r&&(c=Qs(c)),e._assign(c)}),o&&jo(e,"change",()=>{e.value=e.value.trim()}),t||(jo(e,"compositionstart",z1),jo(e,"compositionend",iu),jo(e,"change",iu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:o,trim:i,number:n}},r){if(e._assign=Ci(r),e.composing||document.activeElement===e&&e.type!=="range"&&(o||i&&e.value.trim()===t||(n||e.type==="number")&&Qs(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},wg={deep:!0,created(e,t,o){e._assign=Ci(o),jo(e,"change",()=>{const i=e._modelValue,n=In(e),r=e.checked,s=e._assign;if(je(i)){const c=Ma(i,n),u=c!==-1;if(r&&!u)s(i.concat(n));else if(!r&&u){const f=[...i];f.splice(c,1),s(f)}}else if(Ki(i)){const c=new Set(i);r?c.add(n):c.delete(n),s(c)}else s(kg(e,r))})},mounted:nu,beforeUpdate(e,t,o){e._assign=Ci(o),nu(e,t,o)}};function nu(e,{value:t,oldValue:o},i){e._modelValue=t,je(t)?e.checked=Ma(t,i.props.value)>-1:Ki(t)?e.checked=t.has(i.props.value):t!==o&&(e.checked=vi(t,kg(e,!0)))}const Sg={created(e,{value:t},o){e.checked=vi(t,o.props.value),e._assign=Ci(o),jo(e,"change",()=>{e._assign(In(e))})},beforeUpdate(e,{value:t,oldValue:o},i){e._assign=Ci(i),t!==o&&(e.checked=vi(t,i.props.value))}},$1={deep:!0,created(e,{value:t,modifiers:{number:o}},i){const n=Ki(t);jo(e,"change",()=>{const r=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>o?Qs(In(s)):In(s));e._assign(e.multiple?n?new Set(r):r:r[0])}),e._assign=Ci(i)},mounted(e,{value:t}){ru(e,t)},beforeUpdate(e,t,o){e._assign=Ci(o)},updated(e,{value:t}){ru(e,t)}};function ru(e,t){const o=e.multiple;if(!(o&&!je(t)&&!Ki(t))){for(let i=0,n=e.options.length;i<n;i++){const r=e.options[i],s=In(r);if(o)je(t)?r.selected=Ma(t,s)>-1:r.selected=t.has(s);else if(vi(In(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function In(e){return"_value"in e?e._value:e.value}function kg(e,t){const o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}const F1={created(e,t,o){ks(e,t,o,null,"created")},mounted(e,t,o){ks(e,t,o,null,"mounted")},beforeUpdate(e,t,o,i){ks(e,t,o,i,"beforeUpdate")},updated(e,t,o,i){ks(e,t,o,i,"updated")}};function Tg(e,t){switch(e){case"SELECT":return $1;case"TEXTAREA":return pc;default:switch(t){case"checkbox":return wg;case"radio":return Sg;default:return pc}}}function ks(e,t,o,i,n){const s=Tg(e.tagName,o.props&&o.props.type)[n];s&&s(e,t,o,i)}function H1(){pc.getSSRProps=({value:e})=>({value:e}),Sg.getSSRProps=({value:e},t)=>{if(t.props&&vi(t.props.value,e))return{checked:!0}},wg.getSSRProps=({value:e},t)=>{if(je(e)){if(t.props&&Ma(e,t.props.value)>-1)return{checked:!0}}else if(Ki(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},F1.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const o=Tg(t.type.toUpperCase(),t.props&&t.props.type);if(o.getSSRProps)return o.getSSRProps(e,t)}}const j1=["ctrl","shift","alt","meta"],N1={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>j1.some(o=>e[`${o}Key`]&&!t.includes(o))},Q3=(e,t)=>(o,...i)=>{for(let n=0;n<t.length;n++){const r=N1[t[n]];if(r&&r(o,t))return}return e(o,...i)},W1={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},eF=(e,t)=>o=>{if(!("key"in o))return;const i=co(o.key);if(t.some(n=>n===i||W1[n]===i))return e(o)},Bn={beforeMount(e,{value:t},{transition:o}){e._vod=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):lr(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:i}){!t!=!o&&(i?t?(i.beforeEnter(e),lr(e,!0),i.enter(e)):i.leave(e,()=>{lr(e,!1)}):lr(e,t))},beforeUnmount(e,{value:t}){lr(e,t)}};function lr(e,t){e.style.display=t?e._vod:"none"}function U1(){Bn.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Pg=vt({patchProp:k1},h1);let kr,su=!1;function Ag(){return kr||(kr=Vy(Pg))}function Mg(){return kr=su?kr:Xy(Pg),su=!0,kr}const au=(...e)=>{Ag().render(...e)},G1=(...e)=>{Mg().hydrate(...e)},Eg=(...e)=>{const t=Ag().createApp(...e),{mount:o}=t;return t.mount=i=>{const n=Og(i);if(!n)return;const r=t._component;!qe(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.innerHTML="";const s=o(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),s},t},tF=(...e)=>{const t=Mg().createApp(...e),{mount:o}=t;return t.mount=i=>{const n=Og(i);if(n)return o(n,!0,n instanceof SVGElement)},t};function Og(e){return yt(e)?document.querySelector(e):e}let lu=!1;const oF=()=>{lu||(lu=!0,H1(),U1())};var V1=!1;function X1(){return Rg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Rg(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const q1=typeof Proxy=="function",Y1="devtools-plugin:setup",K1="plugin:settings:set";let dn,gc;function Z1(){var e;return dn!==void 0||(typeof window<"u"&&window.performance?(dn=!0,gc=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(dn=!0,gc=global.perf_hooks.performance):dn=!1),dn}function J1(){return Z1()?gc.now():Date.now()}class Q1{constructor(t,o){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=o;const i={};if(t.settings)for(const s in t.settings){const c=t.settings[s];i[s]=c.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const s=localStorage.getItem(n),c=JSON.parse(s);Object.assign(r,c)}catch{}this.fallbacks={getSettings(){return r},setSettings(s){try{localStorage.setItem(n,JSON.stringify(s))}catch{}r=s},now(){return J1()}},o&&o.on(K1,(s,c)=>{s===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(s,c)=>this.target?this.target.on[c]:(...u)=>{this.onQueue.push({method:c,args:u})}}),this.proxiedTarget=new Proxy({},{get:(s,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...u)=>(this.targetQueue.push({method:c,args:u,resolve:()=>{}}),this.fallbacks[c](...u)):(...u)=>new Promise(f=>{this.targetQueue.push({method:c,args:u,resolve:f})})})}async setRealTarget(t){this.target=t;for(const o of this.onQueue)this.target.on[o.method](...o.args);for(const o of this.targetQueue)o.resolve(await this.target[o.method](...o.args))}}function eC(e,t){const o=e,i=Rg(),n=X1(),r=q1&&o.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(Y1,e,t);else{const s=r?new Q1(o,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:o,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
  2. * pinia v2.1.4
  3. * (c) 2023 Eduardo San Martin Morote
  4. * @license MIT
  5. */const tC=Symbol();var cu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(cu||(cu={}));function oC(){const e=vp(!0),t=e.run(()=>ke({}));let o=[],i=[];const n=Dr({install(r){n._a=r,r.provide(tC,n),r.config.globalProperties.$pinia=n,i.forEach(s=>o.push(s)),i=[]},use(r){return!this._a&&!V1?i.push(r):o.push(r),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return n}let aa=[];const Lg=new WeakMap;function iC(){aa.forEach(e=>e(...Lg.get(e))),aa=[]}function Dg(e,...t){Lg.set(e,t),!aa.includes(e)&&aa.push(e)===1&&requestAnimationFrame(iC)}function la(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function _n(e){return e.composedPath()[0]||null}function mc(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ts(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Tn(e,t){const o=e.trim().split(/\s+/g),i={top:o[0]};switch(o.length){case 1:i.right=o[0],i.bottom=o[0],i.left=o[0];break;case 2:i.right=o[1],i.left=o[1],i.bottom=o[0];break;case 3:i.right=o[1],i.bottom=o[2],i.left=o[1];break;case 4:i.right=o[1],i.bottom=o[2],i.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?i:i[t]}function iF(e,t){const[o,i]=e.split(" ");return t?t==="row"?o:i:{row:o,col:i||o}}const du={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},qn="^\\s*",Yn="\\s*$",zi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",$i="([0-9A-Fa-f])",Fi="([0-9A-Fa-f]{2})",nC=new RegExp(`${qn}rgb\\s*\\(${zi},${zi},${zi}\\)${Yn}`),rC=new RegExp(`${qn}rgba\\s*\\(${zi},${zi},${zi},${zi}\\)${Yn}`),sC=new RegExp(`${qn}#${$i}${$i}${$i}${Yn}`),aC=new RegExp(`${qn}#${Fi}${Fi}${Fi}${Yn}`),lC=new RegExp(`${qn}#${$i}${$i}${$i}${$i}${Yn}`),cC=new RegExp(`${qn}#${Fi}${Fi}${Fi}${Fi}${Yn}`);function Xt(e){return parseInt(e,16)}function Xo(e){try{let t;if(t=aC.exec(e))return[Xt(t[1]),Xt(t[2]),Xt(t[3]),1];if(t=nC.exec(e))return[Ut(t[1]),Ut(t[5]),Ut(t[9]),1];if(t=rC.exec(e))return[Ut(t[1]),Ut(t[5]),Ut(t[9]),Tr(t[13])];if(t=sC.exec(e))return[Xt(t[1]+t[1]),Xt(t[2]+t[2]),Xt(t[3]+t[3]),1];if(t=cC.exec(e))return[Xt(t[1]),Xt(t[2]),Xt(t[3]),Tr(Xt(t[4])/255)];if(t=lC.exec(e))return[Xt(t[1]+t[1]),Xt(t[2]+t[2]),Xt(t[3]+t[3]),Tr(Xt(t[4]+t[4])/255)];if(e in du)return Xo(du[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function dC(e){return e>1?1:e<0?0:e}function vc(e,t,o,i){return`rgba(${Ut(e)}, ${Ut(t)}, ${Ut(o)}, ${dC(i)})`}function wl(e,t,o,i,n){return Ut((e*t*(1-i)+o*i)/n)}function We(e,t){Array.isArray(e)||(e=Xo(e)),Array.isArray(t)||(t=Xo(t));const o=e[3],i=t[3],n=Tr(o+i-o*i);return vc(wl(e[0],o,t[0],i,n),wl(e[1],o,t[1],i,n),wl(e[2],o,t[2],i,n),n)}function De(e,t){const[o,i,n,r=1]=Array.isArray(e)?e:Xo(e);return t.alpha?vc(o,i,n,t.alpha):vc(o,i,n,r)}function kt(e,t){const[o,i,n,r=1]=Array.isArray(e)?e:Xo(e),{lightness:s=1,alpha:c=1}=t;return hC([o*s,i*s,n*s,r*c])}function Tr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ut(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function hC(e){const[t,o,i]=e;return 3 in e?`rgba(${Ut(t)}, ${Ut(o)}, ${Ut(i)}, ${Tr(e[3])})`:`rgba(${Ut(t)}, ${Ut(o)}, ${Ut(i)}, 1)`}function zn(e=8){return Math.random().toString(16).slice(2,2+e)}function nF(e,t){const o=[];for(let i=0;i<e;++i)o.push(t);return o}function $n(e,t=[],o){const i={};return t.forEach(n=>{i[n]=e[n]}),Object.assign(i,o)}function Td(e,t=[],o){const i={};return Object.getOwnPropertyNames(e).forEach(r=>{t.includes(r)||(i[r]=e[r])}),Object.assign(i,o)}function xc(e,t=!0,o=[]){return e.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&o.push(Ln(String(i)));return}if(Array.isArray(i)){xc(i,t,o);return}if(i.type===ut){if(i.children===null)return;Array.isArray(i.children)&&xc(i.children,t,o)}else i.type!==Ht&&o.push(i)}}),o}function ot(e,...t){if(Array.isArray(e))e.forEach(o=>ot(o,...t));else return e(...t)}function qi(e){return Object.keys(e)}const Dt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Ln(e):typeof e=="number"?Ln(String(e)):null;function wi(e,t){console.error(`[naive/${e}]: ${t}`)}function is(e,t){throw new Error(`[naive/${e}]: ${t}`)}function uC(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function bc(e,t="default",o=void 0){const i=e[t];if(!i)return wi("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=xc(i(o));return n.length===1?n[0]:(wi("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function rF(e){return e}function ns(e){return e.some(t=>bi(t)?!(t.type===Ht||t.type===ut&&!ns(t.children)):!0)?e:null}function mi(e,t){return e&&ns(e())||t()}function fC(e,t,o){return e&&ns(e(t))||o(t)}function Tt(e,t){const o=e&&ns(e());return t(o||null)}function yc(e){return!(e&&ns(e()))}function Sl(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(i=>{i&&i(o)})}}const Cc=Ne({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),pC=/^(\d|\.)+$/,hu=/(\d|\.)+/;function Wi(e,{c:t=1,offset:o=0,attachPx:i=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(pC.test(e)){const n=(Number(e)+o)*t;return i?n===0?"0":`${n}px`:`${n}`}else{const n=hu.exec(e);return n?e.replace(hu,String((Number(n[0])+o)*t)):e}return e}function ca(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function gC(e){let t=0;for(let o=0;o<e.length;++o)e[o]==="&"&&++t;return t}const Ig=/\s*,(?![^(]*\))\s*/g,mC=/\s+/g;function vC(e,t){const o=[];return t.split(Ig).forEach(i=>{let n=gC(i);if(n){if(n===1){e.forEach(s=>{o.push(i.replace("&",s))});return}}else{e.forEach(s=>{o.push((s&&s+" ")+i)});return}let r=[i];for(;n--;){const s=[];r.forEach(c=>{e.forEach(u=>{s.push(c.replace("&",u))})}),r=s}r.forEach(s=>o.push(s))}),o}function xC(e,t){const o=[];return t.split(Ig).forEach(i=>{e.forEach(n=>{o.push((n&&n+" ")+i)})}),o}function bC(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=vC(t,o):t=xC(t,o))}),t.join(", ").replace(mC," ")}function uu(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Wa(e){return document.querySelector(`style[cssr-id="${e}"]`)}function yC(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Ps(e){return e?/^\s*@(s|m)/.test(e):!1}const CC=/[A-Z]/g;function Bg(e){return e.replace(CC,t=>"-"+t.toLowerCase())}function wC(e,t=" "){return typeof e=="object"&&e!==null?` {
  6. `+Object.entries(e).map(o=>t+` ${Bg(o[0])}: ${o[1]};`).join(`
  7. `)+`
  8. `+t+"}":`: ${e};`}function SC(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function fu(e,t,o,i){if(!t)return"";const n=SC(t,o,i);if(!n)return"";if(typeof n=="string")return`${e} {
  9. ${n}
  10. }`;const r=Object.keys(n);if(r.length===0)return o.config.keepEmptyBlock?e+` {
  11. }`:"";const s=e?[e+" {"]:[];return r.forEach(c=>{const u=n[c];if(c==="raw"){s.push(`
  12. `+u+`
  13. `);return}c=Bg(c),u!=null&&s.push(` ${c}${wC(u)}`)}),e&&s.push("}"),s.join(`
  14. `)}function wc(e,t,o){e&&e.forEach(i=>{if(Array.isArray(i))wc(i,t,o);else if(typeof i=="function"){const n=i(t);Array.isArray(n)?wc(n,t,o):n&&o(n)}else i&&o(i)})}function _g(e,t,o,i,n,r){const s=e.$;let c="";if(!s||typeof s=="string")Ps(s)?c=s:t.push(s);else if(typeof s=="function"){const p=s({context:i.context,props:n});Ps(p)?c=p:t.push(p)}else if(s.before&&s.before(i.context),!s.$||typeof s.$=="string")Ps(s.$)?c=s.$:t.push(s.$);else if(s.$){const p=s.$({context:i.context,props:n});Ps(p)?c=p:t.push(p)}const u=bC(t),f=fu(u,e.props,i,n);c?(o.push(`${c} {`),r&&f&&r.insertRule(`${c} {
  15. ${f}
  16. }
  17. `)):(r&&f&&r.insertRule(f),!r&&f.length&&o.push(f)),e.children&&wc(e.children,{context:i.context,props:n},p=>{if(typeof p=="string"){const d=fu(u,{raw:p},i,n);r?r.insertRule(d):o.push(d)}else _g(p,t,o,i,n,r)}),t.pop(),c&&o.push("}"),s&&s.after&&s.after(i.context)}function zg(e,t,o,i=!1){const n=[];return _g(e,[],n,t,o,i?e.instance.__styleSheet:void 0),i?"":n.join(`
  18. `)}function Nr(e){for(var t=0,o,i=0,n=e.length;n>=4;++i,n-=4)o=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function kC(e,t,o){const{els:i}=t;if(o===void 0)i.forEach(uu),t.els=[];else{const n=Wa(o);n&&i.includes(n)&&(uu(n),t.els=i.filter(r=>r!==n))}}function pu(e,t){e.push(t)}function TC(e,t,o,i,n,r,s,c,u){if(r&&!u){if(o===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const v=window.__cssrContext;v[o]||(v[o]=!0,zg(t,e,i,r));return}let f;if(o===void 0&&(f=t.render(i),o=Nr(f)),u){u.adapter(o,f??t.render(i));return}const p=Wa(o);if(p!==null&&!s)return p;const d=p??yC(o);if(f===void 0&&(f=t.render(i)),d.textContent=f,p!==null)return p;if(c){const v=document.head.querySelector(`meta[name="${c}"]`);if(v)return document.head.insertBefore(d,v),pu(t.els,d),d}return n?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),pu(t.els,d),d}function PC(e){return zg(this,this.instance,e)}function AC(e={}){const{id:t,ssr:o,props:i,head:n=!1,silent:r=!1,force:s=!1,anchorMetaName:c}=e;return TC(this.instance,this,t,i,n,r,s,c,o)}function MC(e={}){const{id:t}=e;kC(this.instance,this,t)}const As=function(e,t,o,i){return{instance:e,$:t,props:o,children:i,els:[],render:PC,mount:AC,unmount:MC}},EC=function(e,t,o,i){return Array.isArray(t)?As(e,{$:null},null,t):Array.isArray(o)?As(e,t,null,o):Array.isArray(i)?As(e,t,o,i):As(e,t,o,null)};function $g(e={}){let t=null;const o={c:(...i)=>EC(o,...i),use:(i,...n)=>i.install(o,...n),find:Wa,context:{},config:e,get __styleSheet(){if(!t){const i=document.createElement("style");return document.head.appendChild(i),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return o}function OC(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Wa(e)!==null}function RC(e){let t=".",o="__",i="--",n;if(e){let g=e.blockPrefix;g&&(t=g),g=e.elementPrefix,g&&(o=g),g=e.modifierPrefix,g&&(i=g)}const r={install(g){n=g.c;const k=g.context;k.bem={},k.bem.b=null,k.bem.els=null}};function s(g){let k,M;return{before(y){k=y.bem.b,M=y.bem.els,y.bem.els=null},after(y){y.bem.b=k,y.bem.els=M},$({context:y,props:T}){return g=typeof g=="string"?g:g({context:y,props:T}),y.bem.b=g,`${(T==null?void 0:T.bPrefix)||t}${y.bem.b}`}}}function c(g){let k;return{before(M){k=M.bem.els},after(M){M.bem.els=k},$({context:M,props:y}){return g=typeof g=="string"?g:g({context:M,props:y}),M.bem.els=g.split(",").map(T=>T.trim()),M.bem.els.map(T=>`${(y==null?void 0:y.bPrefix)||t}${M.bem.b}${o}${T}`).join(", ")}}}function u(g){return{$({context:k,props:M}){g=typeof g=="string"?g:g({context:k,props:M});const y=g.split(",").map(A=>A.trim());function T(A){return y.map(R=>`&${(M==null?void 0:M.bPrefix)||t}${k.bem.b}${A!==void 0?`${o}${A}`:""}${i}${R}`).join(", ")}const I=k.bem.els;return I!==null?T(I[0]):T()}}}function f(g){return{$({context:k,props:M}){g=typeof g=="string"?g:g({context:k,props:M});const y=k.bem.els;return`&:not(${(M==null?void 0:M.bPrefix)||t}${k.bem.b}${y!==null&&y.length>0?`${o}${y[0]}`:""}${i}${g})`}}}return Object.assign(r,{cB:(...g)=>n(s(g[0]),g[1],g[2]),cE:(...g)=>n(c(g[0]),g[1],g[2]),cM:(...g)=>n(u(g[0]),g[1],g[2]),cNotM:(...g)=>n(f(g[0]),g[1],g[2])}),r}function ze(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}ze("abc","def");const LC="n",Wr=`.${LC}-`,DC="__",IC="--",Fg=$g(),Hg=RC({blockPrefix:Wr,elementPrefix:DC,modifierPrefix:IC});Fg.use(Hg);const{c:Ce,find:sF}=Fg,{cB:Me,cE:xe,cM:Oe,cNotM:_t}=Hg;function jg(e){return Ce(({props:{bPrefix:t}})=>`${t||Wr}modal, ${t||Wr}drawer`,[e])}function BC(e){return Ce(({props:{bPrefix:t}})=>`${t||Wr}popover`,[e])}function Ng(e){return Ce(({props:{bPrefix:t}})=>`&${t||Wr}modal`,e)}const _C=(...e)=>Ce(">",[Me(...e)]);let kl;function zC(){return kl===void 0&&(kl=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),kl}const Kn=typeof document<"u"&&typeof window<"u",Wg=new WeakSet;function $C(e){Wg.add(e)}function FC(e){return!Wg.has(e)}function HC(e,t,o){var i;const n=Xe(e,null);if(n===null)return;const r=(i=so())===null||i===void 0?void 0:i.proxy;lt(o,s),s(o.value),Ot(()=>{s(void 0,o.value)});function s(f,p){const d=n[t];p!==void 0&&c(d,p),f!==void 0&&u(d,f)}function c(f,p){f[p]||(f[p]=[]),f[p].splice(f[p].findIndex(d=>d===r),1)}function u(f,p){f[p]||(f[p]=[]),~f[p].findIndex(d=>d===r)||f[p].push(r)}}function jC(e){const t=ke(!!e.value);if(t.value)return Uo(t);const o=lt(e,i=>{i&&(t.value=!0,o())});return Uo(t)}function Kt(e){const t=be(e),o=ke(t.value);return lt(t,i=>{o.value=i}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(i){e.set(i)}}}function Ug(){return so()!==null}const Pd=typeof window<"u";let Pn,Pr;const NC=()=>{var e,t;Pn=Pd?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Pr=!1,Pn!==void 0?Pn.then(()=>{Pr=!0}):Pr=!0};NC();function WC(e){if(Pr)return;let t=!1;Pt(()=>{Pr||Pn==null||Pn.then(()=>{t||e()})}),Ot(()=>{t=!0})}function Us(e){return e.composedPath()[0]}const UC={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function GC(e,t,o){if(e==="mousemoveoutside"){const i=n=>{t.contains(Us(n))||o(n)};return{mousemove:i,touchstart:i}}else if(e==="clickoutside"){let i=!1;const n=s=>{i=!t.contains(Us(s))},r=s=>{i&&(t.contains(Us(s))||o(s))};return{mousedown:n,mouseup:r,touchstart:n,touchend:r}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Gg(e,t,o){const i=UC[e];let n=i.get(t);n===void 0&&i.set(t,n=new WeakMap);let r=n.get(o);return r===void 0&&n.set(o,r=GC(e,t,o)),r}function VC(e,t,o,i){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Gg(e,t,o);return Object.keys(n).forEach(r=>{Et(r,document,n[r],i)}),!0}return!1}function XC(e,t,o,i){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Gg(e,t,o);return Object.keys(n).forEach(r=>{bt(r,document,n[r],i)}),!0}return!1}function qC(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function i(){e.set(this,!0),t.set(this,!0)}function n(P,L,S){const w=P[L];return P[L]=function(){return S.apply(P,arguments),w.apply(P,arguments)},P}function r(P,L){P[L]=Event.prototype[L]}const s=new WeakMap,c=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function u(){var P;return(P=s.get(this))!==null&&P!==void 0?P:null}function f(P,L){c!==void 0&&Object.defineProperty(P,"currentTarget",{configurable:!0,enumerable:!0,get:L??c.get})}const p={bubble:{},capture:{}},d={};function v(){const P=function(L){const{type:S,eventPhase:w,bubbles:E}=L,m=Us(L);if(w===2)return;const C=w===1?"capture":"bubble";let a=m;const l=[];for(;a===null&&(a=window),l.push(a),a!==window;)a=a.parentNode||null;const h=p.capture[S],b=p.bubble[S];if(n(L,"stopPropagation",o),n(L,"stopImmediatePropagation",i),f(L,u),C==="capture"){if(h===void 0)return;for(let B=l.length-1;B>=0&&!e.has(L);--B){const F=l[B],O=h.get(F);if(O!==void 0){s.set(L,F);for(const W of O){if(t.has(L))break;W(L)}}if(B===0&&!E&&b!==void 0){const W=b.get(F);if(W!==void 0)for(const X of W){if(t.has(L))break;X(L)}}}}else if(C==="bubble"){if(b===void 0)return;for(let B=0;B<l.length&&!e.has(L);++B){const F=l[B],O=b.get(F);if(O!==void 0){s.set(L,F);for(const W of O){if(t.has(L))break;W(L)}}}}r(L,"stopPropagation"),r(L,"stopImmediatePropagation"),f(L)};return P.displayName="evtdUnifiedHandler",P}function x(){const P=function(L){const{type:S,eventPhase:w}=L;if(w!==2)return;const E=d[S];E!==void 0&&E.forEach(m=>m(L))};return P.displayName="evtdUnifiedWindowEventHandler",P}const g=v(),k=x();function M(P,L){const S=p[P];return S[L]===void 0&&(S[L]=new Map,window.addEventListener(L,g,P==="capture")),S[L]}function y(P){return d[P]===void 0&&(d[P]=new Set,window.addEventListener(P,k)),d[P]}function T(P,L){let S=P.get(L);return S===void 0&&P.set(L,S=new Set),S}function I(P,L,S,w){const E=p[L][S];if(E!==void 0){const m=E.get(P);if(m!==void 0&&m.has(w))return!0}return!1}function A(P,L){const S=d[P];return!!(S!==void 0&&S.has(L))}function R(P,L,S,w){let E;if(typeof w=="object"&&w.once===!0?E=h=>{z(P,L,E,w),S(h)}:E=S,VC(P,L,E,w))return;const C=w===!0||typeof w=="object"&&w.capture===!0?"capture":"bubble",a=M(C,P),l=T(a,L);if(l.has(E)||l.add(E),L===window){const h=y(P);h.has(E)||h.add(E)}}function z(P,L,S,w){if(XC(P,L,S,w))return;const m=w===!0||typeof w=="object"&&w.capture===!0,C=m?"capture":"bubble",a=M(C,P),l=T(a,L);if(L===window&&!I(L,m?"bubble":"capture",P,S)&&A(P,S)){const b=d[P];b.delete(S),b.size===0&&(window.removeEventListener(P,k),d[P]=void 0)}l.has(S)&&l.delete(S),l.size===0&&a.delete(L),a.size===0&&(window.removeEventListener(P,g,C==="capture"),p[C][P]=void 0)}return{on:R,off:z}}const{on:Et,off:bt}=qC(),vr=ke(null);function gu(e){if(e.clientX>0||e.clientY>0)vr.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:i,width:n,height:r}=t.getBoundingClientRect();o>0||i>0?vr.value={x:o+n/2,y:i+r/2}:vr.value={x:0,y:0}}else vr.value=null}}let Ms=0,mu=!0;function Vg(){if(!Pd)return Uo(ke(null));Ms===0&&Et("click",document,gu,!0);const e=()=>{Ms+=1};return mu&&(mu=Ug())?(Zi(e),Ot(()=>{Ms-=1,Ms===0&&bt("click",document,gu,!0)})):e(),Uo(vr)}const YC=ke(void 0);let Es=0;function vu(){YC.value=Date.now()}let xu=!0;function Xg(e){if(!Pd)return Uo(ke(!1));const t=ke(!1);let o=null;function i(){o!==null&&window.clearTimeout(o)}function n(){i(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}Es===0&&Et("click",window,vu,!0);const r=()=>{Es+=1,Et("click",window,n,!0)};return xu&&(xu=Ug())?(Zi(r),Ot(()=>{Es-=1,Es===0&&bt("click",window,vu,!0),bt("click",window,n,!0),i()})):r(),Uo(t)}function da(e,t){return lt(e,o=>{o!==void 0&&(t.value=o)}),be(()=>e.value===void 0?t.value:e.value)}function Zn(){const e=ke(!1);return Pt(()=>{e.value=!0}),Uo(e)}function qg(e,t){return be(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const KC=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function ZC(){return KC}const Ad="n-internal-select-menu",Yg="n-internal-select-menu-body",Md="n-modal-body",Kg="n-modal",Ed="n-drawer-body",aF="n-drawer",Od="n-popover-body",Zg="__disabled__";function qo(e){const t=Xe(Md,null),o=Xe(Ed,null),i=Xe(Od,null),n=Xe(Yg,null),r=ke();if(typeof document<"u"){r.value=document.fullscreenElement;const s=()=>{r.value=document.fullscreenElement};Pt(()=>{Et("fullscreenchange",document,s)}),Ot(()=>{bt("fullscreenchange",document,s)})}return Kt(()=>{var s;const{to:c}=e;return c!==void 0?c===!1?Zg:c===!0?r.value||"body":c:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:o!=null&&o.value?o.value:i!=null&&i.value?i.value:n!=null&&n.value?n.value:c??(r.value||"body")})}qo.tdkey=Zg;qo.propTo={type:[String,Object,Boolean],default:void 0};function Sc(e,t,o="default"){const i=t[o];if(i===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return i()}function kc(e,t=!0,o=[]){return e.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&o.push(Ln(String(i)));return}if(Array.isArray(i)){kc(i,t,o);return}if(i.type===ut){if(i.children===null)return;Array.isArray(i.children)&&kc(i.children,t,o)}else i.type!==Ht&&o.push(i)}}),o}function bu(e,t,o="default"){const i=t[o];if(i===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const n=kc(i());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let ri=null;function Jg(){if(ri===null&&(ri=document.getElementById("v-binder-view-measurer"),ri===null)){ri=document.createElement("div"),ri.id="v-binder-view-measurer";const{style:e}=ri;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ri)}return ri.getBoundingClientRect()}function JC(e,t){const o=Jg();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Tl(e){const t=e.getBoundingClientRect(),o=Jg();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function QC(e){return e.nodeType===9?null:e.parentNode}function Qg(e){if(e===null)return null;const t=QC(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:i,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+i))return t}return Qg(t)}const ew=Ne({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ct("VBinder",(t=so())===null||t===void 0?void 0:t.proxy);const o=Xe("VBinder",null),i=ke(null),n=y=>{i.value=y,o&&e.syncTargetWithParent&&o.setTargetRef(y)};let r=[];const s=()=>{let y=i.value;for(;y=Qg(y),y!==null;)r.push(y);for(const T of r)Et("scroll",T,d,!0)},c=()=>{for(const y of r)bt("scroll",y,d,!0);r=[]},u=new Set,f=y=>{u.size===0&&s(),u.has(y)||u.add(y)},p=y=>{u.has(y)&&u.delete(y),u.size===0&&c()},d=()=>{Dg(v)},v=()=>{u.forEach(y=>y())},x=new Set,g=y=>{x.size===0&&Et("resize",window,M),x.has(y)||x.add(y)},k=y=>{x.has(y)&&x.delete(y),x.size===0&&bt("resize",window,M)},M=()=>{x.forEach(y=>y())};return Ot(()=>{bt("resize",window,M),c()}),{targetRef:i,setTargetRef:n,addScrollListener:f,removeScrollListener:p,addResizeListener:g,removeResizeListener:k}},render(){return Sc("binder",this.$slots)}}),em=ew,tm=Ne({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Xe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Vo(bu("follower",this.$slots),[[t]]):bu("follower",this.$slots)}}),hn="@@mmoContext",tw={mounted(e,{value:t}){e[hn]={handler:void 0},typeof t=="function"&&(e[hn].handler=t,Et("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[hn];typeof t=="function"?o.handler?o.handler!==t&&(bt("mousemoveoutside",e,o.handler),o.handler=t,Et("mousemoveoutside",e,t)):(e[hn].handler=t,Et("mousemoveoutside",e,t)):o.handler&&(bt("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[hn];t&&bt("mousemoveoutside",e,t),e[hn].handler=void 0}},ow=tw,un="@@coContext",iw={mounted(e,{value:t,modifiers:o}){e[un]={handler:void 0},typeof t=="function"&&(e[un].handler=t,Et("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const i=e[un];typeof t=="function"?i.handler?i.handler!==t&&(bt("clickoutside",e,i.handler,{capture:o.capture}),i.handler=t,Et("clickoutside",e,t,{capture:o.capture})):(e[un].handler=t,Et("clickoutside",e,t,{capture:o.capture})):i.handler&&(bt("clickoutside",e,i.handler,{capture:o.capture}),i.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[un];o&&bt("clickoutside",e,o,{capture:t.capture}),e[un].handler=void 0}},Ur=iw;function nw(e,t){console.error(`[vdirs/${e}]: ${t}`)}class rw{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:i}=this;if(o!==void 0){t.style.zIndex=`${o}`,i.delete(t);return}const{nextZIndex:n}=this;i.has(t)&&i.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,i.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,o){const{elementZIndex:i}=this;i.has(t)?i.delete(t):o===void 0&&nw("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,i)=>o[1]-i[1]),this.nextZIndex=2e3,t.forEach(o=>{const i=o[0],n=this.nextZIndex++;`${n}`!==i.style.zIndex&&(i.style.zIndex=`${n}`)})}}const Pl=new rw,fn="@@ziContext",sw={mounted(e,t){const{value:o={}}=t,{zIndex:i,enabled:n}=o;e[fn]={enabled:!!n,initialized:!1},n&&(Pl.ensureZIndex(e,i),e[fn].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:i,enabled:n}=o,r=e[fn].enabled;n&&!r&&(Pl.ensureZIndex(e,i),e[fn].initialized=!0),e[fn].enabled=!!n},unmounted(e,t){if(!e[fn].initialized)return;const{value:o={}}=t,{zIndex:i}=o;Pl.unregister(e,i)}},Rd=sw,om=Symbol("@css-render/vue3-ssr");function aw(e,t){return`<style cssr-id="${e}">
  19. ${t}
  20. </style>`}function lw(e,t){const o=Xe(om,null);if(o===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:i,ids:n}=o;n.has(e)||i!==null&&(n.add(e),i.push(aw(e,t)))}const cw=typeof document<"u";function Ji(){if(cw)return;const e=Xe(om,null);if(e!==null)return{adapter:lw,context:e}}function yu(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:ui}=$g(),Ld="vueuc-style";function Cu(e){return e&-e}class dw{constructor(t,o){this.l=t,this.min=o;const i=new Array(t+1);for(let n=0;n<t+1;++n)i[n]=0;this.ft=i}add(t,o){if(o===0)return;const{l:i,ft:n}=this;for(t+=1;t<=i;)n[t]+=o,t+=Cu(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:o,min:i,l:n}=this;if(t>n)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let r=t*i;for(;t>0;)r+=o[t],t-=Cu(t);return r}getBound(t){let o=0,i=this.l;for(;i>o;){const n=Math.floor((o+i)/2),r=this.sum(n);if(r>t){i=n;continue}else if(r<t){if(o===n)return this.sum(o+1)<=t?o+1:n;o=n}else return n}return o}}function wu(e){return typeof e=="string"?document.querySelector(e):e()}const im=Ne({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:jC(et(e,"show")),mergedTo:be(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Sc("lazy-teleport",this.$slots):le(Fa,{disabled:this.disabled,to:this.mergedTo},Sc("lazy-teleport",this.$slots)):null}}),Os={top:"bottom",bottom:"top",left:"right",right:"left"},Su={start:"end",center:"center",end:"start"},Al={top:"height",bottom:"height",left:"width",right:"width"},hw={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},uw={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},fw={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ku={top:!0,bottom:!1,left:!0,right:!1},Tu={top:"end",bottom:"start",left:"end",right:"start"};function pw(e,t,o,i,n,r){if(!n||r)return{placement:e,top:0,left:0};const[s,c]=e.split("-");let u=c??"center",f={top:0,left:0};const p=(x,g,k)=>{let M=0,y=0;const T=o[x]-t[g]-t[x];return T>0&&i&&(k?y=ku[g]?T:-T:M=ku[g]?T:-T),{left:M,top:y}},d=s==="left"||s==="right";if(u!=="center"){const x=fw[e],g=Os[x],k=Al[x];if(o[k]>t[k]){if(t[x]+t[k]<o[k]){const M=(o[k]-t[k])/2;t[x]<M||t[g]<M?t[x]<t[g]?(u=Su[c],f=p(k,g,d)):f=p(k,x,d):u="center"}}else o[k]<t[k]&&t[g]<0&&t[x]>t[g]&&(u=Su[c])}else{const x=s==="bottom"||s==="top"?"left":"top",g=Os[x],k=Al[x],M=(o[k]-t[k])/2;(t[x]<M||t[g]<M)&&(t[x]>t[g]?(u=Tu[x],f=p(k,x,d)):(u=Tu[g],f=p(k,g,d)))}let v=s;return t[s]<o[Al[s]]&&t[s]<t[Os[s]]&&(v=Os[s]),{placement:u!=="center"?`${v}-${u}`:v,left:f.left,top:f.top}}function gw(e,t){return t?uw[e]:hw[e]}function mw(e,t,o,i,n,r){if(r)switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+i)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+i)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+i)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+i)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+i)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+i)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+i)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+i)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+i)}px`,left:`${Math.round(o.left-t.left+o.width/2+n)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+i)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+i)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+i)}px`,left:`${Math.round(o.left-t.left+o.width/2+n)}px`,transform:"translateX(-50%)"}}}const vw=ui([ui(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ui(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ui("> *",{pointerEvents:"all"})])]),nm=Ne({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Xe("VBinder"),o=Kt(()=>e.enabled!==void 0?e.enabled:e.show),i=ke(null),n=ke(null),r=()=>{const{syncTrigger:v}=e;v.includes("scroll")&&t.addScrollListener(u),v.includes("resize")&&t.addResizeListener(u)},s=()=>{t.removeScrollListener(u),t.removeResizeListener(u)};Pt(()=>{o.value&&(u(),r())});const c=Ji();vw.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ld,ssr:c}),Ot(()=>{s()}),WC(()=>{o.value&&u()});const u=()=>{if(!o.value)return;const v=i.value;if(v===null)return;const x=t.targetRef,{x:g,y:k,overlap:M}=e,y=g!==void 0&&k!==void 0?JC(g,k):Tl(x);v.style.setProperty("--v-target-width",`${Math.round(y.width)}px`),v.style.setProperty("--v-target-height",`${Math.round(y.height)}px`);const{width:T,minWidth:I,placement:A,internalShift:R,flip:z}=e;v.setAttribute("v-placement",A),M?v.setAttribute("v-overlap",""):v.removeAttribute("v-overlap");const{style:P}=v;T==="target"?P.width=`${y.width}px`:T!==void 0?P.width=T:P.width="",I==="target"?P.minWidth=`${y.width}px`:I!==void 0?P.minWidth=I:P.minWidth="";const L=Tl(v),S=Tl(n.value),{left:w,top:E,placement:m}=pw(A,y,L,R,z,M),C=gw(m,M),{left:a,top:l,transform:h}=mw(m,S,y,E,w,M);v.setAttribute("v-placement",m),v.style.setProperty("--v-offset-left",`${Math.round(w)}px`),v.style.setProperty("--v-offset-top",`${Math.round(E)}px`),v.style.transform=`translateX(${a}) translateY(${l}) ${h}`,v.style.setProperty("--v-transform-origin",C),v.style.transformOrigin=C};lt(o,v=>{v?(r(),f()):s()});const f=()=>{Ft().then(u).catch(v=>console.error(v))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(v=>{lt(et(e,v),u)}),["teleportDisabled"].forEach(v=>{lt(et(e,v),f)}),lt(et(e,"syncTrigger"),v=>{v.includes("resize")?t.addResizeListener(u):t.removeResizeListener(u),v.includes("scroll")?t.addScrollListener(u):t.removeScrollListener(u)});const p=Zn(),d=Kt(()=>{const{to:v}=e;if(v!==void 0)return v;p.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:i,mergedTo:d,syncPosition:u}},render(){return le(im,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=le("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[le("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Vo(o,[[Rd,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Ui=[],xw=function(){return Ui.some(function(e){return e.activeTargets.length>0})},bw=function(){return Ui.some(function(e){return e.skippedTargets.length>0})},Pu="ResizeObserver loop completed with undelivered notifications.",yw=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Pu}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Pu),window.dispatchEvent(e)},Gr;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gr||(Gr={}));var Gi=function(e){return Object.freeze(e)},Cw=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Gi(this)}return e}(),rm=function(){function e(t,o,i,n){return this.x=t,this.y=o,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Gi(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,i=t.y,n=t.top,r=t.right,s=t.bottom,c=t.left,u=t.width,f=t.height;return{x:o,y:i,top:n,right:r,bottom:s,left:c,width:u,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Dd=function(e){return e instanceof SVGElement&&"getBBox"in e},sm=function(e){if(Dd(e)){var t=e.getBBox(),o=t.width,i=t.height;return!o&&!i}var n=e,r=n.offsetWidth,s=n.offsetHeight;return!(r||s||e.getClientRects().length)},Au=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},ww=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ar=typeof window<"u"?window:{},Rs=new WeakMap,Mu=/auto|scroll/,Sw=/^tb|vertical/,kw=/msie|trident/i.test(Ar.navigator&&Ar.navigator.userAgent),Co=function(e){return parseFloat(e||"0")},An=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Cw((o?t:e)||0,(o?e:t)||0)},Eu=Gi({devicePixelContentBoxSize:An(),borderBoxSize:An(),contentBoxSize:An(),contentRect:new rm(0,0,0,0)}),am=function(e,t){if(t===void 0&&(t=!1),Rs.has(e)&&!t)return Rs.get(e);if(sm(e))return Rs.set(e,Eu),Eu;var o=getComputedStyle(e),i=Dd(e)&&e.ownerSVGElement&&e.getBBox(),n=!kw&&o.boxSizing==="border-box",r=Sw.test(o.writingMode||""),s=!i&&Mu.test(o.overflowY||""),c=!i&&Mu.test(o.overflowX||""),u=i?0:Co(o.paddingTop),f=i?0:Co(o.paddingRight),p=i?0:Co(o.paddingBottom),d=i?0:Co(o.paddingLeft),v=i?0:Co(o.borderTopWidth),x=i?0:Co(o.borderRightWidth),g=i?0:Co(o.borderBottomWidth),k=i?0:Co(o.borderLeftWidth),M=d+f,y=u+p,T=k+x,I=v+g,A=c?e.offsetHeight-I-e.clientHeight:0,R=s?e.offsetWidth-T-e.clientWidth:0,z=n?M+T:0,P=n?y+I:0,L=i?i.width:Co(o.width)-z-R,S=i?i.height:Co(o.height)-P-A,w=L+M+R+T,E=S+y+A+I,m=Gi({devicePixelContentBoxSize:An(Math.round(L*devicePixelRatio),Math.round(S*devicePixelRatio),r),borderBoxSize:An(w,E,r),contentBoxSize:An(L,S,r),contentRect:new rm(d,u,L,S)});return Rs.set(e,m),m},lm=function(e,t,o){var i=am(e,o),n=i.borderBoxSize,r=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(t){case Gr.DEVICE_PIXEL_CONTENT_BOX:return s;case Gr.BORDER_BOX:return n;default:return r}},Tw=function(){function e(t){var o=am(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Gi([o.borderBoxSize]),this.contentBoxSize=Gi([o.contentBoxSize]),this.devicePixelContentBoxSize=Gi([o.devicePixelContentBoxSize])}return e}(),cm=function(e){if(sm(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Pw=function(){var e=1/0,t=[];Ui.forEach(function(s){if(s.activeTargets.length!==0){var c=[];s.activeTargets.forEach(function(f){var p=new Tw(f.target),d=cm(f.target);c.push(p),f.lastReportedSize=lm(f.target,f.observedBox),d<e&&(e=d)}),t.push(function(){s.callback.call(s.observer,c,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var o=0,i=t;o<i.length;o++){var n=i[o];n()}return e},Ou=function(e){Ui.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(n){n.isActive()&&(cm(n.target)>e?o.activeTargets.push(n):o.skippedTargets.push(n))})})},Aw=function(){var e=0;for(Ou(e);xw();)e=Pw(),Ou(e);return bw()&&yw(),e>0},Ml,dm=[],Mw=function(){return dm.splice(0).forEach(function(e){return e()})},Ew=function(e){if(!Ml){var t=0,o=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Mw()}).observe(o,i),Ml=function(){o.textContent="".concat(t?t--:t++)}}dm.push(e),Ml()},Ow=function(e){Ew(function(){requestAnimationFrame(e)})},Gs=0,Rw=function(){return!!Gs},Lw=250,Dw={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ru=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Lu=function(e){return e===void 0&&(e=0),Date.now()+e},El=!1,Iw=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Lw),!El){El=!0;var i=Lu(t);Ow(function(){var n=!1;try{n=Aw()}finally{if(El=!1,t=i-Lu(),!Rw())return;n?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Dw)};document.body?o():Ar.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ru.forEach(function(o){return Ar.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ru.forEach(function(o){return Ar.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Tc=new Iw,Du=function(e){!Gs&&e>0&&Tc.start(),Gs+=e,!Gs&&Tc.stop()},Bw=function(e){return!Dd(e)&&!ww(e)&&getComputedStyle(e).display==="inline"},_w=function(){function e(t,o){this.target=t,this.observedBox=o||Gr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=lm(this.target,this.observedBox,!0);return Bw(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),zw=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),Ls=new WeakMap,Iu=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},Ds=function(){function e(){}return e.connect=function(t,o){var i=new zw(t,o);Ls.set(t,i)},e.observe=function(t,o,i){var n=Ls.get(t),r=n.observationTargets.length===0;Iu(n.observationTargets,o)<0&&(r&&Ui.push(n),n.observationTargets.push(new _w(o,i&&i.box)),Du(1),Tc.schedule())},e.unobserve=function(t,o){var i=Ls.get(t),n=Iu(i.observationTargets,o),r=i.observationTargets.length===1;n>=0&&(r&&Ui.splice(Ui.indexOf(i),1),i.observationTargets.splice(n,1),Du(-1))},e.disconnect=function(t){var o=this,i=Ls.get(t);i.observationTargets.slice().forEach(function(n){return o.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e}(),$w=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ds.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Au(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ds.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Au(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ds.unobserve(this,t)},e.prototype.disconnect=function(){Ds.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Fw{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||$w)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const i=this.elHandlersMap.get(o.target);i!==void 0&&i(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const ha=new Fw,Vr=Ne({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=so().proxy;function i(n){const{onResize:r}=e;r!==void 0&&r(n)}Pt(()=>{const n=o.$el;if(n===void 0){yu("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){yu("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(ha.registerHandler(n.nextElementSibling,i),t=!0)}),Ot(()=>{t&&ha.unregisterHandler(o.$el.nextElementSibling)})},render(){return Yp(this.$slots,"default")}});let Is;function Hw(){return Is===void 0&&("matchMedia"in window?Is=window.matchMedia("(pointer:coarse)").matches:Is=!1),Is}let Ol;function Bu(){return Ol===void 0&&(Ol="chrome"in window?window.devicePixelRatio:1),Ol}const jw=ui(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[ui("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[ui("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Nw=Ne({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Ji();jw.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Ld,ssr:t}),Pt(()=>{const{defaultScrollIndex:E,defaultScrollKey:m}=e;E!=null?g({index:E}):m!=null&&g({key:m})});let o=!1,i=!1;ud(()=>{if(o=!1,!i){i=!0;return}g({top:d.value,left:p})}),fd(()=>{o=!0,i||(i=!0)});const n=be(()=>{const E=new Map,{keyField:m}=e;return e.items.forEach((C,a)=>{E.set(C[m],a)}),E}),r=ke(null),s=ke(void 0),c=new Map,u=be(()=>{const{items:E,itemSize:m,keyField:C}=e,a=new dw(E.length,m);return E.forEach((l,h)=>{const b=l[C],B=c.get(b);B!==void 0&&a.add(h,B)}),a}),f=ke(0);let p=0;const d=ke(0),v=Kt(()=>Math.max(u.value.getBound(d.value-mc(e.paddingTop))-1,0)),x=be(()=>{const{value:E}=s;if(E===void 0)return[];const{items:m,itemSize:C}=e,a=v.value,l=Math.min(a+Math.ceil(E/C+1),m.length-1),h=[];for(let b=a;b<=l;++b)h.push(m[b]);return h}),g=(E,m)=>{if(typeof E=="number"){T(E,m,"auto");return}const{left:C,top:a,index:l,key:h,position:b,behavior:B,debounce:F=!0}=E;if(C!==void 0||a!==void 0)T(C,a,B);else if(l!==void 0)y(l,B,F);else if(h!==void 0){const O=n.value.get(h);O!==void 0&&y(O,B,F)}else b==="bottom"?T(0,Number.MAX_SAFE_INTEGER,B):b==="top"&&T(0,0,B)};let k,M=null;function y(E,m,C){const{value:a}=u,l=a.sum(E)+mc(e.paddingTop);if(!C)r.value.scrollTo({left:0,top:l,behavior:m});else{k=E,M!==null&&window.clearTimeout(M),M=window.setTimeout(()=>{k=void 0,M=null},16);const{scrollTop:h,offsetHeight:b}=r.value;if(l>h){const B=a.get(E);l+B<=h+b||r.value.scrollTo({left:0,top:l+B-b,behavior:m})}else r.value.scrollTo({left:0,top:l,behavior:m})}}function T(E,m,C){r.value.scrollTo({left:E,top:m,behavior:C})}function I(E,m){var C,a,l;if(o||e.ignoreItemResize||w(m.target))return;const{value:h}=u,b=n.value.get(E),B=h.get(b),F=(l=(a=(C=m.borderBoxSize)===null||C===void 0?void 0:C[0])===null||a===void 0?void 0:a.blockSize)!==null&&l!==void 0?l:m.contentRect.height;if(F===B)return;F-e.itemSize===0?c.delete(E):c.set(E,F-e.itemSize);const W=F-B;if(W===0)return;h.add(b,W);const X=r.value;if(X!=null){if(k===void 0){const Q=h.sum(b);X.scrollTop>Q&&X.scrollBy(0,W)}else if(b<k)X.scrollBy(0,W);else if(b===k){const Q=h.sum(b);F+Q>X.scrollTop+X.offsetHeight&&X.scrollBy(0,W)}S()}f.value++}const A=!Hw();let R=!1;function z(E){var m;(m=e.onScroll)===null||m===void 0||m.call(e,E),(!A||!R)&&S()}function P(E){var m;if((m=e.onWheel)===null||m===void 0||m.call(e,E),A){const C=r.value;if(C!=null){if(E.deltaX===0&&(C.scrollTop===0&&E.deltaY<=0||C.scrollTop+C.offsetHeight>=C.scrollHeight&&E.deltaY>=0))return;E.preventDefault(),C.scrollTop+=E.deltaY/Bu(),C.scrollLeft+=E.deltaX/Bu(),S(),R=!0,Dg(()=>{R=!1})}}}function L(E){if(o||w(E.target)||E.contentRect.height===s.value)return;s.value=E.contentRect.height;const{onResize:m}=e;m!==void 0&&m(E)}function S(){const{value:E}=r;E!=null&&(d.value=E.scrollTop,p=E.scrollLeft)}function w(E){let m=E;for(;m!==null;){if(m.style.display==="none")return!0;m=m.parentElement}return!1}return{listHeight:s,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:be(()=>{const{itemResizable:E}=e,m=Ts(u.value.sum());return f.value,[e.itemsStyle,{boxSizing:"content-box",height:E?"":m,minHeight:E?m:"",paddingTop:Ts(e.paddingTop),paddingBottom:Ts(e.paddingBottom)}]}),visibleItemsStyle:be(()=>(f.value,{transform:`translateY(${Ts(u.value.sum(v.value))})`})),viewportItems:x,listElRef:r,itemsElRef:ke(null),scrollTo:g,handleListResize:L,handleListScroll:z,handleListWheel:P,handleItemResize:I}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:i}=this;return le(Vr,{onResize:this.handleListResize},{default:()=>{var n,r;return le("div",Xn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?le("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[le(i,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(s=>{const c=s[t],u=o.get(c),f=this.$slots.default({item:s,index:u})[0];return e?le(Vr,{key:c,onResize:p=>this.handleItemResize(c,p)},{default:()=>f}):(f.key=c,f)})})]):(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)])}})}}),Ri="v-hidden",Ww=ui("[v-hidden]",{display:"none!important"}),_u=Ne({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=ke(null),i=ke(null);function n(){const{value:s}=o,{getCounter:c,getTail:u}=e;let f;if(c!==void 0?f=c():f=i.value,!s||!f)return;f.hasAttribute(Ri)&&f.removeAttribute(Ri);const{children:p}=s,d=s.offsetWidth,v=[],x=t.tail?u==null?void 0:u():null;let g=x?x.offsetWidth:0,k=!1;const M=s.children.length-(t.tail?1:0);for(let T=0;T<M-1;++T){if(T<0)continue;const I=p[T];if(k){I.hasAttribute(Ri)||I.setAttribute(Ri,"");continue}else I.hasAttribute(Ri)&&I.removeAttribute(Ri);const A=I.offsetWidth;if(g+=A,v[T]=A,g>d){const{updateCounter:R}=e;for(let z=T;z>=0;--z){const P=M-1-z;R!==void 0?R(P):f.textContent=`${P}`;const L=f.offsetWidth;if(g-=v[z],g+L<=d||z===0){k=!0,T=z-1,x&&(T===-1?(x.style.maxWidth=`${d-L}px`,x.style.boxSizing="border-box"):x.style.maxWidth="");break}}}}const{onUpdateOverflow:y}=e;k?y!==void 0&&y(!0):(y!==void 0&&y(!1),f.setAttribute(Ri,""))}const r=Ji();return Ww.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ld,ssr:r}),Pt(n),{selfRef:o,counterRef:i,sync:n}},render(){const{$slots:e}=this;return Ft(this.sync),le("div",{class:"v-overflow",ref:"selfRef"},[Yp(e,"default"),e.counter?e.counter():le("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function hm(e){return e instanceof HTMLElement}function um(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(hm(o)&&(pm(o)||um(o)))return!0}return!1}function fm(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(hm(o)&&(pm(o)||fm(o)))return!0}return!1}function pm(e){if(!Uw(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Uw(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let cr=[];const gm=Ne({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=zn(),o=ke(null),i=ke(null);let n=!1,r=!1;const s=typeof document>"u"?null:document.activeElement;function c(){return cr[cr.length-1]===t}function u(M){var y;M.code==="Escape"&&c()&&((y=e.onEsc)===null||y===void 0||y.call(e,M))}Pt(()=>{lt(()=>e.active,M=>{M?(d(),Et("keydown",document,u)):(bt("keydown",document,u),n&&v())},{immediate:!0})}),Ot(()=>{bt("keydown",document,u),n&&v()});function f(M){if(!r&&c()){const y=p();if(y===null||y.contains(_n(M)))return;x("first")}}function p(){const M=o.value;if(M===null)return null;let y=M;for(;y=y.nextSibling,!(y===null||y instanceof Element&&y.tagName==="DIV"););return y}function d(){var M;if(!e.disabled){if(cr.push(t),e.autoFocus){const{initialFocusTo:y}=e;y===void 0?x("first"):(M=wu(y))===null||M===void 0||M.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",f,!0)}}function v(){var M;if(e.disabled||(document.removeEventListener("focus",f,!0),cr=cr.filter(T=>T!==t),c()))return;const{finalFocusTo:y}=e;y!==void 0?(M=wu(y))===null||M===void 0||M.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(r=!0,s.focus({preventScroll:!0}),r=!1)}function x(M){if(c()&&e.active){const y=o.value,T=i.value;if(y!==null&&T!==null){const I=p();if(I==null||I===T){r=!0,y.focus({preventScroll:!0}),r=!1;return}r=!0;const A=M==="first"?um(I):fm(I);r=!1,A||(r=!0,y.focus({preventScroll:!0}),r=!1)}}}function g(M){if(r)return;const y=p();y!==null&&(M.relatedTarget!==null&&y.contains(M.relatedTarget)?x("last"):x("first"))}function k(M){r||(M.relatedTarget!==null&&M.relatedTarget===o.value?x("last"):x("first"))}return{focusableStartRef:o,focusableEndRef:i,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:g,handleEndFocus:k}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return le(ut,null,[le("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),le("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function mm(e,t){t&&(Pt(()=>{const{value:o}=e;o&&ha.registerHandler(o,t)}),Ot(()=>{const{value:o}=e;o&&ha.unregisterHandler(o)}))}let pn=0,zu="",$u="",Fu="",Hu="";const ju=ke("0px");function Gw(e){if(typeof document>"u")return;const t=document.documentElement;let o,i=!1;const n=()=>{t.style.marginRight=zu,t.style.overflow=$u,t.style.overflowX=Fu,t.style.overflowY=Hu,ju.value="0px"};Pt(()=>{o=lt(e,r=>{if(r){if(!pn){const s=window.innerWidth-t.offsetWidth;s>0&&(zu=t.style.marginRight,t.style.marginRight=`${s}px`,ju.value=`${s}px`),$u=t.style.overflow,Fu=t.style.overflowX,Hu=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}i=!0,pn++}else pn--,pn||n(),i=!1},{immediate:!0})}),Ot(()=>{o==null||o(),i&&(pn--,pn||n(),i=!1)})}const Id=ke(!1),Nu=()=>{Id.value=!0},Wu=()=>{Id.value=!1};let dr=0;const Vw=()=>(Kn&&(Zi(()=>{dr||(window.addEventListener("compositionstart",Nu),window.addEventListener("compositionend",Wu)),dr++}),Ot(()=>{dr<=1?(window.removeEventListener("compositionstart",Nu),window.removeEventListener("compositionend",Wu),dr=0):dr--})),Id);function vm(e){const t={isDeactivated:!1};let o=!1;return ud(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),fd(()=>{t.isDeactivated=!0,o||(o=!0)}),t}const Pc="n-form-item";function Bd(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:i}={}){const n=Xe(Pc,null);ct(Pc,null);const r=be(o?()=>o(n):()=>{const{size:u}=e;if(u)return u;if(n){const{mergedSize:f}=n;if(f.value!==void 0)return f.value}return t}),s=be(i?()=>i(n):()=>{const{disabled:u}=e;return u!==void 0?u:n?n.disabled.value:!1}),c=be(()=>{const{status:u}=e;return u||(n==null?void 0:n.mergedValidationStatus.value)});return Ot(()=>{n&&n.restoreValidation()}),{mergedSizeRef:r,mergedDisabledRef:s,mergedStatusRef:c,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var Xw=typeof global=="object"&&global&&global.Object===Object&&global;const xm=Xw;var qw=typeof self=="object"&&self&&self.Object===Object&&self,Yw=xm||qw||Function("return this")();const Ro=Yw;var Kw=Ro.Symbol;const Si=Kw;var bm=Object.prototype,Zw=bm.hasOwnProperty,Jw=bm.toString,hr=Si?Si.toStringTag:void 0;function Qw(e){var t=Zw.call(e,hr),o=e[hr];try{e[hr]=void 0;var i=!0}catch{}var n=Jw.call(e);return i&&(t?e[hr]=o:delete e[hr]),n}var eS=Object.prototype,tS=eS.toString;function oS(e){return tS.call(e)}var iS="[object Null]",nS="[object Undefined]",Uu=Si?Si.toStringTag:void 0;function Qi(e){return e==null?e===void 0?nS:iS:Uu&&Uu in Object(e)?Qw(e):oS(e)}function ki(e){return e!=null&&typeof e=="object"}var rS="[object Symbol]";function _d(e){return typeof e=="symbol"||ki(e)&&Qi(e)==rS}function ym(e,t){for(var o=-1,i=e==null?0:e.length,n=Array(i);++o<i;)n[o]=t(e[o],o,e);return n}var sS=Array.isArray;const fo=sS;var aS=1/0,Gu=Si?Si.prototype:void 0,Vu=Gu?Gu.toString:void 0;function Cm(e){if(typeof e=="string")return e;if(fo(e))return ym(e,Cm)+"";if(_d(e))return Vu?Vu.call(e):"";var t=e+"";return t=="0"&&1/e==-aS?"-0":t}function Pi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function zd(e){return e}var lS="[object AsyncFunction]",cS="[object Function]",dS="[object GeneratorFunction]",hS="[object Proxy]";function $d(e){if(!Pi(e))return!1;var t=Qi(e);return t==cS||t==dS||t==lS||t==hS}var uS=Ro["__core-js_shared__"];const Rl=uS;var Xu=function(){var e=/[^.]+$/.exec(Rl&&Rl.keys&&Rl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fS(e){return!!Xu&&Xu in e}var pS=Function.prototype,gS=pS.toString;function en(e){if(e!=null){try{return gS.call(e)}catch{}try{return e+""}catch{}}return""}var mS=/[\\^$.*+?()[\]{}|]/g,vS=/^\[object .+?Constructor\]$/,xS=Function.prototype,bS=Object.prototype,yS=xS.toString,CS=bS.hasOwnProperty,wS=RegExp("^"+yS.call(CS).replace(mS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SS(e){if(!Pi(e)||fS(e))return!1;var t=$d(e)?wS:vS;return t.test(en(e))}function kS(e,t){return e==null?void 0:e[t]}function tn(e,t){var o=kS(e,t);return SS(o)?o:void 0}var TS=tn(Ro,"WeakMap");const Ac=TS;var qu=Object.create,PS=function(){function e(){}return function(t){if(!Pi(t))return{};if(qu)return qu(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();const AS=PS;function MS(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function ES(e,t){var o=-1,i=e.length;for(t||(t=Array(i));++o<i;)t[o]=e[o];return t}var OS=800,RS=16,LS=Date.now;function DS(e){var t=0,o=0;return function(){var i=LS(),n=RS-(i-o);if(o=i,n>0){if(++t>=OS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function IS(e){return function(){return e}}var BS=function(){try{var e=tn(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ua=BS;var _S=ua?function(e,t){return ua(e,"toString",{configurable:!0,enumerable:!1,value:IS(t),writable:!0})}:zd;const zS=_S;var $S=DS(zS);const FS=$S;var HS=9007199254740991,jS=/^(?:0|[1-9]\d*)$/;function Fd(e,t){var o=typeof e;return t=t??HS,!!t&&(o=="number"||o!="symbol"&&jS.test(e))&&e>-1&&e%1==0&&e<t}function Hd(e,t,o){t=="__proto__"&&ua?ua(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function rs(e,t){return e===t||e!==e&&t!==t}var NS=Object.prototype,WS=NS.hasOwnProperty;function US(e,t,o){var i=e[t];(!(WS.call(e,t)&&rs(i,o))||o===void 0&&!(t in e))&&Hd(e,t,o)}function GS(e,t,o,i){var n=!o;o||(o={});for(var r=-1,s=t.length;++r<s;){var c=t[r],u=i?i(o[c],e[c],c,o,e):void 0;u===void 0&&(u=e[c]),n?Hd(o,c,u):US(o,c,u)}return o}var Yu=Math.max;function VS(e,t,o){return t=Yu(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,r=Yu(i.length-t,0),s=Array(r);++n<r;)s[n]=i[t+n];n=-1;for(var c=Array(t+1);++n<t;)c[n]=i[n];return c[t]=o(s),MS(e,this,c)}}function XS(e,t){return FS(VS(e,t,zd),e+"")}var qS=9007199254740991;function jd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qS}function Jn(e){return e!=null&&jd(e.length)&&!$d(e)}function YS(e,t,o){if(!Pi(o))return!1;var i=typeof t;return(i=="number"?Jn(o)&&Fd(t,o.length):i=="string"&&t in o)?rs(o[t],e):!1}function KS(e){return XS(function(t,o){var i=-1,n=o.length,r=n>1?o[n-1]:void 0,s=n>2?o[2]:void 0;for(r=e.length>3&&typeof r=="function"?(n--,r):void 0,s&&YS(o[0],o[1],s)&&(r=n<3?void 0:r,n=1),t=Object(t);++i<n;){var c=o[i];c&&e(t,c,i,r)}return t})}var ZS=Object.prototype;function Nd(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||ZS;return e===o}function JS(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}var QS="[object Arguments]";function Ku(e){return ki(e)&&Qi(e)==QS}var wm=Object.prototype,ek=wm.hasOwnProperty,tk=wm.propertyIsEnumerable,ok=Ku(function(){return arguments}())?Ku:function(e){return ki(e)&&ek.call(e,"callee")&&!tk.call(e,"callee")};const fa=ok;function ik(){return!1}var Sm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zu=Sm&&typeof module=="object"&&module&&!module.nodeType&&module,nk=Zu&&Zu.exports===Sm,Ju=nk?Ro.Buffer:void 0,rk=Ju?Ju.isBuffer:void 0,sk=rk||ik;const pa=sk;var ak="[object Arguments]",lk="[object Array]",ck="[object Boolean]",dk="[object Date]",hk="[object Error]",uk="[object Function]",fk="[object Map]",pk="[object Number]",gk="[object Object]",mk="[object RegExp]",vk="[object Set]",xk="[object String]",bk="[object WeakMap]",yk="[object ArrayBuffer]",Ck="[object DataView]",wk="[object Float32Array]",Sk="[object Float64Array]",kk="[object Int8Array]",Tk="[object Int16Array]",Pk="[object Int32Array]",Ak="[object Uint8Array]",Mk="[object Uint8ClampedArray]",Ek="[object Uint16Array]",Ok="[object Uint32Array]",xt={};xt[wk]=xt[Sk]=xt[kk]=xt[Tk]=xt[Pk]=xt[Ak]=xt[Mk]=xt[Ek]=xt[Ok]=!0;xt[ak]=xt[lk]=xt[yk]=xt[ck]=xt[Ck]=xt[dk]=xt[hk]=xt[uk]=xt[fk]=xt[pk]=xt[gk]=xt[mk]=xt[vk]=xt[xk]=xt[bk]=!1;function Rk(e){return ki(e)&&jd(e.length)&&!!xt[Qi(e)]}function Lk(e){return function(t){return e(t)}}var km=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mr=km&&typeof module=="object"&&module&&!module.nodeType&&module,Dk=Mr&&Mr.exports===km,Ll=Dk&&xm.process,Ik=function(){try{var e=Mr&&Mr.require&&Mr.require("util").types;return e||Ll&&Ll.binding&&Ll.binding("util")}catch{}}();const Qu=Ik;var ef=Qu&&Qu.isTypedArray,Bk=ef?Lk(ef):Rk;const Wd=Bk;var _k=Object.prototype,zk=_k.hasOwnProperty;function Tm(e,t){var o=fo(e),i=!o&&fa(e),n=!o&&!i&&pa(e),r=!o&&!i&&!n&&Wd(e),s=o||i||n||r,c=s?JS(e.length,String):[],u=c.length;for(var f in e)(t||zk.call(e,f))&&!(s&&(f=="length"||n&&(f=="offset"||f=="parent")||r&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Fd(f,u)))&&c.push(f);return c}function Pm(e,t){return function(o){return e(t(o))}}var $k=Pm(Object.keys,Object);const Fk=$k;var Hk=Object.prototype,jk=Hk.hasOwnProperty;function Nk(e){if(!Nd(e))return Fk(e);var t=[];for(var o in Object(e))jk.call(e,o)&&o!="constructor"&&t.push(o);return t}function Ud(e){return Jn(e)?Tm(e):Nk(e)}function Wk(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var Uk=Object.prototype,Gk=Uk.hasOwnProperty;function Vk(e){if(!Pi(e))return Wk(e);var t=Nd(e),o=[];for(var i in e)i=="constructor"&&(t||!Gk.call(e,i))||o.push(i);return o}function Am(e){return Jn(e)?Tm(e,!0):Vk(e)}var Xk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qk=/^\w*$/;function Gd(e,t){if(fo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||_d(e)?!0:qk.test(e)||!Xk.test(e)||t!=null&&e in Object(t)}var Yk=tn(Object,"create");const Xr=Yk;function Kk(){this.__data__=Xr?Xr(null):{},this.size=0}function Zk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Jk="__lodash_hash_undefined__",Qk=Object.prototype,eT=Qk.hasOwnProperty;function tT(e){var t=this.__data__;if(Xr){var o=t[e];return o===Jk?void 0:o}return eT.call(t,e)?t[e]:void 0}var oT=Object.prototype,iT=oT.hasOwnProperty;function nT(e){var t=this.__data__;return Xr?t[e]!==void 0:iT.call(t,e)}var rT="__lodash_hash_undefined__";function sT(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Xr&&t===void 0?rT:t,this}function Yi(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Yi.prototype.clear=Kk;Yi.prototype.delete=Zk;Yi.prototype.get=tT;Yi.prototype.has=nT;Yi.prototype.set=sT;function aT(){this.__data__=[],this.size=0}function Ua(e,t){for(var o=e.length;o--;)if(rs(e[o][0],t))return o;return-1}var lT=Array.prototype,cT=lT.splice;function dT(e){var t=this.__data__,o=Ua(t,e);if(o<0)return!1;var i=t.length-1;return o==i?t.pop():cT.call(t,o,1),--this.size,!0}function hT(e){var t=this.__data__,o=Ua(t,e);return o<0?void 0:t[o][1]}function uT(e){return Ua(this.__data__,e)>-1}function fT(e,t){var o=this.__data__,i=Ua(o,e);return i<0?(++this.size,o.push([e,t])):o[i][1]=t,this}function Zo(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Zo.prototype.clear=aT;Zo.prototype.delete=dT;Zo.prototype.get=hT;Zo.prototype.has=uT;Zo.prototype.set=fT;var pT=tn(Ro,"Map");const qr=pT;function gT(){this.size=0,this.__data__={hash:new Yi,map:new(qr||Zo),string:new Yi}}function mT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ga(e,t){var o=e.__data__;return mT(t)?o[typeof t=="string"?"string":"hash"]:o.map}function vT(e){var t=Ga(this,e).delete(e);return this.size-=t?1:0,t}function xT(e){return Ga(this,e).get(e)}function bT(e){return Ga(this,e).has(e)}function yT(e,t){var o=Ga(this,e),i=o.size;return o.set(e,t),this.size+=o.size==i?0:1,this}function Jo(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Jo.prototype.clear=gT;Jo.prototype.delete=vT;Jo.prototype.get=xT;Jo.prototype.has=bT;Jo.prototype.set=yT;var CT="Expected a function";function Vd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(CT);var o=function(){var i=arguments,n=t?t.apply(this,i):i[0],r=o.cache;if(r.has(n))return r.get(n);var s=e.apply(this,i);return o.cache=r.set(n,s)||r,s};return o.cache=new(Vd.Cache||Jo),o}Vd.Cache=Jo;var wT=500;function ST(e){var t=Vd(e,function(i){return o.size===wT&&o.clear(),i}),o=t.cache;return t}var kT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TT=/\\(\\)?/g,PT=ST(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kT,function(o,i,n,r){t.push(n?r.replace(TT,"$1"):i||o)}),t});const AT=PT;function Mm(e){return e==null?"":Cm(e)}function Em(e,t){return fo(e)?e:Gd(e,t)?[e]:AT(Mm(e))}var MT=1/0;function Va(e){if(typeof e=="string"||_d(e))return e;var t=e+"";return t=="0"&&1/e==-MT?"-0":t}function Om(e,t){t=Em(t,e);for(var o=0,i=t.length;e!=null&&o<i;)e=e[Va(t[o++])];return o&&o==i?e:void 0}function Xd(e,t,o){var i=e==null?void 0:Om(e,t);return i===void 0?o:i}function ET(e,t){for(var o=-1,i=t.length,n=e.length;++o<i;)e[n+o]=t[o];return e}var OT=Pm(Object.getPrototypeOf,Object);const Rm=OT;var RT="[object Object]",LT=Function.prototype,DT=Object.prototype,Lm=LT.toString,IT=DT.hasOwnProperty,BT=Lm.call(Object);function _T(e){if(!ki(e)||Qi(e)!=RT)return!1;var t=Rm(e);if(t===null)return!0;var o=IT.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Lm.call(o)==BT}function zT(e,t,o){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(n);++i<n;)r[i]=e[i+t];return r}function $T(e,t,o){var i=e.length;return o=o===void 0?i:o,!t&&o>=i?e:zT(e,t,o)}var FT="\\ud800-\\udfff",HT="\\u0300-\\u036f",jT="\\ufe20-\\ufe2f",NT="\\u20d0-\\u20ff",WT=HT+jT+NT,UT="\\ufe0e\\ufe0f",GT="\\u200d",VT=RegExp("["+GT+FT+WT+UT+"]");function Dm(e){return VT.test(e)}function XT(e){return e.split("")}var Im="\\ud800-\\udfff",qT="\\u0300-\\u036f",YT="\\ufe20-\\ufe2f",KT="\\u20d0-\\u20ff",ZT=qT+YT+KT,JT="\\ufe0e\\ufe0f",QT="["+Im+"]",Mc="["+ZT+"]",Ec="\\ud83c[\\udffb-\\udfff]",eP="(?:"+Mc+"|"+Ec+")",Bm="[^"+Im+"]",_m="(?:\\ud83c[\\udde6-\\uddff]){2}",zm="[\\ud800-\\udbff][\\udc00-\\udfff]",tP="\\u200d",$m=eP+"?",Fm="["+JT+"]?",oP="(?:"+tP+"(?:"+[Bm,_m,zm].join("|")+")"+Fm+$m+")*",iP=Fm+$m+oP,nP="(?:"+[Bm+Mc+"?",Mc,_m,zm,QT].join("|")+")",rP=RegExp(Ec+"(?="+Ec+")|"+nP+iP,"g");function sP(e){return e.match(rP)||[]}function aP(e){return Dm(e)?sP(e):XT(e)}function lP(e){return function(t){t=Mm(t);var o=Dm(t)?aP(t):void 0,i=o?o[0]:t.charAt(0),n=o?$T(o,1).join(""):t.slice(1);return i[e]()+n}}var cP=lP("toUpperCase");const dP=cP;function hP(){this.__data__=new Zo,this.size=0}function uP(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function fP(e){return this.__data__.get(e)}function pP(e){return this.__data__.has(e)}var gP=200;function mP(e,t){var o=this.__data__;if(o instanceof Zo){var i=o.__data__;if(!qr||i.length<gP-1)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new Jo(i)}return o.set(e,t),this.size=o.size,this}function Mo(e){var t=this.__data__=new Zo(e);this.size=t.size}Mo.prototype.clear=hP;Mo.prototype.delete=uP;Mo.prototype.get=fP;Mo.prototype.has=pP;Mo.prototype.set=mP;var Hm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tf=Hm&&typeof module=="object"&&module&&!module.nodeType&&module,vP=tf&&tf.exports===Hm,of=vP?Ro.Buffer:void 0,nf=of?of.allocUnsafe:void 0;function xP(e,t){if(t)return e.slice();var o=e.length,i=nf?nf(o):new e.constructor(o);return e.copy(i),i}function bP(e,t){for(var o=-1,i=e==null?0:e.length,n=0,r=[];++o<i;){var s=e[o];t(s,o,e)&&(r[n++]=s)}return r}function yP(){return[]}var CP=Object.prototype,wP=CP.propertyIsEnumerable,rf=Object.getOwnPropertySymbols,SP=rf?function(e){return e==null?[]:(e=Object(e),bP(rf(e),function(t){return wP.call(e,t)}))}:yP;const kP=SP;function TP(e,t,o){var i=t(e);return fo(e)?i:ET(i,o(e))}function sf(e){return TP(e,Ud,kP)}var PP=tn(Ro,"DataView");const Oc=PP;var AP=tn(Ro,"Promise");const Rc=AP;var MP=tn(Ro,"Set");const Lc=MP;var af="[object Map]",EP="[object Object]",lf="[object Promise]",cf="[object Set]",df="[object WeakMap]",hf="[object DataView]",OP=en(Oc),RP=en(qr),LP=en(Rc),DP=en(Lc),IP=en(Ac),Di=Qi;(Oc&&Di(new Oc(new ArrayBuffer(1)))!=hf||qr&&Di(new qr)!=af||Rc&&Di(Rc.resolve())!=lf||Lc&&Di(new Lc)!=cf||Ac&&Di(new Ac)!=df)&&(Di=function(e){var t=Qi(e),o=t==EP?e.constructor:void 0,i=o?en(o):"";if(i)switch(i){case OP:return hf;case RP:return af;case LP:return lf;case DP:return cf;case IP:return df}return t});const uf=Di;var BP=Ro.Uint8Array;const ga=BP;function _P(e){var t=new e.constructor(e.byteLength);return new ga(t).set(new ga(e)),t}function zP(e,t){var o=t?_P(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function $P(e){return typeof e.constructor=="function"&&!Nd(e)?AS(Rm(e)):{}}var FP="__lodash_hash_undefined__";function HP(e){return this.__data__.set(e,FP),this}function jP(e){return this.__data__.has(e)}function ma(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Jo;++t<o;)this.add(e[t])}ma.prototype.add=ma.prototype.push=HP;ma.prototype.has=jP;function NP(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}function WP(e,t){return e.has(t)}var UP=1,GP=2;function jm(e,t,o,i,n,r){var s=o&UP,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var f=r.get(e),p=r.get(t);if(f&&p)return f==t&&p==e;var d=-1,v=!0,x=o&GP?new ma:void 0;for(r.set(e,t),r.set(t,e);++d<c;){var g=e[d],k=t[d];if(i)var M=s?i(k,g,d,t,e,r):i(g,k,d,e,t,r);if(M!==void 0){if(M)continue;v=!1;break}if(x){if(!NP(t,function(y,T){if(!WP(x,T)&&(g===y||n(g,y,o,i,r)))return x.push(T)})){v=!1;break}}else if(!(g===k||n(g,k,o,i,r))){v=!1;break}}return r.delete(e),r.delete(t),v}function VP(e){var t=-1,o=Array(e.size);return e.forEach(function(i,n){o[++t]=[n,i]}),o}function XP(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}var qP=1,YP=2,KP="[object Boolean]",ZP="[object Date]",JP="[object Error]",QP="[object Map]",eA="[object Number]",tA="[object RegExp]",oA="[object Set]",iA="[object String]",nA="[object Symbol]",rA="[object ArrayBuffer]",sA="[object DataView]",ff=Si?Si.prototype:void 0,Dl=ff?ff.valueOf:void 0;function aA(e,t,o,i,n,r,s){switch(o){case sA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rA:return!(e.byteLength!=t.byteLength||!r(new ga(e),new ga(t)));case KP:case ZP:case eA:return rs(+e,+t);case JP:return e.name==t.name&&e.message==t.message;case tA:case iA:return e==t+"";case QP:var c=VP;case oA:var u=i&qP;if(c||(c=XP),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;i|=YP,s.set(e,t);var p=jm(c(e),c(t),i,n,r,s);return s.delete(e),p;case nA:if(Dl)return Dl.call(e)==Dl.call(t)}return!1}var lA=1,cA=Object.prototype,dA=cA.hasOwnProperty;function hA(e,t,o,i,n,r){var s=o&lA,c=sf(e),u=c.length,f=sf(t),p=f.length;if(u!=p&&!s)return!1;for(var d=u;d--;){var v=c[d];if(!(s?v in t:dA.call(t,v)))return!1}var x=r.get(e),g=r.get(t);if(x&&g)return x==t&&g==e;var k=!0;r.set(e,t),r.set(t,e);for(var M=s;++d<u;){v=c[d];var y=e[v],T=t[v];if(i)var I=s?i(T,y,v,t,e,r):i(y,T,v,e,t,r);if(!(I===void 0?y===T||n(y,T,o,i,r):I)){k=!1;break}M||(M=v=="constructor")}if(k&&!M){var A=e.constructor,R=t.constructor;A!=R&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof R=="function"&&R instanceof R)&&(k=!1)}return r.delete(e),r.delete(t),k}var uA=1,pf="[object Arguments]",gf="[object Array]",Bs="[object Object]",fA=Object.prototype,mf=fA.hasOwnProperty;function pA(e,t,o,i,n,r){var s=fo(e),c=fo(t),u=s?gf:uf(e),f=c?gf:uf(t);u=u==pf?Bs:u,f=f==pf?Bs:f;var p=u==Bs,d=f==Bs,v=u==f;if(v&&pa(e)){if(!pa(t))return!1;s=!0,p=!1}if(v&&!p)return r||(r=new Mo),s||Wd(e)?jm(e,t,o,i,n,r):aA(e,t,u,o,i,n,r);if(!(o&uA)){var x=p&&mf.call(e,"__wrapped__"),g=d&&mf.call(t,"__wrapped__");if(x||g){var k=x?e.value():e,M=g?t.value():t;return r||(r=new Mo),n(k,M,o,i,r)}}return v?(r||(r=new Mo),hA(e,t,o,i,n,r)):!1}function qd(e,t,o,i,n){return e===t?!0:e==null||t==null||!ki(e)&&!ki(t)?e!==e&&t!==t:pA(e,t,o,i,qd,n)}var gA=1,mA=2;function vA(e,t,o,i){var n=o.length,r=n,s=!i;if(e==null)return!r;for(e=Object(e);n--;){var c=o[n];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++n<r;){c=o[n];var u=c[0],f=e[u],p=c[1];if(s&&c[2]){if(f===void 0&&!(u in e))return!1}else{var d=new Mo;if(i)var v=i(f,p,u,e,t,d);if(!(v===void 0?qd(p,f,gA|mA,i,d):v))return!1}}return!0}function Nm(e){return e===e&&!Pi(e)}function xA(e){for(var t=Ud(e),o=t.length;o--;){var i=t[o],n=e[i];t[o]=[i,n,Nm(n)]}return t}function Wm(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function bA(e){var t=xA(e);return t.length==1&&t[0][2]?Wm(t[0][0],t[0][1]):function(o){return o===e||vA(o,e,t)}}function yA(e,t){return e!=null&&t in Object(e)}function CA(e,t,o){t=Em(t,e);for(var i=-1,n=t.length,r=!1;++i<n;){var s=Va(t[i]);if(!(r=e!=null&&o(e,s)))break;e=e[s]}return r||++i!=n?r:(n=e==null?0:e.length,!!n&&jd(n)&&Fd(s,n)&&(fo(e)||fa(e)))}function wA(e,t){return e!=null&&CA(e,t,yA)}var SA=1,kA=2;function TA(e,t){return Gd(e)&&Nm(t)?Wm(Va(e),t):function(o){var i=Xd(o,e);return i===void 0&&i===t?wA(o,e):qd(t,i,SA|kA)}}function PA(e){return function(t){return t==null?void 0:t[e]}}function AA(e){return function(t){return Om(t,e)}}function MA(e){return Gd(e)?PA(Va(e)):AA(e)}function EA(e){return typeof e=="function"?e:e==null?zd:typeof e=="object"?fo(e)?TA(e[0],e[1]):bA(e):MA(e)}function OA(e){return function(t,o,i){for(var n=-1,r=Object(t),s=i(t),c=s.length;c--;){var u=s[e?c:++n];if(o(r[u],u,r)===!1)break}return t}}var RA=OA();const Um=RA;function LA(e,t){return e&&Um(e,t,Ud)}function DA(e,t){return function(o,i){if(o==null)return o;if(!Jn(o))return e(o,i);for(var n=o.length,r=t?n:-1,s=Object(o);(t?r--:++r<n)&&i(s[r],r,s)!==!1;);return o}}var IA=DA(LA);const BA=IA;function Dc(e,t,o){(o!==void 0&&!rs(e[t],o)||o===void 0&&!(t in e))&&Hd(e,t,o)}function _A(e){return ki(e)&&Jn(e)}function Ic(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function zA(e){return GS(e,Am(e))}function $A(e,t,o,i,n,r,s){var c=Ic(e,o),u=Ic(t,o),f=s.get(u);if(f){Dc(e,o,f);return}var p=r?r(c,u,o+"",e,t,s):void 0,d=p===void 0;if(d){var v=fo(u),x=!v&&pa(u),g=!v&&!x&&Wd(u);p=u,v||x||g?fo(c)?p=c:_A(c)?p=ES(c):x?(d=!1,p=xP(u,!0)):g?(d=!1,p=zP(u,!0)):p=[]:_T(u)||fa(u)?(p=c,fa(c)?p=zA(c):(!Pi(c)||$d(c))&&(p=$P(u))):d=!1}d&&(s.set(u,p),n(p,u,i,r,s),s.delete(u)),Dc(e,o,p)}function Gm(e,t,o,i,n){e!==t&&Um(t,function(r,s){if(n||(n=new Mo),Pi(r))$A(e,t,s,o,Gm,i,n);else{var c=i?i(Ic(e,s),r,s+"",e,t,n):void 0;c===void 0&&(c=r),Dc(e,s,c)}},Am)}function FA(e,t){var o=-1,i=Jn(e)?Array(e.length):[];return BA(e,function(n,r,s){i[++o]=t(n,r,s)}),i}function HA(e,t){var o=fo(e)?ym:FA;return o(e,EA(t))}var jA=KS(function(e,t,o){Gm(e,t,o)});const xr=jA,Qo={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:NA,fontFamily:WA,lineHeight:UA}=Qo,Vm=Ce("body",`
  21. margin: 0;
  22. font-size: ${NA};
  23. font-family: ${WA};
  24. line-height: ${UA};
  25. -webkit-text-size-adjust: 100%;
  26. -webkit-tap-highlight-color: transparent;
  27. `,[Ce("input",`
  28. font-family: inherit;
  29. font-size: inherit;
  30. `)]),Yo="n-config-provider",Yr="naive-ui-style";function lF(e){return e}function Je(e,t,o,i,n,r){const s=Ji(),c=Xe(Yo,null);if(o){const f=()=>{const p=r==null?void 0:r.value;o.mount({id:p===void 0?t:p+t,head:!0,props:{bPrefix:p?`.${p}-`:void 0},anchorMetaName:Yr,ssr:s}),c!=null&&c.preflightStyleDisabled||Vm.mount({id:"n-global",head:!0,anchorMetaName:Yr,ssr:s})};s?f():Zi(f)}return be(()=>{var f;const{theme:{common:p,self:d,peers:v={}}={},themeOverrides:x={},builtinThemeOverrides:g={}}=n,{common:k,peers:M}=x,{common:y=void 0,[e]:{common:T=void 0,self:I=void 0,peers:A={}}={}}=(c==null?void 0:c.mergedThemeRef.value)||{},{common:R=void 0,[e]:z={}}=(c==null?void 0:c.mergedThemeOverridesRef.value)||{},{common:P,peers:L={}}=z,S=xr({},p||T||y||i.common,R,P,k),w=xr((f=d||I||i.self)===null||f===void 0?void 0:f(S),g,z,x);return{common:S,self:w,peers:xr({},i.peers,A,v),peerOverrides:xr({},g.peers,L,M)}})}Je.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Xm="n";function Rt(e={},t={defaultBordered:!0}){const o=Xe(Yo,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:be(()=>{var i,n;const{bordered:r}=e;return r!==void 0?r:(n=(i=o==null?void 0:o.mergedBorderedRef.value)!==null&&i!==void 0?i:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:be(()=>(o==null?void 0:o.mergedClsPrefixRef.value)||Xm),namespaceRef:be(()=>o==null?void 0:o.mergedNamespaceRef.value)}}const GA={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},VA=GA,XA={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},qA=XA;var YA={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},KA=function(t,o,i){var n,r=YA[t];return typeof r=="string"?n=r:o===1?n=r.one:n=r.other.replace("{{count}}",String(o)),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?n+"内":n+"前":n};const ZA=KA;function Mn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):e.defaultWidth,i=e.formats[o]||e.formats[e.defaultWidth];return i}}var JA={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},QA={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},eM={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},tM={date:Mn({formats:JA,defaultWidth:"full"}),time:Mn({formats:QA,defaultWidth:"full"}),dateTime:Mn({formats:eM,defaultWidth:"full"})};const oM=tM;function Yd(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function iM(e){Yd(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Bc(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function nM(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var rM={};function sM(){return rM}function vf(e,t){var o,i,n,r,s,c,u,f;Yd(1,arguments);var p=sM(),d=nM((o=(i=(n=(r=t==null?void 0:t.weekStartsOn)!==null&&r!==void 0?r:t==null||(s=t.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:p.weekStartsOn)!==null&&i!==void 0?i:(u=p.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&o!==void 0?o:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=iM(e),x=v.getUTCDay(),g=(x<d?7:0)+x-d;return v.setUTCDate(v.getUTCDate()-g),v.setUTCHours(0,0,0,0),v}function aM(e,t,o){Yd(2,arguments);var i=vf(e,o),n=vf(t,o);return i.getTime()===n.getTime()}function xf(e,t,o){var i="eeee p";return aM(e,t,o)?i:e.getTime()>t.getTime()?"'下个'"+i:"'上个'"+i}var lM={lastWeek:xf,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:xf,other:"PP p"},cM=function(t,o,i,n){var r=lM[t];return typeof r=="function"?r(o,i,n):r};const dM=cM;function To(e){return function(t,o){var i=o!=null&&o.context?String(o.context):"standalone",n;if(i==="formatting"&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,s=o!=null&&o.width?String(o.width):r;n=e.formattingValues[s]||e.formattingValues[r]}else{var c=e.defaultWidth,u=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[u]||e.values[c]}var f=e.argumentCallback?e.argumentCallback(t):t;return n[f]}}var hM={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},uM={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},fM={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},pM={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},gM={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},mM={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},vM=function(t,o){var i=Number(t);switch(o==null?void 0:o.unit){case"date":return i.toString()+"日";case"hour":return i.toString()+"时";case"minute":return i.toString()+"分";case"second":return i.toString()+"秒";default:return"第 "+i.toString()}},xM={ordinalNumber:vM,era:To({values:hM,defaultWidth:"wide"}),quarter:To({values:uM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:To({values:fM,defaultWidth:"wide"}),day:To({values:pM,defaultWidth:"wide"}),dayPeriod:To({values:gM,defaultWidth:"wide",formattingValues:mM,defaultFormattingWidth:"wide"})};const bM=xM;function Po(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.width,n=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],r=t.match(n);if(!r)return null;var s=r[0],c=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?CM(c,function(d){return d.test(s)}):yM(c,function(d){return d.test(s)}),f;f=e.valueCallback?e.valueCallback(u):u,f=o.valueCallback?o.valueCallback(f):f;var p=t.slice(s.length);return{value:f,rest:p}}}function yM(e,t){for(var o in e)if(e.hasOwnProperty(o)&&t(e[o]))return o}function CM(e,t){for(var o=0;o<e.length;o++)if(t(e[o]))return o}function qm(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var n=i[0],r=t.match(e.parsePattern);if(!r)return null;var s=e.valueCallback?e.valueCallback(r[0]):r[0];s=o.valueCallback?o.valueCallback(s):s;var c=t.slice(n.length);return{value:s,rest:c}}}var wM=/^(第\s*)?\d+(日|时|分|秒)?/i,SM=/\d+/i,kM={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},TM={any:[/^(前)/i,/^(公元)/i]},PM={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},AM={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},MM={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},EM={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},OM={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},RM={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},LM={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},DM={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},IM={ordinalNumber:qm({matchPattern:wM,parsePattern:SM,valueCallback:function(t){return parseInt(t,10)}}),era:Po({matchPatterns:kM,defaultMatchWidth:"wide",parsePatterns:TM,defaultParseWidth:"any"}),quarter:Po({matchPatterns:PM,defaultMatchWidth:"wide",parsePatterns:AM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Po({matchPatterns:MM,defaultMatchWidth:"wide",parsePatterns:EM,defaultParseWidth:"any"}),day:Po({matchPatterns:OM,defaultMatchWidth:"wide",parsePatterns:RM,defaultParseWidth:"any"}),dayPeriod:Po({matchPatterns:LM,defaultMatchWidth:"any",parsePatterns:DM,defaultParseWidth:"any"})};const BM=IM;var _M={code:"zh-CN",formatDistance:ZA,formatLong:oM,formatRelative:dM,localize:bM,match:BM,options:{weekStartsOn:1,firstWeekContainsDate:4}};const zM=_M,$M={name:"zh-CN",locale:zM},FM=$M;var HM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jM=function(t,o,i){var n,r=HM[t];return typeof r=="string"?n=r:o===1?n=r.one:n=r.other.replace("{{count}}",o.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+n:n+" ago":n};const NM=jM;var WM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},GM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VM={date:Mn({formats:WM,defaultWidth:"full"}),time:Mn({formats:UM,defaultWidth:"full"}),dateTime:Mn({formats:GM,defaultWidth:"full"})};const XM=VM;var qM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},YM=function(t,o,i,n){return qM[t]};const KM=YM;var ZM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},JM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},eE={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},tE={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oE={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},iE=function(t,o){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},nE={ordinalNumber:iE,era:To({values:ZM,defaultWidth:"wide"}),quarter:To({values:JM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:To({values:QM,defaultWidth:"wide"}),day:To({values:eE,defaultWidth:"wide"}),dayPeriod:To({values:tE,defaultWidth:"wide",formattingValues:oE,defaultFormattingWidth:"wide"})};const rE=nE;var sE=/^(\d+)(th|st|nd|rd)?/i,aE=/\d+/i,lE={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cE={any:[/^b/i,/^(a|c)/i]},dE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hE={any:[/1/i,/2/i,/3/i,/4/i]},uE={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fE={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pE={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gE={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mE={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vE={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xE={ordinalNumber:qm({matchPattern:sE,parsePattern:aE,valueCallback:function(t){return parseInt(t,10)}}),era:Po({matchPatterns:lE,defaultMatchWidth:"wide",parsePatterns:cE,defaultParseWidth:"any"}),quarter:Po({matchPatterns:dE,defaultMatchWidth:"wide",parsePatterns:hE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Po({matchPatterns:uE,defaultMatchWidth:"wide",parsePatterns:fE,defaultParseWidth:"any"}),day:Po({matchPatterns:pE,defaultMatchWidth:"wide",parsePatterns:gE,defaultParseWidth:"any"}),dayPeriod:Po({matchPatterns:mE,defaultMatchWidth:"any",parsePatterns:vE,defaultParseWidth:"any"})};const bE=xE;var yE={code:"en-US",formatDistance:NM,formatLong:XM,formatRelative:KM,localize:rE,match:bE,options:{weekStartsOn:0,firstWeekContainsDate:1}};const CE=yE,wE={name:"en-US",locale:CE},SE=wE;function Kd(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Xe(Yo,null)||{},i=be(()=>{var r,s;return(s=(r=t==null?void 0:t.value)===null||r===void 0?void 0:r[e])!==null&&s!==void 0?s:qA[e]});return{dateLocaleRef:be(()=>{var r;return(r=o==null?void 0:o.value)!==null&&r!==void 0?r:SE}),localeRef:i}}function Qn(e,t,o){if(!t)return;const i=Ji(),n=Xe(Yo,null),r=()=>{const s=o==null?void 0:o.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Yr,props:{bPrefix:s?`.${s}-`:void 0},ssr:i}),n!=null&&n.preflightStyleDisabled||Vm.mount({id:"n-global",head:!0,anchorMetaName:Yr,ssr:i})};i?r():Zi(r)}function jt(e,t,o,i){var n;o||is("useThemeClass","cssVarsRef is not passed");const r=(n=Xe(Yo,null))===null||n===void 0?void 0:n.mergedThemeHashRef,s=ke(""),c=Ji();let u;const f=`__${e}`,p=()=>{let d=f;const v=t?t.value:void 0,x=r==null?void 0:r.value;x&&(d+="-"+x),v&&(d+="-"+v);const{themeOverrides:g,builtinThemeOverrides:k}=i;g&&(d+="-"+Nr(JSON.stringify(g))),k&&(d+="-"+Nr(JSON.stringify(k))),s.value=d,u=()=>{const M=o.value;let y="";for(const T in M)y+=`${T}: ${M[T]};`;Ce(`.${d}`,y).mount({id:d,ssr:c}),u=void 0}};return Go(()=>{p()}),{themeClass:s,onRender:()=>{u==null||u()}}}function on(e,t,o){if(!t)return;const i=Ji(),n=be(()=>{const{value:s}=t;if(!s)return;const c=s[e];if(c)return c}),r=()=>{Go(()=>{const{value:s}=o,c=`${s}${e}Rtl`;if(OC(c,i))return;const{value:u}=n;u&&u.style.mount({id:c,head:!0,anchorMetaName:Yr,props:{bPrefix:s?`.${s}-`:void 0},ssr:i})})};return i?r():Zi(r),n}function er(e,t){return Ne({name:dP(e),setup(){var o;const i=(o=Xe(Yo,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var n;const r=(n=i==null?void 0:i.value)===null||n===void 0?void 0:n[e];return r?r():t}}})}const kE=Ne({name:"Checkmark",render(){return le("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},le("g",{fill:"none"},le("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),TE=er("close",le("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},le("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},le("g",{fill:"currentColor","fill-rule":"nonzero"},le("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),PE=Ne({name:"Eye",render(){return le("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},le("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),le("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),AE=Ne({name:"EyeOff",render(){return le("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},le("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),le("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),le("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),le("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),le("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),ME=Ne({name:"Empty",render(){return le("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),le("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Zd=er("error",le("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},le("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},le("g",{"fill-rule":"nonzero"},le("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),va=er("info",le("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},le("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},le("g",{"fill-rule":"nonzero"},le("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Jd=er("success",le("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},le("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},le("g",{"fill-rule":"nonzero"},le("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Qd=er("warning",le("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},le("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},le("g",{"fill-rule":"nonzero"},le("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),EE=Ne({name:"ChevronDown",render(){return le("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),OE=er("clear",le("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},le("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},le("g",{fill:"currentColor","fill-rule":"nonzero"},le("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Xa=Ne({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Zn();return()=>le(Jt,{name:"icon-switch-transition",appear:o.value},t)}}),Ym=Ne({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(c){e.width?c.style.maxWidth=`${c.offsetWidth}px`:c.style.maxHeight=`${c.offsetHeight}px`,c.offsetWidth}function i(c){e.width?c.style.maxWidth="0":c.style.maxHeight="0",c.offsetWidth;const{onLeave:u}=e;u&&u()}function n(c){e.width?c.style.maxWidth="":c.style.maxHeight="";const{onAfterLeave:u}=e;u&&u()}function r(c){if(c.style.transition="none",e.width){const u=c.offsetWidth;c.style.maxWidth="0",c.offsetWidth,c.style.transition="",c.style.maxWidth=`${u}px`}else if(e.reverse)c.style.maxHeight=`${c.offsetHeight}px`,c.offsetHeight,c.style.transition="",c.style.maxHeight="0";else{const u=c.offsetHeight;c.style.maxHeight="0",c.offsetWidth,c.style.transition="",c.style.maxHeight=`${u}px`}c.offsetWidth}function s(c){var u;e.width?c.style.maxWidth="":e.reverse||(c.style.maxHeight=""),(u=e.onAfterEnter)===null||u===void 0||u.call(e)}return()=>{const{group:c,width:u,appear:f,mode:p}=e,d=c?L1:Jt,v={name:u?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:f,onEnter:r,onAfterEnter:s,onBeforeLeave:o,onLeave:i,onAfterLeave:n};return c||(v.mode=p),le(d,v,t)}}}),RE=Me("base-icon",`
  31. height: 1em;
  32. width: 1em;
  33. line-height: 1em;
  34. text-align: center;
  35. display: inline-block;
  36. position: relative;
  37. fill: currentColor;
  38. transform: translateZ(0);
  39. `,[Ce("svg",`
  40. height: 1em;
  41. width: 1em;
  42. `)]),Eo=Ne({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Qn("-base-icon",RE,et(e,"clsPrefix"))},render(){return le("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),LE=Me("base-close",`
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. cursor: pointer;
  47. background-color: transparent;
  48. color: var(--n-close-icon-color);
  49. border-radius: var(--n-close-border-radius);
  50. height: var(--n-close-size);
  51. width: var(--n-close-size);
  52. font-size: var(--n-close-icon-size);
  53. outline: none;
  54. border: none;
  55. position: relative;
  56. padding: 0;
  57. `,[Oe("absolute",`
  58. height: var(--n-close-icon-size);
  59. width: var(--n-close-icon-size);
  60. `),Ce("&::before",`
  61. content: "";
  62. position: absolute;
  63. width: var(--n-close-size);
  64. height: var(--n-close-size);
  65. left: 50%;
  66. top: 50%;
  67. transform: translateY(-50%) translateX(-50%);
  68. transition: inherit;
  69. border-radius: inherit;
  70. `),_t("disabled",[Ce("&:hover",`
  71. color: var(--n-close-icon-color-hover);
  72. `),Ce("&:hover::before",`
  73. background-color: var(--n-close-color-hover);
  74. `),Ce("&:focus::before",`
  75. background-color: var(--n-close-color-hover);
  76. `),Ce("&:active",`
  77. color: var(--n-close-icon-color-pressed);
  78. `),Ce("&:active::before",`
  79. background-color: var(--n-close-color-pressed);
  80. `)]),Oe("disabled",`
  81. cursor: not-allowed;
  82. color: var(--n-close-icon-color-disabled);
  83. background-color: transparent;
  84. `),Oe("round",[Ce("&::before",`
  85. border-radius: 50%;
  86. `)])]),ss=Ne({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Qn("-base-close",LE,et(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:i,round:n,isButtonTag:r}=e;return le(r?"button":"div",{type:r?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:r?void 0:"button",disabled:o,class:[`${t}-base-close`,i&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:c=>{e.focusable||c.preventDefault()},onClick:e.onClick},le(Eo,{clsPrefix:t},{default:()=>le(TE,null)}))}}}),DE=Ne({props:{onFocus:Function,onBlur:Function},setup(e){return()=>le("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:IE}=Qo;function Kr({originalTransform:e="",left:t=0,top:o=0,transition:i=`all .3s ${IE} !important`}={}){return[Ce("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:o,opacity:0}),Ce("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),Ce("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:i})]}const BE=Ce([Ce("@keyframes loading-container-rotate",`
  87. to {
  88. -webkit-transform: rotate(360deg);
  89. transform: rotate(360deg);
  90. }
  91. `),Ce("@keyframes loading-layer-rotate",`
  92. 12.5% {
  93. -webkit-transform: rotate(135deg);
  94. transform: rotate(135deg);
  95. }
  96. 25% {
  97. -webkit-transform: rotate(270deg);
  98. transform: rotate(270deg);
  99. }
  100. 37.5% {
  101. -webkit-transform: rotate(405deg);
  102. transform: rotate(405deg);
  103. }
  104. 50% {
  105. -webkit-transform: rotate(540deg);
  106. transform: rotate(540deg);
  107. }
  108. 62.5% {
  109. -webkit-transform: rotate(675deg);
  110. transform: rotate(675deg);
  111. }
  112. 75% {
  113. -webkit-transform: rotate(810deg);
  114. transform: rotate(810deg);
  115. }
  116. 87.5% {
  117. -webkit-transform: rotate(945deg);
  118. transform: rotate(945deg);
  119. }
  120. 100% {
  121. -webkit-transform: rotate(1080deg);
  122. transform: rotate(1080deg);
  123. }
  124. `),Ce("@keyframes loading-left-spin",`
  125. from {
  126. -webkit-transform: rotate(265deg);
  127. transform: rotate(265deg);
  128. }
  129. 50% {
  130. -webkit-transform: rotate(130deg);
  131. transform: rotate(130deg);
  132. }
  133. to {
  134. -webkit-transform: rotate(265deg);
  135. transform: rotate(265deg);
  136. }
  137. `),Ce("@keyframes loading-right-spin",`
  138. from {
  139. -webkit-transform: rotate(-265deg);
  140. transform: rotate(-265deg);
  141. }
  142. 50% {
  143. -webkit-transform: rotate(-130deg);
  144. transform: rotate(-130deg);
  145. }
  146. to {
  147. -webkit-transform: rotate(-265deg);
  148. transform: rotate(-265deg);
  149. }
  150. `),Me("base-loading",`
  151. position: relative;
  152. line-height: 0;
  153. width: 1em;
  154. height: 1em;
  155. `,[xe("transition-wrapper",`
  156. position: absolute;
  157. width: 100%;
  158. height: 100%;
  159. `,[Kr()]),xe("container",`
  160. display: inline-flex;
  161. position: relative;
  162. direction: ltr;
  163. line-height: 0;
  164. animation: loading-container-rotate 1568.2352941176ms linear infinite;
  165. font-size: 0;
  166. letter-spacing: 0;
  167. white-space: nowrap;
  168. opacity: 1;
  169. width: 100%;
  170. height: 100%;
  171. `,[xe("svg",`
  172. stroke: var(--n-text-color);
  173. fill: transparent;
  174. position: absolute;
  175. height: 100%;
  176. overflow: hidden;
  177. `),xe("container-layer",`
  178. position: absolute;
  179. width: 100%;
  180. height: 100%;
  181. animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  182. `,[xe("container-layer-left",`
  183. display: inline-flex;
  184. position: relative;
  185. width: 50%;
  186. height: 100%;
  187. overflow: hidden;
  188. `,[xe("svg",`
  189. animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  190. width: 200%;
  191. `)]),xe("container-layer-patch",`
  192. position: absolute;
  193. top: 0;
  194. left: 47.5%;
  195. box-sizing: border-box;
  196. width: 5%;
  197. height: 100%;
  198. overflow: hidden;
  199. `,[xe("svg",`
  200. left: -900%;
  201. width: 2000%;
  202. transform: rotate(180deg);
  203. `)]),xe("container-layer-right",`
  204. display: inline-flex;
  205. position: relative;
  206. width: 50%;
  207. height: 100%;
  208. overflow: hidden;
  209. `,[xe("svg",`
  210. animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  211. left: -100%;
  212. width: 200%;
  213. `)])])]),xe("placeholder",`
  214. position: absolute;
  215. left: 50%;
  216. top: 50%;
  217. transform: translateX(-50%) translateY(-50%);
  218. `,[Kr({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),_E={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},qa=Ne({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},_E),setup(e){Qn("-base-loading",BE,et(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:i,scale:n}=this,r=t/n;return le("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},le(Xa,null,{default:()=>this.show?le("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},le("div",{class:`${e}-base-loading__container`},le("div",{class:`${e}-base-loading__container-layer`},le("div",{class:`${e}-base-loading__container-layer-left`},le("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*r} ${2*r}`,xmlns:"http://www.w3.org/2000/svg",style:{color:i}},le("circle",{fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:r,cy:r,r:t-o/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),le("div",{class:`${e}-base-loading__container-layer-patch`},le("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*r} ${2*r}`,xmlns:"http://www.w3.org/2000/svg",style:{color:i}},le("circle",{fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:r,cy:r,r:t-o/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),le("div",{class:`${e}-base-loading__container-layer-right`},le("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*r} ${2*r}`,xmlns:"http://www.w3.org/2000/svg",style:{color:i}},le("circle",{fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:r,cy:r,r:t-o/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):le("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function bf(e){return Array.isArray(e)?e:[e]}const _c={STOP:"STOP"};function Km(e,t){const o=t(e);e.children!==void 0&&o!==_c.STOP&&e.children.forEach(i=>Km(i,t))}function zE(e,t={}){const{preserveGroup:o=!1}=t,i=[],n=o?s=>{s.isLeaf||(i.push(s.key),r(s.children))}:s=>{s.isLeaf||(s.isGroup||i.push(s.key),r(s.children))};function r(s){s.forEach(n)}return r(e),i}function $E(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function FE(e){return e.children}function HE(e){return e.key}function jE(){return!1}function NE(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function WE(e){return e.disabled===!0}function UE(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Il(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Bl(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function GE(e,t){const o=new Set(e);return t.forEach(i=>{o.has(i)||o.add(i)}),Array.from(o)}function VE(e,t){const o=new Set(e);return t.forEach(i=>{o.has(i)&&o.delete(i)}),Array.from(o)}function XE(e){return(e==null?void 0:e.type)==="group"}function qE(e){const t=new Map;return e.forEach((o,i)=>{t.set(o.key,i)}),o=>{var i;return(i=t.get(o))!==null&&i!==void 0?i:null}}class YE extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function KE(e,t,o,i){return xa(t.concat(e),o,i,!1)}function ZE(e,t){const o=new Set;return e.forEach(i=>{const n=t.treeNodeMap.get(i);if(n!==void 0){let r=n.parent;for(;r!==null&&!(r.disabled||o.has(r.key));)o.add(r.key),r=r.parent}}),o}function JE(e,t,o,i){const n=xa(t,o,i,!1),r=xa(e,o,i,!0),s=ZE(e,o),c=[];return n.forEach(u=>{(r.has(u)||s.has(u))&&c.push(u)}),c.forEach(u=>n.delete(u)),n}function _l(e,t){const{checkedKeys:o,keysToCheck:i,keysToUncheck:n,indeterminateKeys:r,cascade:s,leafOnly:c,checkStrategy:u,allowNotLoaded:f}=e;if(!s)return i!==void 0?{checkedKeys:GE(o,i),indeterminateKeys:Array.from(r)}:n!==void 0?{checkedKeys:VE(o,n),indeterminateKeys:Array.from(r)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(r)};const{levelTreeNodeMap:p}=t;let d;n!==void 0?d=JE(n,o,t,f):i!==void 0?d=KE(i,o,t,f):d=xa(o,t,f,!1);const v=u==="parent",x=u==="child"||c,g=d,k=new Set,M=Math.max.apply(null,Array.from(p.keys()));for(let y=M;y>=0;y-=1){const T=y===0,I=p.get(y);for(const A of I){if(A.isLeaf)continue;const{key:R,shallowLoaded:z}=A;if(x&&z&&A.children.forEach(w=>{!w.disabled&&!w.isLeaf&&w.shallowLoaded&&g.has(w.key)&&g.delete(w.key)}),A.disabled||!z)continue;let P=!0,L=!1,S=!0;for(const w of A.children){const E=w.key;if(!w.disabled){if(S&&(S=!1),g.has(E))L=!0;else if(k.has(E)){L=!0,P=!1;break}else if(P=!1,L)break}}P&&!S?(v&&A.children.forEach(w=>{!w.disabled&&g.has(w.key)&&g.delete(w.key)}),g.add(R)):L&&k.add(R),T&&x&&g.has(R)&&g.delete(R)}}return{checkedKeys:Array.from(g),indeterminateKeys:Array.from(k)}}function xa(e,t,o,i){const{treeNodeMap:n,getChildren:r}=t,s=new Set,c=new Set(e);return e.forEach(u=>{const f=n.get(u);f!==void 0&&Km(f,p=>{if(p.disabled)return _c.STOP;const{key:d}=p;if(!s.has(d)&&(s.add(d),c.add(d),UE(p.rawNode,r))){if(i)return _c.STOP;if(!o)throw new YE}})}),c}function QE(e,{includeGroup:t=!1,includeSelf:o=!0},i){var n;const r=i.treeNodeMap;let s=e==null?null:(n=r.get(e))!==null&&n!==void 0?n:null;const c={keyPath:[],treeNodePath:[],treeNode:s};if(s!=null&&s.ignored)return c.treeNode=null,c;for(;s;)!s.ignored&&(t||!s.isGroup)&&c.treeNodePath.push(s),s=s.parent;return c.treeNodePath.reverse(),o||c.treeNodePath.pop(),c.keyPath=c.treeNodePath.map(u=>u.key),c}function e2(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function t2(e,t){const o=e.siblings,i=o.length,{index:n}=e;return t?o[(n+1)%i]:n===o.length-1?null:o[n+1]}function yf(e,t,{loop:o=!1,includeDisabled:i=!1}={}){const n=t==="prev"?o2:t2,r={reverse:t==="prev"};let s=!1,c=null;function u(f){if(f!==null){if(f===e){if(!s)s=!0;else if(!e.disabled&&!e.isGroup){c=e;return}}else if((!f.disabled||i)&&!f.ignored&&!f.isGroup){c=f;return}if(f.isGroup){const p=eh(f,r);p!==null?c=p:u(n(f,o))}else{const p=n(f,!1);if(p!==null)u(p);else{const d=i2(f);d!=null&&d.isGroup?u(n(d,o)):o&&u(n(f,!0))}}}}return u(e),c}function o2(e,t){const o=e.siblings,i=o.length,{index:n}=e;return t?o[(n-1+i)%i]:n===0?null:o[n-1]}function i2(e){return e.parent}function eh(e,t={}){const{reverse:o=!1}=t,{children:i}=e;if(i){const{length:n}=i,r=o?n-1:0,s=o?-1:n,c=o?-1:1;for(let u=r;u!==s;u+=c){const f=i[u];if(!f.disabled&&!f.ignored)if(f.isGroup){const p=eh(f,t);if(p!==null)return p}else return f}}return null}const n2={getChild(){return this.ignored?null:eh(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return yf(this,"next",e)},getPrev(e={}){return yf(this,"prev",e)}};function r2(e,t){const o=t?new Set(t):void 0,i=[];function n(r){r.forEach(s=>{i.push(s),!(s.isLeaf||!s.children||s.ignored)&&(s.isGroup||o===void 0||o.has(s.key))&&n(s.children)})}return n(e),i}function s2(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function Zm(e,t,o,i,n,r=null,s=0){const c=[];return e.forEach((u,f)=>{var p;const d=Object.create(i);if(d.rawNode=u,d.siblings=c,d.level=s,d.index=f,d.isFirstChild=f===0,d.isLastChild=f+1===e.length,d.parent=r,!d.ignored){const v=n(u);Array.isArray(v)&&(d.children=Zm(v,t,o,i,n,d,s+1))}c.push(d),t.set(d.key,d),o.has(s)||o.set(s,[]),(p=o.get(s))===null||p===void 0||p.push(d)}),c}function a2(e,t={}){var o;const i=new Map,n=new Map,{getDisabled:r=WE,getIgnored:s=jE,getIsGroup:c=XE,getKey:u=HE}=t,f=(o=t.getChildren)!==null&&o!==void 0?o:FE,p=t.ignoreEmptyChildren?A=>{const R=f(A);return Array.isArray(R)?R.length?R:null:R}:f,d=Object.assign({get key(){return u(this.rawNode)},get disabled(){return r(this.rawNode)},get isGroup(){return c(this.rawNode)},get isLeaf(){return $E(this.rawNode,p)},get shallowLoaded(){return NE(this.rawNode,p)},get ignored(){return s(this.rawNode)},contains(A){return s2(this,A)}},n2),v=Zm(e,i,n,d,p);function x(A){if(A==null)return null;const R=i.get(A);return R&&!R.isGroup&&!R.ignored?R:null}function g(A){if(A==null)return null;const R=i.get(A);return R&&!R.ignored?R:null}function k(A,R){const z=g(A);return z?z.getPrev(R):null}function M(A,R){const z=g(A);return z?z.getNext(R):null}function y(A){const R=g(A);return R?R.getParent():null}function T(A){const R=g(A);return R?R.getChild():null}const I={treeNodes:v,treeNodeMap:i,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:p,getFlattenedNodes(A){return r2(v,A)},getNode:x,getPrev:k,getNext:M,getParent:y,getChild:T,getFirstAvailableNode(){return e2(v)},getPath(A,R={}){return QE(A,R,I)},getCheckedKeys(A,R={}){const{cascade:z=!0,leafOnly:P=!1,checkStrategy:L="all",allowNotLoaded:S=!1}=R;return _l({checkedKeys:Il(A),indeterminateKeys:Bl(A),cascade:z,leafOnly:P,checkStrategy:L,allowNotLoaded:S},I)},check(A,R,z={}){const{cascade:P=!0,leafOnly:L=!1,checkStrategy:S="all",allowNotLoaded:w=!1}=z;return _l({checkedKeys:Il(R),indeterminateKeys:Bl(R),keysToCheck:A==null?[]:bf(A),cascade:P,leafOnly:L,checkStrategy:S,allowNotLoaded:w},I)},uncheck(A,R,z={}){const{cascade:P=!0,leafOnly:L=!1,checkStrategy:S="all",allowNotLoaded:w=!1}=z;return _l({checkedKeys:Il(R),indeterminateKeys:Bl(R),keysToUncheck:A==null?[]:bf(A),cascade:P,leafOnly:L,checkStrategy:S,allowNotLoaded:w},I)},getNonLeafKeys(A={}){return zE(v,A)}};return I}const He={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},l2=Xo(He.neutralBase),Jm=Xo(He.neutralInvertBase),c2="rgba("+Jm.slice(0,3).join(", ")+", ";function rt(e){return c2+String(e)+")"}function d2(e){const t=Array.from(Jm);return t[3]=Number(e),We(l2,t)}const h2=Object.assign(Object.assign({name:"common"},Qo),{baseColor:He.neutralBase,primaryColor:He.primaryDefault,primaryColorHover:He.primaryHover,primaryColorPressed:He.primaryActive,primaryColorSuppl:He.primarySuppl,infoColor:He.infoDefault,infoColorHover:He.infoHover,infoColorPressed:He.infoActive,infoColorSuppl:He.infoSuppl,successColor:He.successDefault,successColorHover:He.successHover,successColorPressed:He.successActive,successColorSuppl:He.successSuppl,warningColor:He.warningDefault,warningColorHover:He.warningHover,warningColorPressed:He.warningActive,warningColorSuppl:He.warningSuppl,errorColor:He.errorDefault,errorColorHover:He.errorHover,errorColorPressed:He.errorActive,errorColorSuppl:He.errorSuppl,textColorBase:He.neutralTextBase,textColor1:rt(He.alpha1),textColor2:rt(He.alpha2),textColor3:rt(He.alpha3),textColorDisabled:rt(He.alpha4),placeholderColor:rt(He.alpha4),placeholderColorDisabled:rt(He.alpha5),iconColor:rt(He.alpha4),iconColorDisabled:rt(He.alpha5),iconColorHover:rt(Number(He.alpha4)*1.25),iconColorPressed:rt(Number(He.alpha4)*.8),opacity1:He.alpha1,opacity2:He.alpha2,opacity3:He.alpha3,opacity4:He.alpha4,opacity5:He.alpha5,dividerColor:rt(He.alphaDivider),borderColor:rt(He.alphaBorder),closeIconColorHover:rt(Number(He.alphaClose)),closeIconColor:rt(Number(He.alphaClose)),closeIconColorPressed:rt(Number(He.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:rt(He.alpha4),clearColorHover:kt(rt(He.alpha4),{alpha:1.25}),clearColorPressed:kt(rt(He.alpha4),{alpha:.8}),scrollbarColor:rt(He.alphaScrollbar),scrollbarColorHover:rt(He.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:rt(He.alphaProgressRail),railColor:rt(He.alphaRail),popoverColor:He.neutralPopover,tableColor:He.neutralCard,cardColor:He.neutralCard,modalColor:He.neutralModal,bodyColor:He.neutralBody,tagColor:d2(He.alphaTag),avatarColor:rt(He.alphaAvatar),invertedColor:He.neutralBase,inputColor:rt(He.alphaInput),codeColor:rt(He.alphaCode),tabColor:rt(He.alphaTab),actionColor:rt(He.alphaAction),tableHeaderColor:rt(He.alphaAction),hoverColor:rt(He.alphaPending),tableColorHover:rt(He.alphaTablePending),tableColorStriped:rt(He.alphaTableStriped),pressedColor:rt(He.alphaPressed),opacityDisabled:He.alphaDisabled,inputColorDisabled:rt(He.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),$e=h2,Ge={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},u2=Xo(Ge.neutralBase),Qm=Xo(Ge.neutralInvertBase),f2="rgba("+Qm.slice(0,3).join(", ")+", ";function Cf(e){return f2+String(e)+")"}function Wt(e){const t=Array.from(Qm);return t[3]=Number(e),We(u2,t)}const p2=Object.assign(Object.assign({name:"common"},Qo),{baseColor:Ge.neutralBase,primaryColor:Ge.primaryDefault,primaryColorHover:Ge.primaryHover,primaryColorPressed:Ge.primaryActive,primaryColorSuppl:Ge.primarySuppl,infoColor:Ge.infoDefault,infoColorHover:Ge.infoHover,infoColorPressed:Ge.infoActive,infoColorSuppl:Ge.infoSuppl,successColor:Ge.successDefault,successColorHover:Ge.successHover,successColorPressed:Ge.successActive,successColorSuppl:Ge.successSuppl,warningColor:Ge.warningDefault,warningColorHover:Ge.warningHover,warningColorPressed:Ge.warningActive,warningColorSuppl:Ge.warningSuppl,errorColor:Ge.errorDefault,errorColorHover:Ge.errorHover,errorColorPressed:Ge.errorActive,errorColorSuppl:Ge.errorSuppl,textColorBase:Ge.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Wt(Ge.alpha4),placeholderColor:Wt(Ge.alpha4),placeholderColorDisabled:Wt(Ge.alpha5),iconColor:Wt(Ge.alpha4),iconColorHover:kt(Wt(Ge.alpha4),{lightness:.75}),iconColorPressed:kt(Wt(Ge.alpha4),{lightness:.9}),iconColorDisabled:Wt(Ge.alpha5),opacity1:Ge.alpha1,opacity2:Ge.alpha2,opacity3:Ge.alpha3,opacity4:Ge.alpha4,opacity5:Ge.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Wt(Number(Ge.alphaClose)),closeIconColorHover:Wt(Number(Ge.alphaClose)),closeIconColorPressed:Wt(Number(Ge.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Wt(Ge.alpha4),clearColorHover:kt(Wt(Ge.alpha4),{lightness:.75}),clearColorPressed:kt(Wt(Ge.alpha4),{lightness:.9}),scrollbarColor:Cf(Ge.alphaScrollbar),scrollbarColorHover:Cf(Ge.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Wt(Ge.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Ge.neutralPopover,tableColor:Ge.neutralCard,cardColor:Ge.neutralCard,modalColor:Ge.neutralModal,bodyColor:Ge.neutralBody,tagColor:"#eee",avatarColor:Wt(Ge.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Wt(Ge.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Ge.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Qe=p2,g2={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},ev=e=>{const{textColorDisabled:t,iconColor:o,textColor2:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},g2),{fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:o,extraTextColor:i})},m2={name:"Empty",common:Qe,self:ev},Ya=m2,v2={name:"Empty",common:$e,self:ev},nn=v2,x2=Me("empty",`
  219. display: flex;
  220. flex-direction: column;
  221. align-items: center;
  222. font-size: var(--n-font-size);
  223. `,[xe("icon",`
  224. width: var(--n-icon-size);
  225. height: var(--n-icon-size);
  226. font-size: var(--n-icon-size);
  227. line-height: var(--n-icon-size);
  228. color: var(--n-icon-color);
  229. transition:
  230. color .3s var(--n-bezier);
  231. `,[Ce("+",[xe("description",`
  232. margin-top: 8px;
  233. `)])]),xe("description",`
  234. transition: color .3s var(--n-bezier);
  235. color: var(--n-text-color);
  236. `),xe("extra",`
  237. text-align: center;
  238. transition: color .3s var(--n-bezier);
  239. margin-top: 12px;
  240. color: var(--n-extra-text-color);
  241. `)]),b2=Object.assign(Object.assign({},Je.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),y2=Ne({name:"Empty",props:b2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Rt(e),i=Je("Empty","-empty",x2,Ya,e,t),{localeRef:n}=Kd("Empty"),r=Xe(Yo,null),s=be(()=>{var p,d,v;return(p=e.description)!==null&&p!==void 0?p:(v=(d=r==null?void 0:r.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||v===void 0?void 0:v.description}),c=be(()=>{var p,d;return((d=(p=r==null?void 0:r.mergedComponentPropsRef.value)===null||p===void 0?void 0:p.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>le(ME,null))}),u=be(()=>{const{size:p}=e,{common:{cubicBezierEaseInOut:d},self:{[ze("iconSize",p)]:v,[ze("fontSize",p)]:x,textColor:g,iconColor:k,extraTextColor:M}}=i.value;return{"--n-icon-size":v,"--n-font-size":x,"--n-bezier":d,"--n-text-color":g,"--n-icon-color":k,"--n-extra-text-color":M}}),f=o?jt("empty",be(()=>{let p="";const{size:d}=e;return p+=d[0],p}),u,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:c,localizedDescription:be(()=>s.value||n.value.description),cssVars:o?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),le("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?le("div",{class:`${t}-empty__icon`},e.icon?e.icon():le(Eo,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?le("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?le("div",{class:`${t}-empty__extra`},e.extra()):null)}}),tv=e=>{const{scrollbarColor:t,scrollbarColorHover:o}=e;return{color:t,colorHover:o}},C2={name:"Scrollbar",common:Qe,self:tv},ei=C2,w2={name:"Scrollbar",common:$e,self:tv},Qt=w2,{cubicBezierEaseInOut:wf}=Qo;function th({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:i=wf,leaveCubicBezier:n=wf}={}){return[Ce(`&.${e}-transition-enter-active`,{transition:`all ${t} ${i}!important`}),Ce(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),Ce(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Ce(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const S2=Me("scrollbar",`
  242. overflow: hidden;
  243. position: relative;
  244. z-index: auto;
  245. height: 100%;
  246. width: 100%;
  247. `,[Ce(">",[Me("scrollbar-container",`
  248. width: 100%;
  249. overflow: scroll;
  250. height: 100%;
  251. max-height: inherit;
  252. scrollbar-width: none;
  253. `,[Ce("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  254. width: 0;
  255. height: 0;
  256. display: none;
  257. `),Ce(">",[Me("scrollbar-content",`
  258. box-sizing: border-box;
  259. min-width: 100%;
  260. `)])])]),Ce(">, +",[Me("scrollbar-rail",`
  261. position: absolute;
  262. pointer-events: none;
  263. user-select: none;
  264. -webkit-user-select: none;
  265. `,[Oe("horizontal",`
  266. left: 2px;
  267. right: 2px;
  268. bottom: 4px;
  269. height: var(--n-scrollbar-height);
  270. `,[Ce(">",[xe("scrollbar",`
  271. height: var(--n-scrollbar-height);
  272. border-radius: var(--n-scrollbar-border-radius);
  273. right: 0;
  274. `)])]),Oe("vertical",`
  275. right: 4px;
  276. top: 2px;
  277. bottom: 2px;
  278. width: var(--n-scrollbar-width);
  279. `,[Ce(">",[xe("scrollbar",`
  280. width: var(--n-scrollbar-width);
  281. border-radius: var(--n-scrollbar-border-radius);
  282. bottom: 0;
  283. `)])]),Oe("disabled",[Ce(">",[xe("scrollbar",{pointerEvents:"none"})])]),Ce(">",[xe("scrollbar",`
  284. position: absolute;
  285. cursor: pointer;
  286. pointer-events: all;
  287. background-color: var(--n-scrollbar-color);
  288. transition: background-color .2s var(--n-scrollbar-bezier);
  289. `,[th(),Ce("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),k2=Object.assign(Object.assign({},Je.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),ov=Ne({name:"Scrollbar",props:k2,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:i}=Rt(e),n=on("Scrollbar",i,t),r=ke(null),s=ke(null),c=ke(null),u=ke(null),f=ke(null),p=ke(null),d=ke(null),v=ke(null),x=ke(null),g=ke(null),k=ke(null),M=ke(0),y=ke(0),T=ke(!1),I=ke(!1);let A=!1,R=!1,z,P,L=0,S=0,w=0,E=0;const m=ZC(),C=be(()=>{const{value:de}=v,{value:fe}=p,{value:we}=g;return de===null||fe===null||we===null?0:Math.min(de,we*de/fe+e.size*1.5)}),a=be(()=>`${C.value}px`),l=be(()=>{const{value:de}=x,{value:fe}=d,{value:we}=k;return de===null||fe===null||we===null?0:we*de/fe+e.size*1.5}),h=be(()=>`${l.value}px`),b=be(()=>{const{value:de}=v,{value:fe}=M,{value:we}=p,{value:Ie}=g;if(de===null||we===null||Ie===null)return 0;{const Ae=we-de;return Ae?fe/Ae*(Ie-C.value):0}}),B=be(()=>`${b.value}px`),F=be(()=>{const{value:de}=x,{value:fe}=y,{value:we}=d,{value:Ie}=k;if(de===null||we===null||Ie===null)return 0;{const Ae=we-de;return Ae?fe/Ae*(Ie-l.value):0}}),O=be(()=>`${F.value}px`),W=be(()=>{const{value:de}=v,{value:fe}=p;return de!==null&&fe!==null&&fe>de}),X=be(()=>{const{value:de}=x,{value:fe}=d;return de!==null&&fe!==null&&fe>de}),Q=be(()=>{const{trigger:de}=e;return de==="none"||T.value}),ee=be(()=>{const{trigger:de}=e;return de==="none"||I.value}),Y=be(()=>{const{container:de}=e;return de?de():s.value}),D=be(()=>{const{content:de}=e;return de?de():c.value}),N=vm(()=>{e.container||K({top:M.value,left:y.value})}),V=()=>{N.isDeactivated||re()},j=de=>{if(N.isDeactivated)return;const{onResize:fe}=e;fe&&fe(de),re()},K=(de,fe)=>{if(!e.scrollable)return;if(typeof de=="number"){$(fe??0,de,0,!1,"auto");return}const{left:we,top:Ie,index:Ae,elSize:ye,position:Be,behavior:Fe,el:_e,debounce:Ue=!0}=de;(we!==void 0||Ie!==void 0)&&$(we??0,Ie??0,0,!1,Fe),_e!==void 0?$(0,_e.offsetTop,_e.offsetHeight,Ue,Fe):Ae!==void 0&&ye!==void 0?$(0,Ae*ye,ye,Ue,Fe):Be==="bottom"?$(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):Be==="top"&&$(0,0,0,!1,Fe)},_=(de,fe)=>{if(!e.scrollable)return;const{value:we}=Y;we&&(typeof de=="object"?we.scrollBy(de):we.scrollBy(de,fe||0))};function $(de,fe,we,Ie,Ae){const{value:ye}=Y;if(ye){if(Ie){const{scrollTop:Be,offsetHeight:Fe}=ye;if(fe>Be){fe+we<=Be+Fe||ye.scrollTo({left:de,top:fe+we-Fe,behavior:Ae});return}}ye.scrollTo({left:de,top:fe,behavior:Ae})}}function H(){se(),ce(),re()}function q(){Z()}function Z(){J(),te()}function J(){P!==void 0&&window.clearTimeout(P),P=window.setTimeout(()=>{I.value=!1},e.duration)}function te(){z!==void 0&&window.clearTimeout(z),z=window.setTimeout(()=>{T.value=!1},e.duration)}function se(){z!==void 0&&window.clearTimeout(z),T.value=!0}function ce(){P!==void 0&&window.clearTimeout(P),I.value=!0}function ne(de){const{onScroll:fe}=e;fe&&fe(de),oe()}function oe(){const{value:de}=Y;de&&(M.value=de.scrollTop,y.value=de.scrollLeft*(n!=null&&n.value?-1:1))}function U(){const{value:de}=D;de&&(p.value=de.offsetHeight,d.value=de.offsetWidth);const{value:fe}=Y;fe&&(v.value=fe.offsetHeight,x.value=fe.offsetWidth);const{value:we}=f,{value:Ie}=u;we&&(k.value=we.offsetWidth),Ie&&(g.value=Ie.offsetHeight)}function G(){const{value:de}=Y;de&&(M.value=de.scrollTop,y.value=de.scrollLeft*(n!=null&&n.value?-1:1),v.value=de.offsetHeight,x.value=de.offsetWidth,p.value=de.scrollHeight,d.value=de.scrollWidth);const{value:fe}=f,{value:we}=u;fe&&(k.value=fe.offsetWidth),we&&(g.value=we.offsetHeight)}function re(){e.scrollable&&(e.useUnifiedContainer?G():(U(),oe()))}function ie(de){var fe;return!(!((fe=r.value)===null||fe===void 0)&&fe.contains(_n(de)))}function ae(de){de.preventDefault(),de.stopPropagation(),R=!0,Et("mousemove",window,ue,!0),Et("mouseup",window,he,!0),S=y.value,w=n!=null&&n.value?window.innerWidth-de.clientX:de.clientX}function ue(de){if(!R)return;z!==void 0&&window.clearTimeout(z),P!==void 0&&window.clearTimeout(P);const{value:fe}=x,{value:we}=d,{value:Ie}=l;if(fe===null||we===null)return;const ye=(n!=null&&n.value?window.innerWidth-de.clientX-w:de.clientX-w)*(we-fe)/(fe-Ie),Be=we-fe;let Fe=S+ye;Fe=Math.min(Be,Fe),Fe=Math.max(Fe,0);const{value:_e}=Y;if(_e){_e.scrollLeft=Fe*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:Ue}=e;Ue&&Ue(Fe)}}function he(de){de.preventDefault(),de.stopPropagation(),bt("mousemove",window,ue,!0),bt("mouseup",window,he,!0),R=!1,re(),ie(de)&&Z()}function me(de){de.preventDefault(),de.stopPropagation(),A=!0,Et("mousemove",window,ve,!0),Et("mouseup",window,pe,!0),L=M.value,E=de.clientY}function ve(de){if(!A)return;z!==void 0&&window.clearTimeout(z),P!==void 0&&window.clearTimeout(P);const{value:fe}=v,{value:we}=p,{value:Ie}=C;if(fe===null||we===null)return;const ye=(de.clientY-E)*(we-fe)/(fe-Ie),Be=we-fe;let Fe=L+ye;Fe=Math.min(Be,Fe),Fe=Math.max(Fe,0);const{value:_e}=Y;_e&&(_e.scrollTop=Fe)}function pe(de){de.preventDefault(),de.stopPropagation(),bt("mousemove",window,ve,!0),bt("mouseup",window,pe,!0),A=!1,re(),ie(de)&&Z()}Go(()=>{const{value:de}=X,{value:fe}=W,{value:we}=t,{value:Ie}=f,{value:Ae}=u;Ie&&(de?Ie.classList.remove(`${we}-scrollbar-rail--disabled`):Ie.classList.add(`${we}-scrollbar-rail--disabled`)),Ae&&(fe?Ae.classList.remove(`${we}-scrollbar-rail--disabled`):Ae.classList.add(`${we}-scrollbar-rail--disabled`))}),Pt(()=>{e.container||re()}),Ot(()=>{z!==void 0&&window.clearTimeout(z),P!==void 0&&window.clearTimeout(P),bt("mousemove",window,ve,!0),bt("mouseup",window,pe,!0)});const Se=Je("Scrollbar","-scrollbar",S2,ei,e,t),Le=be(()=>{const{common:{cubicBezierEaseInOut:de,scrollbarBorderRadius:fe,scrollbarHeight:we,scrollbarWidth:Ie},self:{color:Ae,colorHover:ye}}=Se.value;return{"--n-scrollbar-bezier":de,"--n-scrollbar-color":Ae,"--n-scrollbar-color-hover":ye,"--n-scrollbar-border-radius":fe,"--n-scrollbar-width":Ie,"--n-scrollbar-height":we}}),Te=o?jt("scrollbar",void 0,Le,e):void 0;return Object.assign(Object.assign({},{scrollTo:K,scrollBy:_,sync:re,syncUnifiedContainer:G,handleMouseEnterWrapper:H,handleMouseLeaveWrapper:q}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:M,wrapperRef:r,containerRef:s,contentRef:c,yRailRef:u,xRailRef:f,needYBar:W,needXBar:X,yBarSizePx:a,xBarSizePx:h,yBarTopPx:B,xBarLeftPx:O,isShowXBar:Q,isShowYBar:ee,isIos:m,handleScroll:ne,handleContentResize:V,handleContainerResize:j,handleYScrollMouseDown:me,handleXScrollMouseDown:ae,cssVars:o?void 0:Le,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:i,rtlEnabled:n,internalHoistYRail:r}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const s=this.trigger==="none",c=()=>le("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},le(s?Cc:Jt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?le("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var p,d;return(p=this.onRender)===null||p===void 0||p.call(this),le("div",Xn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,n&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:i?void 0:this.handleMouseEnterWrapper,onMouseleave:i?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):le("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},le(Vr,{onResize:this.handleContentResize},{default:()=>le("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),r?null:c(),this.xScrollable&&le("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},le(s?Cc:Jt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?le("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},f=this.container?u():le(Vr,{onResize:this.handleContainerResize},{default:u});return r?le(ut,null,f,c()):f}}),as=ov,T2=ov,P2={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},iv=e=>{const{borderRadius:t,popoverColor:o,textColor3:i,dividerColor:n,textColor2:r,primaryColorPressed:s,textColorDisabled:c,primaryColor:u,opacityDisabled:f,hoverColor:p,fontSizeSmall:d,fontSizeMedium:v,fontSizeLarge:x,fontSizeHuge:g,heightSmall:k,heightMedium:M,heightLarge:y,heightHuge:T}=e;return Object.assign(Object.assign({},P2),{optionFontSizeSmall:d,optionFontSizeMedium:v,optionFontSizeLarge:x,optionFontSizeHuge:g,optionHeightSmall:k,optionHeightMedium:M,optionHeightLarge:y,optionHeightHuge:T,borderRadius:t,color:o,groupHeaderTextColor:i,actionDividerColor:n,optionTextColor:r,optionTextColorPressed:s,optionTextColorDisabled:c,optionTextColorActive:u,optionOpacityDisabled:f,optionCheckColor:u,optionColorPending:p,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:p,actionTextColor:r,loadingColor:u})},A2={name:"InternalSelectMenu",common:Qe,peers:{Scrollbar:ei,Empty:Ya},self:iv},oh=A2,M2={name:"InternalSelectMenu",common:$e,peers:{Scrollbar:Qt,Empty:nn},self:iv},ls=M2;function E2(e,t){return le(Jt,{name:"fade-in-scale-up-transition"},{default:()=>e?le(Eo,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>le(kE)}):null})}const Sf=Ne({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:i,valueSetRef:n,renderLabelRef:r,renderOptionRef:s,labelFieldRef:c,valueFieldRef:u,showCheckmarkRef:f,nodePropsRef:p,handleOptionClick:d,handleOptionMouseEnter:v}=Xe(Ad),x=Kt(()=>{const{value:y}=o;return y?e.tmNode.key===y.key:!1});function g(y){const{tmNode:T}=e;T.disabled||d(y,T)}function k(y){const{tmNode:T}=e;T.disabled||v(y,T)}function M(y){const{tmNode:T}=e,{value:I}=x;T.disabled||I||v(y,T)}return{multiple:i,isGrouped:Kt(()=>{const{tmNode:y}=e,{parent:T}=y;return T&&T.rawNode.type==="group"}),showCheckmark:f,nodeProps:p,isPending:x,isSelected:Kt(()=>{const{value:y}=t,{value:T}=i;if(y===null)return!1;const I=e.tmNode.rawNode[u.value];if(T){const{value:A}=n;return A.has(I)}else return y===I}),labelField:c,renderLabel:r,renderOption:s,handleMouseMove:M,handleMouseEnter:k,handleClick:g}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:i,isGrouped:n,showCheckmark:r,nodeProps:s,renderOption:c,renderLabel:u,handleClick:f,handleMouseEnter:p,handleMouseMove:d}=this,v=E2(o,e),x=u?[u(t,o),r&&v]:[Dt(t[this.labelField],t,o),r&&v],g=s==null?void 0:s(t),k=le("div",Object.assign({},g,{class:[`${e}-base-select-option`,t.class,g==null?void 0:g.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:n,[`${e}-base-select-option--pending`]:i,[`${e}-base-select-option--show-checkmark`]:r}],style:[(g==null?void 0:g.style)||"",t.style||""],onClick:Sl([f,g==null?void 0:g.onClick]),onMouseenter:Sl([p,g==null?void 0:g.onMouseenter]),onMousemove:Sl([d,g==null?void 0:g.onMousemove])}),le("div",{class:`${e}-base-select-option__content`},x));return t.render?t.render({node:k,option:t,selected:o}):c?c({node:k,option:t,selected:o}):k}}),kf=Ne({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:i}=Xe(Ad);return{labelField:o,nodeProps:i,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:i,tmNode:{rawNode:n}}=this,r=i==null?void 0:i(n),s=t?t(n,!1):Dt(n[this.labelField],n,!1),c=le("div",Object.assign({},r,{class:[`${e}-base-select-group-header`,r==null?void 0:r.class]}),s);return n.render?n.render({node:c,option:n}):o?o({node:c,option:n,selected:!1}):c}}),{cubicBezierEaseIn:Tf,cubicBezierEaseOut:Pf}=Qo;function ih({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:i="",originalTransition:n=""}={}){return[Ce("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Tf}, transform ${t} ${Tf} ${n&&","+n}`}),Ce("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Pf}, transform ${t} ${Pf} ${n&&","+n}`}),Ce("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${i} scale(${o})`}),Ce("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${i} scale(1)`})]}const O2=Me("base-select-menu",`
  290. line-height: 1.5;
  291. outline: none;
  292. z-index: 0;
  293. position: relative;
  294. border-radius: var(--n-border-radius);
  295. transition:
  296. background-color .3s var(--n-bezier),
  297. box-shadow .3s var(--n-bezier);
  298. background-color: var(--n-color);
  299. `,[Me("scrollbar",`
  300. max-height: var(--n-height);
  301. `),Me("virtual-list",`
  302. max-height: var(--n-height);
  303. `),Me("base-select-option",`
  304. min-height: var(--n-option-height);
  305. font-size: var(--n-option-font-size);
  306. display: flex;
  307. align-items: center;
  308. `,[xe("content",`
  309. z-index: 1;
  310. white-space: nowrap;
  311. text-overflow: ellipsis;
  312. overflow: hidden;
  313. `)]),Me("base-select-group-header",`
  314. min-height: var(--n-option-height);
  315. font-size: .93em;
  316. display: flex;
  317. align-items: center;
  318. `),Me("base-select-menu-option-wrapper",`
  319. position: relative;
  320. width: 100%;
  321. `),xe("loading, empty",`
  322. display: flex;
  323. padding: 12px 32px;
  324. flex: 1;
  325. justify-content: center;
  326. `),xe("loading",`
  327. color: var(--n-loading-color);
  328. font-size: var(--n-loading-size);
  329. `),xe("action",`
  330. padding: 8px var(--n-option-padding-left);
  331. font-size: var(--n-option-font-size);
  332. transition:
  333. color .3s var(--n-bezier),
  334. border-color .3s var(--n-bezier);
  335. border-top: 1px solid var(--n-action-divider-color);
  336. color: var(--n-action-text-color);
  337. `),Me("base-select-group-header",`
  338. position: relative;
  339. cursor: default;
  340. padding: var(--n-option-padding);
  341. color: var(--n-group-header-text-color);
  342. `),Me("base-select-option",`
  343. cursor: pointer;
  344. position: relative;
  345. padding: var(--n-option-padding);
  346. transition:
  347. color .3s var(--n-bezier),
  348. opacity .3s var(--n-bezier);
  349. box-sizing: border-box;
  350. color: var(--n-option-text-color);
  351. opacity: 1;
  352. `,[Oe("show-checkmark",`
  353. padding-right: calc(var(--n-option-padding-right) + 20px);
  354. `),Ce("&::before",`
  355. content: "";
  356. position: absolute;
  357. left: 4px;
  358. right: 4px;
  359. top: 0;
  360. bottom: 0;
  361. border-radius: var(--n-border-radius);
  362. transition: background-color .3s var(--n-bezier);
  363. `),Ce("&:active",`
  364. color: var(--n-option-text-color-pressed);
  365. `),Oe("grouped",`
  366. padding-left: calc(var(--n-option-padding-left) * 1.5);
  367. `),Oe("pending",[Ce("&::before",`
  368. background-color: var(--n-option-color-pending);
  369. `)]),Oe("selected",`
  370. color: var(--n-option-text-color-active);
  371. `,[Ce("&::before",`
  372. background-color: var(--n-option-color-active);
  373. `),Oe("pending",[Ce("&::before",`
  374. background-color: var(--n-option-color-active-pending);
  375. `)])]),Oe("disabled",`
  376. cursor: not-allowed;
  377. `,[_t("selected",`
  378. color: var(--n-option-text-color-disabled);
  379. `),Oe("selected",`
  380. opacity: var(--n-option-opacity-disabled);
  381. `)]),xe("check",`
  382. font-size: 16px;
  383. position: absolute;
  384. right: calc(var(--n-option-padding-right) - 4px);
  385. top: calc(50% - 7px);
  386. color: var(--n-option-check-color);
  387. transition: color .3s var(--n-bezier);
  388. `,[ih({enterScale:"0.5"})])])]),R2=Ne({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Je.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Je("InternalSelectMenu","-internal-select-menu",O2,oh,e,et(e,"clsPrefix")),o=ke(null),i=ke(null),n=ke(null),r=be(()=>e.treeMate.getFlattenedNodes()),s=be(()=>qE(r.value)),c=ke(null);function u(){const{treeMate:F}=e;let O=null;const{value:W}=e;W===null?O=F.getFirstAvailableNode():(e.multiple?O=F.getNode((W||[])[(W||[]).length-1]):O=F.getNode(W),(!O||O.disabled)&&(O=F.getFirstAvailableNode())),E(O||null)}function f(){const{value:F}=c;F&&!e.treeMate.getNode(F.key)&&(c.value=null)}let p;lt(()=>e.show,F=>{F?p=lt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?u():f(),Ft(m)):f()},{immediate:!0}):p==null||p()},{immediate:!0}),Ot(()=>{p==null||p()});const d=be(()=>mc(t.value.self[ze("optionHeight",e.size)])),v=be(()=>Tn(t.value.self[ze("padding",e.size)])),x=be(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),g=be(()=>{const F=r.value;return F&&F.length===0});function k(F){const{onToggle:O}=e;O&&O(F)}function M(F){const{onScroll:O}=e;O&&O(F)}function y(F){var O;(O=n.value)===null||O===void 0||O.sync(),M(F)}function T(){var F;(F=n.value)===null||F===void 0||F.sync()}function I(){const{value:F}=c;return F||null}function A(F,O){O.disabled||E(O,!1)}function R(F,O){O.disabled||k(O)}function z(F){var O;la(F,"action")||(O=e.onKeyup)===null||O===void 0||O.call(e,F)}function P(F){var O;la(F,"action")||(O=e.onKeydown)===null||O===void 0||O.call(e,F)}function L(F){var O;(O=e.onMousedown)===null||O===void 0||O.call(e,F),!e.focusable&&F.preventDefault()}function S(){const{value:F}=c;F&&E(F.getNext({loop:!0}),!0)}function w(){const{value:F}=c;F&&E(F.getPrev({loop:!0}),!0)}function E(F,O=!1){c.value=F,O&&m()}function m(){var F,O;const W=c.value;if(!W)return;const X=s.value(W.key);X!==null&&(e.virtualScroll?(F=i.value)===null||F===void 0||F.scrollTo({index:X}):(O=n.value)===null||O===void 0||O.scrollTo({index:X,elSize:d.value}))}function C(F){var O,W;!((O=o.value)===null||O===void 0)&&O.contains(F.target)&&((W=e.onFocus)===null||W===void 0||W.call(e,F))}function a(F){var O,W;!((O=o.value)===null||O===void 0)&&O.contains(F.relatedTarget)||(W=e.onBlur)===null||W===void 0||W.call(e,F)}ct(Ad,{handleOptionMouseEnter:A,handleOptionClick:R,valueSetRef:x,pendingTmNodeRef:c,nodePropsRef:et(e,"nodeProps"),showCheckmarkRef:et(e,"showCheckmark"),multipleRef:et(e,"multiple"),valueRef:et(e,"value"),renderLabelRef:et(e,"renderLabel"),renderOptionRef:et(e,"renderOption"),labelFieldRef:et(e,"labelField"),valueFieldRef:et(e,"valueField")}),ct(Yg,o),Pt(()=>{const{value:F}=n;F&&F.sync()});const l=be(()=>{const{size:F}=e,{common:{cubicBezierEaseInOut:O},self:{height:W,borderRadius:X,color:Q,groupHeaderTextColor:ee,actionDividerColor:Y,optionTextColorPressed:D,optionTextColor:N,optionTextColorDisabled:V,optionTextColorActive:j,optionOpacityDisabled:K,optionCheckColor:_,actionTextColor:$,optionColorPending:H,optionColorActive:q,loadingColor:Z,loadingSize:J,optionColorActivePending:te,[ze("optionFontSize",F)]:se,[ze("optionHeight",F)]:ce,[ze("optionPadding",F)]:ne}}=t.value;return{"--n-height":W,"--n-action-divider-color":Y,"--n-action-text-color":$,"--n-bezier":O,"--n-border-radius":X,"--n-color":Q,"--n-option-font-size":se,"--n-group-header-text-color":ee,"--n-option-check-color":_,"--n-option-color-pending":H,"--n-option-color-active":q,"--n-option-color-active-pending":te,"--n-option-height":ce,"--n-option-opacity-disabled":K,"--n-option-text-color":N,"--n-option-text-color-active":j,"--n-option-text-color-disabled":V,"--n-option-text-color-pressed":D,"--n-option-padding":ne,"--n-option-padding-left":Tn(ne,"left"),"--n-option-padding-right":Tn(ne,"right"),"--n-loading-color":Z,"--n-loading-size":J}}),{inlineThemeDisabled:h}=e,b=h?jt("internal-select-menu",be(()=>e.size[0]),l,e):void 0,B={selfRef:o,next:S,prev:w,getPendingTmNode:I};return mm(o,e.onResize),Object.assign({mergedTheme:t,virtualListRef:i,scrollbarRef:n,itemSize:d,padding:v,flattenedNodes:r,empty:g,virtualListContainer(){const{value:F}=i;return F==null?void 0:F.listElRef},virtualListContent(){const{value:F}=i;return F==null?void 0:F.itemsElRef},doScroll:M,handleFocusin:C,handleFocusout:a,handleKeyUp:z,handleKeyDown:P,handleMouseDown:L,handleVirtualListResize:T,handleVirtualListScroll:y,cssVars:h?void 0:l,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender},B)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:i,themeClass:n,onRender:r}=this;return r==null||r(),le("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,n,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?le("div",{class:`${o}-base-select-menu__loading`},le(qa,{clsPrefix:o,strokeWidth:20})):this.empty?le("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},mi(e.empty,()=>[le(y2,{theme:i.peers.Empty,themeOverrides:i.peerOverrides.Empty})])):le(as,{ref:"scrollbarRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?le(Nw,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:s})=>s.isGroup?le(kf,{key:s.key,clsPrefix:o,tmNode:s}):s.ignored?null:le(Sf,{clsPrefix:o,key:s.key,tmNode:s})}):le("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(s=>s.isGroup?le(kf,{key:s.key,clsPrefix:o,tmNode:s}):le(Sf,{clsPrefix:o,key:s.key,tmNode:s})))}),Tt(e.action,s=>s&&[le("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},s),le(DE,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),L2=Me("base-wave",`
  389. position: absolute;
  390. left: 0;
  391. right: 0;
  392. top: 0;
  393. bottom: 0;
  394. border-radius: inherit;
  395. `),D2=Ne({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Qn("-base-wave",L2,et(e,"clsPrefix"));const t=ke(null),o=ke(!1);let i=null;return Ot(()=>{i!==null&&window.clearTimeout(i)}),{active:o,selfRef:t,play(){i!==null&&(window.clearTimeout(i),o.value=!1,i=null),Ft(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,o.value=!0,i=window.setTimeout(()=>{o.value=!1,i=null},1e3)})}}},render(){const{clsPrefix:e}=this;return le("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),I2={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},nv=e=>{const{boxShadow2:t,popoverColor:o,textColor2:i,borderRadius:n,fontSize:r,dividerColor:s}=e;return Object.assign(Object.assign({},I2),{fontSize:r,borderRadius:n,color:o,dividerColor:s,textColor:i,boxShadow:t})},B2={name:"Popover",common:Qe,self:nv},rn=B2,_2={name:"Popover",common:$e,self:nv},sn=_2,zl={top:"bottom",bottom:"top",left:"right",right:"left"},Lt="var(--n-arrow-height) * 1.414",z2=Ce([Me("popover",`
  396. transition:
  397. box-shadow .3s var(--n-bezier),
  398. background-color .3s var(--n-bezier),
  399. color .3s var(--n-bezier);
  400. position: relative;
  401. font-size: var(--n-font-size);
  402. color: var(--n-text-color);
  403. box-shadow: var(--n-box-shadow);
  404. word-break: break-word;
  405. `,[Ce(">",[Me("scrollbar",`
  406. height: inherit;
  407. max-height: inherit;
  408. `)]),_t("raw",`
  409. background-color: var(--n-color);
  410. border-radius: var(--n-border-radius);
  411. `,[_t("scrollable",[_t("show-header-or-footer","padding: var(--n-padding);")])]),xe("header",`
  412. padding: var(--n-padding);
  413. border-bottom: 1px solid var(--n-divider-color);
  414. transition: border-color .3s var(--n-bezier);
  415. `),xe("footer",`
  416. padding: var(--n-padding);
  417. border-top: 1px solid var(--n-divider-color);
  418. transition: border-color .3s var(--n-bezier);
  419. `),Oe("scrollable, show-header-or-footer",[xe("content",`
  420. padding: var(--n-padding);
  421. `)])]),Me("popover-shared",`
  422. transform-origin: inherit;
  423. `,[Me("popover-arrow-wrapper",`
  424. position: absolute;
  425. overflow: hidden;
  426. pointer-events: none;
  427. `,[Me("popover-arrow",`
  428. transition: background-color .3s var(--n-bezier);
  429. position: absolute;
  430. display: block;
  431. width: calc(${Lt});
  432. height: calc(${Lt});
  433. box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
  434. transform: rotate(45deg);
  435. background-color: var(--n-color);
  436. pointer-events: all;
  437. `)]),Ce("&.popover-transition-enter-from, &.popover-transition-leave-to",`
  438. opacity: 0;
  439. transform: scale(.85);
  440. `),Ce("&.popover-transition-enter-to, &.popover-transition-leave-from",`
  441. transform: scale(1);
  442. opacity: 1;
  443. `),Ce("&.popover-transition-enter-active",`
  444. transition:
  445. box-shadow .3s var(--n-bezier),
  446. background-color .3s var(--n-bezier),
  447. color .3s var(--n-bezier),
  448. opacity .15s var(--n-bezier-ease-out),
  449. transform .15s var(--n-bezier-ease-out);
  450. `),Ce("&.popover-transition-leave-active",`
  451. transition:
  452. box-shadow .3s var(--n-bezier),
  453. background-color .3s var(--n-bezier),
  454. color .3s var(--n-bezier),
  455. opacity .15s var(--n-bezier-ease-in),
  456. transform .15s var(--n-bezier-ease-in);
  457. `)]),lo("top-start",`
  458. top: calc(${Lt} / -2);
  459. left: calc(${_o("top-start")} - var(--v-offset-left));
  460. `),lo("top",`
  461. top: calc(${Lt} / -2);
  462. transform: translateX(calc(${Lt} / -2)) rotate(45deg);
  463. left: 50%;
  464. `),lo("top-end",`
  465. top: calc(${Lt} / -2);
  466. right: calc(${_o("top-end")} + var(--v-offset-left));
  467. `),lo("bottom-start",`
  468. bottom: calc(${Lt} / -2);
  469. left: calc(${_o("bottom-start")} - var(--v-offset-left));
  470. `),lo("bottom",`
  471. bottom: calc(${Lt} / -2);
  472. transform: translateX(calc(${Lt} / -2)) rotate(45deg);
  473. left: 50%;
  474. `),lo("bottom-end",`
  475. bottom: calc(${Lt} / -2);
  476. right: calc(${_o("bottom-end")} + var(--v-offset-left));
  477. `),lo("left-start",`
  478. left: calc(${Lt} / -2);
  479. top: calc(${_o("left-start")} - var(--v-offset-top));
  480. `),lo("left",`
  481. left: calc(${Lt} / -2);
  482. transform: translateY(calc(${Lt} / -2)) rotate(45deg);
  483. top: 50%;
  484. `),lo("left-end",`
  485. left: calc(${Lt} / -2);
  486. bottom: calc(${_o("left-end")} + var(--v-offset-top));
  487. `),lo("right-start",`
  488. right: calc(${Lt} / -2);
  489. top: calc(${_o("right-start")} - var(--v-offset-top));
  490. `),lo("right",`
  491. right: calc(${Lt} / -2);
  492. transform: translateY(calc(${Lt} / -2)) rotate(45deg);
  493. top: 50%;
  494. `),lo("right-end",`
  495. right: calc(${Lt} / -2);
  496. bottom: calc(${_o("right-end")} + var(--v-offset-top));
  497. `),...HA({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),i=o?"width":"height";return e.map(n=>{const r=n.split("-")[1]==="end",c=`calc((${`var(--v-target-${i}, 0px)`} - ${Lt}) / 2)`,u=_o(n);return Ce(`[v-placement="${n}"] >`,[Me("popover-shared",[Oe("center-arrow",[Me("popover-arrow",`${t}: calc(max(${c}, ${u}) ${r?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function _o(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function lo(e,t){const o=e.split("-")[0],i=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Ce(`[v-placement="${e}"] >`,[Me("popover-shared",`
  498. margin-${zl[o]}: var(--n-space);
  499. `,[Oe("show-arrow",`
  500. margin-${zl[o]}: var(--n-space-arrow);
  501. `),Oe("overlap",`
  502. margin: 0;
  503. `),_C("popover-arrow-wrapper",`
  504. right: 0;
  505. left: 0;
  506. top: 0;
  507. bottom: 0;
  508. ${o}: 100%;
  509. ${zl[o]}: auto;
  510. ${i}
  511. `,[Me("popover-arrow",t)])])])}const rv=Object.assign(Object.assign({},Je.props),{to:qo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),$2=({arrowStyle:e,clsPrefix:t})=>le("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},le("div",{class:`${t}-popover-arrow`,style:e})),F2=Ne({name:"PopoverBody",inheritAttrs:!1,props:rv,setup(e,{slots:t,attrs:o}){const{namespaceRef:i,mergedClsPrefixRef:n,inlineThemeDisabled:r}=Rt(e),s=Je("Popover","-popover",z2,rn,e,n),c=ke(null),u=Xe("NPopover"),f=ke(null),p=ke(e.show),d=ke(!1);Go(()=>{const{show:P}=e;P&&!zC()&&!e.internalDeactivateImmediately&&(d.value=!0)});const v=be(()=>{const{trigger:P,onClickoutside:L}=e,S=[],{positionManuallyRef:{value:w}}=u;return w||(P==="click"&&!L&&S.push([Ur,A,void 0,{capture:!0}]),P==="hover"&&S.push([ow,I])),L&&S.push([Ur,A,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&S.push([Bn,e.show]),S}),x=be(()=>{const P=e.width==="trigger"?void 0:Wi(e.width),L=[];P&&L.push({width:P});const{maxWidth:S,minWidth:w}=e;return S&&L.push({maxWidth:Wi(S)}),w&&L.push({maxWidth:Wi(w)}),r||L.push(g.value),L}),g=be(()=>{const{common:{cubicBezierEaseInOut:P,cubicBezierEaseIn:L,cubicBezierEaseOut:S},self:{space:w,spaceArrow:E,padding:m,fontSize:C,textColor:a,dividerColor:l,color:h,boxShadow:b,borderRadius:B,arrowHeight:F,arrowOffset:O,arrowOffsetVertical:W}}=s.value;return{"--n-box-shadow":b,"--n-bezier":P,"--n-bezier-ease-in":L,"--n-bezier-ease-out":S,"--n-font-size":C,"--n-text-color":a,"--n-color":h,"--n-divider-color":l,"--n-border-radius":B,"--n-arrow-height":F,"--n-arrow-offset":O,"--n-arrow-offset-vertical":W,"--n-padding":m,"--n-space":w,"--n-space-arrow":E}}),k=r?jt("popover",void 0,g,e):void 0;u.setBodyInstance({syncPosition:M}),Ot(()=>{u.setBodyInstance(null)}),lt(et(e,"show"),P=>{e.animated||(P?p.value=!0:p.value=!1)});function M(){var P;(P=c.value)===null||P===void 0||P.syncPosition()}function y(P){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&u.handleMouseEnter(P)}function T(P){e.trigger==="hover"&&e.keepAliveOnHover&&u.handleMouseLeave(P)}function I(P){e.trigger==="hover"&&!R().contains(_n(P))&&u.handleMouseMoveOutside(P)}function A(P){(e.trigger==="click"&&!R().contains(_n(P))||e.onClickoutside)&&u.handleClickOutside(P)}function R(){return u.getTriggerElement()}ct(Od,f),ct(Ed,null),ct(Md,null);function z(){if(k==null||k.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let L;const S=u.internalRenderBodyRef.value,{value:w}=n;if(S)L=S([`${w}-popover-shared`,k==null?void 0:k.themeClass.value,e.overlap&&`${w}-popover-shared--overlap`,e.showArrow&&`${w}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${w}-popover-shared--center-arrow`],f,x.value,y,T);else{const{value:E}=u.extraClassRef,{internalTrapFocus:m}=e,C=!yc(t.header)||!yc(t.footer),a=()=>{var l;const h=C?le(ut,null,Tt(t.header,F=>F?le("div",{class:`${w}-popover__header`,style:e.headerStyle},F):null),Tt(t.default,F=>F?le("div",{class:`${w}-popover__content`,style:e.contentStyle},t):null),Tt(t.footer,F=>F?le("div",{class:`${w}-popover__footer`,style:e.footerStyle},F):null)):e.scrollable?(l=t.default)===null||l===void 0?void 0:l.call(t):le("div",{class:`${w}-popover__content`,style:e.contentStyle},t),b=e.scrollable?le(T2,{contentClass:C?void 0:`${w}-popover__content`,contentStyle:C?void 0:e.contentStyle},{default:()=>h}):h,B=e.showArrow?$2({arrowStyle:e.arrowStyle,clsPrefix:w}):null;return[b,B]};L=le("div",Xn({class:[`${w}-popover`,`${w}-popover-shared`,k==null?void 0:k.themeClass.value,E.map(l=>`${w}-${l}`),{[`${w}-popover--scrollable`]:e.scrollable,[`${w}-popover--show-header-or-footer`]:C,[`${w}-popover--raw`]:e.raw,[`${w}-popover-shared--overlap`]:e.overlap,[`${w}-popover-shared--show-arrow`]:e.showArrow,[`${w}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:f,style:x.value,onKeydown:u.handleKeydown,onMouseenter:y,onMouseleave:T},o),m?le(gm,{active:e.show,autoFocus:!0},{default:a}):a())}return Vo(L,v.value)}return{displayed:d,namespace:i,isMounted:u.isMountedRef,zIndex:u.zIndexRef,followerRef:c,adjustedTo:qo(e),followerEnabled:p,renderContentNode:z}},render(){return le(nm,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===qo.tdkey},{default:()=>this.animated?le(Jt,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),H2=Object.keys(rv),j2={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function N2(e,t,o){j2[t].forEach(i=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[i],r=o[i];n?e.props[i]=(...s)=>{n(...s),r(...s)}:e.props[i]=r})}const W2={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:qo.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},U2=Object.assign(Object.assign(Object.assign({},Je.props),W2),{internalOnAfterLeave:Function,internalRenderBody:Function}),G2=Ne({name:"Popover",inheritAttrs:!1,props:U2,__popover__:!0,setup(e){const t=Zn(),o=ke(null),i=be(()=>e.show),n=ke(e.defaultShow),r=da(i,n),s=Kt(()=>e.disabled?!1:r.value),c=()=>{if(e.disabled)return!0;const{getDisabled:a}=e;return!!(a!=null&&a())},u=()=>c()?!1:r.value,f=qg(e,["arrow","showArrow"]),p=be(()=>e.overlap?!1:f.value);let d=null;const v=ke(null),x=ke(null),g=Kt(()=>e.x!==void 0&&e.y!==void 0);function k(a){const{"onUpdate:show":l,onUpdateShow:h,onShow:b,onHide:B}=e;n.value=a,l&&ot(l,a),h&&ot(h,a),a&&b&&ot(b,!0),a&&B&&ot(B,!1)}function M(){d&&d.syncPosition()}function y(){const{value:a}=v;a&&(window.clearTimeout(a),v.value=null)}function T(){const{value:a}=x;a&&(window.clearTimeout(a),x.value=null)}function I(){const a=c();if(e.trigger==="focus"&&!a){if(u())return;k(!0)}}function A(){const a=c();if(e.trigger==="focus"&&!a){if(!u())return;k(!1)}}function R(){const a=c();if(e.trigger==="hover"&&!a){if(T(),v.value!==null||u())return;const l=()=>{k(!0),v.value=null},{delay:h}=e;h===0?l():v.value=window.setTimeout(l,h)}}function z(){const a=c();if(e.trigger==="hover"&&!a){if(y(),x.value!==null||!u())return;const l=()=>{k(!1),x.value=null},{duration:h}=e;h===0?l():x.value=window.setTimeout(l,h)}}function P(){z()}function L(a){var l;u()&&(e.trigger==="click"&&(y(),T(),k(!1)),(l=e.onClickoutside)===null||l===void 0||l.call(e,a))}function S(){if(e.trigger==="click"&&!c()){y(),T();const a=!u();k(a)}}function w(a){e.internalTrapFocus&&a.key==="Escape"&&(y(),T(),k(!1))}function E(a){n.value=a}function m(){var a;return(a=o.value)===null||a===void 0?void 0:a.targetRef}function C(a){d=a}return ct("NPopover",{getTriggerElement:m,handleKeydown:w,handleMouseEnter:R,handleMouseLeave:z,handleClickOutside:L,handleMouseMoveOutside:P,setBodyInstance:C,positionManuallyRef:g,isMountedRef:t,zIndexRef:et(e,"zIndex"),extraClassRef:et(e,"internalExtraClass"),internalRenderBodyRef:et(e,"internalRenderBody")}),Go(()=>{r.value&&c()&&k(!1)}),{binderInstRef:o,positionManually:g,mergedShowConsideringDisabledProp:s,uncontrolledShow:n,mergedShowArrow:p,getMergedShow:u,setShow:E,handleClick:S,handleMouseEnter:R,handleMouseLeave:z,handleFocus:I,handleBlur:A,syncPosition:M}},render(){var e;const{positionManually:t,$slots:o}=this;let i,n=!1;if(!t&&(o.activator?i=bc(o,"activator"):i=bc(o,"trigger"),i)){i=xo(i),i=i.type===Vi?le("span",[i]):i;const r={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=i.type)===null||e===void 0)&&e.__popover__)n=!0,i.props||(i.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),i.props.internalSyncTargetWithParent=!0,i.props.internalInheritedEventHandlers?i.props.internalInheritedEventHandlers=[r,...i.props.internalInheritedEventHandlers]:i.props.internalInheritedEventHandlers=[r];else{const{internalInheritedEventHandlers:s}=this,c=[r,...s],u={onBlur:f=>{c.forEach(p=>{p.onBlur(f)})},onFocus:f=>{c.forEach(p=>{p.onFocus(f)})},onClick:f=>{c.forEach(p=>{p.onClick(f)})},onMouseenter:f=>{c.forEach(p=>{p.onMouseenter(f)})},onMouseleave:f=>{c.forEach(p=>{p.onMouseleave(f)})}};N2(i,s?"nested":t?"manual":this.trigger,u)}}return le(em,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const r=this.getMergedShow();return[this.internalTrapFocus&&r?Vo(le("div",{style:{position:"fixed",inset:0}}),[[Rd,{enabled:r,zIndex:this.zIndex}]]):null,t?null:le(tm,null,{default:()=>i}),le(F2,$n(this.$props,H2,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:r})),{default:()=>{var s,c;return(c=(s=this.$slots).default)===null||c===void 0?void 0:c.call(s)},header:()=>{var s,c;return(c=(s=this.$slots).header)===null||c===void 0?void 0:c.call(s)},footer:()=>{var s,c;return(c=(s=this.$slots).footer)===null||c===void 0?void 0:c.call(s)}})]}})}}),sv={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},V2={name:"Tag",common:$e,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:i,primaryColor:n,infoColor:r,successColor:s,warningColor:c,errorColor:u,baseColor:f,borderColor:p,tagColor:d,opacityDisabled:v,closeIconColor:x,closeIconColorHover:g,closeIconColorPressed:k,closeColorHover:M,closeColorPressed:y,borderRadiusSmall:T,fontSizeMini:I,fontSizeTiny:A,fontSizeSmall:R,fontSizeMedium:z,heightMini:P,heightTiny:L,heightSmall:S,heightMedium:w,buttonColor2Hover:E,buttonColor2Pressed:m,fontWeightStrong:C}=e;return Object.assign(Object.assign({},sv),{closeBorderRadius:T,heightTiny:P,heightSmall:L,heightMedium:S,heightLarge:w,borderRadius:T,opacityDisabled:v,fontSizeTiny:I,fontSizeSmall:A,fontSizeMedium:R,fontSizeLarge:z,fontWeightStrong:C,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:f,colorCheckable:"#0000",colorHoverCheckable:E,colorPressedCheckable:m,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:i,border:`1px solid ${p}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:x,closeIconColorHover:g,closeIconColorPressed:k,closeColorHover:M,closeColorPressed:y,borderPrimary:`1px solid ${De(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:De(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:kt(n,{lightness:.7}),closeIconColorHoverPrimary:kt(n,{lightness:.7}),closeIconColorPressedPrimary:kt(n,{lightness:.7}),closeColorHoverPrimary:De(n,{alpha:.16}),closeColorPressedPrimary:De(n,{alpha:.12}),borderInfo:`1px solid ${De(r,{alpha:.3})}`,textColorInfo:r,colorInfo:De(r,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:kt(r,{alpha:.7}),closeIconColorHoverInfo:kt(r,{alpha:.7}),closeIconColorPressedInfo:kt(r,{alpha:.7}),closeColorHoverInfo:De(r,{alpha:.16}),closeColorPressedInfo:De(r,{alpha:.12}),borderSuccess:`1px solid ${De(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:De(s,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:kt(s,{alpha:.7}),closeIconColorHoverSuccess:kt(s,{alpha:.7}),closeIconColorPressedSuccess:kt(s,{alpha:.7}),closeColorHoverSuccess:De(s,{alpha:.16}),closeColorPressedSuccess:De(s,{alpha:.12}),borderWarning:`1px solid ${De(c,{alpha:.3})}`,textColorWarning:c,colorWarning:De(c,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:kt(c,{alpha:.7}),closeIconColorHoverWarning:kt(c,{alpha:.7}),closeIconColorPressedWarning:kt(c,{alpha:.7}),closeColorHoverWarning:De(c,{alpha:.16}),closeColorPressedWarning:De(c,{alpha:.11}),borderError:`1px solid ${De(u,{alpha:.3})}`,textColorError:u,colorError:De(u,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:kt(u,{alpha:.7}),closeIconColorHoverError:kt(u,{alpha:.7}),closeIconColorPressedError:kt(u,{alpha:.7}),closeColorHoverError:De(u,{alpha:.16}),closeColorPressedError:De(u,{alpha:.12})})}},av=V2,X2=e=>{const{textColor2:t,primaryColorHover:o,primaryColorPressed:i,primaryColor:n,infoColor:r,successColor:s,warningColor:c,errorColor:u,baseColor:f,borderColor:p,opacityDisabled:d,tagColor:v,closeIconColor:x,closeIconColorHover:g,closeIconColorPressed:k,borderRadiusSmall:M,fontSizeMini:y,fontSizeTiny:T,fontSizeSmall:I,fontSizeMedium:A,heightMini:R,heightTiny:z,heightSmall:P,heightMedium:L,closeColorHover:S,closeColorPressed:w,buttonColor2Hover:E,buttonColor2Pressed:m,fontWeightStrong:C}=e;return Object.assign(Object.assign({},sv),{closeBorderRadius:M,heightTiny:R,heightSmall:z,heightMedium:P,heightLarge:L,borderRadius:M,opacityDisabled:d,fontSizeTiny:y,fontSizeSmall:T,fontSizeMedium:I,fontSizeLarge:A,fontWeightStrong:C,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:f,colorCheckable:"#0000",colorHoverCheckable:E,colorPressedCheckable:m,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:i,border:`1px solid ${p}`,textColor:t,color:v,colorBordered:"rgb(250, 250, 252)",closeIconColor:x,closeIconColorHover:g,closeIconColorPressed:k,closeColorHover:S,closeColorPressed:w,borderPrimary:`1px solid ${De(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:De(n,{alpha:.12}),colorBorderedPrimary:De(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:De(n,{alpha:.12}),closeColorPressedPrimary:De(n,{alpha:.18}),borderInfo:`1px solid ${De(r,{alpha:.3})}`,textColorInfo:r,colorInfo:De(r,{alpha:.12}),colorBorderedInfo:De(r,{alpha:.1}),closeIconColorInfo:r,closeIconColorHoverInfo:r,closeIconColorPressedInfo:r,closeColorHoverInfo:De(r,{alpha:.12}),closeColorPressedInfo:De(r,{alpha:.18}),borderSuccess:`1px solid ${De(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:De(s,{alpha:.12}),colorBorderedSuccess:De(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:De(s,{alpha:.12}),closeColorPressedSuccess:De(s,{alpha:.18}),borderWarning:`1px solid ${De(c,{alpha:.35})}`,textColorWarning:c,colorWarning:De(c,{alpha:.15}),colorBorderedWarning:De(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:De(c,{alpha:.12}),closeColorPressedWarning:De(c,{alpha:.18}),borderError:`1px solid ${De(u,{alpha:.23})}`,textColorError:u,colorError:De(u,{alpha:.1}),colorBorderedError:De(u,{alpha:.08}),closeIconColorError:u,closeIconColorHoverError:u,closeIconColorPressedError:u,closeColorHoverError:De(u,{alpha:.12}),closeColorPressedError:De(u,{alpha:.18})})},q2={name:"Tag",common:Qe,self:X2},Y2=q2,K2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},Z2=Me("tag",`
  512. white-space: nowrap;
  513. position: relative;
  514. box-sizing: border-box;
  515. cursor: default;
  516. display: inline-flex;
  517. align-items: center;
  518. flex-wrap: nowrap;
  519. padding: var(--n-padding);
  520. border-radius: var(--n-border-radius);
  521. color: var(--n-text-color);
  522. background-color: var(--n-color);
  523. transition:
  524. border-color .3s var(--n-bezier),
  525. background-color .3s var(--n-bezier),
  526. color .3s var(--n-bezier),
  527. box-shadow .3s var(--n-bezier),
  528. opacity .3s var(--n-bezier);
  529. line-height: 1;
  530. height: var(--n-height);
  531. font-size: var(--n-font-size);
  532. `,[Oe("strong",`
  533. font-weight: var(--n-font-weight-strong);
  534. `),xe("border",`
  535. pointer-events: none;
  536. position: absolute;
  537. left: 0;
  538. right: 0;
  539. top: 0;
  540. bottom: 0;
  541. border-radius: inherit;
  542. border: var(--n-border);
  543. transition: border-color .3s var(--n-bezier);
  544. `),xe("icon",`
  545. display: flex;
  546. margin: 0 4px 0 0;
  547. color: var(--n-text-color);
  548. transition: color .3s var(--n-bezier);
  549. font-size: var(--n-avatar-size-override);
  550. `),xe("avatar",`
  551. display: flex;
  552. margin: 0 6px 0 0;
  553. `),xe("close",`
  554. margin: var(--n-close-margin);
  555. transition:
  556. background-color .3s var(--n-bezier),
  557. color .3s var(--n-bezier);
  558. `),Oe("round",`
  559. padding: 0 calc(var(--n-height) / 3);
  560. border-radius: calc(var(--n-height) / 2);
  561. `,[xe("icon",`
  562. margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
  563. `),xe("avatar",`
  564. margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
  565. `),Oe("closable",`
  566. padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
  567. `)]),Oe("icon, avatar",[Oe("round",`
  568. padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
  569. `)]),Oe("disabled",`
  570. cursor: not-allowed !important;
  571. opacity: var(--n-opacity-disabled);
  572. `),Oe("checkable",`
  573. cursor: pointer;
  574. box-shadow: none;
  575. color: var(--n-text-color-checkable);
  576. background-color: var(--n-color-checkable);
  577. `,[_t("disabled",[Ce("&:hover","background-color: var(--n-color-hover-checkable);",[_t("checked","color: var(--n-text-color-hover-checkable);")]),Ce("&:active","background-color: var(--n-color-pressed-checkable);",[_t("checked","color: var(--n-text-color-pressed-checkable);")])]),Oe("checked",`
  578. color: var(--n-text-color-checked);
  579. background-color: var(--n-color-checked);
  580. `,[_t("disabled",[Ce("&:hover","background-color: var(--n-color-checked-hover);"),Ce("&:active","background-color: var(--n-color-checked-pressed);")])])])]),J2=Object.assign(Object.assign(Object.assign({},Je.props),K2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),Q2="n-tag",$l=Ne({name:"Tag",props:J2,setup(e){const t=ke(null),{mergedBorderedRef:o,mergedClsPrefixRef:i,inlineThemeDisabled:n,mergedRtlRef:r}=Rt(e),s=Je("Tag","-tag",Z2,Y2,e,i);ct(Q2,{roundRef:et(e,"round")});function c(x){if(!e.disabled&&e.checkable){const{checked:g,onCheckedChange:k,onUpdateChecked:M,"onUpdate:checked":y}=e;M&&M(!g),y&&y(!g),k&&k(!g)}}function u(x){if(e.triggerClickOnClose||x.stopPropagation(),!e.disabled){const{onClose:g}=e;g&&ot(g,x)}}const f={setTextContent(x){const{value:g}=t;g&&(g.textContent=x)}},p=on("Tag",r,i),d=be(()=>{const{type:x,size:g,color:{color:k,textColor:M}={}}=e,{common:{cubicBezierEaseInOut:y},self:{padding:T,closeMargin:I,closeMarginRtl:A,borderRadius:R,opacityDisabled:z,textColorCheckable:P,textColorHoverCheckable:L,textColorPressedCheckable:S,textColorChecked:w,colorCheckable:E,colorHoverCheckable:m,colorPressedCheckable:C,colorChecked:a,colorCheckedHover:l,colorCheckedPressed:h,closeBorderRadius:b,fontWeightStrong:B,[ze("colorBordered",x)]:F,[ze("closeSize",g)]:O,[ze("closeIconSize",g)]:W,[ze("fontSize",g)]:X,[ze("height",g)]:Q,[ze("color",x)]:ee,[ze("textColor",x)]:Y,[ze("border",x)]:D,[ze("closeIconColor",x)]:N,[ze("closeIconColorHover",x)]:V,[ze("closeIconColorPressed",x)]:j,[ze("closeColorHover",x)]:K,[ze("closeColorPressed",x)]:_}}=s.value;return{"--n-font-weight-strong":B,"--n-avatar-size-override":`calc(${Q} - 8px)`,"--n-bezier":y,"--n-border-radius":R,"--n-border":D,"--n-close-icon-size":W,"--n-close-color-pressed":_,"--n-close-color-hover":K,"--n-close-border-radius":b,"--n-close-icon-color":N,"--n-close-icon-color-hover":V,"--n-close-icon-color-pressed":j,"--n-close-icon-color-disabled":N,"--n-close-margin":I,"--n-close-margin-rtl":A,"--n-close-size":O,"--n-color":k||(o.value?F:ee),"--n-color-checkable":E,"--n-color-checked":a,"--n-color-checked-hover":l,"--n-color-checked-pressed":h,"--n-color-hover-checkable":m,"--n-color-pressed-checkable":C,"--n-font-size":X,"--n-height":Q,"--n-opacity-disabled":z,"--n-padding":T,"--n-text-color":M||Y,"--n-text-color-checkable":P,"--n-text-color-checked":w,"--n-text-color-hover-checkable":L,"--n-text-color-pressed-checkable":S}}),v=n?jt("tag",be(()=>{let x="";const{type:g,size:k,color:{color:M,textColor:y}={}}=e;return x+=g[0],x+=k[0],M&&(x+=`a${ca(M)}`),y&&(x+=`b${ca(y)}`),o.value&&(x+="c"),x}),d,e):void 0;return Object.assign(Object.assign({},f),{rtlEnabled:p,mergedClsPrefix:i,contentRef:t,mergedBordered:o,handleClick:c,handleCloseClick:u,cssVars:n?void 0:d,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:i,closable:n,color:{borderColor:r}={},round:s,onRender:c,$slots:u}=this;c==null||c();const f=Tt(u.avatar,d=>d&&le("div",{class:`${o}-tag__avatar`},d)),p=Tt(u.icon,d=>d&&le("div",{class:`${o}-tag__icon`},d));return le("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:i,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:s,[`${o}-tag--avatar`]:f,[`${o}-tag--icon`]:p,[`${o}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},p||f,le("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?le(ss,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?le("div",{class:`${o}-tag__border`,style:{borderColor:r}}):null)}}),eO=Me("base-clear",`
  581. flex-shrink: 0;
  582. height: 1em;
  583. width: 1em;
  584. position: relative;
  585. `,[Ce(">",[xe("clear",`
  586. font-size: var(--n-clear-size);
  587. height: 1em;
  588. width: 1em;
  589. cursor: pointer;
  590. color: var(--n-clear-color);
  591. transition: color .3s var(--n-bezier);
  592. display: flex;
  593. `,[Ce("&:hover",`
  594. color: var(--n-clear-color-hover)!important;
  595. `),Ce("&:active",`
  596. color: var(--n-clear-color-pressed)!important;
  597. `)]),xe("placeholder",`
  598. display: flex;
  599. `),xe("clear, placeholder",`
  600. position: absolute;
  601. left: 50%;
  602. top: 50%;
  603. transform: translateX(-50%) translateY(-50%);
  604. `,[Kr({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),zc=Ne({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Qn("-base-clear",eO,et(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return le("div",{class:`${e}-base-clear`},le(Xa,null,{default:()=>{var t,o;return this.show?le("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},mi(this.$slots.icon,()=>[le(Eo,{clsPrefix:e},{default:()=>le(OE,null)})])):le("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),lv=Ne({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return le(qa,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?le(zc,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>le(Eo,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>mi(t.default,()=>[le(EE,null)])})}):null})}}}),cv={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},tO=e=>{const{borderRadius:t,textColor2:o,textColorDisabled:i,inputColor:n,inputColorDisabled:r,primaryColor:s,primaryColorHover:c,warningColor:u,warningColorHover:f,errorColor:p,errorColorHover:d,borderColor:v,iconColor:x,iconColorDisabled:g,clearColor:k,clearColorHover:M,clearColorPressed:y,placeholderColor:T,placeholderColorDisabled:I,fontSizeTiny:A,fontSizeSmall:R,fontSizeMedium:z,fontSizeLarge:P,heightTiny:L,heightSmall:S,heightMedium:w,heightLarge:E}=e;return Object.assign(Object.assign({},cv),{fontSizeTiny:A,fontSizeSmall:R,fontSizeMedium:z,fontSizeLarge:P,heightTiny:L,heightSmall:S,heightMedium:w,heightLarge:E,borderRadius:t,textColor:o,textColorDisabled:i,placeholderColor:T,placeholderColorDisabled:I,color:n,colorDisabled:r,colorActive:n,border:`1px solid ${v}`,borderHover:`1px solid ${c}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${c}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${De(s,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${De(s,{alpha:.2})}`,caretColor:s,arrowColor:x,arrowColorDisabled:g,loadingColor:s,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${f}`,borderActiveWarning:`1px solid ${u}`,borderFocusWarning:`1px solid ${f}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${De(u,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${De(u,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:u,borderError:`1px solid ${p}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${p}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${De(p,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${De(p,{alpha:.2})}`,colorActiveError:n,caretColorError:p,clearColor:k,clearColorHover:M,clearColorPressed:y})},oO={name:"InternalSelection",common:Qe,peers:{Popover:rn},self:tO},dv=oO,iO={name:"InternalSelection",common:$e,peers:{Popover:sn},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:i,inputColor:n,inputColorDisabled:r,primaryColor:s,primaryColorHover:c,warningColor:u,warningColorHover:f,errorColor:p,errorColorHover:d,iconColor:v,iconColorDisabled:x,clearColor:g,clearColorHover:k,clearColorPressed:M,placeholderColor:y,placeholderColorDisabled:T,fontSizeTiny:I,fontSizeSmall:A,fontSizeMedium:R,fontSizeLarge:z,heightTiny:P,heightSmall:L,heightMedium:S,heightLarge:w}=e;return Object.assign(Object.assign({},cv),{fontSizeTiny:I,fontSizeSmall:A,fontSizeMedium:R,fontSizeLarge:z,heightTiny:P,heightSmall:L,heightMedium:S,heightLarge:w,borderRadius:t,textColor:o,textColorDisabled:i,placeholderColor:y,placeholderColorDisabled:T,color:n,colorDisabled:r,colorActive:De(s,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${c}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${c}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${De(s,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${De(s,{alpha:.4})}`,caretColor:s,arrowColor:v,arrowColorDisabled:x,loadingColor:s,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${f}`,borderActiveWarning:`1px solid ${u}`,borderFocusWarning:`1px solid ${f}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${De(u,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${De(u,{alpha:.4})}`,colorActiveWarning:De(u,{alpha:.1}),caretColorWarning:u,borderError:`1px solid ${p}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${p}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${De(p,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${De(p,{alpha:.4})}`,colorActiveError:De(p,{alpha:.1}),caretColorError:p,clearColor:g,clearColorHover:k,clearColorPressed:M})}},nh=iO,nO=Ce([Me("base-selection",`
  605. position: relative;
  606. z-index: auto;
  607. box-shadow: none;
  608. width: 100%;
  609. max-width: 100%;
  610. display: inline-block;
  611. vertical-align: bottom;
  612. border-radius: var(--n-border-radius);
  613. min-height: var(--n-height);
  614. line-height: 1.5;
  615. font-size: var(--n-font-size);
  616. `,[Me("base-loading",`
  617. color: var(--n-loading-color);
  618. `),Me("base-selection-tags","min-height: var(--n-height);"),xe("border, state-border",`
  619. position: absolute;
  620. left: 0;
  621. right: 0;
  622. top: 0;
  623. bottom: 0;
  624. pointer-events: none;
  625. border: var(--n-border);
  626. border-radius: inherit;
  627. transition:
  628. box-shadow .3s var(--n-bezier),
  629. border-color .3s var(--n-bezier);
  630. `),xe("state-border",`
  631. z-index: 1;
  632. border-color: #0000;
  633. `),Me("base-suffix",`
  634. cursor: pointer;
  635. position: absolute;
  636. top: 50%;
  637. transform: translateY(-50%);
  638. right: 10px;
  639. `,[xe("arrow",`
  640. font-size: var(--n-arrow-size);
  641. color: var(--n-arrow-color);
  642. transition: color .3s var(--n-bezier);
  643. `)]),Me("base-selection-overlay",`
  644. display: flex;
  645. align-items: center;
  646. white-space: nowrap;
  647. pointer-events: none;
  648. position: absolute;
  649. top: 0;
  650. right: 0;
  651. bottom: 0;
  652. left: 0;
  653. padding: var(--n-padding-single);
  654. transition: color .3s var(--n-bezier);
  655. `,[xe("wrapper",`
  656. flex-basis: 0;
  657. flex-grow: 1;
  658. overflow: hidden;
  659. text-overflow: ellipsis;
  660. `)]),Me("base-selection-placeholder",`
  661. color: var(--n-placeholder-color);
  662. `,[xe("inner",`
  663. max-width: 100%;
  664. overflow: hidden;
  665. `)]),Me("base-selection-tags",`
  666. cursor: pointer;
  667. outline: none;
  668. box-sizing: border-box;
  669. position: relative;
  670. z-index: auto;
  671. display: flex;
  672. padding: var(--n-padding-multiple);
  673. flex-wrap: wrap;
  674. align-items: center;
  675. width: 100%;
  676. vertical-align: bottom;
  677. background-color: var(--n-color);
  678. border-radius: inherit;
  679. transition:
  680. color .3s var(--n-bezier),
  681. box-shadow .3s var(--n-bezier),
  682. background-color .3s var(--n-bezier);
  683. `),Me("base-selection-label",`
  684. height: var(--n-height);
  685. display: inline-flex;
  686. width: 100%;
  687. vertical-align: bottom;
  688. cursor: pointer;
  689. outline: none;
  690. z-index: auto;
  691. box-sizing: border-box;
  692. position: relative;
  693. transition:
  694. color .3s var(--n-bezier),
  695. box-shadow .3s var(--n-bezier),
  696. background-color .3s var(--n-bezier);
  697. border-radius: inherit;
  698. background-color: var(--n-color);
  699. align-items: center;
  700. `,[Me("base-selection-input",`
  701. font-size: inherit;
  702. line-height: inherit;
  703. outline: none;
  704. cursor: pointer;
  705. box-sizing: border-box;
  706. border:none;
  707. width: 100%;
  708. padding: var(--n-padding-single);
  709. background-color: #0000;
  710. color: var(--n-text-color);
  711. transition: color .3s var(--n-bezier);
  712. caret-color: var(--n-caret-color);
  713. `,[xe("content",`
  714. text-overflow: ellipsis;
  715. overflow: hidden;
  716. white-space: nowrap;
  717. `)]),xe("render-label",`
  718. color: var(--n-text-color);
  719. `)]),_t("disabled",[Ce("&:hover",[xe("state-border",`
  720. box-shadow: var(--n-box-shadow-hover);
  721. border: var(--n-border-hover);
  722. `)]),Oe("focus",[xe("state-border",`
  723. box-shadow: var(--n-box-shadow-focus);
  724. border: var(--n-border-focus);
  725. `)]),Oe("active",[xe("state-border",`
  726. box-shadow: var(--n-box-shadow-active);
  727. border: var(--n-border-active);
  728. `),Me("base-selection-label","background-color: var(--n-color-active);"),Me("base-selection-tags","background-color: var(--n-color-active);")])]),Oe("disabled","cursor: not-allowed;",[xe("arrow",`
  729. color: var(--n-arrow-color-disabled);
  730. `),Me("base-selection-label",`
  731. cursor: not-allowed;
  732. background-color: var(--n-color-disabled);
  733. `,[Me("base-selection-input",`
  734. cursor: not-allowed;
  735. color: var(--n-text-color-disabled);
  736. `),xe("render-label",`
  737. color: var(--n-text-color-disabled);
  738. `)]),Me("base-selection-tags",`
  739. cursor: not-allowed;
  740. background-color: var(--n-color-disabled);
  741. `),Me("base-selection-placeholder",`
  742. cursor: not-allowed;
  743. color: var(--n-placeholder-color-disabled);
  744. `)]),Me("base-selection-input-tag",`
  745. height: calc(var(--n-height) - 6px);
  746. line-height: calc(var(--n-height) - 6px);
  747. outline: none;
  748. display: none;
  749. position: relative;
  750. margin-bottom: 3px;
  751. max-width: 100%;
  752. vertical-align: bottom;
  753. `,[xe("input",`
  754. font-size: inherit;
  755. font-family: inherit;
  756. min-width: 1px;
  757. padding: 0;
  758. background-color: #0000;
  759. outline: none;
  760. border: none;
  761. max-width: 100%;
  762. overflow: hidden;
  763. width: 1em;
  764. line-height: inherit;
  765. cursor: pointer;
  766. color: var(--n-text-color);
  767. caret-color: var(--n-caret-color);
  768. `),xe("mirror",`
  769. position: absolute;
  770. left: 0;
  771. top: 0;
  772. white-space: pre;
  773. visibility: hidden;
  774. user-select: none;
  775. -webkit-user-select: none;
  776. opacity: 0;
  777. `)]),["warning","error"].map(e=>Oe(`${e}-status`,[xe("state-border",`border: var(--n-border-${e});`),_t("disabled",[Ce("&:hover",[xe("state-border",`
  778. box-shadow: var(--n-box-shadow-hover-${e});
  779. border: var(--n-border-hover-${e});
  780. `)]),Oe("active",[xe("state-border",`
  781. box-shadow: var(--n-box-shadow-active-${e});
  782. border: var(--n-border-active-${e});
  783. `),Me("base-selection-label",`background-color: var(--n-color-active-${e});`),Me("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Oe("focus",[xe("state-border",`
  784. box-shadow: var(--n-box-shadow-focus-${e});
  785. border: var(--n-border-focus-${e});
  786. `)])])]))]),Me("base-selection-popover",`
  787. margin-bottom: -3px;
  788. display: flex;
  789. flex-wrap: wrap;
  790. margin-right: -8px;
  791. `),Me("base-selection-tag-wrapper",`
  792. max-width: 100%;
  793. display: inline-flex;
  794. padding: 0 7px 3px 0;
  795. `,[Ce("&:last-child","padding-right: 0;"),Me("tag",`
  796. font-size: 14px;
  797. max-width: 100%;
  798. `,[xe("content",`
  799. line-height: 1.25;
  800. text-overflow: ellipsis;
  801. overflow: hidden;
  802. `)])])]),rO=Ne({name:"InternalSelection",props:Object.assign(Object.assign({},Je.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=ke(null),o=ke(null),i=ke(null),n=ke(null),r=ke(null),s=ke(null),c=ke(null),u=ke(null),f=ke(null),p=ke(null),d=ke(!1),v=ke(!1),x=ke(!1),g=Je("InternalSelection","-internal-selection",nO,dv,e,et(e,"clsPrefix")),k=be(()=>e.clearable&&!e.disabled&&(x.value||e.active)),M=be(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Dt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),y=be(()=>{const oe=e.selectedOption;if(oe)return oe[e.labelField]}),T=be(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function I(){var oe;const{value:U}=t;if(U){const{value:G}=o;G&&(G.style.width=`${U.offsetWidth}px`,e.maxTagCount!=="responsive"&&((oe=f.value)===null||oe===void 0||oe.sync()))}}function A(){const{value:oe}=p;oe&&(oe.style.display="none")}function R(){const{value:oe}=p;oe&&(oe.style.display="inline-block")}lt(et(e,"active"),oe=>{oe||A()}),lt(et(e,"pattern"),()=>{e.multiple&&Ft(I)});function z(oe){const{onFocus:U}=e;U&&U(oe)}function P(oe){const{onBlur:U}=e;U&&U(oe)}function L(oe){const{onDeleteOption:U}=e;U&&U(oe)}function S(oe){const{onClear:U}=e;U&&U(oe)}function w(oe){const{onPatternInput:U}=e;U&&U(oe)}function E(oe){var U;(!oe.relatedTarget||!(!((U=i.value)===null||U===void 0)&&U.contains(oe.relatedTarget)))&&z(oe)}function m(oe){var U;!((U=i.value)===null||U===void 0)&&U.contains(oe.relatedTarget)||P(oe)}function C(oe){S(oe)}function a(){x.value=!0}function l(){x.value=!1}function h(oe){!e.active||!e.filterable||oe.target!==o.value&&oe.preventDefault()}function b(oe){L(oe)}function B(oe){if(oe.key==="Backspace"&&!F.value&&!e.pattern.length){const{selectedOptions:U}=e;U!=null&&U.length&&b(U[U.length-1])}}const F=ke(!1);let O=null;function W(oe){const{value:U}=t;if(U){const G=oe.target.value;U.textContent=G,I()}e.ignoreComposition&&F.value?O=oe:w(oe)}function X(){F.value=!0}function Q(){F.value=!1,e.ignoreComposition&&w(O),O=null}function ee(oe){var U;v.value=!0,(U=e.onPatternFocus)===null||U===void 0||U.call(e,oe)}function Y(oe){var U;v.value=!1,(U=e.onPatternBlur)===null||U===void 0||U.call(e,oe)}function D(){var oe,U;if(e.filterable)v.value=!1,(oe=s.value)===null||oe===void 0||oe.blur(),(U=o.value)===null||U===void 0||U.blur();else if(e.multiple){const{value:G}=n;G==null||G.blur()}else{const{value:G}=r;G==null||G.blur()}}function N(){var oe,U,G;e.filterable?(v.value=!1,(oe=s.value)===null||oe===void 0||oe.focus()):e.multiple?(U=n.value)===null||U===void 0||U.focus():(G=r.value)===null||G===void 0||G.focus()}function V(){const{value:oe}=o;oe&&(R(),oe.focus())}function j(){const{value:oe}=o;oe&&oe.blur()}function K(oe){const{value:U}=c;U&&U.setTextContent(`+${oe}`)}function _(){const{value:oe}=u;return oe}function $(){return o.value}let H=null;function q(){H!==null&&window.clearTimeout(H)}function Z(){e.disabled||e.active||(q(),H=window.setTimeout(()=>{T.value&&(d.value=!0)},100))}function J(){q()}function te(oe){oe||(q(),d.value=!1)}lt(T,oe=>{oe||(d.value=!1)}),Pt(()=>{Go(()=>{const oe=s.value;oe&&(oe.tabIndex=e.disabled||v.value?-1:0)})}),mm(i,e.onResize);const{inlineThemeDisabled:se}=e,ce=be(()=>{const{size:oe}=e,{common:{cubicBezierEaseInOut:U},self:{borderRadius:G,color:re,placeholderColor:ie,textColor:ae,paddingSingle:ue,paddingMultiple:he,caretColor:me,colorDisabled:ve,textColorDisabled:pe,placeholderColorDisabled:Se,colorActive:Le,boxShadowFocus:Te,boxShadowActive:Pe,boxShadowHover:de,border:fe,borderFocus:we,borderHover:Ie,borderActive:Ae,arrowColor:ye,arrowColorDisabled:Be,loadingColor:Fe,colorActiveWarning:_e,boxShadowFocusWarning:Ue,boxShadowActiveWarning:Ye,boxShadowHoverWarning:tt,borderWarning:Ke,borderFocusWarning:Ct,borderHoverWarning:pt,borderActiveWarning:ti,colorActiveError:ge,boxShadowFocusError:Re,boxShadowActiveError:Ve,boxShadowHoverError:mt,borderError:wt,borderFocusError:gt,borderHoverError:Do,borderActiveError:Io,clearColor:Bo,clearColorHover:Ai,clearColorPressed:Mi,clearSize:rr,arrowSize:hl,[ze("height",oe)]:ul,[ze("fontSize",oe)]:fl}}=g.value;return{"--n-bezier":U,"--n-border":fe,"--n-border-active":Ae,"--n-border-focus":we,"--n-border-hover":Ie,"--n-border-radius":G,"--n-box-shadow-active":Pe,"--n-box-shadow-focus":Te,"--n-box-shadow-hover":de,"--n-caret-color":me,"--n-color":re,"--n-color-active":Le,"--n-color-disabled":ve,"--n-font-size":fl,"--n-height":ul,"--n-padding-single":ue,"--n-padding-multiple":he,"--n-placeholder-color":ie,"--n-placeholder-color-disabled":Se,"--n-text-color":ae,"--n-text-color-disabled":pe,"--n-arrow-color":ye,"--n-arrow-color-disabled":Be,"--n-loading-color":Fe,"--n-color-active-warning":_e,"--n-box-shadow-focus-warning":Ue,"--n-box-shadow-active-warning":Ye,"--n-box-shadow-hover-warning":tt,"--n-border-warning":Ke,"--n-border-focus-warning":Ct,"--n-border-hover-warning":pt,"--n-border-active-warning":ti,"--n-color-active-error":ge,"--n-box-shadow-focus-error":Re,"--n-box-shadow-active-error":Ve,"--n-box-shadow-hover-error":mt,"--n-border-error":wt,"--n-border-focus-error":gt,"--n-border-hover-error":Do,"--n-border-active-error":Io,"--n-clear-size":rr,"--n-clear-color":Bo,"--n-clear-color-hover":Ai,"--n-clear-color-pressed":Mi,"--n-arrow-size":hl}}),ne=se?jt("internal-selection",be(()=>e.size[0]),ce,e):void 0;return{mergedTheme:g,mergedClearable:k,patternInputFocused:v,filterablePlaceholder:M,label:y,selected:T,showTagsPanel:d,isComposing:F,counterRef:c,counterWrapperRef:u,patternInputMirrorRef:t,patternInputRef:o,selfRef:i,multipleElRef:n,singleElRef:r,patternInputWrapperRef:s,overflowRef:f,inputTagElRef:p,handleMouseDown:h,handleFocusin:E,handleClear:C,handleMouseEnter:a,handleMouseLeave:l,handleDeleteOption:b,handlePatternKeyDown:B,handlePatternInputInput:W,handlePatternInputBlur:Y,handlePatternInputFocus:ee,handleMouseEnterCounter:Z,handleMouseLeaveCounter:J,handleFocusout:m,handleCompositionEnd:Q,handleCompositionStart:X,onPopoverUpdateShow:te,focus:N,focusInput:V,blur:D,blurInput:j,updateCounter:K,getCounter:_,getTail:$,renderLabel:e.renderLabel,cssVars:se?void 0:ce,themeClass:ne==null?void 0:ne.themeClass,onRender:ne==null?void 0:ne.onRender}},render(){const{status:e,multiple:t,size:o,disabled:i,filterable:n,maxTagCount:r,bordered:s,clsPrefix:c,onRender:u,renderTag:f,renderLabel:p}=this;u==null||u();const d=r==="responsive",v=typeof r=="number",x=d||v,g=le(Cc,null,{default:()=>le(lv,{clsPrefix:c,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var M,y;return(y=(M=this.$slots).arrow)===null||y===void 0?void 0:y.call(M)}})});let k;if(t){const{labelField:M}=this,y=m=>le("div",{class:`${c}-base-selection-tag-wrapper`,key:m.value},f?f({option:m,handleClose:()=>{this.handleDeleteOption(m)}}):le($l,{size:o,closable:!m.disabled,disabled:i,onClose:()=>{this.handleDeleteOption(m)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>p?p(m,!0):Dt(m[M],m,!0)})),T=()=>(v?this.selectedOptions.slice(0,r):this.selectedOptions).map(y),I=n?le("div",{class:`${c}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},le("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:i,value:this.pattern,autofocus:this.autofocus,class:`${c}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),le("span",{ref:"patternInputMirrorRef",class:`${c}-base-selection-input-tag__mirror`},this.pattern)):null,A=d?()=>le("div",{class:`${c}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},le($l,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:i})):void 0;let R;if(v){const m=this.selectedOptions.length-r;m>0&&(R=le("div",{class:`${c}-base-selection-tag-wrapper`,key:"__counter__"},le($l,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:i},{default:()=>`+${m}`})))}const z=d?n?le(_u,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:T,counter:A,tail:()=>I}):le(_u,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:T,counter:A}):v?T().concat(R):T(),P=x?()=>le("div",{class:`${c}-base-selection-popover`},d?T():this.selectedOptions.map(y)):void 0,L=x?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,w=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?le("div",{class:`${c}-base-selection-placeholder ${c}-base-selection-overlay`},le("div",{class:`${c}-base-selection-placeholder__inner`},this.placeholder)):null,E=n?le("div",{ref:"patternInputWrapperRef",class:`${c}-base-selection-tags`},z,d?null:I,g):le("div",{ref:"multipleElRef",class:`${c}-base-selection-tags`,tabindex:i?void 0:0},z,g);k=le(ut,null,x?le(G2,Object.assign({},L,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:P}):E,w)}else if(n){const M=this.pattern||this.isComposing,y=this.active?!M:!this.selected,T=this.active?!1:this.selected;k=le("div",{ref:"patternInputWrapperRef",class:`${c}-base-selection-label`},le("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${c}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:i,disabled:i,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),T?le("div",{class:`${c}-base-selection-label__render-label ${c}-base-selection-overlay`,key:"input"},le("div",{class:`${c}-base-selection-overlay__wrapper`},f?f({option:this.selectedOption,handleClose:()=>{}}):p?p(this.selectedOption,!0):Dt(this.label,this.selectedOption,!0))):null,y?le("div",{class:`${c}-base-selection-placeholder ${c}-base-selection-overlay`,key:"placeholder"},le("div",{class:`${c}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else k=le("div",{ref:"singleElRef",class:`${c}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?le("div",{class:`${c}-base-selection-input`,title:uC(this.label),key:"input"},le("div",{class:`${c}-base-selection-input__content`},f?f({option:this.selectedOption,handleClose:()=>{}}):p?p(this.selectedOption,!0):Dt(this.label,this.selectedOption,!0))):le("div",{class:`${c}-base-selection-placeholder ${c}-base-selection-overlay`,key:"placeholder"},le("div",{class:`${c}-base-selection-placeholder__inner`},this.placeholder)),g);return le("div",{ref:"selfRef",class:[`${c}-base-selection`,this.themeClass,e&&`${c}-base-selection--${e}-status`,{[`${c}-base-selection--active`]:this.active,[`${c}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${c}-base-selection--disabled`]:this.disabled,[`${c}-base-selection--multiple`]:this.multiple,[`${c}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},k,s?le("div",{class:`${c}-base-selection__border`}):null,s?le("div",{class:`${c}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:si}=Qo;function sO({duration:e=".2s",delay:t=".1s"}={}){return[Ce("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),Ce("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
  803. opacity: 0!important;
  804. margin-left: 0!important;
  805. margin-right: 0!important;
  806. `),Ce("&.fade-in-width-expand-transition-leave-active",`
  807. overflow: hidden;
  808. transition:
  809. opacity ${e} ${si},
  810. max-width ${e} ${si} ${t},
  811. margin-left ${e} ${si} ${t},
  812. margin-right ${e} ${si} ${t};
  813. `),Ce("&.fade-in-width-expand-transition-enter-active",`
  814. overflow: hidden;
  815. transition:
  816. opacity ${e} ${si} ${t},
  817. max-width ${e} ${si},
  818. margin-left ${e} ${si},
  819. margin-right ${e} ${si};
  820. `)]}const aO={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},lO={name:"Alert",common:$e,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:i,dividerColor:n,inputColor:r,textColor1:s,textColor2:c,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:d,closeIconColorPressed:v,infoColorSuppl:x,successColorSuppl:g,warningColorSuppl:k,errorColorSuppl:M,fontSize:y}=e;return Object.assign(Object.assign({},aO),{fontSize:y,lineHeight:t,titleFontWeight:i,borderRadius:o,border:`1px solid ${n}`,color:r,titleTextColor:s,iconColor:c,contentTextColor:c,closeBorderRadius:o,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:d,closeIconColorPressed:v,borderInfo:`1px solid ${De(x,{alpha:.35})}`,colorInfo:De(x,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:x,contentTextColorInfo:c,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:d,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${De(g,{alpha:.35})}`,colorSuccess:De(g,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:g,contentTextColorSuccess:c,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${De(k,{alpha:.35})}`,colorWarning:De(k,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:k,contentTextColorWarning:c,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:d,closeIconColorPressedWarning:v,borderError:`1px solid ${De(M,{alpha:.35})}`,colorError:De(M,{alpha:.25}),titleTextColorError:s,iconColorError:M,contentTextColorError:c,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:d,closeIconColorPressedError:v})}},cO=lO,{cubicBezierEaseInOut:wo,cubicBezierEaseOut:dO,cubicBezierEaseIn:hO}=Qo;function uO({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:i="0s",foldPadding:n=!1,enterToProps:r=void 0,leaveToProps:s=void 0,reverse:c=!1}={}){const u=c?"leave":"enter",f=c?"enter":"leave";return[Ce(`&.fade-in-height-expand-transition-${f}-from,
  821. &.fade-in-height-expand-transition-${u}-to`,Object.assign(Object.assign({},r),{opacity:1})),Ce(`&.fade-in-height-expand-transition-${f}-to,
  822. &.fade-in-height-expand-transition-${u}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),Ce(`&.fade-in-height-expand-transition-${f}-active`,`
  823. overflow: ${e};
  824. transition:
  825. max-height ${t} ${wo} ${i},
  826. opacity ${t} ${dO} ${i},
  827. margin-top ${t} ${wo} ${i},
  828. margin-bottom ${t} ${wo} ${i},
  829. padding-top ${t} ${wo} ${i},
  830. padding-bottom ${t} ${wo} ${i}
  831. ${o?","+o:""}
  832. `),Ce(`&.fade-in-height-expand-transition-${u}-active`,`
  833. overflow: ${e};
  834. transition:
  835. max-height ${t} ${wo},
  836. opacity ${t} ${hO},
  837. margin-top ${t} ${wo},
  838. margin-bottom ${t} ${wo},
  839. padding-top ${t} ${wo},
  840. padding-bottom ${t} ${wo}
  841. ${o?","+o:""}
  842. `)]}const fO={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},pO=e=>{const{borderRadius:t,railColor:o,primaryColor:i,primaryColorHover:n,primaryColorPressed:r,textColor2:s}=e;return Object.assign(Object.assign({},fO),{borderRadius:t,railColor:o,railColorActive:i,linkColor:De(i,{alpha:.15}),linkTextColor:s,linkTextColorHover:n,linkTextColorPressed:r,linkTextColorActive:i})},gO={name:"Anchor",common:$e,self:pO},mO=gO;function ba(e){return e.type==="group"}function hv(e){return e.type==="ignored"}function Fl(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function vO(e,t){return{getIsGroup:ba,getIgnored:hv,getKey(i){return ba(i)?i.name||i.key||"key-required":i[e]},getChildren(i){return i[t]}}}function xO(e,t,o,i){if(!t)return e;function n(r){if(!Array.isArray(r))return[];const s=[];for(const c of r)if(ba(c)){const u=n(c[i]);u.length&&s.push(Object.assign({},c,{[i]:u}))}else{if(hv(c))continue;t(o,c)&&s.push(c)}return s}return n(e)}function bO(e,t,o){const i=new Map;return e.forEach(n=>{ba(n)?n[o].forEach(r=>{i.set(r[t],r)}):i.set(n[t],n)}),i}const yO=Kn&&"chrome"in window;Kn&&navigator.userAgent.includes("Firefox");const uv=Kn&&navigator.userAgent.includes("Safari")&&!yO,fv={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},CO={name:"Input",common:$e,self(e){const{textColor2:t,textColor3:o,textColorDisabled:i,primaryColor:n,primaryColorHover:r,inputColor:s,inputColorDisabled:c,warningColor:u,warningColorHover:f,errorColor:p,errorColorHover:d,borderRadius:v,lineHeight:x,fontSizeTiny:g,fontSizeSmall:k,fontSizeMedium:M,fontSizeLarge:y,heightTiny:T,heightSmall:I,heightMedium:A,heightLarge:R,clearColor:z,clearColorHover:P,clearColorPressed:L,placeholderColor:S,placeholderColorDisabled:w,iconColor:E,iconColorDisabled:m,iconColorHover:C,iconColorPressed:a}=e;return Object.assign(Object.assign({},fv),{countTextColorDisabled:i,countTextColor:o,heightTiny:T,heightSmall:I,heightMedium:A,heightLarge:R,fontSizeTiny:g,fontSizeSmall:k,fontSizeMedium:M,fontSizeLarge:y,lineHeight:x,lineHeightTextarea:x,borderRadius:v,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:i,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:S,placeholderColorDisabled:w,color:s,colorDisabled:c,colorFocus:De(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${r}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${r}`,boxShadowFocus:`0 0 8px 0 ${De(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${f}`,colorFocusWarning:De(u,{alpha:.1}),borderFocusWarning:`1px solid ${f}`,boxShadowFocusWarning:`0 0 8px 0 ${De(u,{alpha:.3})}`,caretColorWarning:u,loadingColorError:p,borderError:`1px solid ${p}`,borderHoverError:`1px solid ${d}`,colorFocusError:De(p,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${De(p,{alpha:.3})}`,caretColorError:p,clearColor:z,clearColorHover:P,clearColorPressed:L,iconColor:E,iconColorDisabled:m,iconColorHover:C,iconColorPressed:a,suffixTextColor:t})}},po=CO,wO=e=>{const{textColor2:t,textColor3:o,textColorDisabled:i,primaryColor:n,primaryColorHover:r,inputColor:s,inputColorDisabled:c,borderColor:u,warningColor:f,warningColorHover:p,errorColor:d,errorColorHover:v,borderRadius:x,lineHeight:g,fontSizeTiny:k,fontSizeSmall:M,fontSizeMedium:y,fontSizeLarge:T,heightTiny:I,heightSmall:A,heightMedium:R,heightLarge:z,actionColor:P,clearColor:L,clearColorHover:S,clearColorPressed:w,placeholderColor:E,placeholderColorDisabled:m,iconColor:C,iconColorDisabled:a,iconColorHover:l,iconColorPressed:h}=e;return Object.assign(Object.assign({},fv),{countTextColorDisabled:i,countTextColor:o,heightTiny:I,heightSmall:A,heightMedium:R,heightLarge:z,fontSizeTiny:k,fontSizeSmall:M,fontSizeMedium:y,fontSizeLarge:T,lineHeight:g,lineHeightTextarea:g,borderRadius:x,iconSize:"16px",groupLabelColor:P,groupLabelTextColor:t,textColor:t,textColorDisabled:i,textDecorationColor:t,caretColor:n,placeholderColor:E,placeholderColorDisabled:m,color:s,colorDisabled:c,colorFocus:s,groupLabelBorder:`1px solid ${u}`,border:`1px solid ${u}`,borderHover:`1px solid ${r}`,borderDisabled:`1px solid ${u}`,borderFocus:`1px solid ${r}`,boxShadowFocus:`0 0 0 2px ${De(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:f,borderWarning:`1px solid ${f}`,borderHoverWarning:`1px solid ${p}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${p}`,boxShadowFocusWarning:`0 0 0 2px ${De(f,{alpha:.2})}`,caretColorWarning:f,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${v}`,colorFocusError:s,borderFocusError:`1px solid ${v}`,boxShadowFocusError:`0 0 0 2px ${De(d,{alpha:.2})}`,caretColorError:d,clearColor:L,clearColorHover:S,clearColorPressed:w,iconColor:C,iconColorDisabled:a,iconColorHover:l,iconColorPressed:h,suffixTextColor:t})},SO={name:"Input",common:Qe,self:wO},Ka=SO,pv="n-input";function kO(e){let t=0;for(const o of e)t++;return t}function _s(e){return e===""||e==null}function TO(e){const t=ke(null);function o(){const{value:r}=e;if(!(r!=null&&r.focus)){n();return}const{selectionStart:s,selectionEnd:c,value:u}=r;if(s==null||c==null){n();return}t.value={start:s,end:c,beforeText:u.slice(0,s),afterText:u.slice(c)}}function i(){var r;const{value:s}=t,{value:c}=e;if(!s||!c)return;const{value:u}=c,{start:f,beforeText:p,afterText:d}=s;let v=u.length;if(u.endsWith(d))v=u.length-d.length;else if(u.startsWith(p))v=p.length;else{const x=p[f-1],g=u.indexOf(x,f-1);g!==-1&&(v=g+1)}(r=c.setSelectionRange)===null||r===void 0||r.call(c,v,v)}function n(){t.value=null}return lt(e,n),{recordCursor:o,restoreCursor:i}}const Af=Ne({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:i,mergedClsPrefixRef:n,countGraphemesRef:r}=Xe(pv),s=be(()=>{const{value:c}=o;return c===null||Array.isArray(c)?0:(r.value||kO)(c)});return()=>{const{value:c}=i,{value:u}=o;return le("span",{class:`${n.value}-input-word-count`},fC(t.default,{value:u===null||Array.isArray(u)?"":u},()=>[c===void 0?s.value:`${s.value} / ${c}`]))}}}),PO=Me("input",`
  843. max-width: 100%;
  844. cursor: text;
  845. line-height: 1.5;
  846. z-index: auto;
  847. outline: none;
  848. box-sizing: border-box;
  849. position: relative;
  850. display: inline-flex;
  851. border-radius: var(--n-border-radius);
  852. background-color: var(--n-color);
  853. transition: background-color .3s var(--n-bezier);
  854. font-size: var(--n-font-size);
  855. --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
  856. `,[xe("input, textarea",`
  857. overflow: hidden;
  858. flex-grow: 1;
  859. position: relative;
  860. `),xe("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
  861. box-sizing: border-box;
  862. font-size: inherit;
  863. line-height: 1.5;
  864. font-family: inherit;
  865. border: none;
  866. outline: none;
  867. background-color: #0000;
  868. text-align: inherit;
  869. transition:
  870. -webkit-text-fill-color .3s var(--n-bezier),
  871. caret-color .3s var(--n-bezier),
  872. color .3s var(--n-bezier),
  873. text-decoration-color .3s var(--n-bezier);
  874. `),xe("input-el, textarea-el",`
  875. -webkit-appearance: none;
  876. scrollbar-width: none;
  877. width: 100%;
  878. min-width: 0;
  879. text-decoration-color: var(--n-text-decoration-color);
  880. color: var(--n-text-color);
  881. caret-color: var(--n-caret-color);
  882. background-color: transparent;
  883. `,[Ce("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  884. width: 0;
  885. height: 0;
  886. display: none;
  887. `),Ce("&::placeholder",`
  888. color: #0000;
  889. -webkit-text-fill-color: transparent !important;
  890. `),Ce("&:-webkit-autofill ~",[xe("placeholder","display: none;")])]),Oe("round",[_t("textarea","border-radius: calc(var(--n-height) / 2);")]),xe("placeholder",`
  891. pointer-events: none;
  892. position: absolute;
  893. left: 0;
  894. right: 0;
  895. top: 0;
  896. bottom: 0;
  897. overflow: hidden;
  898. color: var(--n-placeholder-color);
  899. `,[Ce("span",`
  900. width: 100%;
  901. display: inline-block;
  902. `)]),Oe("textarea",[xe("placeholder","overflow: visible;")]),_t("autosize","width: 100%;"),Oe("autosize",[xe("textarea-el, input-el",`
  903. position: absolute;
  904. top: 0;
  905. left: 0;
  906. height: 100%;
  907. `)]),Me("input-wrapper",`
  908. overflow: hidden;
  909. display: inline-flex;
  910. flex-grow: 1;
  911. position: relative;
  912. padding-left: var(--n-padding-left);
  913. padding-right: var(--n-padding-right);
  914. `),xe("input-mirror",`
  915. padding: 0;
  916. height: var(--n-height);
  917. line-height: var(--n-height);
  918. overflow: hidden;
  919. visibility: hidden;
  920. position: static;
  921. white-space: pre;
  922. pointer-events: none;
  923. `),xe("input-el",`
  924. padding: 0;
  925. height: var(--n-height);
  926. line-height: var(--n-height);
  927. `,[Ce("+",[xe("placeholder",`
  928. display: flex;
  929. align-items: center;
  930. `)])]),_t("textarea",[xe("placeholder","white-space: nowrap;")]),xe("eye",`
  931. display: flex;
  932. align-items: center;
  933. justify-content: center;
  934. transition: color .3s var(--n-bezier);
  935. `),Oe("textarea","width: 100%;",[Me("input-word-count",`
  936. position: absolute;
  937. right: var(--n-padding-right);
  938. bottom: var(--n-padding-vertical);
  939. `),Oe("resizable",[Me("input-wrapper",`
  940. resize: vertical;
  941. min-height: var(--n-height);
  942. `)]),xe("textarea-el, textarea-mirror, placeholder",`
  943. height: 100%;
  944. padding-left: 0;
  945. padding-right: 0;
  946. padding-top: var(--n-padding-vertical);
  947. padding-bottom: var(--n-padding-vertical);
  948. word-break: break-word;
  949. display: inline-block;
  950. vertical-align: bottom;
  951. box-sizing: border-box;
  952. line-height: var(--n-line-height-textarea);
  953. margin: 0;
  954. resize: none;
  955. white-space: pre-wrap;
  956. `),xe("textarea-mirror",`
  957. width: 100%;
  958. pointer-events: none;
  959. overflow: hidden;
  960. visibility: hidden;
  961. position: static;
  962. white-space: pre-wrap;
  963. overflow-wrap: break-word;
  964. `)]),Oe("pair",[xe("input-el, placeholder","text-align: center;"),xe("separator",`
  965. display: flex;
  966. align-items: center;
  967. transition: color .3s var(--n-bezier);
  968. color: var(--n-text-color);
  969. white-space: nowrap;
  970. `,[Me("icon",`
  971. color: var(--n-icon-color);
  972. `),Me("base-icon",`
  973. color: var(--n-icon-color);
  974. `)])]),Oe("disabled",`
  975. cursor: not-allowed;
  976. background-color: var(--n-color-disabled);
  977. `,[xe("border","border: var(--n-border-disabled);"),xe("input-el, textarea-el",`
  978. cursor: not-allowed;
  979. color: var(--n-text-color-disabled);
  980. text-decoration-color: var(--n-text-color-disabled);
  981. `),xe("placeholder","color: var(--n-placeholder-color-disabled);"),xe("separator","color: var(--n-text-color-disabled);",[Me("icon",`
  982. color: var(--n-icon-color-disabled);
  983. `),Me("base-icon",`
  984. color: var(--n-icon-color-disabled);
  985. `)]),Me("input-word-count",`
  986. color: var(--n-count-text-color-disabled);
  987. `),xe("suffix, prefix","color: var(--n-text-color-disabled);",[Me("icon",`
  988. color: var(--n-icon-color-disabled);
  989. `),Me("internal-icon",`
  990. color: var(--n-icon-color-disabled);
  991. `)])]),_t("disabled",[xe("eye",`
  992. color: var(--n-icon-color);
  993. cursor: pointer;
  994. `,[Ce("&:hover",`
  995. color: var(--n-icon-color-hover);
  996. `),Ce("&:active",`
  997. color: var(--n-icon-color-pressed);
  998. `)]),Ce("&:hover",[xe("state-border","border: var(--n-border-hover);")]),Oe("focus","background-color: var(--n-color-focus);",[xe("state-border",`
  999. border: var(--n-border-focus);
  1000. box-shadow: var(--n-box-shadow-focus);
  1001. `)])]),xe("border, state-border",`
  1002. box-sizing: border-box;
  1003. position: absolute;
  1004. left: 0;
  1005. right: 0;
  1006. top: 0;
  1007. bottom: 0;
  1008. pointer-events: none;
  1009. border-radius: inherit;
  1010. border: var(--n-border);
  1011. transition:
  1012. box-shadow .3s var(--n-bezier),
  1013. border-color .3s var(--n-bezier);
  1014. `),xe("state-border",`
  1015. border-color: #0000;
  1016. z-index: 1;
  1017. `),xe("prefix","margin-right: 4px;"),xe("suffix",`
  1018. margin-left: 4px;
  1019. `),xe("suffix, prefix",`
  1020. transition: color .3s var(--n-bezier);
  1021. flex-wrap: nowrap;
  1022. flex-shrink: 0;
  1023. line-height: var(--n-height);
  1024. white-space: nowrap;
  1025. display: inline-flex;
  1026. align-items: center;
  1027. justify-content: center;
  1028. color: var(--n-suffix-text-color);
  1029. `,[Me("base-loading",`
  1030. font-size: var(--n-icon-size);
  1031. margin: 0 2px;
  1032. color: var(--n-loading-color);
  1033. `),Me("base-clear",`
  1034. font-size: var(--n-icon-size);
  1035. `,[xe("placeholder",[Me("base-icon",`
  1036. transition: color .3s var(--n-bezier);
  1037. color: var(--n-icon-color);
  1038. font-size: var(--n-icon-size);
  1039. `)])]),Ce(">",[Me("icon",`
  1040. transition: color .3s var(--n-bezier);
  1041. color: var(--n-icon-color);
  1042. font-size: var(--n-icon-size);
  1043. `)]),Me("base-icon",`
  1044. font-size: var(--n-icon-size);
  1045. `)]),Me("input-word-count",`
  1046. pointer-events: none;
  1047. line-height: 1.5;
  1048. font-size: .85em;
  1049. color: var(--n-count-text-color);
  1050. transition: color .3s var(--n-bezier);
  1051. margin-left: 4px;
  1052. font-variant: tabular-nums;
  1053. `),["warning","error"].map(e=>Oe(`${e}-status`,[_t("disabled",[Me("base-loading",`
  1054. color: var(--n-loading-color-${e})
  1055. `),xe("input-el, textarea-el",`
  1056. caret-color: var(--n-caret-color-${e});
  1057. `),xe("state-border",`
  1058. border: var(--n-border-${e});
  1059. `),Ce("&:hover",[xe("state-border",`
  1060. border: var(--n-border-hover-${e});
  1061. `)]),Ce("&:focus",`
  1062. background-color: var(--n-color-focus-${e});
  1063. `,[xe("state-border",`
  1064. box-shadow: var(--n-box-shadow-focus-${e});
  1065. border: var(--n-border-focus-${e});
  1066. `)]),Oe("focus",`
  1067. background-color: var(--n-color-focus-${e});
  1068. `,[xe("state-border",`
  1069. box-shadow: var(--n-box-shadow-focus-${e});
  1070. border: var(--n-border-focus-${e});
  1071. `)])])]))]),AO=Me("input",[Oe("disabled",[xe("input-el, textarea-el",`
  1072. -webkit-text-fill-color: var(--n-text-color-disabled);
  1073. `)])]),MO=Object.assign(Object.assign({},Je.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),EO=Ne({name:"Input",props:MO,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:i,mergedRtlRef:n}=Rt(e),r=Je("Input","-input",PO,Ka,e,t);uv&&Qn("-input-safari",AO,t);const s=ke(null),c=ke(null),u=ke(null),f=ke(null),p=ke(null),d=ke(null),v=ke(null),x=TO(v),g=ke(null),{localeRef:k}=Kd("Input"),M=ke(e.defaultValue),y=et(e,"value"),T=da(y,M),I=Bd(e),{mergedSizeRef:A,mergedDisabledRef:R,mergedStatusRef:z}=I,P=ke(!1),L=ke(!1),S=ke(!1),w=ke(!1);let E=null;const m=be(()=>{const{placeholder:ge,pair:Re}=e;return Re?Array.isArray(ge)?ge:ge===void 0?["",""]:[ge,ge]:ge===void 0?[k.value.placeholder]:[ge]}),C=be(()=>{const{value:ge}=S,{value:Re}=T,{value:Ve}=m;return!ge&&(_s(Re)||Array.isArray(Re)&&_s(Re[0]))&&Ve[0]}),a=be(()=>{const{value:ge}=S,{value:Re}=T,{value:Ve}=m;return!ge&&Ve[1]&&(_s(Re)||Array.isArray(Re)&&_s(Re[1]))}),l=Kt(()=>e.internalForceFocus||P.value),h=Kt(()=>{if(R.value||e.readonly||!e.clearable||!l.value&&!L.value)return!1;const{value:ge}=T,{value:Re}=l;return e.pair?!!(Array.isArray(ge)&&(ge[0]||ge[1]))&&(L.value||Re):!!ge&&(L.value||Re)}),b=be(()=>{const{showPasswordOn:ge}=e;if(ge)return ge;if(e.showPasswordToggle)return"click"}),B=ke(!1),F=be(()=>{const{textDecoration:ge}=e;return ge?Array.isArray(ge)?ge.map(Re=>({textDecoration:Re})):[{textDecoration:ge}]:["",""]}),O=ke(void 0),W=()=>{var ge,Re;if(e.type==="textarea"){const{autosize:Ve}=e;if(Ve&&(O.value=(Re=(ge=g.value)===null||ge===void 0?void 0:ge.$el)===null||Re===void 0?void 0:Re.offsetWidth),!c.value||typeof Ve=="boolean")return;const{paddingTop:mt,paddingBottom:wt,lineHeight:gt}=window.getComputedStyle(c.value),Do=Number(mt.slice(0,-2)),Io=Number(wt.slice(0,-2)),Bo=Number(gt.slice(0,-2)),{value:Ai}=u;if(!Ai)return;if(Ve.minRows){const Mi=Math.max(Ve.minRows,1),rr=`${Do+Io+Bo*Mi}px`;Ai.style.minHeight=rr}if(Ve.maxRows){const Mi=`${Do+Io+Bo*Ve.maxRows}px`;Ai.style.maxHeight=Mi}}},X=be(()=>{const{maxlength:ge}=e;return ge===void 0?void 0:Number(ge)});Pt(()=>{const{value:ge}=T;Array.isArray(ge)||Be(ge)});const Q=so().proxy;function ee(ge){const{onUpdateValue:Re,"onUpdate:value":Ve,onInput:mt}=e,{nTriggerFormInput:wt}=I;Re&&ot(Re,ge),Ve&&ot(Ve,ge),mt&&ot(mt,ge),M.value=ge,wt()}function Y(ge){const{onChange:Re}=e,{nTriggerFormChange:Ve}=I;Re&&ot(Re,ge),M.value=ge,Ve()}function D(ge){const{onBlur:Re}=e,{nTriggerFormBlur:Ve}=I;Re&&ot(Re,ge),Ve()}function N(ge){const{onFocus:Re}=e,{nTriggerFormFocus:Ve}=I;Re&&ot(Re,ge),Ve()}function V(ge){const{onClear:Re}=e;Re&&ot(Re,ge)}function j(ge){const{onInputBlur:Re}=e;Re&&ot(Re,ge)}function K(ge){const{onInputFocus:Re}=e;Re&&ot(Re,ge)}function _(){const{onDeactivate:ge}=e;ge&&ot(ge)}function $(){const{onActivate:ge}=e;ge&&ot(ge)}function H(ge){const{onClick:Re}=e;Re&&ot(Re,ge)}function q(ge){const{onWrapperFocus:Re}=e;Re&&ot(Re,ge)}function Z(ge){const{onWrapperBlur:Re}=e;Re&&ot(Re,ge)}function J(){S.value=!0}function te(ge){S.value=!1,ge.target===d.value?se(ge,1):se(ge,0)}function se(ge,Re=0,Ve="input"){const mt=ge.target.value;if(Be(mt),ge instanceof InputEvent&&!ge.isComposing&&(S.value=!1),e.type==="textarea"){const{value:gt}=g;gt&&gt.syncUnifiedContainer()}if(E=mt,S.value)return;x.recordCursor();const wt=ce(mt);if(wt)if(!e.pair)Ve==="input"?ee(mt):Y(mt);else{let{value:gt}=T;Array.isArray(gt)?gt=[gt[0],gt[1]]:gt=["",""],gt[Re]=mt,Ve==="input"?ee(gt):Y(gt)}Q.$forceUpdate(),wt||Ft(x.restoreCursor)}function ce(ge){const{countGraphemes:Re,maxlength:Ve,minlength:mt}=e;if(Re){let gt;if(Ve!==void 0&&(gt===void 0&&(gt=Re(ge)),gt>Number(Ve))||mt!==void 0&&(gt===void 0&&(gt=Re(ge)),gt<Number(Ve)))return!1}const{allowInput:wt}=e;return typeof wt=="function"?wt(ge):!0}function ne(ge){j(ge),ge.relatedTarget===s.value&&_(),ge.relatedTarget!==null&&(ge.relatedTarget===p.value||ge.relatedTarget===d.value||ge.relatedTarget===c.value)||(w.value=!1),re(ge,"blur"),v.value=null}function oe(ge,Re){K(ge),P.value=!0,w.value=!0,$(),re(ge,"focus"),Re===0?v.value=p.value:Re===1?v.value=d.value:Re===2&&(v.value=c.value)}function U(ge){e.passivelyActivated&&(Z(ge),re(ge,"blur"))}function G(ge){e.passivelyActivated&&(P.value=!0,q(ge),re(ge,"focus"))}function re(ge,Re){ge.relatedTarget!==null&&(ge.relatedTarget===p.value||ge.relatedTarget===d.value||ge.relatedTarget===c.value||ge.relatedTarget===s.value)||(Re==="focus"?(N(ge),P.value=!0):Re==="blur"&&(D(ge),P.value=!1))}function ie(ge,Re){se(ge,Re,"change")}function ae(ge){H(ge)}function ue(ge){V(ge),e.pair?(ee(["",""]),Y(["",""])):(ee(""),Y(""))}function he(ge){const{onMousedown:Re}=e;Re&&Re(ge);const{tagName:Ve}=ge.target;if(Ve!=="INPUT"&&Ve!=="TEXTAREA"){if(e.resizable){const{value:mt}=s;if(mt){const{left:wt,top:gt,width:Do,height:Io}=mt.getBoundingClientRect(),Bo=14;if(wt+Do-Bo<ge.clientX&&ge.clientX<wt+Do&&gt+Io-Bo<ge.clientY&&ge.clientY<gt+Io)return}}ge.preventDefault(),P.value||de()}}function me(){var ge;L.value=!0,e.type==="textarea"&&((ge=g.value)===null||ge===void 0||ge.handleMouseEnterWrapper())}function ve(){var ge;L.value=!1,e.type==="textarea"&&((ge=g.value)===null||ge===void 0||ge.handleMouseLeaveWrapper())}function pe(){R.value||b.value==="click"&&(B.value=!B.value)}function Se(ge){if(R.value)return;ge.preventDefault();const Re=mt=>{mt.preventDefault(),bt("mouseup",document,Re)};if(Et("mouseup",document,Re),b.value!=="mousedown")return;B.value=!0;const Ve=()=>{B.value=!1,bt("mouseup",document,Ve)};Et("mouseup",document,Ve)}function Le(ge){var Re;switch((Re=e.onKeydown)===null||Re===void 0||Re.call(e,ge),ge.key){case"Escape":Pe();break;case"Enter":Te(ge);break}}function Te(ge){var Re,Ve;if(e.passivelyActivated){const{value:mt}=w;if(mt){e.internalDeactivateOnEnter&&Pe();return}ge.preventDefault(),e.type==="textarea"?(Re=c.value)===null||Re===void 0||Re.focus():(Ve=p.value)===null||Ve===void 0||Ve.focus()}}function Pe(){e.passivelyActivated&&(w.value=!1,Ft(()=>{var ge;(ge=s.value)===null||ge===void 0||ge.focus()}))}function de(){var ge,Re,Ve;R.value||(e.passivelyActivated?(ge=s.value)===null||ge===void 0||ge.focus():((Re=c.value)===null||Re===void 0||Re.focus(),(Ve=p.value)===null||Ve===void 0||Ve.focus()))}function fe(){var ge;!((ge=s.value)===null||ge===void 0)&&ge.contains(document.activeElement)&&document.activeElement.blur()}function we(){var ge,Re;(ge=c.value)===null||ge===void 0||ge.select(),(Re=p.value)===null||Re===void 0||Re.select()}function Ie(){R.value||(c.value?c.value.focus():p.value&&p.value.focus())}function Ae(){const{value:ge}=s;ge!=null&&ge.contains(document.activeElement)&&ge!==document.activeElement&&Pe()}function ye(ge){if(e.type==="textarea"){const{value:Re}=c;Re==null||Re.scrollTo(ge)}else{const{value:Re}=p;Re==null||Re.scrollTo(ge)}}function Be(ge){const{type:Re,pair:Ve,autosize:mt}=e;if(!Ve&&mt)if(Re==="textarea"){const{value:wt}=u;wt&&(wt.textContent=(ge??"")+`\r
  1074. `)}else{const{value:wt}=f;wt&&(ge?wt.textContent=ge:wt.innerHTML="&nbsp;")}}function Fe(){W()}const _e=ke({top:"0"});function Ue(ge){var Re;const{scrollTop:Ve}=ge.target;_e.value.top=`${-Ve}px`,(Re=g.value)===null||Re===void 0||Re.syncUnifiedContainer()}let Ye=null;Go(()=>{const{autosize:ge,type:Re}=e;ge&&Re==="textarea"?Ye=lt(T,Ve=>{!Array.isArray(Ve)&&Ve!==E&&Be(Ve)}):Ye==null||Ye()});let tt=null;Go(()=>{e.type==="textarea"?tt=lt(T,ge=>{var Re;!Array.isArray(ge)&&ge!==E&&((Re=g.value)===null||Re===void 0||Re.syncUnifiedContainer())}):tt==null||tt()}),ct(pv,{mergedValueRef:T,maxlengthRef:X,mergedClsPrefixRef:t,countGraphemesRef:et(e,"countGraphemes")});const Ke={wrapperElRef:s,inputElRef:p,textareaElRef:c,isCompositing:S,focus:de,blur:fe,select:we,deactivate:Ae,activate:Ie,scrollTo:ye},Ct=on("Input",n,t),pt=be(()=>{const{value:ge}=A,{common:{cubicBezierEaseInOut:Re},self:{color:Ve,borderRadius:mt,textColor:wt,caretColor:gt,caretColorError:Do,caretColorWarning:Io,textDecorationColor:Bo,border:Ai,borderDisabled:Mi,borderHover:rr,borderFocus:hl,placeholderColor:ul,placeholderColorDisabled:fl,lineHeightTextarea:Sx,colorDisabled:kx,colorFocus:Tx,textColorDisabled:Px,boxShadowFocus:Ax,iconSize:Mx,colorFocusWarning:Ex,boxShadowFocusWarning:Ox,borderWarning:Rx,borderFocusWarning:Lx,borderHoverWarning:Dx,colorFocusError:Ix,boxShadowFocusError:Bx,borderError:_x,borderFocusError:zx,borderHoverError:$x,clearSize:Fx,clearColor:Hx,clearColorHover:jx,clearColorPressed:Nx,iconColor:Wx,iconColorDisabled:Ux,suffixTextColor:Gx,countTextColor:Vx,countTextColorDisabled:Xx,iconColorHover:qx,iconColorPressed:Yx,loadingColor:Kx,loadingColorError:Zx,loadingColorWarning:Jx,[ze("padding",ge)]:Qx,[ze("fontSize",ge)]:eb,[ze("height",ge)]:tb}}=r.value,{left:ob,right:ib}=Tn(Qx);return{"--n-bezier":Re,"--n-count-text-color":Vx,"--n-count-text-color-disabled":Xx,"--n-color":Ve,"--n-font-size":eb,"--n-border-radius":mt,"--n-height":tb,"--n-padding-left":ob,"--n-padding-right":ib,"--n-text-color":wt,"--n-caret-color":gt,"--n-text-decoration-color":Bo,"--n-border":Ai,"--n-border-disabled":Mi,"--n-border-hover":rr,"--n-border-focus":hl,"--n-placeholder-color":ul,"--n-placeholder-color-disabled":fl,"--n-icon-size":Mx,"--n-line-height-textarea":Sx,"--n-color-disabled":kx,"--n-color-focus":Tx,"--n-text-color-disabled":Px,"--n-box-shadow-focus":Ax,"--n-loading-color":Kx,"--n-caret-color-warning":Io,"--n-color-focus-warning":Ex,"--n-box-shadow-focus-warning":Ox,"--n-border-warning":Rx,"--n-border-focus-warning":Lx,"--n-border-hover-warning":Dx,"--n-loading-color-warning":Jx,"--n-caret-color-error":Do,"--n-color-focus-error":Ix,"--n-box-shadow-focus-error":Bx,"--n-border-error":_x,"--n-border-focus-error":zx,"--n-border-hover-error":$x,"--n-loading-color-error":Zx,"--n-clear-color":Hx,"--n-clear-size":Fx,"--n-clear-color-hover":jx,"--n-clear-color-pressed":Nx,"--n-icon-color":Wx,"--n-icon-color-hover":qx,"--n-icon-color-pressed":Yx,"--n-icon-color-disabled":Ux,"--n-suffix-text-color":Gx}}),ti=i?jt("input",be(()=>{const{value:ge}=A;return ge[0]}),pt,e):void 0;return Object.assign(Object.assign({},Ke),{wrapperElRef:s,inputElRef:p,inputMirrorElRef:f,inputEl2Ref:d,textareaElRef:c,textareaMirrorElRef:u,textareaScrollbarInstRef:g,rtlEnabled:Ct,uncontrolledValue:M,mergedValue:T,passwordVisible:B,mergedPlaceholder:m,showPlaceholder1:C,showPlaceholder2:a,mergedFocus:l,isComposing:S,activated:w,showClearButton:h,mergedSize:A,mergedDisabled:R,textDecorationStyle:F,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:b,placeholderStyle:_e,mergedStatus:z,textAreaScrollContainerWidth:O,handleTextAreaScroll:Ue,handleCompositionStart:J,handleCompositionEnd:te,handleInput:se,handleInputBlur:ne,handleInputFocus:oe,handleWrapperBlur:U,handleWrapperFocus:G,handleMouseEnter:me,handleMouseLeave:ve,handleMouseDown:he,handleChange:ie,handleClick:ae,handleClear:ue,handlePasswordToggleClick:pe,handlePasswordToggleMousedown:Se,handleWrapperKeydown:Le,handleTextAreaMirrorResize:Fe,getTextareaScrollContainer:()=>c.value,mergedTheme:r,cssVars:i?void 0:pt,themeClass:ti==null?void 0:ti.themeClass,onRender:ti==null?void 0:ti.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:i,themeClass:n,type:r,countGraphemes:s,onRender:c}=this,u=this.$slots;return c==null||c(),le("div",{ref:"wrapperElRef",class:[`${o}-input`,n,i&&`${o}-input--${i}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:r==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&r!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},le("div",{class:`${o}-input-wrapper`},Tt(u.prefix,f=>f&&le("div",{class:`${o}-input__prefix`},f)),r==="textarea"?le(as,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var f,p;const{textAreaScrollContainerWidth:d}=this,v={width:this.autosize&&d&&`${d}px`};return le(ut,null,le("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(f=this.inputProps)===null||f===void 0?void 0:f.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(p=this.inputProps)===null||p===void 0?void 0:p.style,v],onBlur:this.handleInputBlur,onFocus:x=>{this.handleInputFocus(x,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?le("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,v],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?le(Vr,{onResize:this.handleTextAreaMirrorResize},{default:()=>le("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):le("div",{class:`${o}-input__input`},le("input",Object.assign({type:r==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":r},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,0)},onInput:f=>{this.handleInput(f,0)},onChange:f=>{this.handleChange(f,0)}})),this.showPlaceholder1?le("div",{class:`${o}-input__placeholder`},le("span",null,this.mergedPlaceholder[0])):null,this.autosize?le("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Tt(u.suffix,f=>f||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?le("div",{class:`${o}-input__suffix`},[Tt(u["clear-icon-placeholder"],p=>(this.clearable||p)&&le(zc,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>p,icon:()=>{var d,v;return(v=(d=this.$slots)["clear-icon"])===null||v===void 0?void 0:v.call(d)}})),this.internalLoadingBeforeSuffix?null:f,this.loading!==void 0?le(lv,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?f:null,this.showCount&&this.type!=="textarea"?le(Af,null,{default:p=>{var d;return(d=u.count)===null||d===void 0?void 0:d.call(u,p)}}):null,this.mergedShowPasswordOn&&this.type==="password"?le("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?mi(u["password-visible-icon"],()=>[le(Eo,{clsPrefix:o},{default:()=>le(PE,null)})]):mi(u["password-invisible-icon"],()=>[le(Eo,{clsPrefix:o},{default:()=>le(AE,null)})])):null]):null)),this.pair?le("span",{class:`${o}-input__separator`},mi(u.separator,()=>[this.separator])):null,this.pair?le("div",{class:`${o}-input-wrapper`},le("div",{class:`${o}-input__input`},le("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,1)},onInput:f=>{this.handleInput(f,1)},onChange:f=>{this.handleChange(f,1)}}),this.showPlaceholder2?le("div",{class:`${o}-input__placeholder`},le("span",null,this.mergedPlaceholder[1])):null),Tt(u.suffix,f=>(this.clearable||f)&&le("div",{class:`${o}-input__suffix`},[this.clearable&&le(zc,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var p;return(p=u["clear-icon"])===null||p===void 0?void 0:p.call(u)},placeholder:()=>{var p;return(p=u["clear-icon-placeholder"])===null||p===void 0?void 0:p.call(u)}}),f]))):null,this.mergedBordered?le("div",{class:`${o}-input__border`}):null,this.mergedBordered?le("div",{class:`${o}-input__state-border`}):null,this.showCount&&r==="textarea"?le(Af,null,{default:f=>{var p;const{renderCount:d}=this;return d?d(f):(p=u.count)===null||p===void 0?void 0:p.call(u,f)}}):null)}});function OO(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const RO={name:"AutoComplete",common:$e,peers:{InternalSelectMenu:ls,Input:po},self:OO},LO=RO,DO=e=>{const{borderRadius:t,avatarColor:o,cardColor:i,fontSize:n,heightTiny:r,heightSmall:s,heightMedium:c,heightLarge:u,heightHuge:f,modalColor:p,popoverColor:d}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${i}`,heightTiny:r,heightSmall:s,heightMedium:c,heightLarge:u,heightHuge:f,color:We(i,o),colorModal:We(p,o),colorPopover:We(d,o)}},IO={name:"Avatar",common:$e,self:DO},gv=IO,BO=()=>({gap:"-12px"}),_O={name:"AvatarGroup",common:$e,peers:{Avatar:gv},self:BO},zO=_O,$O={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},FO={name:"BackTop",common:$e,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:i,primaryColorPressed:n}=e;return Object.assign(Object.assign({},$O),{color:t,textColor:o,iconColor:o,iconColorHover:i,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},HO=FO,jO={name:"Badge",common:$e,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:i,warningColorSuppl:n,fontFamily:r}=e;return{color:t,colorInfo:o,colorSuccess:i,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:r}}},NO=jO,WO={fontWeightActive:"400"},UO=e=>{const{fontSize:t,textColor3:o,textColor2:i,borderRadius:n,buttonColor2Hover:r,buttonColor2Pressed:s}=e;return Object.assign(Object.assign({},WO),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:i,itemTextColorPressed:i,itemTextColorActive:i,itemBorderRadius:n,itemColorHover:r,itemColorPressed:s,separatorColor:o})},GO={name:"Breadcrumb",common:$e,self:UO},VO=GO;function Li(e){return We(e,[255,255,255,.16])}function zs(e){return We(e,[0,0,0,.12])}const XO="n-button-group",qO={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},mv=e=>{const{heightTiny:t,heightSmall:o,heightMedium:i,heightLarge:n,borderRadius:r,fontSizeTiny:s,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,opacityDisabled:p,textColor2:d,textColor3:v,primaryColorHover:x,primaryColorPressed:g,borderColor:k,primaryColor:M,baseColor:y,infoColor:T,infoColorHover:I,infoColorPressed:A,successColor:R,successColorHover:z,successColorPressed:P,warningColor:L,warningColorHover:S,warningColorPressed:w,errorColor:E,errorColorHover:m,errorColorPressed:C,fontWeight:a,buttonColor2:l,buttonColor2Hover:h,buttonColor2Pressed:b,fontWeightStrong:B}=e;return Object.assign(Object.assign({},qO),{heightTiny:t,heightSmall:o,heightMedium:i,heightLarge:n,borderRadiusTiny:r,borderRadiusSmall:r,borderRadiusMedium:r,borderRadiusLarge:r,fontSizeTiny:s,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,opacityDisabled:p,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:l,colorSecondaryHover:h,colorSecondaryPressed:b,colorTertiary:l,colorTertiaryHover:h,colorTertiaryPressed:b,colorQuaternary:"#0000",colorQuaternaryHover:h,colorQuaternaryPressed:b,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:v,textColorHover:x,textColorPressed:g,textColorFocus:x,textColorDisabled:d,textColorText:d,textColorTextHover:x,textColorTextPressed:g,textColorTextFocus:x,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:x,textColorGhostPressed:g,textColorGhostFocus:x,textColorGhostDisabled:d,border:`1px solid ${k}`,borderHover:`1px solid ${x}`,borderPressed:`1px solid ${g}`,borderFocus:`1px solid ${x}`,borderDisabled:`1px solid ${k}`,rippleColor:M,colorPrimary:M,colorHoverPrimary:x,colorPressedPrimary:g,colorFocusPrimary:x,colorDisabledPrimary:M,textColorPrimary:y,textColorHoverPrimary:y,textColorPressedPrimary:y,textColorFocusPrimary:y,textColorDisabledPrimary:y,textColorTextPrimary:M,textColorTextHoverPrimary:x,textColorTextPressedPrimary:g,textColorTextFocusPrimary:x,textColorTextDisabledPrimary:d,textColorGhostPrimary:M,textColorGhostHoverPrimary:x,textColorGhostPressedPrimary:g,textColorGhostFocusPrimary:x,textColorGhostDisabledPrimary:M,borderPrimary:`1px solid ${M}`,borderHoverPrimary:`1px solid ${x}`,borderPressedPrimary:`1px solid ${g}`,borderFocusPrimary:`1px solid ${x}`,borderDisabledPrimary:`1px solid ${M}`,rippleColorPrimary:M,colorInfo:T,colorHoverInfo:I,colorPressedInfo:A,colorFocusInfo:I,colorDisabledInfo:T,textColorInfo:y,textColorHoverInfo:y,textColorPressedInfo:y,textColorFocusInfo:y,textColorDisabledInfo:y,textColorTextInfo:T,textColorTextHoverInfo:I,textColorTextPressedInfo:A,textColorTextFocusInfo:I,textColorTextDisabledInfo:d,textColorGhostInfo:T,textColorGhostHoverInfo:I,textColorGhostPressedInfo:A,textColorGhostFocusInfo:I,textColorGhostDisabledInfo:T,borderInfo:`1px solid ${T}`,borderHoverInfo:`1px solid ${I}`,borderPressedInfo:`1px solid ${A}`,borderFocusInfo:`1px solid ${I}`,borderDisabledInfo:`1px solid ${T}`,rippleColorInfo:T,colorSuccess:R,colorHoverSuccess:z,colorPressedSuccess:P,colorFocusSuccess:z,colorDisabledSuccess:R,textColorSuccess:y,textColorHoverSuccess:y,textColorPressedSuccess:y,textColorFocusSuccess:y,textColorDisabledSuccess:y,textColorTextSuccess:R,textColorTextHoverSuccess:z,textColorTextPressedSuccess:P,textColorTextFocusSuccess:z,textColorTextDisabledSuccess:d,textColorGhostSuccess:R,textColorGhostHoverSuccess:z,textColorGhostPressedSuccess:P,textColorGhostFocusSuccess:z,textColorGhostDisabledSuccess:R,borderSuccess:`1px solid ${R}`,borderHoverSuccess:`1px solid ${z}`,borderPressedSuccess:`1px solid ${P}`,borderFocusSuccess:`1px solid ${z}`,borderDisabledSuccess:`1px solid ${R}`,rippleColorSuccess:R,colorWarning:L,colorHoverWarning:S,colorPressedWarning:w,colorFocusWarning:S,colorDisabledWarning:L,textColorWarning:y,textColorHoverWarning:y,textColorPressedWarning:y,textColorFocusWarning:y,textColorDisabledWarning:y,textColorTextWarning:L,textColorTextHoverWarning:S,textColorTextPressedWarning:w,textColorTextFocusWarning:S,textColorTextDisabledWarning:d,textColorGhostWarning:L,textColorGhostHoverWarning:S,textColorGhostPressedWarning:w,textColorGhostFocusWarning:S,textColorGhostDisabledWarning:L,borderWarning:`1px solid ${L}`,borderHoverWarning:`1px solid ${S}`,borderPressedWarning:`1px solid ${w}`,borderFocusWarning:`1px solid ${S}`,borderDisabledWarning:`1px solid ${L}`,rippleColorWarning:L,colorError:E,colorHoverError:m,colorPressedError:C,colorFocusError:m,colorDisabledError:E,textColorError:y,textColorHoverError:y,textColorPressedError:y,textColorFocusError:y,textColorDisabledError:y,textColorTextError:E,textColorTextHoverError:m,textColorTextPressedError:C,textColorTextFocusError:m,textColorTextDisabledError:d,textColorGhostError:E,textColorGhostHoverError:m,textColorGhostPressedError:C,textColorGhostFocusError:m,textColorGhostDisabledError:E,borderError:`1px solid ${E}`,borderHoverError:`1px solid ${m}`,borderPressedError:`1px solid ${C}`,borderFocusError:`1px solid ${m}`,borderDisabledError:`1px solid ${E}`,rippleColorError:E,waveOpacity:"0.6",fontWeight:a,fontWeightStrong:B})},YO={name:"Button",common:Qe,self:mv},an=YO,KO={name:"Button",common:$e,self(e){const t=mv(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},eo=KO,ZO=Ce([Me("button",`
  1075. margin: 0;
  1076. font-weight: var(--n-font-weight);
  1077. line-height: 1;
  1078. font-family: inherit;
  1079. padding: var(--n-padding);
  1080. height: var(--n-height);
  1081. font-size: var(--n-font-size);
  1082. border-radius: var(--n-border-radius);
  1083. color: var(--n-text-color);
  1084. background-color: var(--n-color);
  1085. width: var(--n-width);
  1086. white-space: nowrap;
  1087. outline: none;
  1088. position: relative;
  1089. z-index: auto;
  1090. border: none;
  1091. display: inline-flex;
  1092. flex-wrap: nowrap;
  1093. flex-shrink: 0;
  1094. align-items: center;
  1095. justify-content: center;
  1096. user-select: none;
  1097. -webkit-user-select: none;
  1098. text-align: center;
  1099. cursor: pointer;
  1100. text-decoration: none;
  1101. transition:
  1102. color .3s var(--n-bezier),
  1103. background-color .3s var(--n-bezier),
  1104. opacity .3s var(--n-bezier),
  1105. border-color .3s var(--n-bezier);
  1106. `,[Oe("color",[xe("border",{borderColor:"var(--n-border-color)"}),Oe("disabled",[xe("border",{borderColor:"var(--n-border-color-disabled)"})]),_t("disabled",[Ce("&:focus",[xe("state-border",{borderColor:"var(--n-border-color-focus)"})]),Ce("&:hover",[xe("state-border",{borderColor:"var(--n-border-color-hover)"})]),Ce("&:active",[xe("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Oe("pressed",[xe("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Oe("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[xe("border",{border:"var(--n-border-disabled)"})]),_t("disabled",[Ce("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[xe("state-border",{border:"var(--n-border-focus)"})]),Ce("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[xe("state-border",{border:"var(--n-border-hover)"})]),Ce("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[xe("state-border",{border:"var(--n-border-pressed)"})]),Oe("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[xe("state-border",{border:"var(--n-border-pressed)"})])]),Oe("loading","cursor: wait;"),Me("base-wave",`
  1107. pointer-events: none;
  1108. top: 0;
  1109. right: 0;
  1110. bottom: 0;
  1111. left: 0;
  1112. animation-iteration-count: 1;
  1113. animation-duration: var(--n-ripple-duration);
  1114. animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
  1115. `,[Oe("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Kn&&"MozBoxSizing"in document.createElement("div").style?Ce("&::moz-focus-inner",{border:0}):null,xe("border, state-border",`
  1116. position: absolute;
  1117. left: 0;
  1118. top: 0;
  1119. right: 0;
  1120. bottom: 0;
  1121. border-radius: inherit;
  1122. transition: border-color .3s var(--n-bezier);
  1123. pointer-events: none;
  1124. `),xe("border",{border:"var(--n-border)"}),xe("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),xe("icon",`
  1125. margin: var(--n-icon-margin);
  1126. margin-left: 0;
  1127. height: var(--n-icon-size);
  1128. width: var(--n-icon-size);
  1129. max-width: var(--n-icon-size);
  1130. font-size: var(--n-icon-size);
  1131. position: relative;
  1132. flex-shrink: 0;
  1133. `,[Me("icon-slot",`
  1134. height: var(--n-icon-size);
  1135. width: var(--n-icon-size);
  1136. position: absolute;
  1137. left: 0;
  1138. top: 50%;
  1139. transform: translateY(-50%);
  1140. display: flex;
  1141. align-items: center;
  1142. justify-content: center;
  1143. `,[Kr({top:"50%",originalTransform:"translateY(-50%)"})]),sO()]),xe("content",`
  1144. display: flex;
  1145. align-items: center;
  1146. flex-wrap: nowrap;
  1147. min-width: 0;
  1148. `,[Ce("~",[xe("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Oe("block",`
  1149. display: flex;
  1150. width: 100%;
  1151. `),Oe("dashed",[xe("border, state-border",{borderStyle:"dashed !important"})]),Oe("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),Ce("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),Ce("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),JO=Object.assign(Object.assign({},Je.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!uv}}),vv=Ne({name:"Button",props:JO,setup(e){const t=ke(null),o=ke(null),i=ke(!1),n=Kt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),r=Xe(XO,{}),{mergedSizeRef:s}=Bd({},{defaultSize:"medium",mergedSize:A=>{const{size:R}=e;if(R)return R;const{size:z}=r;if(z)return z;const{mergedSize:P}=A||{};return P?P.value:"medium"}}),c=be(()=>e.focusable&&!e.disabled),u=A=>{var R;c.value||A.preventDefault(),!e.nativeFocusBehavior&&(A.preventDefault(),!e.disabled&&c.value&&((R=t.value)===null||R===void 0||R.focus({preventScroll:!0})))},f=A=>{var R;if(!e.disabled&&!e.loading){const{onClick:z}=e;z&&ot(z,A),e.text||(R=o.value)===null||R===void 0||R.play()}},p=A=>{switch(A.key){case"Enter":if(!e.keyboard)return;i.value=!1}},d=A=>{switch(A.key){case"Enter":if(!e.keyboard||e.loading){A.preventDefault();return}i.value=!0}},v=()=>{i.value=!1},{inlineThemeDisabled:x,mergedClsPrefixRef:g,mergedRtlRef:k}=Rt(e),M=Je("Button","-button",ZO,an,e,g),y=on("Button",k,g),T=be(()=>{const A=M.value,{common:{cubicBezierEaseInOut:R,cubicBezierEaseOut:z},self:P}=A,{rippleDuration:L,opacityDisabled:S,fontWeight:w,fontWeightStrong:E}=P,m=s.value,{dashed:C,type:a,ghost:l,text:h,color:b,round:B,circle:F,textColor:O,secondary:W,tertiary:X,quaternary:Q,strong:ee}=e,Y={"font-weight":ee?E:w};let D={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const N=a==="tertiary",V=a==="default",j=N?"default":a;if(h){const ne=O||b;D={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ne||P[ze("textColorText",j)],"--n-text-color-hover":ne?Li(ne):P[ze("textColorTextHover",j)],"--n-text-color-pressed":ne?zs(ne):P[ze("textColorTextPressed",j)],"--n-text-color-focus":ne?Li(ne):P[ze("textColorTextHover",j)],"--n-text-color-disabled":ne||P[ze("textColorTextDisabled",j)]}}else if(l||C){const ne=O||b;D={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":b||P[ze("rippleColor",j)],"--n-text-color":ne||P[ze("textColorGhost",j)],"--n-text-color-hover":ne?Li(ne):P[ze("textColorGhostHover",j)],"--n-text-color-pressed":ne?zs(ne):P[ze("textColorGhostPressed",j)],"--n-text-color-focus":ne?Li(ne):P[ze("textColorGhostHover",j)],"--n-text-color-disabled":ne||P[ze("textColorGhostDisabled",j)]}}else if(W){const ne=V?P.textColor:N?P.textColorTertiary:P[ze("color",j)],oe=b||ne,U=a!=="default"&&a!=="tertiary";D={"--n-color":U?De(oe,{alpha:Number(P.colorOpacitySecondary)}):P.colorSecondary,"--n-color-hover":U?De(oe,{alpha:Number(P.colorOpacitySecondaryHover)}):P.colorSecondaryHover,"--n-color-pressed":U?De(oe,{alpha:Number(P.colorOpacitySecondaryPressed)}):P.colorSecondaryPressed,"--n-color-focus":U?De(oe,{alpha:Number(P.colorOpacitySecondaryHover)}):P.colorSecondaryHover,"--n-color-disabled":P.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":oe,"--n-text-color-hover":oe,"--n-text-color-pressed":oe,"--n-text-color-focus":oe,"--n-text-color-disabled":oe}}else if(X||Q){const ne=V?P.textColor:N?P.textColorTertiary:P[ze("color",j)],oe=b||ne;X?(D["--n-color"]=P.colorTertiary,D["--n-color-hover"]=P.colorTertiaryHover,D["--n-color-pressed"]=P.colorTertiaryPressed,D["--n-color-focus"]=P.colorSecondaryHover,D["--n-color-disabled"]=P.colorTertiary):(D["--n-color"]=P.colorQuaternary,D["--n-color-hover"]=P.colorQuaternaryHover,D["--n-color-pressed"]=P.colorQuaternaryPressed,D["--n-color-focus"]=P.colorQuaternaryHover,D["--n-color-disabled"]=P.colorQuaternary),D["--n-ripple-color"]="#0000",D["--n-text-color"]=oe,D["--n-text-color-hover"]=oe,D["--n-text-color-pressed"]=oe,D["--n-text-color-focus"]=oe,D["--n-text-color-disabled"]=oe}else D={"--n-color":b||P[ze("color",j)],"--n-color-hover":b?Li(b):P[ze("colorHover",j)],"--n-color-pressed":b?zs(b):P[ze("colorPressed",j)],"--n-color-focus":b?Li(b):P[ze("colorFocus",j)],"--n-color-disabled":b||P[ze("colorDisabled",j)],"--n-ripple-color":b||P[ze("rippleColor",j)],"--n-text-color":O||(b?P.textColorPrimary:N?P.textColorTertiary:P[ze("textColor",j)]),"--n-text-color-hover":O||(b?P.textColorHoverPrimary:P[ze("textColorHover",j)]),"--n-text-color-pressed":O||(b?P.textColorPressedPrimary:P[ze("textColorPressed",j)]),"--n-text-color-focus":O||(b?P.textColorFocusPrimary:P[ze("textColorFocus",j)]),"--n-text-color-disabled":O||(b?P.textColorDisabledPrimary:P[ze("textColorDisabled",j)])};let K={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};h?K={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:K={"--n-border":P[ze("border",j)],"--n-border-hover":P[ze("borderHover",j)],"--n-border-pressed":P[ze("borderPressed",j)],"--n-border-focus":P[ze("borderFocus",j)],"--n-border-disabled":P[ze("borderDisabled",j)]};const{[ze("height",m)]:_,[ze("fontSize",m)]:$,[ze("padding",m)]:H,[ze("paddingRound",m)]:q,[ze("iconSize",m)]:Z,[ze("borderRadius",m)]:J,[ze("iconMargin",m)]:te,waveOpacity:se}=P,ce={"--n-width":F&&!h?_:"initial","--n-height":h?"initial":_,"--n-font-size":$,"--n-padding":F||h?"initial":B?q:H,"--n-icon-size":Z,"--n-icon-margin":te,"--n-border-radius":h?"initial":F||B?_:J};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":R,"--n-bezier-ease-out":z,"--n-ripple-duration":L,"--n-opacity-disabled":S,"--n-wave-opacity":se},Y),D),K),ce)}),I=x?jt("button",be(()=>{let A="";const{dashed:R,type:z,ghost:P,text:L,color:S,round:w,circle:E,textColor:m,secondary:C,tertiary:a,quaternary:l,strong:h}=e;R&&(A+="a"),P&&(A+="b"),L&&(A+="c"),w&&(A+="d"),E&&(A+="e"),C&&(A+="f"),a&&(A+="g"),l&&(A+="h"),h&&(A+="i"),S&&(A+="j"+ca(S)),m&&(A+="k"+ca(m));const{value:b}=s;return A+="l"+b[0],A+="m"+z[0],A}),T,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:g,mergedFocusable:c,mergedSize:s,showBorder:n,enterPressed:i,rtlEnabled:y,handleMousedown:u,handleKeydown:d,handleBlur:v,handleKeyup:p,handleClick:f,customColorCssVars:be(()=>{const{color:A}=e;if(!A)return null;const R=Li(A);return{"--n-border-color":A,"--n-border-color-hover":R,"--n-border-color-pressed":zs(A),"--n-border-color-focus":R,"--n-border-color-disabled":A}}),cssVars:x?void 0:T,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const i=Tt(this.$slots.default,n=>n&&le("span",{class:`${e}-button__content`},n));return le(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&i,le(Ym,{width:!0},{default:()=>Tt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&le("span",{class:`${e}-button__icon`,style:{margin:yc(this.$slots.default)?"0":""}},le(Xa,null,{default:()=>this.loading?le(qa,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):le("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&i,this.text?null:le(D2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?le("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?le("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),$c=vv,cF=vv,QO={titleFontSize:"22px"},eR=e=>{const{borderRadius:t,fontSize:o,lineHeight:i,textColor2:n,textColor1:r,textColorDisabled:s,dividerColor:c,fontWeightStrong:u,primaryColor:f,baseColor:p,hoverColor:d,cardColor:v,modalColor:x,popoverColor:g}=e;return Object.assign(Object.assign({},QO),{borderRadius:t,borderColor:We(v,c),borderColorModal:We(x,c),borderColorPopover:We(g,c),textColor:n,titleFontWeight:u,titleTextColor:r,dayTextColor:s,fontSize:o,lineHeight:i,dateColorCurrent:f,dateTextColorCurrent:p,cellColorHover:We(v,d),cellColorHoverModal:We(x,d),cellColorHoverPopover:We(g,d),cellColor:v,cellColorModal:x,cellColorPopover:g,barColor:f})},tR={name:"Calendar",common:$e,peers:{Button:eo},self:eR},oR=tR,iR=e=>{const{fontSize:t,boxShadow2:o,popoverColor:i,textColor2:n,borderRadius:r,borderColor:s,heightSmall:c,heightMedium:u,heightLarge:f,fontSizeSmall:p,fontSizeMedium:d,fontSizeLarge:v,dividerColor:x}=e;return{panelFontSize:t,boxShadow:o,color:i,textColor:n,borderRadius:r,border:`1px solid ${s}`,heightSmall:c,heightMedium:u,heightLarge:f,fontSizeSmall:p,fontSizeMedium:d,fontSizeLarge:v,dividerColor:x}},nR={name:"ColorPicker",common:$e,peers:{Input:po,Button:eo},self:iR},rR=nR,sR={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},xv=e=>{const{primaryColor:t,borderRadius:o,lineHeight:i,fontSize:n,cardColor:r,textColor2:s,textColor1:c,dividerColor:u,fontWeightStrong:f,closeIconColor:p,closeIconColorHover:d,closeIconColorPressed:v,closeColorHover:x,closeColorPressed:g,modalColor:k,boxShadow1:M,popoverColor:y,actionColor:T}=e;return Object.assign(Object.assign({},sR),{lineHeight:i,color:r,colorModal:k,colorPopover:y,colorTarget:t,colorEmbedded:T,colorEmbeddedModal:T,colorEmbeddedPopover:T,textColor:s,titleTextColor:c,borderColor:u,actionColor:T,titleFontWeight:f,closeColorHover:x,closeColorPressed:g,closeBorderRadius:o,closeIconColor:p,closeIconColorHover:d,closeIconColorPressed:v,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:M,borderRadius:o})},aR={name:"Card",common:Qe,self:xv},bv=aR,lR={name:"Card",common:$e,self(e){const t=xv(e),{cardColor:o,modalColor:i,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=i,t.colorEmbeddedPopover=n,t}},yv=lR,cR=Ce([Me("card",`
  1152. font-size: var(--n-font-size);
  1153. line-height: var(--n-line-height);
  1154. display: flex;
  1155. flex-direction: column;
  1156. width: 100%;
  1157. box-sizing: border-box;
  1158. position: relative;
  1159. border-radius: var(--n-border-radius);
  1160. background-color: var(--n-color);
  1161. color: var(--n-text-color);
  1162. word-break: break-word;
  1163. transition:
  1164. color .3s var(--n-bezier),
  1165. background-color .3s var(--n-bezier),
  1166. box-shadow .3s var(--n-bezier),
  1167. border-color .3s var(--n-bezier);
  1168. `,[Ng({background:"var(--n-color-modal)"}),Oe("hoverable",[Ce("&:hover","box-shadow: var(--n-box-shadow);")]),Oe("content-segmented",[Ce(">",[xe("content",{paddingTop:"var(--n-padding-bottom)"})])]),Oe("content-soft-segmented",[Ce(">",[xe("content",`
  1169. margin: 0 var(--n-padding-left);
  1170. padding: var(--n-padding-bottom) 0;
  1171. `)])]),Oe("footer-segmented",[Ce(">",[xe("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Oe("footer-soft-segmented",[Ce(">",[xe("footer",`
  1172. padding: var(--n-padding-bottom) 0;
  1173. margin: 0 var(--n-padding-left);
  1174. `)])]),Ce(">",[Me("card-header",`
  1175. box-sizing: border-box;
  1176. display: flex;
  1177. align-items: center;
  1178. font-size: var(--n-title-font-size);
  1179. padding:
  1180. var(--n-padding-top)
  1181. var(--n-padding-left)
  1182. var(--n-padding-bottom)
  1183. var(--n-padding-left);
  1184. `,[xe("main",`
  1185. font-weight: var(--n-title-font-weight);
  1186. transition: color .3s var(--n-bezier);
  1187. flex: 1;
  1188. min-width: 0;
  1189. color: var(--n-title-text-color);
  1190. `),xe("extra",`
  1191. display: flex;
  1192. align-items: center;
  1193. font-size: var(--n-font-size);
  1194. font-weight: 400;
  1195. transition: color .3s var(--n-bezier);
  1196. color: var(--n-text-color);
  1197. `),xe("close",`
  1198. margin: 0 0 0 8px;
  1199. transition:
  1200. background-color .3s var(--n-bezier),
  1201. color .3s var(--n-bezier);
  1202. `)]),xe("action",`
  1203. box-sizing: border-box;
  1204. transition:
  1205. background-color .3s var(--n-bezier),
  1206. border-color .3s var(--n-bezier);
  1207. background-clip: padding-box;
  1208. background-color: var(--n-action-color);
  1209. `),xe("content","flex: 1; min-width: 0;"),xe("content, footer",`
  1210. box-sizing: border-box;
  1211. padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
  1212. font-size: var(--n-font-size);
  1213. `,[Ce("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),xe("action",`
  1214. background-color: var(--n-action-color);
  1215. padding: var(--n-padding-bottom) var(--n-padding-left);
  1216. border-bottom-left-radius: var(--n-border-radius);
  1217. border-bottom-right-radius: var(--n-border-radius);
  1218. `)]),Me("card-cover",`
  1219. overflow: hidden;
  1220. width: 100%;
  1221. border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
  1222. `,[Ce("img",`
  1223. display: block;
  1224. width: 100%;
  1225. `)]),Oe("bordered",`
  1226. border: 1px solid var(--n-border-color);
  1227. `,[Ce("&:target","border-color: var(--n-color-target);")]),Oe("action-segmented",[Ce(">",[xe("action",[Ce("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Oe("content-segmented, content-soft-segmented",[Ce(">",[xe("content",{transition:"border-color 0.3s var(--n-bezier)"},[Ce("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Oe("footer-segmented, footer-soft-segmented",[Ce(">",[xe("footer",{transition:"border-color 0.3s var(--n-bezier)"},[Ce("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Oe("embedded",`
  1228. background-color: var(--n-color-embedded);
  1229. `)]),jg(Me("card",`
  1230. background: var(--n-color-modal);
  1231. `,[Oe("embedded",`
  1232. background-color: var(--n-color-embedded-modal);
  1233. `)])),BC(Me("card",`
  1234. background: var(--n-color-popover);
  1235. `,[Oe("embedded",`
  1236. background-color: var(--n-color-embedded-popover);
  1237. `)]))]),rh={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},dR=qi(rh),hR=Object.assign(Object.assign({},Je.props),rh),sh=Ne({name:"Card",props:hR,setup(e){const t=()=>{const{onClose:f}=e;f&&ot(f)},{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:n}=Rt(e),r=Je("Card","-card",cR,bv,e,i),s=on("Card",n,i),c=be(()=>{const{size:f}=e,{self:{color:p,colorModal:d,colorTarget:v,textColor:x,titleTextColor:g,titleFontWeight:k,borderColor:M,actionColor:y,borderRadius:T,lineHeight:I,closeIconColor:A,closeIconColorHover:R,closeIconColorPressed:z,closeColorHover:P,closeColorPressed:L,closeBorderRadius:S,closeIconSize:w,closeSize:E,boxShadow:m,colorPopover:C,colorEmbedded:a,colorEmbeddedModal:l,colorEmbeddedPopover:h,[ze("padding",f)]:b,[ze("fontSize",f)]:B,[ze("titleFontSize",f)]:F},common:{cubicBezierEaseInOut:O}}=r.value,{top:W,left:X,bottom:Q}=Tn(b);return{"--n-bezier":O,"--n-border-radius":T,"--n-color":p,"--n-color-modal":d,"--n-color-popover":C,"--n-color-embedded":a,"--n-color-embedded-modal":l,"--n-color-embedded-popover":h,"--n-color-target":v,"--n-text-color":x,"--n-line-height":I,"--n-action-color":y,"--n-title-text-color":g,"--n-title-font-weight":k,"--n-close-icon-color":A,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":z,"--n-close-color-hover":P,"--n-close-color-pressed":L,"--n-border-color":M,"--n-box-shadow":m,"--n-padding-top":W,"--n-padding-bottom":Q,"--n-padding-left":X,"--n-font-size":B,"--n-title-font-size":F,"--n-close-size":E,"--n-close-icon-size":w,"--n-close-border-radius":S}}),u=o?jt("card",be(()=>e.size[0]),c,e):void 0;return{rtlEnabled:s,mergedClsPrefix:i,mergedTheme:r,handleCloseClick:t,cssVars:o?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:i,rtlEnabled:n,onRender:r,embedded:s,tag:c,$slots:u}=this;return r==null||r(),le(c,{class:[`${i}-card`,this.themeClass,s&&`${i}-card--embedded`,{[`${i}-card--rtl`]:n,[`${i}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${i}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${i}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${i}-card--bordered`]:t,[`${i}-card--hoverable`]:o}],style:this.cssVars,role:this.role},Tt(u.cover,f=>f&&le("div",{class:`${i}-card-cover`,role:"none"},f)),Tt(u.header,f=>f||this.title||this.closable?le("div",{class:`${i}-card-header`,style:this.headerStyle},le("div",{class:`${i}-card-header__main`,role:"heading"},f||this.title),Tt(u["header-extra"],p=>p&&le("div",{class:`${i}-card-header__extra`,style:this.headerExtraStyle},p)),this.closable?le(ss,{clsPrefix:i,class:`${i}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Tt(u.default,f=>f&&le("div",{class:`${i}-card__content`,style:this.contentStyle,role:"none"},f)),Tt(u.footer,f=>f&&[le("div",{class:`${i}-card__footer`,style:this.footerStyle,role:"none"},f)]),Tt(u.action,f=>f&&le("div",{class:`${i}-card__action`,role:"none"},f)))}}),uR=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),fR={name:"Carousel",common:$e,self:uR},pR=fR,gR={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Cv=e=>{const{baseColor:t,inputColorDisabled:o,cardColor:i,modalColor:n,popoverColor:r,textColorDisabled:s,borderColor:c,primaryColor:u,textColor2:f,fontSizeSmall:p,fontSizeMedium:d,fontSizeLarge:v,borderRadiusSmall:x,lineHeight:g}=e;return Object.assign(Object.assign({},gR),{labelLineHeight:g,fontSizeSmall:p,fontSizeMedium:d,fontSizeLarge:v,borderRadius:x,color:t,colorChecked:u,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:i,colorTableHeaderModal:n,colorTableHeaderPopover:r,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${c}`,borderDisabled:`1px solid ${c}`,borderDisabledChecked:`1px solid ${c}`,borderChecked:`1px solid ${u}`,borderFocus:`1px solid ${u}`,boxShadowFocus:`0 0 0 2px ${De(u,{alpha:.3})}`,textColor:f,textColorDisabled:s})},mR={name:"Checkbox",common:Qe,self:Cv},vR=mR,xR={name:"Checkbox",common:$e,self(e){const{cardColor:t}=e,o=Cv(e);return o.color="#0000",o.checkMarkColor=t,o}},tr=xR,bR=e=>{const{borderRadius:t,boxShadow2:o,popoverColor:i,textColor2:n,textColor3:r,primaryColor:s,textColorDisabled:c,dividerColor:u,hoverColor:f,fontSizeMedium:p,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:i,menuBoxShadow:o,menuDividerColor:u,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:r,optionHeight:d,optionFontSize:p,optionColorHover:f,optionTextColor:n,optionTextColorActive:s,optionTextColorDisabled:c,optionCheckMarkColor:s,loadingColor:s,columnWidth:"180px"}},yR={name:"Cascader",common:$e,peers:{InternalSelectMenu:ls,InternalSelection:nh,Scrollbar:Qt,Checkbox:tr,Empty:Ya},self:bR},CR=yR,wR={name:"Code",common:$e,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:i,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:i,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}},wv=wR,SR=e=>{const{fontWeight:t,textColor1:o,textColor2:i,textColorDisabled:n,dividerColor:r,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:r,titleTextColor:o,titleTextColorDisabled:n,fontSize:s,textColor:i,arrowColor:i,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},kR={name:"Collapse",common:$e,self:SR},TR=kR,PR=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},AR={name:"CollapseTransition",common:$e,self:PR},MR=AR,ER={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(wi("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ah=Ne({name:"ConfigProvider",alias:["App"],props:ER,setup(e){const t=Xe(Yo,null),o=be(()=>{const{theme:g}=e;if(g===null)return;const k=t==null?void 0:t.mergedThemeRef.value;return g===void 0?k:k===void 0?g:Object.assign({},k,g)}),i=be(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const k=t==null?void 0:t.mergedThemeOverridesRef.value;return k===void 0?g:xr({},k,g)}}}),n=Kt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),r=Kt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),s=be(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),c=be(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),u=be(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t==null?void 0:t.mergedClsPrefixRef.value}),f=be(()=>{var g;const{rtl:k}=e;if(k===void 0)return t==null?void 0:t.mergedRtlRef.value;const M={};for(const y of k)M[y.name]=Dr(y),(g=y.peers)===null||g===void 0||g.forEach(T=>{T.name in M||(M[T.name]=Dr(T))});return M}),p=be(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),v=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),x=be(()=>{const{value:g}=o,{value:k}=i,M=k&&Object.keys(k).length!==0,y=g==null?void 0:g.name;return y?M?`${y}-${Nr(JSON.stringify(i.value))}`:y:M?Nr(JSON.stringify(i.value)):""});return ct(Yo,{mergedThemeHashRef:x,mergedBreakpointsRef:p,mergedRtlRef:f,mergedIconsRef:s,mergedComponentPropsRef:c,mergedBorderedRef:r,mergedNamespaceRef:n,mergedClsPrefixRef:u,mergedLocaleRef:be(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:be(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:be(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:be(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:i,inlineThemeDisabled:d||!1,preflightStyleDisabled:v||!1}),{mergedClsPrefix:u,mergedBordered:r,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:i}},render(){var e,t,o,i;return this.abstract?(i=(o=this.$slots).default)===null||i===void 0?void 0:i.call(o):le(this.as||this.tag,{class:`${this.mergedClsPrefix||Xm}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),OR={name:"Popselect",common:$e,peers:{Popover:sn,InternalSelectMenu:ls}},Sv=OR;function RR(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const LR={name:"Popselect",common:Qe,peers:{Popover:rn,InternalSelectMenu:oh},self:RR},DR=LR;function kv(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const IR={name:"Select",common:Qe,peers:{InternalSelection:dv,InternalSelectMenu:oh},self:kv},Tv=IR,BR={name:"Select",common:$e,peers:{InternalSelection:nh,InternalSelectMenu:ls},self:kv},Pv=BR,_R=Ce([Me("select",`
  1238. z-index: auto;
  1239. outline: none;
  1240. width: 100%;
  1241. position: relative;
  1242. `),Me("select-menu",`
  1243. margin: 4px 0;
  1244. box-shadow: var(--n-menu-box-shadow);
  1245. `,[ih({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),zR=Object.assign(Object.assign({},Je.props),{to:qo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),$R=Ne({name:"Select",props:zR,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:i,inlineThemeDisabled:n}=Rt(e),r=Je("Select","-select",_R,Tv,e,t),s=ke(e.defaultValue),c=et(e,"value"),u=da(c,s),f=ke(!1),p=ke(""),d=be(()=>{const{valueField:de,childrenField:fe}=e,we=vO(de,fe);return a2(m.value,we)}),v=be(()=>bO(w.value,e.valueField,e.childrenField)),x=ke(!1),g=da(et(e,"show"),x),k=ke(null),M=ke(null),y=ke(null),{localeRef:T}=Kd("Select"),I=be(()=>{var de;return(de=e.placeholder)!==null&&de!==void 0?de:T.value.placeholder}),A=qg(e,["items","options"]),R=[],z=ke([]),P=ke([]),L=ke(new Map),S=be(()=>{const{fallbackOption:de}=e;if(de===void 0){const{labelField:fe,valueField:we}=e;return Ie=>({[fe]:String(Ie),[we]:Ie})}return de===!1?!1:fe=>Object.assign(de(fe),{value:fe})}),w=be(()=>P.value.concat(z.value).concat(A.value)),E=be(()=>{const{filter:de}=e;if(de)return de;const{labelField:fe,valueField:we}=e;return(Ie,Ae)=>{if(!Ae)return!1;const ye=Ae[fe];if(typeof ye=="string")return Fl(Ie,ye);const Be=Ae[we];return typeof Be=="string"?Fl(Ie,Be):typeof Be=="number"?Fl(Ie,String(Be)):!1}}),m=be(()=>{if(e.remote)return A.value;{const{value:de}=w,{value:fe}=p;return!fe.length||!e.filterable?de:xO(de,E.value,fe,e.childrenField)}});function C(de){const fe=e.remote,{value:we}=L,{value:Ie}=v,{value:Ae}=S,ye=[];return de.forEach(Be=>{if(Ie.has(Be))ye.push(Ie.get(Be));else if(fe&&we.has(Be))ye.push(we.get(Be));else if(Ae){const Fe=Ae(Be);Fe&&ye.push(Fe)}}),ye}const a=be(()=>{if(e.multiple){const{value:de}=u;return Array.isArray(de)?C(de):[]}return null}),l=be(()=>{const{value:de}=u;return!e.multiple&&!Array.isArray(de)?de===null?null:C([de])[0]||null:null}),h=Bd(e),{mergedSizeRef:b,mergedDisabledRef:B,mergedStatusRef:F}=h;function O(de,fe){const{onChange:we,"onUpdate:value":Ie,onUpdateValue:Ae}=e,{nTriggerFormChange:ye,nTriggerFormInput:Be}=h;we&&ot(we,de,fe),Ae&&ot(Ae,de,fe),Ie&&ot(Ie,de,fe),s.value=de,ye(),Be()}function W(de){const{onBlur:fe}=e,{nTriggerFormBlur:we}=h;fe&&ot(fe,de),we()}function X(){const{onClear:de}=e;de&&ot(de)}function Q(de){const{onFocus:fe,showOnFocus:we}=e,{nTriggerFormFocus:Ie}=h;fe&&ot(fe,de),Ie(),we&&V()}function ee(de){const{onSearch:fe}=e;fe&&ot(fe,de)}function Y(de){const{onScroll:fe}=e;fe&&ot(fe,de)}function D(){var de;const{remote:fe,multiple:we}=e;if(fe){const{value:Ie}=L;if(we){const{valueField:Ae}=e;(de=a.value)===null||de===void 0||de.forEach(ye=>{Ie.set(ye[Ae],ye)})}else{const Ae=l.value;Ae&&Ie.set(Ae[e.valueField],Ae)}}}function N(de){const{onUpdateShow:fe,"onUpdate:show":we}=e;fe&&ot(fe,de),we&&ot(we,de),x.value=de}function V(){B.value||(N(!0),x.value=!0,e.filterable&&pe())}function j(){N(!1)}function K(){p.value="",P.value=R}const _=ke(!1);function $(){e.filterable&&(_.value=!0)}function H(){e.filterable&&(_.value=!1,g.value||K())}function q(){B.value||(g.value?e.filterable?pe():j():V())}function Z(de){var fe,we;!((we=(fe=y.value)===null||fe===void 0?void 0:fe.selfRef)===null||we===void 0)&&we.contains(de.relatedTarget)||(f.value=!1,W(de),j())}function J(de){Q(de),f.value=!0}function te(de){f.value=!0}function se(de){var fe;!((fe=k.value)===null||fe===void 0)&&fe.$el.contains(de.relatedTarget)||(f.value=!1,W(de),j())}function ce(){var de;(de=k.value)===null||de===void 0||de.focus(),j()}function ne(de){var fe;g.value&&(!((fe=k.value)===null||fe===void 0)&&fe.$el.contains(_n(de))||j())}function oe(de){if(!Array.isArray(de))return[];if(S.value)return Array.from(de);{const{remote:fe}=e,{value:we}=v;if(fe){const{value:Ie}=L;return de.filter(Ae=>we.has(Ae)||Ie.has(Ae))}else return de.filter(Ie=>we.has(Ie))}}function U(de){G(de.rawNode)}function G(de){if(B.value)return;const{tag:fe,remote:we,clearFilterAfterSelect:Ie,valueField:Ae}=e;if(fe&&!we){const{value:ye}=P,Be=ye[0]||null;if(Be){const Fe=z.value;Fe.length?Fe.push(Be):z.value=[Be],P.value=R}}if(we&&L.value.set(de[Ae],de),e.multiple){const ye=oe(u.value),Be=ye.findIndex(Fe=>Fe===de[Ae]);if(~Be){if(ye.splice(Be,1),fe&&!we){const Fe=re(de[Ae]);~Fe&&(z.value.splice(Fe,1),Ie&&(p.value=""))}}else ye.push(de[Ae]),Ie&&(p.value="");O(ye,C(ye))}else{if(fe&&!we){const ye=re(de[Ae]);~ye?z.value=[z.value[ye]]:z.value=R}ve(),j(),O(de[Ae],de)}}function re(de){return z.value.findIndex(we=>we[e.valueField]===de)}function ie(de){g.value||V();const{value:fe}=de.target;p.value=fe;const{tag:we,remote:Ie}=e;if(ee(fe),we&&!Ie){if(!fe){P.value=R;return}const{onCreate:Ae}=e,ye=Ae?Ae(fe):{[e.labelField]:fe,[e.valueField]:fe},{valueField:Be}=e;A.value.some(Fe=>Fe[Be]===ye[Be])||z.value.some(Fe=>Fe[Be]===ye[Be])?P.value=R:P.value=[ye]}}function ae(de){de.stopPropagation();const{multiple:fe}=e;!fe&&e.filterable&&j(),X(),fe?O([],[]):O(null,null)}function ue(de){!la(de,"action")&&!la(de,"empty")&&de.preventDefault()}function he(de){Y(de)}function me(de){var fe,we,Ie,Ae,ye;if(!e.keyboard){de.preventDefault();return}switch(de.key){case" ":if(e.filterable)break;de.preventDefault();case"Enter":if(!(!((fe=k.value)===null||fe===void 0)&&fe.isComposing)){if(g.value){const Be=(we=y.value)===null||we===void 0?void 0:we.getPendingTmNode();Be?U(Be):e.filterable||(j(),ve())}else if(V(),e.tag&&_.value){const Be=P.value[0];if(Be){const Fe=Be[e.valueField],{value:_e}=u;e.multiple&&Array.isArray(_e)&&_e.some(Ue=>Ue===Fe)||G(Be)}}}de.preventDefault();break;case"ArrowUp":if(de.preventDefault(),e.loading)return;g.value&&((Ie=y.value)===null||Ie===void 0||Ie.prev());break;case"ArrowDown":if(de.preventDefault(),e.loading)return;g.value?(Ae=y.value)===null||Ae===void 0||Ae.next():V();break;case"Escape":g.value&&($C(de),j()),(ye=k.value)===null||ye===void 0||ye.focus();break}}function ve(){var de;(de=k.value)===null||de===void 0||de.focus()}function pe(){var de;(de=k.value)===null||de===void 0||de.focusInput()}function Se(){var de;g.value&&((de=M.value)===null||de===void 0||de.syncPosition())}D(),lt(et(e,"options"),D);const Le={focus:()=>{var de;(de=k.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=k.value)===null||de===void 0||de.blur()}},Te=be(()=>{const{self:{menuBoxShadow:de}}=r.value;return{"--n-menu-box-shadow":de}}),Pe=n?jt("select",void 0,Te,e):void 0;return Object.assign(Object.assign({},Le),{mergedStatus:F,mergedClsPrefix:t,mergedBordered:o,namespace:i,treeMate:d,isMounted:Zn(),triggerRef:k,menuRef:y,pattern:p,uncontrolledShow:x,mergedShow:g,adjustedTo:qo(e),uncontrolledValue:s,mergedValue:u,followerRef:M,localizedPlaceholder:I,selectedOption:l,selectedOptions:a,mergedSize:b,mergedDisabled:B,focused:f,activeWithoutMenuOpen:_,inlineThemeDisabled:n,onTriggerInputFocus:$,onTriggerInputBlur:H,handleTriggerOrMenuResize:Se,handleMenuFocus:te,handleMenuBlur:se,handleMenuTabOut:ce,handleTriggerClick:q,handleToggle:U,handleDeleteOption:G,handlePatternInput:ie,handleClear:ae,handleTriggerBlur:Z,handleTriggerFocus:J,handleKeydown:me,handleMenuAfterLeave:K,handleMenuClickOutside:ne,handleMenuScroll:he,handleMenuKeydown:me,handleMenuMousedown:ue,mergedTheme:r,cssVars:n?void 0:Te,themeClass:Pe==null?void 0:Pe.themeClass,onRender:Pe==null?void 0:Pe.onRender})},render(){return le("div",{class:`${this.mergedClsPrefix}-select`},le(em,null,{default:()=>[le(tm,null,{default:()=>le(rO,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),le(nm,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===qo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>le(Jt,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),Vo(le(R2,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var i,n;return[(n=(i=this.$slots).empty)===null||n===void 0?void 0:n.call(i)]},action:()=>{var i,n;return[(n=(i=this.$slots).action)===null||n===void 0?void 0:n.call(i)]}}),this.displayDirective==="show"?[[Bn,this.mergedShow],[Ur,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ur,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),FR={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},Av=e=>{const{textColor2:t,primaryColor:o,primaryColorHover:i,primaryColorPressed:n,inputColorDisabled:r,textColorDisabled:s,borderColor:c,borderRadius:u,fontSizeTiny:f,fontSizeSmall:p,fontSizeMedium:d,heightTiny:v,heightSmall:x,heightMedium:g}=e;return Object.assign(Object.assign({},FR),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${c}`,buttonBorderHover:`1px solid ${c}`,buttonBorderPressed:`1px solid ${c}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:i,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:s,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:r,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${c}`,itemBorderRadius:u,itemSizeSmall:v,itemSizeMedium:x,itemSizeLarge:g,itemFontSizeSmall:f,itemFontSizeMedium:p,itemFontSizeLarge:d,jumperFontSizeSmall:f,jumperFontSizeMedium:p,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:s})},HR={name:"Pagination",common:Qe,peers:{Select:Tv,Input:Ka,Popselect:DR},self:Av},jR=HR,NR={name:"Pagination",common:$e,peers:{Select:Pv,Input:po,Popselect:Sv},self(e){const{primaryColor:t,opacity3:o}=e,i=De(t,{alpha:Number(o)}),n=Av(e);return n.itemBorderActive=`1px solid ${i}`,n.itemBorderDisabled="1px solid #0000",n}},Mv=NR,Ev={padding:"8px 14px"},WR={name:"Tooltip",common:$e,peers:{Popover:sn},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:i,textColor2:n}=e;return Object.assign(Object.assign({},Ev),{borderRadius:t,boxShadow:o,color:i,textColor:n})}},Za=WR,UR=e=>{const{borderRadius:t,boxShadow2:o,baseColor:i}=e;return Object.assign(Object.assign({},Ev),{borderRadius:t,boxShadow:o,color:We(i,"rgba(0, 0, 0, .85)"),textColor:i})},GR={name:"Tooltip",common:Qe,peers:{Popover:rn},self:UR},VR=GR,XR={name:"Ellipsis",common:$e,peers:{Tooltip:Za}},Ov=XR,qR={name:"Ellipsis",common:Qe,peers:{Tooltip:VR}},YR=qR,Rv={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},KR={name:"Radio",common:$e,self(e){const{borderColor:t,primaryColor:o,baseColor:i,textColorDisabled:n,inputColorDisabled:r,textColor2:s,opacityDisabled:c,borderRadius:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:d,heightSmall:v,heightMedium:x,heightLarge:g,lineHeight:k}=e;return Object.assign(Object.assign({},Rv),{labelLineHeight:k,buttonHeightSmall:v,buttonHeightMedium:x,buttonHeightLarge:g,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${De(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:r,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:s,buttonTextColorActive:i,buttonTextColorHover:o,opacityDisabled:c,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${De(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:u})}},Lv=KR,ZR=e=>{const{borderColor:t,primaryColor:o,baseColor:i,textColorDisabled:n,inputColorDisabled:r,textColor2:s,opacityDisabled:c,borderRadius:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:d,heightSmall:v,heightMedium:x,heightLarge:g,lineHeight:k}=e;return Object.assign(Object.assign({},Rv),{labelLineHeight:k,buttonHeightSmall:v,buttonHeightMedium:x,buttonHeightLarge:g,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${De(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:i,colorDisabled:r,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:i,buttonColorActive:i,buttonTextColor:s,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:c,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${De(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:u})},JR={name:"Radio",common:Qe,self:ZR},QR=JR,eL={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},Dv=e=>{const{primaryColor:t,textColor2:o,dividerColor:i,hoverColor:n,popoverColor:r,invertedColor:s,borderRadius:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:d,heightSmall:v,heightMedium:x,heightLarge:g,heightHuge:k,textColor3:M,opacityDisabled:y}=e;return Object.assign(Object.assign({},eL),{optionHeightSmall:v,optionHeightMedium:x,optionHeightLarge:g,optionHeightHuge:k,borderRadius:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:d,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:r,dividerColor:i,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:De(t,{alpha:.1}),groupHeaderTextColor:M,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:s,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:y})},tL={name:"Dropdown",common:Qe,peers:{Popover:rn},self:Dv},oL=tL,iL={name:"Dropdown",common:$e,peers:{Popover:sn},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:i}=e,n=Dv(e);return n.colorInverted=i,n.optionColorActive=De(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},lh=iL,nL={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},Iv=e=>{const{cardColor:t,modalColor:o,popoverColor:i,textColor2:n,textColor1:r,tableHeaderColor:s,tableColorHover:c,iconColor:u,primaryColor:f,fontWeightStrong:p,borderRadius:d,lineHeight:v,fontSizeSmall:x,fontSizeMedium:g,fontSizeLarge:k,dividerColor:M,heightSmall:y,opacityDisabled:T,tableColorStriped:I}=e;return Object.assign(Object.assign({},nL),{actionDividerColor:M,lineHeight:v,borderRadius:d,fontSizeSmall:x,fontSizeMedium:g,fontSizeLarge:k,borderColor:We(t,M),tdColorHover:We(t,c),tdColorStriped:We(t,I),thColor:We(t,s),thColorHover:We(We(t,s),c),tdColor:t,tdTextColor:n,thTextColor:r,thFontWeight:p,thButtonColorHover:c,thIconColor:u,thIconColorActive:f,borderColorModal:We(o,M),tdColorHoverModal:We(o,c),tdColorStripedModal:We(o,I),thColorModal:We(o,s),thColorHoverModal:We(We(o,s),c),tdColorModal:o,borderColorPopover:We(i,M),tdColorHoverPopover:We(i,c),tdColorStripedPopover:We(i,I),thColorPopover:We(i,s),thColorHoverPopover:We(We(i,s),c),tdColorPopover:i,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:f,loadingSize:y,opacityLoading:T})},rL={name:"DataTable",common:Qe,peers:{Button:an,Checkbox:vR,Radio:QR,Pagination:jR,Scrollbar:ei,Empty:Ya,Popover:rn,Ellipsis:YR,Dropdown:oL},self:Iv},dF=rL,sL={name:"DataTable",common:$e,peers:{Button:eo,Checkbox:tr,Radio:Lv,Pagination:Mv,Scrollbar:Qt,Empty:nn,Popover:sn,Ellipsis:Ov,Dropdown:lh},self(e){const t=Iv(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},aL=sL,Bv=e=>{const{textColorBase:t,opacity1:o,opacity2:i,opacity3:n,opacity4:r,opacity5:s}=e;return{color:t,opacity1Depth:o,opacity2Depth:i,opacity3Depth:n,opacity4Depth:r,opacity5Depth:s}},lL={name:"Icon",common:Qe,self:Bv},cL=lL,dL={name:"Icon",common:$e,self:Bv},hL=dL,uL=Me("icon",`
  1246. height: 1em;
  1247. width: 1em;
  1248. line-height: 1em;
  1249. text-align: center;
  1250. display: inline-block;
  1251. position: relative;
  1252. fill: currentColor;
  1253. transform: translateZ(0);
  1254. `,[Oe("color-transition",{transition:"color .3s var(--n-bezier)"}),Oe("depth",{color:"var(--n-color)"},[Ce("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),Ce("svg",{height:"1em",width:"1em"})]),fL=Object.assign(Object.assign({},Je.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),pL=Ne({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:fL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Rt(e),i=Je("Icon","-icon",uL,cL,e,t),n=be(()=>{const{depth:s}=e,{common:{cubicBezierEaseInOut:c},self:u}=i.value;if(s!==void 0){const{color:f,[`opacity${s}Depth`]:p}=u;return{"--n-bezier":c,"--n-color":f,"--n-opacity":p}}return{"--n-bezier":c,"--n-color":"","--n-opacity":""}}),r=o?jt("icon",be(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:be(()=>{const{size:s,color:c}=e;return{fontSize:Wi(s),color:c}}),cssVars:o?void 0:n,themeClass:r==null?void 0:r.themeClass,onRender:r==null?void 0:r.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:i,component:n,onRender:r,themeClass:s}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&wi("icon","don't wrap `n-icon` inside `n-icon`"),r==null||r(),le("i",Xn(this.$attrs,{role:"img",class:[`${i}-icon`,s,{[`${i}-icon--depth`]:o,[`${i}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?le(n):this.$slots)}}),gL={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},_v=e=>{const{popoverColor:t,textColor2:o,primaryColor:i,hoverColor:n,dividerColor:r,opacityDisabled:s,boxShadow2:c,borderRadius:u,iconColor:f,iconColorDisabled:p}=e;return Object.assign(Object.assign({},gL),{panelColor:t,panelBoxShadow:c,panelDividerColor:r,itemTextColor:o,itemTextColorActive:i,itemColorHover:n,itemOpacityDisabled:s,itemBorderRadius:u,borderRadius:u,iconColor:f,iconColorDisabled:p})},mL={name:"TimePicker",common:Qe,peers:{Scrollbar:ei,Button:an,Input:Ka},self:_v},vL=mL,xL={name:"TimePicker",common:$e,peers:{Scrollbar:Qt,Button:eo,Input:po},self:_v},zv=xL,bL={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},$v=e=>{const{hoverColor:t,fontSize:o,textColor2:i,textColorDisabled:n,popoverColor:r,primaryColor:s,borderRadiusSmall:c,iconColor:u,iconColorDisabled:f,textColor1:p,dividerColor:d,boxShadow2:v,borderRadius:x,fontWeightStrong:g}=e;return Object.assign(Object.assign({},bL),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:i,itemTextColorDisabled:n,itemTextColorActive:r,itemTextColorCurrent:s,itemColorIncluded:De(s,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:s,itemBorderRadius:c,panelColor:r,panelTextColor:i,arrowColor:u,calendarTitleTextColor:p,calendarTitleColorHover:t,calendarDaysTextColor:i,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:v,panelBorderRadius:x,calendarTitleFontWeight:g,scrollItemBorderRadius:x,iconColor:u,iconColorDisabled:f})},yL={name:"DatePicker",common:Qe,peers:{Input:Ka,Button:an,TimePicker:vL,Scrollbar:ei},self:$v},hF=yL,CL={name:"DatePicker",common:$e,peers:{Input:po,Button:eo,TimePicker:zv,Scrollbar:Qt},self(e){const{popoverColor:t,hoverColor:o,primaryColor:i}=e,n=$v(e);return n.itemColorDisabled=We(t,o),n.itemColorIncluded=De(i,{alpha:.15}),n.itemColorHover=We(t,o),n}},wL=CL;var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uF(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function i(){if(this instanceof i){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),o}const SL={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},Fv=e=>{const{tableHeaderColor:t,textColor2:o,textColor1:i,cardColor:n,modalColor:r,popoverColor:s,dividerColor:c,borderRadius:u,fontWeightStrong:f,lineHeight:p,fontSizeSmall:d,fontSizeMedium:v,fontSizeLarge:x}=e;return Object.assign(Object.assign({},SL),{lineHeight:p,fontSizeSmall:d,fontSizeMedium:v,fontSizeLarge:x,titleTextColor:i,thColor:We(n,t),thColorModal:We(r,t),thColorPopover:We(s,t),thTextColor:i,thFontWeight:f,tdTextColor:o,tdColor:n,tdColorModal:r,tdColorPopover:s,borderColor:We(n,c),borderColorModal:We(r,c),borderColorPopover:We(s,c),borderRadius:u})},kL={name:"Descriptions",common:Qe,self:Fv},fF=kL,TL={name:"Descriptions",common:$e,self:Fv},PL=TL,AL={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},Hv=e=>{const{textColor1:t,textColor2:o,modalColor:i,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:s,closeColorHover:c,closeColorPressed:u,infoColor:f,successColor:p,warningColor:d,errorColor:v,primaryColor:x,dividerColor:g,borderRadius:k,fontWeightStrong:M,lineHeight:y,fontSize:T}=e;return Object.assign(Object.assign({},AL),{fontSize:T,lineHeight:y,border:`1px solid ${g}`,titleTextColor:t,textColor:o,color:i,closeColorHover:c,closeColorPressed:u,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:s,closeBorderRadius:k,iconColor:x,iconColorInfo:f,iconColorSuccess:p,iconColorWarning:d,iconColorError:v,borderRadius:k,titleFontWeight:M})},ML={name:"Dialog",common:Qe,peers:{Button:an},self:Hv},jv=ML,EL={name:"Dialog",common:$e,peers:{Button:eo},self:Hv},Nv=EL,Ja={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},Wv=qi(Ja),OL=Ce([Me("dialog",`
  1255. word-break: break-word;
  1256. line-height: var(--n-line-height);
  1257. position: relative;
  1258. background: var(--n-color);
  1259. color: var(--n-text-color);
  1260. box-sizing: border-box;
  1261. margin: auto;
  1262. border-radius: var(--n-border-radius);
  1263. padding: var(--n-padding);
  1264. transition:
  1265. border-color .3s var(--n-bezier),
  1266. background-color .3s var(--n-bezier),
  1267. color .3s var(--n-bezier);
  1268. `,[xe("icon",{color:"var(--n-icon-color)"}),Oe("bordered",{border:"var(--n-border)"}),Oe("icon-top",[xe("close",{margin:"var(--n-close-margin)"}),xe("icon",{margin:"var(--n-icon-margin)"}),xe("content",{textAlign:"center"}),xe("title",{justifyContent:"center"}),xe("action",{justifyContent:"center"})]),Oe("icon-left",[xe("icon",{margin:"var(--n-icon-margin)"}),Oe("closable",[xe("title",`
  1269. padding-right: calc(var(--n-close-size) + 6px);
  1270. `)])]),xe("close",`
  1271. position: absolute;
  1272. right: 0;
  1273. top: 0;
  1274. margin: var(--n-close-margin);
  1275. transition:
  1276. background-color .3s var(--n-bezier),
  1277. color .3s var(--n-bezier);
  1278. z-index: 1;
  1279. `),xe("content",`
  1280. font-size: var(--n-font-size);
  1281. margin: var(--n-content-margin);
  1282. position: relative;
  1283. word-break: break-word;
  1284. `,[Oe("last","margin-bottom: 0;")]),xe("action",`
  1285. display: flex;
  1286. justify-content: flex-end;
  1287. `,[Ce("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),xe("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),xe("title",`
  1288. transition: color .3s var(--n-bezier);
  1289. display: flex;
  1290. align-items: center;
  1291. font-size: var(--n-title-font-size);
  1292. font-weight: var(--n-title-font-weight);
  1293. color: var(--n-title-text-color);
  1294. `),Me("dialog-icon-container",{display:"flex",justifyContent:"center"})]),jg(Me("dialog",`
  1295. width: 446px;
  1296. max-width: calc(100vw - 32px);
  1297. `)),Me("dialog",[Ng(`
  1298. width: 446px;
  1299. max-width: calc(100vw - 32px);
  1300. `)])]),RL={default:()=>le(va,null),info:()=>le(va,null),success:()=>le(Jd,null),warning:()=>le(Qd,null),error:()=>le(Zd,null)},Uv=Ne({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Je.props),Ja),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:i}=Rt(e),n=be(()=>{var d,v;const{iconPlacement:x}=e;return x||((v=(d=t==null?void 0:t.value)===null||d===void 0?void 0:d.Dialog)===null||v===void 0?void 0:v.iconPlacement)||"left"});function r(d){const{onPositiveClick:v}=e;v&&v(d)}function s(d){const{onNegativeClick:v}=e;v&&v(d)}function c(){const{onClose:d}=e;d&&d()}const u=Je("Dialog","-dialog",OL,jv,e,o),f=be(()=>{const{type:d}=e,v=n.value,{common:{cubicBezierEaseInOut:x},self:{fontSize:g,lineHeight:k,border:M,titleTextColor:y,textColor:T,color:I,closeBorderRadius:A,closeColorHover:R,closeColorPressed:z,closeIconColor:P,closeIconColorHover:L,closeIconColorPressed:S,closeIconSize:w,borderRadius:E,titleFontWeight:m,titleFontSize:C,padding:a,iconSize:l,actionSpace:h,contentMargin:b,closeSize:B,[v==="top"?"iconMarginIconTop":"iconMargin"]:F,[v==="top"?"closeMarginIconTop":"closeMargin"]:O,[ze("iconColor",d)]:W}}=u.value;return{"--n-font-size":g,"--n-icon-color":W,"--n-bezier":x,"--n-close-margin":O,"--n-icon-margin":F,"--n-icon-size":l,"--n-close-size":B,"--n-close-icon-size":w,"--n-close-border-radius":A,"--n-close-color-hover":R,"--n-close-color-pressed":z,"--n-close-icon-color":P,"--n-close-icon-color-hover":L,"--n-close-icon-color-pressed":S,"--n-color":I,"--n-text-color":T,"--n-border-radius":E,"--n-padding":a,"--n-line-height":k,"--n-border":M,"--n-content-margin":b,"--n-title-font-size":C,"--n-title-font-weight":m,"--n-title-text-color":y,"--n-action-space":h}}),p=i?jt("dialog",be(()=>`${e.type[0]}${n.value[0]}`),f,e):void 0;return{mergedClsPrefix:o,mergedIconPlacement:n,mergedTheme:u,handlePositiveClick:r,handleNegativeClick:s,handleCloseClick:c,cssVars:i?void 0:f,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:i,closable:n,showIcon:r,title:s,content:c,action:u,negativeText:f,positiveText:p,positiveButtonProps:d,negativeButtonProps:v,handlePositiveClick:x,handleNegativeClick:g,mergedTheme:k,loading:M,type:y,mergedClsPrefix:T}=this;(e=this.onRender)===null||e===void 0||e.call(this);const I=r?le(Eo,{clsPrefix:T,class:`${T}-dialog__icon`},{default:()=>Tt(this.$slots.icon,R=>R||(this.icon?Dt(this.icon):RL[this.type]()))}):null,A=Tt(this.$slots.action,R=>R||p||f||u?le("div",{class:`${T}-dialog__action`},R||(u?[Dt(u)]:[this.negativeText&&le($c,Object.assign({theme:k.peers.Button,themeOverrides:k.peerOverrides.Button,ghost:!0,size:"small",onClick:g},v),{default:()=>Dt(this.negativeText)}),this.positiveText&&le($c,Object.assign({theme:k.peers.Button,themeOverrides:k.peerOverrides.Button,size:"small",type:y==="default"?"primary":y,disabled:M,loading:M,onClick:x},d),{default:()=>Dt(this.positiveText)})])):null);return le("div",{class:[`${T}-dialog`,this.themeClass,this.closable&&`${T}-dialog--closable`,`${T}-dialog--icon-${o}`,t&&`${T}-dialog--bordered`],style:i,role:"dialog"},n?le(ss,{clsPrefix:T,class:`${T}-dialog__close`,onClick:this.handleCloseClick}):null,r&&o==="top"?le("div",{class:`${T}-dialog-icon-container`},I):null,le("div",{class:`${T}-dialog__title`},r&&o==="left"?I:null,mi(this.$slots.header,()=>[Dt(s)])),le("div",{class:[`${T}-dialog__content`,A?"":`${T}-dialog__content--last`]},mi(this.$slots.default,()=>[Dt(c)])),A)}}),Gv="n-dialog-provider",Vv="n-dialog-api",LL="n-dialog-reactive-list",Xv=e=>{const{modalColor:t,textColor2:o,boxShadow3:i}=e;return{color:t,textColor:o,boxShadow:i}},DL={name:"Modal",common:Qe,peers:{Scrollbar:ei,Dialog:jv,Card:bv},self:Xv},IL=DL,BL={name:"Modal",common:$e,peers:{Scrollbar:Qt,Dialog:Nv,Card:yv},self:Xv},_L=BL,ch=Object.assign(Object.assign({},rh),Ja),zL=qi(ch),$L=Ne({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},ch),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=ke(null),o=ke(null),i=ke(e.show),n=ke(null),r=ke(null);lt(et(e,"show"),M=>{M&&(i.value=!0)}),Gw(be(()=>e.blockScroll&&i.value));const s=Xe(Kg);function c(){if(s.transformOriginRef.value==="center")return"";const{value:M}=n,{value:y}=r;if(M===null||y===null)return"";if(o.value){const T=o.value.containerScrollTop;return`${M}px ${y+T}px`}return""}function u(M){if(s.transformOriginRef.value==="center")return;const y=s.getMousePosition();if(!y||!o.value)return;const T=o.value.containerScrollTop,{offsetLeft:I,offsetTop:A}=M;if(y){const R=y.y,z=y.x;n.value=-(I-z),r.value=-(A-R-T)}M.style.transformOrigin=c()}function f(M){Ft(()=>{u(M)})}function p(M){M.style.transformOrigin=c(),e.onBeforeLeave()}function d(){i.value=!1,n.value=null,r.value=null,e.onAfterLeave()}function v(){const{onClose:M}=e;M&&M()}function x(){e.onNegativeClick()}function g(){e.onPositiveClick()}const k=ke(null);return lt(k,M=>{M&&Ft(()=>{const y=M.el;y&&t.value!==y&&(t.value=y)})}),ct(Md,t),ct(Ed,null),ct(Od,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:i,childNodeRef:k,handlePositiveClick:g,handleNegativeClick:x,handleCloseClick:v,handleAfterLeave:d,handleBeforeLeave:p,handleEnter:f}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:i,handleBeforeLeave:n,preset:r,mergedClsPrefix:s}=this;let c=null;if(!r){if(c=bc(e),!c){wi("modal","default slot is empty");return}c=xo(c),c.props=Xn({class:`${s}-modal`},t,c.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Vo(le("div",{role:"none",class:`${s}-modal-body-wrapper`},le(as,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>{var u;return[(u=this.renderMask)===null||u===void 0?void 0:u.call(this),le(gm,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var f;return le(Jt,{name:"fade-in-scale-up-transition",appear:(f=this.appear)!==null&&f!==void 0?f:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:i,onBeforeLeave:n},{default:()=>{const p=[[Bn,this.show]],{onClickoutside:d}=this;return d&&p.push([Ur,this.onClickoutside,void 0,{capture:!0}]),Vo(this.preset==="confirm"||this.preset==="dialog"?le(Uv,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},$n(this.$props,Wv),{"aria-modal":"true"}),e):this.preset==="card"?le(sh,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},$n(this.$props,dR),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=c,p)}})}})]}})),[[Bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),FL=Ce([Me("modal-container",`
  1301. position: fixed;
  1302. left: 0;
  1303. top: 0;
  1304. height: 0;
  1305. width: 0;
  1306. display: flex;
  1307. `),Me("modal-mask",`
  1308. position: fixed;
  1309. left: 0;
  1310. right: 0;
  1311. top: 0;
  1312. bottom: 0;
  1313. background-color: rgba(0, 0, 0, .4);
  1314. `,[th({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),Me("modal-body-wrapper",`
  1315. position: fixed;
  1316. left: 0;
  1317. right: 0;
  1318. top: 0;
  1319. bottom: 0;
  1320. overflow: visible;
  1321. `,[Me("modal-scroll-content",`
  1322. min-height: 100%;
  1323. display: flex;
  1324. position: relative;
  1325. `)]),Me("modal",`
  1326. position: relative;
  1327. align-self: center;
  1328. color: var(--n-text-color);
  1329. margin: auto;
  1330. box-shadow: var(--n-box-shadow);
  1331. `,[ih({duration:".25s",enterScale:".5"})])]),HL=Object.assign(Object.assign(Object.assign(Object.assign({},Je.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),ch),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),jL=Ne({name:"Modal",inheritAttrs:!1,props:HL,setup(e){const t=ke(null),{mergedClsPrefixRef:o,namespaceRef:i,inlineThemeDisabled:n}=Rt(e),r=Je("Modal","-modal",FL,IL,e,o),s=Xg(64),c=Vg(),u=Zn(),f=e.internalDialog?Xe(Gv,null):null,p=Vw();function d(R){const{onUpdateShow:z,"onUpdate:show":P,onHide:L}=e;z&&ot(z,R),P&&ot(P,R),L&&!R&&L(R)}function v(){const{onClose:R}=e;R?Promise.resolve(R()).then(z=>{z!==!1&&d(!1)}):d(!1)}function x(){const{onPositiveClick:R}=e;R?Promise.resolve(R()).then(z=>{z!==!1&&d(!1)}):d(!1)}function g(){const{onNegativeClick:R}=e;R?Promise.resolve(R()).then(z=>{z!==!1&&d(!1)}):d(!1)}function k(){const{onBeforeLeave:R,onBeforeHide:z}=e;R&&ot(R),z&&z()}function M(){const{onAfterLeave:R,onAfterHide:z}=e;R&&ot(R),z&&z()}function y(R){var z;const{onMaskClick:P}=e;P&&P(R),e.maskClosable&&!((z=t.value)===null||z===void 0)&&z.contains(_n(R))&&d(!1)}function T(R){var z;(z=e.onEsc)===null||z===void 0||z.call(e),e.show&&e.closeOnEsc&&FC(R)&&!p.value&&d(!1)}ct(Kg,{getMousePosition:()=>{if(f){const{clickedRef:R,clickPositionRef:z}=f;if(R.value&&z.value)return z.value}return s.value?c.value:null},mergedClsPrefixRef:o,mergedThemeRef:r,isMountedRef:u,appearRef:et(e,"internalAppear"),transformOriginRef:et(e,"transformOrigin")});const I=be(()=>{const{common:{cubicBezierEaseOut:R},self:{boxShadow:z,color:P,textColor:L}}=r.value;return{"--n-bezier-ease-out":R,"--n-box-shadow":z,"--n-color":P,"--n-text-color":L}}),A=n?jt("theme-class",void 0,I,e):void 0;return{mergedClsPrefix:o,namespace:i,isMounted:u,containerRef:t,presetProps:be(()=>$n(e,zL)),handleEsc:T,handleAfterLeave:M,handleClickoutside:y,handleBeforeLeave:k,doUpdateShow:d,handleNegativeClick:g,handlePositiveClick:x,handleCloseClick:v,cssVars:n?void 0:I,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender}},render(){const{mergedClsPrefix:e}=this;return le(im,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return Vo(le("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},le($L,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var i;return le(Jt,{name:"fade-in-transition",key:"mask",appear:(i=this.internalAppear)!==null&&i!==void 0?i:this.isMounted},{default:()=>this.show?le("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Rd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),NL=Object.assign(Object.assign({},Ja),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),WL=Ne({name:"DialogEnvironment",props:Object.assign(Object.assign({},NL),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=ke(!0);function o(){const{onInternalAfterLeave:p,internalKey:d,onAfterLeave:v}=e;p&&p(d),v&&v()}function i(p){const{onPositiveClick:d}=e;d?Promise.resolve(d(p)).then(v=>{v!==!1&&u()}):u()}function n(p){const{onNegativeClick:d}=e;d?Promise.resolve(d(p)).then(v=>{v!==!1&&u()}):u()}function r(){const{onClose:p}=e;p?Promise.resolve(p()).then(d=>{d!==!1&&u()}):u()}function s(p){const{onMaskClick:d,maskClosable:v}=e;d&&(d(p),v&&u())}function c(){const{onEsc:p}=e;p&&p()}function u(){t.value=!1}function f(p){t.value=p}return{show:t,hide:u,handleUpdateShow:f,handleAfterLeave:o,handleCloseClick:r,handleNegativeClick:n,handlePositiveClick:i,handleMaskClick:s,handleEsc:c}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:i,handleAfterLeave:n,handleMaskClick:r,handleEsc:s,to:c,maskClosable:u,show:f}=this;return le(jL,{show:f,onUpdateShow:t,onMaskClick:r,onEsc:s,to:c,maskClosable:u,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>le(Uv,Object.assign({},$n(this.$props,Wv),{style:this.internalStyle,onClose:i,onNegativeClick:o,onPositiveClick:e}))})}}),UL={injectionKey:String,to:[String,Object]},qv=Ne({name:"DialogProvider",props:UL,setup(){const e=ke([]),t={};function o(c={}){const u=zn(),f=Oo(Object.assign(Object.assign({},c),{key:u,destroy:()=>{t[`n-dialog-${u}`].hide()}}));return e.value.push(f),f}const i=["info","success","warning","error"].map(c=>u=>o(Object.assign(Object.assign({},u),{type:c})));function n(c){const{value:u}=e;u.splice(u.findIndex(f=>f.key===c),1)}function r(){Object.values(t).forEach(c=>{c.hide()})}const s={create:o,destroyAll:r,info:i[0],success:i[1],warning:i[2],error:i[3]};return ct(Vv,s),ct(Gv,{clickedRef:Xg(64),clickPositionRef:Vg()}),ct(LL,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return le(ut,null,[this.dialogList.map(o=>le(WL,Td(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:i=>{i===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=i},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function GL(){const e=Xe(Vv,null);return e===null&&is("use-dialog","No outer <n-dialog-provider /> founded."),e}const Yv=e=>{const{textColor1:t,dividerColor:o,fontWeightStrong:i}=e;return{textColor:t,color:o,fontWeight:i}},VL={name:"Divider",common:Qe,self:Yv},pF=VL,XL={name:"Divider",common:$e,self:Yv},qL=XL,Kv=e=>{const{modalColor:t,textColor1:o,textColor2:i,boxShadow3:n,lineHeight:r,fontWeightStrong:s,dividerColor:c,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:d,closeIconColorPressed:v,borderRadius:x,primaryColorHover:g}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:i,titleTextColor:o,titleFontSize:"18px",titleFontWeight:s,boxShadow:n,lineHeight:r,headerBorderBottom:`1px solid ${c}`,footerBorderTop:`1px solid ${c}`,closeIconColor:p,closeIconColorHover:d,closeIconColorPressed:v,closeSize:"22px",closeIconSize:"18px",closeColorHover:u,closeColorPressed:f,closeBorderRadius:x,resizableTriggerColorHover:g}},YL={name:"Drawer",common:Qe,peers:{Scrollbar:ei},self:Kv},gF=YL,KL={name:"Drawer",common:$e,peers:{Scrollbar:Qt},self:Kv},ZL=KL,JL={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},QL={name:"DynamicInput",common:$e,peers:{Input:po,Button:eo},self(){return JL}},eD=QL,tD={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},oD={name:"Space",self(){return tD}},Zv=oD,iD={name:"DynamicTags",common:$e,peers:{Input:po,Button:eo,Tag:av,Space:Zv},self(){return{inputWidth:"64px"}}},nD=iD,rD={name:"Element",common:$e},sD=rD,aD={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},Jv=e=>{const{heightSmall:t,heightMedium:o,heightLarge:i,textColor1:n,errorColor:r,warningColor:s,lineHeight:c,textColor3:u}=e;return Object.assign(Object.assign({},aD),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:i,lineHeight:c,labelTextColor:n,asteriskColor:r,feedbackTextColorError:r,feedbackTextColorWarning:s,feedbackTextColor:u})},lD={name:"Form",common:Qe,self:Jv},Qv=lD,cD={name:"Form",common:$e,self:Jv},dD=cD,hD=Me("form",[Oe("inline",`
  1332. width: 100%;
  1333. display: inline-flex;
  1334. align-items: flex-start;
  1335. align-content: space-around;
  1336. `,[Me("form-item",{width:"auto",marginRight:"18px"},[Ce("&:last-child",{marginRight:0})])])]),cs="n-form",e0="n-form-item-insts";var uD=globalThis&&globalThis.__awaiter||function(e,t,o,i){function n(r){return r instanceof o?r:new o(function(s){s(r)})}return new(o||(o=Promise))(function(r,s){function c(p){try{f(i.next(p))}catch(d){s(d)}}function u(p){try{f(i.throw(p))}catch(d){s(d)}}function f(p){p.done?r(p.value):n(p.value).then(c,u)}f((i=i.apply(e,t||[])).next())})};const fD=Object.assign(Object.assign({},Je.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),pD=Ne({name:"Form",props:fD,setup(e){const{mergedClsPrefixRef:t}=Rt(e);Je("Form","-form",hD,Qv,e,t);const o={},i=ke(void 0),n=u=>{const f=i.value;(f===void 0||u>=f)&&(i.value=u)};function r(u,f=()=>!0){return uD(this,void 0,void 0,function*(){yield new Promise((p,d)=>{const v=[];for(const x of qi(o)){const g=o[x];for(const k of g)k.path&&v.push(k.internalValidate(null,f))}Promise.all(v).then(x=>{if(x.some(g=>!g.valid)){const g=x.filter(k=>k.errors).map(k=>k.errors);u&&u(g),d(g)}else u&&u(),p()})})})}function s(){for(const u of qi(o)){const f=o[u];for(const p of f)p.restoreValidation()}}return ct(cs,{props:e,maxChildLabelWidthRef:i,deriveMaxChildLabelWidth:n}),ct(e0,{formItems:o}),Object.assign({validate:r,restoreValidation:s},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return le("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},Hi.apply(this,arguments)}function gD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zr(e,t)}function Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Fc(e)}function Zr(e,t){return Zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Zr(e,t)}function mD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xs(e,t,o){return mD()?Xs=Reflect.construct.bind():Xs=function(n,r,s){var c=[null];c.push.apply(c,r);var u=Function.bind.apply(n,c),f=new u;return s&&Zr(f,s.prototype),f},Xs.apply(null,arguments)}function vD(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hc(e){var t=typeof Map=="function"?new Map:void 0;return Hc=function(i){if(i===null||!vD(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return Xs(i,arguments,Fc(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zr(n,i)},Hc(e)}var xD=/%[sdj%]/g,bD=function(){};typeof process<"u"&&process.env;function jc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var i=o.field;t[i]=t[i]||[],t[i].push(o)}),t}function no(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];var n=0,r=o.length;if(typeof e=="function")return e.apply(null,o);if(typeof e=="string"){var s=e.replace(xD,function(c){if(c==="%%")return"%";if(n>=r)return c;switch(c){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch{return"[Circular]"}break;default:return c}});return s}return e}function yD(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||yD(t)&&typeof e=="string"&&!e)}function CD(e,t,o){var i=[],n=0,r=e.length;function s(c){i.push.apply(i,c||[]),n++,n===r&&o(i)}e.forEach(function(c){t(c,s)})}function Mf(e,t,o){var i=0,n=e.length;function r(s){if(s&&s.length){o(s);return}var c=i;i=i+1,c<n?t(e[c],r):o([])}r([])}function wD(e){var t=[];return Object.keys(e).forEach(function(o){t.push.apply(t,e[o]||[])}),t}var Ef=function(e){gD(t,e);function t(o,i){var n;return n=e.call(this,"Async Validation Error")||this,n.errors=o,n.fields=i,n}return t}(Hc(Error));function SD(e,t,o,i,n){if(t.first){var r=new Promise(function(v,x){var g=function(y){return i(y),y.length?x(new Ef(y,jc(y))):v(n)},k=wD(e);Mf(k,o,g)});return r.catch(function(v){return v}),r}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),u=c.length,f=0,p=[],d=new Promise(function(v,x){var g=function(M){if(p.push.apply(p,M),f++,f===u)return i(p),p.length?x(new Ef(p,jc(p))):v(n)};c.length||(i(p),v(n)),c.forEach(function(k){var M=e[k];s.indexOf(k)!==-1?Mf(M,o,g):CD(M,o,g)})});return d.catch(function(v){return v}),d}function kD(e){return!!(e&&e.message!==void 0)}function TD(e,t){for(var o=e,i=0;i<t.length;i++){if(o==null)return o;o=o[t[i]]}return o}function Of(e,t){return function(o){var i;return e.fullFields?i=TD(t,e.fullFields):i=t[o.field||e.fullField],kD(o)?(o.field=o.field||e.fullField,o.fieldValue=i,o):{message:typeof o=="function"?o():o,fieldValue:i,field:o.field||e.fullField}}}function Rf(e,t){if(t){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];typeof i=="object"&&typeof e[o]=="object"?e[o]=Hi({},e[o],i):e[o]=i}}return e}var t0=function(t,o,i,n,r,s){t.required&&(!i.hasOwnProperty(t.field)||It(o,s||t.type))&&n.push(no(r.messages.required,t.fullField))},PD=function(t,o,i,n,r){(/^\s+$/.test(o)||o==="")&&n.push(no(r.messages.whitespace,t.fullField))},$s,AD=function(){if($s)return $s;var e="[a-fA-F\\d:]",t=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=(`
  1337. (?:
  1338. (?:`+i+":){7}(?:"+i+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  1339. (?:`+i+":){6}(?:"+o+"|:"+i+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  1340. (?:`+i+":){5}(?::"+o+"|(?::"+i+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  1341. (?:`+i+":){4}(?:(?::"+i+"){0,1}:"+o+"|(?::"+i+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  1342. (?:`+i+":){3}(?:(?::"+i+"){0,2}:"+o+"|(?::"+i+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  1343. (?:`+i+":){2}(?:(?::"+i+"){0,3}:"+o+"|(?::"+i+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  1344. (?:`+i+":){1}(?:(?::"+i+"){0,4}:"+o+"|(?::"+i+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  1345. (?::(?:(?::`+i+"){0,5}:"+o+"|(?::"+i+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  1346. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  1347. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),r=new RegExp("(?:^"+o+"$)|(?:^"+n+"$)"),s=new RegExp("^"+o+"$"),c=new RegExp("^"+n+"$"),u=function(A){return A&&A.exact?r:new RegExp("(?:"+t(A)+o+t(A)+")|(?:"+t(A)+n+t(A)+")","g")};u.v4=function(I){return I&&I.exact?s:new RegExp(""+t(I)+o+t(I),"g")},u.v6=function(I){return I&&I.exact?c:new RegExp(""+t(I)+n+t(I),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",d=u.v4().source,v=u.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",k="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",M="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',T="(?:"+f+"|www\\.)"+p+"(?:localhost|"+d+"|"+v+"|"+x+g+k+")"+M+y;return $s=new RegExp("(?:^"+T+"$)","i"),$s},Lf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},br={integer:function(t){return br.number(t)&&parseInt(t,10)===t},float:function(t){return br.number(t)&&!br.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!br.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Lf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(AD())},hex:function(t){return typeof t=="string"&&!!t.match(Lf.hex)}},MD=function(t,o,i,n,r){if(t.required&&o===void 0){t0(t,o,i,n,r);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;s.indexOf(c)>-1?br[c](o)||n.push(no(r.messages.types[c],t.fullField,t.type)):c&&typeof o!==t.type&&n.push(no(r.messages.types[c],t.fullField,t.type))},ED=function(t,o,i,n,r){var s=typeof t.len=="number",c=typeof t.min=="number",u=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=o,d=null,v=typeof o=="number",x=typeof o=="string",g=Array.isArray(o);if(v?d="number":x?d="string":g&&(d="array"),!d)return!1;g&&(p=o.length),x&&(p=o.replace(f,"_").length),s?p!==t.len&&n.push(no(r.messages[d].len,t.fullField,t.len)):c&&!u&&p<t.min?n.push(no(r.messages[d].min,t.fullField,t.min)):u&&!c&&p>t.max?n.push(no(r.messages[d].max,t.fullField,t.max)):c&&u&&(p<t.min||p>t.max)&&n.push(no(r.messages[d].range,t.fullField,t.min,t.max))},gn="enum",OD=function(t,o,i,n,r){t[gn]=Array.isArray(t[gn])?t[gn]:[],t[gn].indexOf(o)===-1&&n.push(no(r.messages[gn],t.fullField,t[gn].join(", ")))},RD=function(t,o,i,n,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||n.push(no(r.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(o)||n.push(no(r.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},it={required:t0,whitespace:PD,type:MD,range:ED,enum:OD,pattern:RD},LD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o,"string")&&!t.required)return i();it.required(t,o,n,s,r,"string"),It(o,"string")||(it.type(t,o,n,s,r),it.range(t,o,n,s,r),it.pattern(t,o,n,s,r),t.whitespace===!0&&it.whitespace(t,o,n,s,r))}i(s)},DD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&it.type(t,o,n,s,r)}i(s)},ID=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(o===""&&(o=void 0),It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&(it.type(t,o,n,s,r),it.range(t,o,n,s,r))}i(s)},BD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&it.type(t,o,n,s,r)}i(s)},_D=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),It(o)||it.type(t,o,n,s,r)}i(s)},zD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&(it.type(t,o,n,s,r),it.range(t,o,n,s,r))}i(s)},$D=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&(it.type(t,o,n,s,r),it.range(t,o,n,s,r))}i(s)},FD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(o==null&&!t.required)return i();it.required(t,o,n,s,r,"array"),o!=null&&(it.type(t,o,n,s,r),it.range(t,o,n,s,r))}i(s)},HD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&it.type(t,o,n,s,r)}i(s)},jD="enum",ND=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r),o!==void 0&&it[jD](t,o,n,s,r)}i(s)},WD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o,"string")&&!t.required)return i();it.required(t,o,n,s,r),It(o,"string")||it.pattern(t,o,n,s,r)}i(s)},UD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o,"date")&&!t.required)return i();if(it.required(t,o,n,s,r),!It(o,"date")){var u;o instanceof Date?u=o:u=new Date(o),it.type(t,u,n,s,r),u&&it.range(t,u.getTime(),n,s,r)}}i(s)},GD=function(t,o,i,n,r){var s=[],c=Array.isArray(o)?"array":typeof o;it.required(t,o,n,s,r,c),i(s)},Hl=function(t,o,i,n,r){var s=t.type,c=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(It(o,s)&&!t.required)return i();it.required(t,o,n,c,r,s),It(o,s)||it.type(t,o,n,c,r)}i(c)},VD=function(t,o,i,n,r){var s=[],c=t.required||!t.required&&n.hasOwnProperty(t.field);if(c){if(It(o)&&!t.required)return i();it.required(t,o,n,s,r)}i(s)},Er={string:LD,method:DD,number:ID,boolean:BD,regexp:_D,integer:zD,float:$D,array:FD,object:HD,enum:ND,pattern:WD,date:UD,url:Hl,hex:Hl,email:Hl,required:GD,any:VD};function Nc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Wc=Nc(),ds=function(){function e(o){this.rules=null,this._messages=Wc,this.define(o)}var t=e.prototype;return t.define=function(i){var n=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(r){var s=i[r];n.rules[r]=Array.isArray(s)?s:[s]})},t.messages=function(i){return i&&(this._messages=Rf(Nc(),i)),this._messages},t.validate=function(i,n,r){var s=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var c=i,u=n,f=r;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,c),Promise.resolve(c);function p(k){var M=[],y={};function T(A){if(Array.isArray(A)){var R;M=(R=M).concat.apply(R,A)}else M.push(A)}for(var I=0;I<k.length;I++)T(k[I]);M.length?(y=jc(M),f(M,y)):f(null,c)}if(u.messages){var d=this.messages();d===Wc&&(d=Nc()),Rf(d,u.messages),u.messages=d}else u.messages=this.messages();var v={},x=u.keys||Object.keys(this.rules);x.forEach(function(k){var M=s.rules[k],y=c[k];M.forEach(function(T){var I=T;typeof I.transform=="function"&&(c===i&&(c=Hi({},c)),y=c[k]=I.transform(y)),typeof I=="function"?I={validator:I}:I=Hi({},I),I.validator=s.getValidationMethod(I),I.validator&&(I.field=k,I.fullField=I.fullField||k,I.type=s.getType(I),v[k]=v[k]||[],v[k].push({rule:I,value:y,source:c,field:k}))})});var g={};return SD(v,u,function(k,M){var y=k.rule,T=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");T=T&&(y.required||!y.required&&k.value),y.field=k.field;function I(z,P){return Hi({},P,{fullField:y.fullField+"."+z,fullFields:y.fullFields?[].concat(y.fullFields,[z]):[z]})}function A(z){z===void 0&&(z=[]);var P=Array.isArray(z)?z:[z];!u.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&y.message!==void 0&&(P=[].concat(y.message));var L=P.map(Of(y,c));if(u.first&&L.length)return g[y.field]=1,M(L);if(!T)M(L);else{if(y.required&&!k.value)return y.message!==void 0?L=[].concat(y.message).map(Of(y,c)):u.error&&(L=[u.error(y,no(u.messages.required,y.field))]),M(L);var S={};y.defaultField&&Object.keys(k.value).map(function(m){S[m]=y.defaultField}),S=Hi({},S,k.rule.fields);var w={};Object.keys(S).forEach(function(m){var C=S[m],a=Array.isArray(C)?C:[C];w[m]=a.map(I.bind(null,m))});var E=new e(w);E.messages(u.messages),k.rule.options&&(k.rule.options.messages=u.messages,k.rule.options.error=u.error),E.validate(k.value,k.rule.options||u,function(m){var C=[];L&&L.length&&C.push.apply(C,L),m&&m.length&&C.push.apply(C,m),M(C.length?C:null)})}}var R;if(y.asyncValidator)R=y.asyncValidator(y,k.value,A,k.source,u);else if(y.validator){try{R=y.validator(y,k.value,A,k.source,u)}catch(z){console.error==null||console.error(z),u.suppressValidatorError||setTimeout(function(){throw z},0),A(z.message)}R===!0?A():R===!1?A(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):R instanceof Array?A(R):R instanceof Error&&A(R.message)}R&&R.then&&R.then(function(){return A()},function(z){return A(z)})},function(k){p(k)},c)},t.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!Er.hasOwnProperty(i.type))throw new Error(no("Unknown rule type %s",i.type));return i.type||"string"},t.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var n=Object.keys(i),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Er.required:Er[this.getType(i)]||void 0},e}();ds.register=function(t,o){if(typeof o!="function")throw new Error("Cannot register a validator by type, validator is not a function");Er[t]=o};ds.warning=bD;ds.messages=Wc;ds.validators=Er;function XD(e){const t=Xe(cs,null);return{mergedSize:be(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function qD(e){const t=Xe(cs,null),o=be(()=>{const{labelPlacement:x}=e;return x!==void 0?x:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),i=be(()=>o.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),n=be(()=>{if(o.value==="top")return;const{labelWidth:x}=e;if(x!==void 0&&x!=="auto")return Wi(x);if(i.value){const g=t==null?void 0:t.maxChildLabelWidthRef.value;return g!==void 0?Wi(g):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Wi(t.props.labelWidth)}),r=be(()=>{const{labelAlign:x}=e;if(x)return x;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),s=be(()=>{var x;return[(x=e.labelProps)===null||x===void 0?void 0:x.style,e.labelStyle,{width:n.value}]}),c=be(()=>{const{showRequireMark:x}=e;return x!==void 0?x:t==null?void 0:t.props.showRequireMark}),u=be(()=>{const{requireMarkPlacement:x}=e;return x!==void 0?x:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),f=ke(!1),p=be(()=>{const{validationStatus:x}=e;if(x!==void 0)return x;if(f.value)return"error"}),d=be(()=>{const{showFeedback:x}=e;return x!==void 0?x:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),v=be(()=>{const{showLabel:x}=e;return x!==void 0?x:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:f,mergedLabelStyle:s,mergedLabelPlacement:o,mergedLabelAlign:r,mergedShowRequireMark:c,mergedRequireMarkPlacement:u,mergedValidationStatus:p,mergedShowFeedback:d,mergedShowLabel:v,isAutoLabelWidth:i}}function YD(e){const t=Xe(cs,null),o=be(()=>{const{rulePath:s}=e;if(s!==void 0)return s;const{path:c}=e;if(c!==void 0)return c}),i=be(()=>{const s=[],{rule:c}=e;if(c!==void 0&&(Array.isArray(c)?s.push(...c):s.push(c)),t){const{rules:u}=t.props,{value:f}=o;if(u!==void 0&&f!==void 0){const p=Xd(u,f);p!==void 0&&(Array.isArray(p)?s.push(...p):s.push(p))}}return s}),n=be(()=>i.value.some(s=>s.required)),r=be(()=>n.value||e.required);return{mergedRules:i,mergedRequired:r}}const{cubicBezierEaseInOut:Df}=Qo;function KD({name:e="fade-down",fromOffset:t="-4px",enterDuration:o=".3s",leaveDuration:i=".3s",enterCubicBezier:n=Df,leaveCubicBezier:r=Df}={}){return[Ce(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),Ce(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),Ce(`&.${e}-transition-leave-active`,{transition:`opacity ${i} ${r}, transform ${i} ${r}`}),Ce(`&.${e}-transition-enter-active`,{transition:`opacity ${o} ${n}, transform ${o} ${n}`})]}const ZD=Me("form-item",`
  1348. display: grid;
  1349. line-height: var(--n-line-height);
  1350. `,[Me("form-item-label",`
  1351. grid-area: label;
  1352. align-items: center;
  1353. line-height: 1.25;
  1354. text-align: var(--n-label-text-align);
  1355. font-size: var(--n-label-font-size);
  1356. min-height: var(--n-label-height);
  1357. padding: var(--n-label-padding);
  1358. color: var(--n-label-text-color);
  1359. transition: color .3s var(--n-bezier);
  1360. box-sizing: border-box;
  1361. font-weight: var(--n-label-font-weight);
  1362. `,[xe("asterisk",`
  1363. white-space: nowrap;
  1364. user-select: none;
  1365. -webkit-user-select: none;
  1366. color: var(--n-asterisk-color);
  1367. transition: color .3s var(--n-bezier);
  1368. `),xe("asterisk-placeholder",`
  1369. grid-area: mark;
  1370. user-select: none;
  1371. -webkit-user-select: none;
  1372. visibility: hidden;
  1373. `)]),Me("form-item-blank",`
  1374. grid-area: blank;
  1375. min-height: var(--n-blank-height);
  1376. `),Oe("auto-label-width",[Me("form-item-label","white-space: nowrap;")]),Oe("left-labelled",`
  1377. grid-template-areas:
  1378. "label blank"
  1379. "label feedback";
  1380. grid-template-columns: auto minmax(0, 1fr);
  1381. grid-template-rows: auto 1fr;
  1382. align-items: start;
  1383. `,[Me("form-item-label",`
  1384. display: grid;
  1385. grid-template-columns: 1fr auto;
  1386. min-height: var(--n-blank-height);
  1387. height: auto;
  1388. box-sizing: border-box;
  1389. flex-shrink: 0;
  1390. flex-grow: 0;
  1391. `,[Oe("reverse-columns-space",`
  1392. grid-template-columns: auto 1fr;
  1393. `),Oe("left-mark",`
  1394. grid-template-areas:
  1395. "mark text"
  1396. ". text";
  1397. `),Oe("right-mark",`
  1398. grid-template-areas:
  1399. "text mark"
  1400. "text .";
  1401. `),Oe("right-hanging-mark",`
  1402. grid-template-areas:
  1403. "text mark"
  1404. "text .";
  1405. `),xe("text",`
  1406. grid-area: text;
  1407. `),xe("asterisk",`
  1408. grid-area: mark;
  1409. align-self: end;
  1410. `)])]),Oe("top-labelled",`
  1411. grid-template-areas:
  1412. "label"
  1413. "blank"
  1414. "feedback";
  1415. grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
  1416. grid-template-columns: minmax(0, 100%);
  1417. `,[Oe("no-label",`
  1418. grid-template-areas:
  1419. "blank"
  1420. "feedback";
  1421. grid-template-rows: 1fr;
  1422. `),Me("form-item-label",`
  1423. display: flex;
  1424. align-items: flex-start;
  1425. justify-content: var(--n-label-text-align);
  1426. `)]),Me("form-item-blank",`
  1427. box-sizing: border-box;
  1428. display: flex;
  1429. align-items: center;
  1430. position: relative;
  1431. `),Me("form-item-feedback-wrapper",`
  1432. grid-area: feedback;
  1433. box-sizing: border-box;
  1434. min-height: var(--n-feedback-height);
  1435. font-size: var(--n-feedback-font-size);
  1436. line-height: 1.25;
  1437. transform-origin: top left;
  1438. `,[Ce("&:not(:empty)",`
  1439. padding: var(--n-feedback-padding);
  1440. `),Me("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[Oe("warning",{color:"var(--n-feedback-text-color-warning)"}),Oe("error",{color:"var(--n-feedback-text-color-error)"}),KD({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var If=globalThis&&globalThis.__awaiter||function(e,t,o,i){function n(r){return r instanceof o?r:new o(function(s){s(r)})}return new(o||(o=Promise))(function(r,s){function c(p){try{f(i.next(p))}catch(d){s(d)}}function u(p){try{f(i.throw(p))}catch(d){s(d)}}function f(p){p.done?r(p.value):n(p.value).then(c,u)}f((i=i.apply(e,t||[])).next())})};const o0=Object.assign(Object.assign({},Je.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),mF=qi(o0);function Bf(e,t){return(...o)=>{try{const i=e(...o);return!t&&(typeof i=="boolean"||i instanceof Error||Array.isArray(i))||i!=null&&i.then?i:(i===void 0||wi("form-item/validate",`You return a ${typeof i} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(i){wi("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(i);return}}}const JD=Ne({name:"FormItem",props:o0,setup(e){HC(e0,"formItems",et(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Rt(e),i=Xe(cs,null),n=XD(e),r=qD(e),{validationErrored:s}=r,{mergedRequired:c,mergedRules:u}=YD(e),{mergedSize:f}=n,{mergedLabelPlacement:p,mergedLabelAlign:d,mergedRequireMarkPlacement:v}=r,x=ke([]),g=ke(zn()),k=i?et(i.props,"disabled"):ke(!1),M=Je("Form","-form-item",ZD,Qv,e,t);lt(et(e,"path"),()=>{e.ignorePathChange||y()});function y(){x.value=[],s.value=!1,e.feedback&&(g.value=zn())}function T(){P("blur")}function I(){P("change")}function A(){P("focus")}function R(){P("input")}function z(C,a){return If(this,void 0,void 0,function*(){let l,h,b,B;typeof C=="string"?(l=C,h=a):C!==null&&typeof C=="object"&&(l=C.trigger,h=C.callback,b=C.shouldRuleBeApplied,B=C.options),yield new Promise((F,O)=>{P(l,b,B).then(({valid:W,errors:X})=>{W?(h&&h(),F()):(h&&h(X),O(X))})})})}const P=(C=null,a=()=>!0,l={suppressWarning:!0})=>If(this,void 0,void 0,function*(){const{path:h}=e;l?l.first||(l.first=e.first):l={};const{value:b}=u,B=i?Xd(i.props.model,h||""):void 0,F={},O={},W=(C?b.filter(Y=>Array.isArray(Y.trigger)?Y.trigger.includes(C):Y.trigger===C):b).filter(a).map((Y,D)=>{const N=Object.assign({},Y);if(N.validator&&(N.validator=Bf(N.validator,!1)),N.asyncValidator&&(N.asyncValidator=Bf(N.asyncValidator,!0)),N.renderMessage){const V=`__renderMessage__${D}`;O[V]=N.message,N.message=V,F[V]=N.renderMessage}return N});if(!W.length)return{valid:!0};const X=h??"__n_no_path__",Q=new ds({[X]:W}),{validateMessages:ee}=(i==null?void 0:i.props)||{};return ee&&Q.messages(ee),yield new Promise(Y=>{Q.validate({[X]:B},l,D=>{D!=null&&D.length?(x.value=D.map(N=>{const V=(N==null?void 0:N.message)||"";return{key:V,render:()=>V.startsWith("__renderMessage__")?F[V]():V}}),D.forEach(N=>{var V;!((V=N.message)===null||V===void 0)&&V.startsWith("__renderMessage__")&&(N.message=O[N.message])}),s.value=!0,Y({valid:!1,errors:D})):(y(),Y({valid:!0}))})})});ct(Pc,{path:et(e,"path"),disabled:k,mergedSize:n.mergedSize,mergedValidationStatus:r.mergedValidationStatus,restoreValidation:y,handleContentBlur:T,handleContentChange:I,handleContentFocus:A,handleContentInput:R});const L={validate:z,restoreValidation:y,internalValidate:P},S=ke(null);Pt(()=>{if(!r.isAutoLabelWidth.value)return;const C=S.value;if(C!==null){const a=C.style.whiteSpace;C.style.whiteSpace="nowrap",C.style.width="",i==null||i.deriveMaxChildLabelWidth(Number(getComputedStyle(C).width.slice(0,-2))),C.style.whiteSpace=a}});const w=be(()=>{var C;const{value:a}=f,{value:l}=p,h=l==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:b},self:{labelTextColor:B,asteriskColor:F,lineHeight:O,feedbackTextColor:W,feedbackTextColorWarning:X,feedbackTextColorError:Q,feedbackPadding:ee,labelFontWeight:Y,[ze("labelHeight",a)]:D,[ze("blankHeight",a)]:N,[ze("feedbackFontSize",a)]:V,[ze("feedbackHeight",a)]:j,[ze("labelPadding",h)]:K,[ze("labelTextAlign",h)]:_,[ze(ze("labelFontSize",l),a)]:$}}=M.value;let H=(C=d.value)!==null&&C!==void 0?C:_;return l==="top"&&(H=H==="right"?"flex-end":"flex-start"),{"--n-bezier":b,"--n-line-height":O,"--n-blank-height":N,"--n-label-font-size":$,"--n-label-text-align":H,"--n-label-height":D,"--n-label-padding":K,"--n-label-font-weight":Y,"--n-asterisk-color":F,"--n-label-text-color":B,"--n-feedback-padding":ee,"--n-feedback-font-size":V,"--n-feedback-height":j,"--n-feedback-text-color":W,"--n-feedback-text-color-warning":X,"--n-feedback-text-color-error":Q}}),E=o?jt("form-item",be(()=>{var C;return`${f.value[0]}${p.value[0]}${((C=d.value)===null||C===void 0?void 0:C[0])||""}`}),w,e):void 0,m=be(()=>p.value==="left"&&v.value==="left"&&d.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:S,mergedClsPrefix:t,mergedRequired:c,feedbackId:g,renderExplains:x,reverseColSpace:m},r),n),L),{cssVars:o?void 0:w,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:o,mergedShowRequireMark:i,mergedRequireMarkPlacement:n,onRender:r}=this,s=i!==void 0?i:this.mergedRequired;r==null||r();const c=()=>{const u=this.$slots.label?this.$slots.label():this.label;if(!u)return null;const f=le("span",{class:`${t}-form-item-label__text`},u),p=s?le("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&le("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:d}=this;return le("label",Object.assign({},d,{class:[d==null?void 0:d.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[p,f]:[f,p])};return le("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!o&&`${t}-form-item--no-label`],style:this.cssVars},o&&c(),le("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?le("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},le(Jt,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:u}=this;return Tt(e.feedback,f=>{var p;const{feedback:d}=this,v=f||d?le("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},f||d):this.renderExplains.length?(p=this.renderExplains)===null||p===void 0?void 0:p.map(({key:x,render:g})=>le("div",{key:x,class:`${t}-form-item-feedback__line`},g())):null;return v?u==="warning"?le("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},v):u==="error"?le("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},v):u==="success"?le("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},v):le("div",{key:"controlled-default",class:`${t}-form-item-feedback`},v):null})}})):null)}}),QD={name:"GradientText",common:$e,self(e){const{primaryColor:t,successColor:o,warningColor:i,errorColor:n,infoColor:r,primaryColorSuppl:s,successColorSuppl:c,warningColorSuppl:u,errorColorSuppl:f,infoColorSuppl:p,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:s,colorStartInfo:r,colorEndInfo:p,colorStartWarning:i,colorEndWarning:u,colorStartError:n,colorEndError:f,colorStartSuccess:o,colorEndSuccess:c}}},eI=QD,tI=e=>{const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}},oI={name:"IconWrapper",common:$e,self:tI},iI=oI,nI={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},i0=e=>{const{textColor2:t,successColor:o,infoColor:i,warningColor:n,errorColor:r,popoverColor:s,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:d,textColor1:v,textColor3:x,borderRadius:g,fontWeightStrong:k,boxShadow2:M,lineHeight:y,fontSize:T}=e;return Object.assign(Object.assign({},nI),{borderRadius:g,lineHeight:y,fontSize:T,headerFontWeight:k,iconColor:t,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:n,iconColorError:r,color:s,textColor:t,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:f,closeBorderRadius:g,closeColorHover:p,closeColorPressed:d,headerTextColor:v,descriptionTextColor:x,actionTextColor:t,boxShadow:M})},rI={name:"Notification",common:Qe,peers:{Scrollbar:ei},self:i0},sI=rI,aI={name:"Notification",common:$e,peers:{Scrollbar:Qt},self:i0},lI=aI,cI={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},n0=e=>{const{textColor2:t,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:n,infoColor:r,successColor:s,errorColor:c,warningColor:u,popoverColor:f,boxShadow2:p,primaryColor:d,lineHeight:v,borderRadius:x,closeColorHover:g,closeColorPressed:k}=e;return Object.assign(Object.assign({},cI),{closeBorderRadius:x,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:f,colorInfo:f,colorSuccess:f,colorError:f,colorWarning:f,colorLoading:f,boxShadow:p,boxShadowInfo:p,boxShadowSuccess:p,boxShadowError:p,boxShadowWarning:p,boxShadowLoading:p,iconColor:t,iconColorInfo:r,iconColorSuccess:s,iconColorWarning:u,iconColorError:c,iconColorLoading:d,closeColorHover:g,closeColorPressed:k,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:n,closeColorHoverInfo:g,closeColorPressedInfo:k,closeIconColorInfo:o,closeIconColorHoverInfo:i,closeIconColorPressedInfo:n,closeColorHoverSuccess:g,closeColorPressedSuccess:k,closeIconColorSuccess:o,closeIconColorHoverSuccess:i,closeIconColorPressedSuccess:n,closeColorHoverError:g,closeColorPressedError:k,closeIconColorError:o,closeIconColorHoverError:i,closeIconColorPressedError:n,closeColorHoverWarning:g,closeColorPressedWarning:k,closeIconColorWarning:o,closeIconColorHoverWarning:i,closeIconColorPressedWarning:n,closeColorHoverLoading:g,closeColorPressedLoading:k,closeIconColorLoading:o,closeIconColorHoverLoading:i,closeIconColorPressedLoading:n,loadingColor:d,lineHeight:v,borderRadius:x})},dI={name:"Message",common:Qe,self:n0},hI=dI,uI={name:"Message",common:$e,self:n0},fI=uI,pI={name:"ButtonGroup",common:$e},gI=pI,mI={name:"InputNumber",common:$e,peers:{Button:eo,Input:po},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},vI=mI,xI={name:"Layout",common:$e,peers:{Scrollbar:Qt},self(e){const{textColor2:t,bodyColor:o,popoverColor:i,cardColor:n,dividerColor:r,scrollbarColor:s,scrollbarColorHover:c}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:r,headerBorderColorInverted:r,footerBorderColor:r,footerBorderColorInverted:r,siderBorderColor:r,siderBorderColorInverted:r,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:i,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:We(o,s),siderToggleBarColorHover:We(o,c),__invertScrollbar:"false"}}},bI=xI,yI=e=>{const{baseColor:t,textColor2:o,bodyColor:i,cardColor:n,dividerColor:r,actionColor:s,scrollbarColor:c,scrollbarColorHover:u,invertedColor:f}=e;return{textColor:o,textColorInverted:"#FFF",color:i,colorEmbedded:s,headerColor:n,headerColorInverted:f,footerColor:s,footerColorInverted:f,headerBorderColor:r,headerBorderColorInverted:f,footerBorderColor:r,footerBorderColorInverted:f,siderBorderColor:r,siderBorderColorInverted:f,siderColor:n,siderColorInverted:f,siderToggleButtonBorder:`1px solid ${r}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:We(i,c),siderToggleBarColorHover:We(i,u),__invertScrollbar:"true"}},CI={name:"Layout",common:Qe,peers:{Scrollbar:ei},self:yI},wI=CI,r0=e=>{const{textColor2:t,cardColor:o,modalColor:i,popoverColor:n,dividerColor:r,borderRadius:s,fontSize:c,hoverColor:u}=e;return{textColor:t,color:o,colorHover:u,colorModal:i,colorHoverModal:We(i,u),colorPopover:n,colorHoverPopover:We(n,u),borderColor:r,borderColorModal:We(i,r),borderColorPopover:We(n,r),borderRadius:s,fontSize:c}},SI={name:"List",common:Qe,self:r0},vF=SI,kI={name:"List",common:$e,self:r0},TI=kI,PI={name:"LoadingBar",common:$e,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},AI=PI,MI=e=>{const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}},EI={name:"LoadingBar",common:Qe,self:MI},OI=EI,RI={name:"Log",common:$e,peers:{Scrollbar:Qt,Code:wv},self(e){const{textColor2:t,inputColor:o,fontSize:i,primaryColor:n}=e;return{loaderFontSize:i,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},LI=RI,DI={name:"Mention",common:$e,peers:{InternalSelectMenu:ls,Input:po},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},II=DI;function BI(e,t,o,i){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:i}}const _I=e=>{const{borderRadius:t,textColor3:o,primaryColor:i,textColor2:n,textColor1:r,fontSize:s,dividerColor:c,hoverColor:u,primaryColorHover:f}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:u,itemColorActive:De(i,{alpha:.1}),itemColorActiveHover:De(i,{alpha:.1}),itemColorActiveCollapsed:De(i,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:i,itemTextColorActiveHover:i,itemTextColorChildActive:i,itemTextColorChildActiveHover:i,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:f,itemTextColorActiveHorizontal:i,itemTextColorActiveHoverHorizontal:i,itemTextColorChildActiveHorizontal:i,itemTextColorChildActiveHoverHorizontal:i,itemIconColor:r,itemIconColorHover:r,itemIconColorActive:i,itemIconColorActiveHover:i,itemIconColorChildActive:i,itemIconColorChildActiveHover:i,itemIconColorCollapsed:r,itemIconColorHorizontal:r,itemIconColorHoverHorizontal:f,itemIconColorActiveHorizontal:i,itemIconColorActiveHoverHorizontal:i,itemIconColorChildActiveHorizontal:i,itemIconColorChildActiveHoverHorizontal:i,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:i,arrowColorActiveHover:i,arrowColorChildActive:i,arrowColorChildActiveHover:i,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:s,dividerColor:c},BI("#BBB",i,"#FFF","#AAA"))},zI={name:"Menu",common:$e,peers:{Tooltip:Za,Dropdown:lh},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,i=_I(e);return i.itemColorActive=De(t,{alpha:.15}),i.itemColorActiveHover=De(t,{alpha:.15}),i.itemColorActiveCollapsed=De(t,{alpha:.15}),i.itemColorActiveInverted=o,i.itemColorActiveHoverInverted=o,i.itemColorActiveCollapsedInverted=o,i}},$I=zI,FI={titleFontSize:"18px",backSize:"22px"};function s0(e){const{textColor1:t,textColor2:o,textColor3:i,fontSize:n,fontWeightStrong:r,primaryColorHover:s,primaryColorPressed:c}=e;return Object.assign(Object.assign({},FI),{titleFontWeight:r,fontSize:n,titleTextColor:t,backColor:o,backColorHover:s,backColorPressed:c,subtitleTextColor:i})}const xF={name:"PageHeader",common:Qe,self:s0},HI={name:"PageHeader",common:$e,self:s0},jI={iconSize:"22px"},a0=e=>{const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},jI),{fontSize:t,iconColor:o})},NI={name:"Popconfirm",common:Qe,peers:{Button:an,Popover:rn},self:a0},bF=NI,WI={name:"Popconfirm",common:$e,peers:{Button:eo,Popover:sn},self:a0},UI=WI,l0=e=>{const{infoColor:t,successColor:o,warningColor:i,errorColor:n,textColor2:r,progressRailColor:s,fontSize:c,fontWeight:u}=e;return{fontSize:c,fontSizeCircle:"28px",fontWeightCircle:u,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:i,iconColorError:n,textColorCircle:r,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:r,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:i,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},GI={name:"Progress",common:Qe,self:l0},VI=GI,XI={name:"Progress",common:$e,self(e){const t=l0(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},c0=XI,qI={name:"Rate",common:$e,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},YI=qI,KI={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},ZI=e=>{const{textColor2:t,textColor1:o,errorColor:i,successColor:n,infoColor:r,warningColor:s,lineHeight:c,fontWeightStrong:u}=e;return Object.assign(Object.assign({},KI),{lineHeight:c,titleFontWeight:u,titleTextColor:o,textColor:t,iconColorError:i,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:s})},JI={name:"Result",common:$e,self:ZI},QI=JI,eB={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},tB={name:"Slider",common:$e,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:i,primaryColorSuppl:n,popoverColor:r,textColor2:s,cardColor:c,borderRadius:u,fontSize:f,opacityDisabled:p}=e;return Object.assign(Object.assign({},eB),{fontSize:f,markFontSize:f,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:p,handleColor:"#FFF",dotColor:c,dotColorModal:i,dotColorPopover:r,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:r,indicatorBoxShadow:t,indicatorTextColor:s,indicatorBorderRadius:u,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}},oB=tB,d0=e=>{const{opacityDisabled:t,heightTiny:o,heightSmall:i,heightMedium:n,heightLarge:r,heightHuge:s,primaryColor:c,fontSize:u}=e;return{fontSize:u,textColor:c,sizeTiny:o,sizeSmall:i,sizeMedium:n,sizeLarge:r,sizeHuge:s,color:c,opacitySpinning:t}},iB={name:"Spin",common:Qe,self:d0},yF=iB,nB={name:"Spin",common:$e,self:d0},rB=nB,sB=e=>{const{textColor2:t,textColor3:o,fontSize:i,fontWeight:n}=e;return{labelFontSize:i,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},aB={name:"Statistic",common:$e,self:sB},lB=aB,cB={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},dB=e=>{const{fontWeightStrong:t,baseColor:o,textColorDisabled:i,primaryColor:n,errorColor:r,textColor1:s,textColor2:c}=e;return Object.assign(Object.assign({},cB),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:i,indicatorTextColorFinish:n,indicatorTextColorError:r,indicatorBorderColorProcess:n,indicatorBorderColorWait:i,indicatorBorderColorFinish:n,indicatorBorderColorError:r,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:i,splitorColorWait:i,splitorColorFinish:n,splitorColorError:i,headerTextColorProcess:s,headerTextColorWait:i,headerTextColorFinish:i,headerTextColorError:r,descriptionTextColorProcess:c,descriptionTextColorWait:i,descriptionTextColorFinish:i,descriptionTextColorError:r})},hB={name:"Steps",common:$e,self:dB},uB=hB,fB={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},pB={name:"Switch",common:$e,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:i,primaryColor:n,textColor2:r,baseColor:s}=e,c="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},fB),{iconColor:s,textColor:r,loadingColor:t,opacityDisabled:o,railColor:c,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:i,railBorderRadiusMedium:i,railBorderRadiusLarge:i,buttonBorderRadiusSmall:i,buttonBorderRadiusMedium:i,buttonBorderRadiusLarge:i,boxShadowFocus:`0 0 8px 0 ${De(n,{alpha:.3})}`})}},gB=pB,mB={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},h0=e=>{const{dividerColor:t,cardColor:o,modalColor:i,popoverColor:n,tableHeaderColor:r,tableColorStriped:s,textColor1:c,textColor2:u,borderRadius:f,fontWeightStrong:p,lineHeight:d,fontSizeSmall:v,fontSizeMedium:x,fontSizeLarge:g}=e;return Object.assign(Object.assign({},mB),{fontSizeSmall:v,fontSizeMedium:x,fontSizeLarge:g,lineHeight:d,borderRadius:f,borderColor:We(o,t),borderColorModal:We(i,t),borderColorPopover:We(n,t),tdColor:o,tdColorModal:i,tdColorPopover:n,tdColorStriped:We(o,s),tdColorStripedModal:We(i,s),tdColorStripedPopover:We(n,s),thColor:We(o,r),thColorModal:We(i,r),thColorPopover:We(n,r),thTextColor:c,tdTextColor:u,thFontWeight:p})},vB={name:"Table",common:Qe,self:h0},CF=vB,xB={name:"Table",common:$e,self:h0},bB=xB,yB={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},u0=e=>{const{textColor2:t,primaryColor:o,textColorDisabled:i,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:s,closeColorHover:c,closeColorPressed:u,tabColor:f,baseColor:p,dividerColor:d,fontWeight:v,textColor1:x,borderRadius:g,fontSize:k,fontWeightStrong:M}=e;return Object.assign(Object.assign({},yB),{colorSegment:f,tabFontSizeCard:k,tabTextColorLine:x,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:i,tabTextColorSegment:x,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:i,tabTextColorBar:x,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:i,tabTextColorCard:x,tabTextColorHoverCard:x,tabTextColorActiveCard:o,tabTextColorDisabledCard:i,barColor:o,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:s,closeColorHover:c,closeColorPressed:u,closeBorderRadius:g,tabColor:f,tabColorSegment:p,tabBorderColor:d,tabFontWeightActive:v,tabFontWeight:v,tabBorderRadius:g,paneTextColor:t,fontWeightStrong:M})},CB={name:"Tabs",common:Qe,self:u0},wF=CB,wB={name:"Tabs",common:$e,self(e){const t=u0(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}},SB=wB,f0=e=>{const{textColor1:t,textColor2:o,fontWeightStrong:i,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:i}},kB={name:"Thing",common:Qe,self:f0},SF=kB,TB={name:"Thing",common:$e,self:f0},PB=TB,AB={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},MB={name:"Timeline",common:$e,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:i,successColorSuppl:n,warningColorSuppl:r,textColor1:s,textColor2:c,railColor:u,fontWeightStrong:f,fontSize:p}=e;return Object.assign(Object.assign({},AB),{contentFontSize:p,titleFontWeight:f,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${i}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${r}`,iconColor:t,iconColorInfo:o,iconColorError:i,iconColorSuccess:n,iconColorWarning:r,titleTextColor:s,contentTextColor:c,metaTextColor:t,lineColor:u})}},EB=MB,OB={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},RB={name:"Transfer",common:$e,peers:{Checkbox:tr,Scrollbar:Qt,Input:po,Empty:nn,Button:eo},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:n,heightLarge:r,heightMedium:s,borderRadius:c,inputColor:u,tableHeaderColor:f,textColor1:p,textColorDisabled:d,textColor2:v,textColor3:x,hoverColor:g,closeColorHover:k,closeColorPressed:M,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:I,dividerColor:A}=e;return Object.assign(Object.assign({},OB),{itemHeightSmall:s,itemHeightMedium:s,itemHeightLarge:r,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:o,borderRadius:c,dividerColor:A,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:p,titleTextColorDisabled:d,extraTextColor:x,extraTextColorDisabled:d,itemTextColor:v,itemTextColorDisabled:d,itemColorPending:g,titleFontWeight:t,closeColorHover:k,closeColorPressed:M,closeIconColor:y,closeIconColorHover:T,closeIconColorPressed:I})}},LB=RB,DB=e=>{const{borderRadiusSmall:t,hoverColor:o,pressedColor:i,primaryColor:n,textColor3:r,textColor2:s,textColorDisabled:c,fontSize:u}=e;return{fontSize:u,nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:i,nodeColorActive:De(n,{alpha:.1}),arrowColor:r,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:n,dropMarkColor:n}},IB={name:"Tree",common:$e,peers:{Checkbox:tr,Scrollbar:Qt,Empty:nn},self(e){const{primaryColor:t}=e,o=DB(e);return o.nodeColorActive=De(t,{alpha:.15}),o}},p0=IB,BB={name:"TreeSelect",common:$e,peers:{Tree:p0,Empty:nn,InternalSelection:nh}},_B=BB,zB={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},$B=e=>{const{primaryColor:t,textColor2:o,borderColor:i,lineHeight:n,fontSize:r,borderRadiusSmall:s,dividerColor:c,fontWeightStrong:u,textColor1:f,textColor3:p,infoColor:d,warningColor:v,errorColor:x,successColor:g,codeColor:k}=e;return Object.assign(Object.assign({},zB),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:i,blockquoteLineHeight:n,blockquoteFontSize:r,codeBorderRadius:s,liTextColor:o,liLineHeight:n,liFontSize:r,hrColor:c,headerFontWeight:u,headerTextColor:f,pTextColor:o,pTextColor1Depth:f,pTextColor2Depth:o,pTextColor3Depth:p,pLineHeight:n,pFontSize:r,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:x,headerBarColorWarning:v,headerBarColorSuccess:g,textColor:o,textColor1Depth:f,textColor2Depth:o,textColor3Depth:p,textColorPrimary:t,textColorInfo:d,textColorSuccess:g,textColorWarning:v,textColorError:x,codeTextColor:o,codeColor:k,codeBorder:"1px solid #0000"})},FB={name:"Typography",common:$e,self:$B},HB=FB,g0=e=>{const{iconColor:t,primaryColor:o,errorColor:i,textColor2:n,successColor:r,opacityDisabled:s,actionColor:c,borderColor:u,hoverColor:f,lineHeight:p,borderRadius:d,fontSize:v}=e;return{fontSize:v,lineHeight:p,borderRadius:d,draggerColor:c,draggerBorder:`1px dashed ${u}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:f,itemColorHoverError:De(i,{alpha:.06}),itemTextColor:n,itemTextColorError:i,itemTextColorSuccess:r,itemIconColor:t,itemDisabledOpacity:s,itemBorderImageCardError:`1px solid ${i}`,itemBorderImageCard:`1px solid ${u}`}},jB={name:"Upload",common:Qe,peers:{Button:an,Progress:VI},self:g0},kF=jB,NB={name:"Upload",common:$e,peers:{Button:eo,Progress:c0},self(e){const{errorColor:t}=e,o=g0(e);return o.itemColorHoverError=De(t,{alpha:.09}),o}},WB=NB,UB={name:"Watermark",common:$e,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},GB=UB,VB={name:"Row",common:$e},XB=VB,qB={name:"Image",common:$e,peers:{Tooltip:Za},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},YB={type:String,default:"static"},KB=Me("layout",`
  1441. color: var(--n-text-color);
  1442. background-color: var(--n-color);
  1443. box-sizing: border-box;
  1444. position: relative;
  1445. z-index: auto;
  1446. flex: auto;
  1447. overflow: hidden;
  1448. transition:
  1449. box-shadow .3s var(--n-bezier),
  1450. background-color .3s var(--n-bezier),
  1451. color .3s var(--n-bezier);
  1452. `,[Me("layout-scroll-container",`
  1453. overflow-x: hidden;
  1454. box-sizing: border-box;
  1455. height: 100%;
  1456. `),Oe("absolute-positioned",`
  1457. position: absolute;
  1458. left: 0;
  1459. right: 0;
  1460. top: 0;
  1461. bottom: 0;
  1462. `)]),ZB={embedded:Boolean,position:YB,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},JB="n-layout";function QB(e){return Ne({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Je.props),ZB),setup(t){const o=ke(null),i=ke(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=Rt(t),s=Je("Layout","-layout",KB,wI,t,n);function c(k,M){if(t.nativeScrollbar){const{value:y}=o;y&&(M===void 0?y.scrollTo(k):y.scrollTo(k,M))}else{const{value:y}=i;y&&y.scrollTo(k,M)}}ct(JB,t);let u=0,f=0;const p=k=>{var M;const y=k.target;u=y.scrollLeft,f=y.scrollTop,(M=t.onScroll)===null||M===void 0||M.call(t,k)};vm(()=>{if(t.nativeScrollbar){const k=o.value;k&&(k.scrollTop=f,k.scrollLeft=u)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},v={scrollTo:c},x=be(()=>{const{common:{cubicBezierEaseInOut:k},self:M}=s.value;return{"--n-bezier":k,"--n-color":t.embedded?M.colorEmbedded:M.color,"--n-text-color":M.textColor}}),g=r?jt("layout",be(()=>t.embedded?"e":""),x,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:i,hasSiderStyle:d,mergedTheme:s,handleNativeElScroll:p,cssVars:r?void 0:x,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender},v)},render(){var t;const{mergedClsPrefix:o,hasSider:i}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=i?this.hasSiderStyle:void 0,r=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return le("div",{class:r,style:this.cssVars},this.nativeScrollbar?le("div",{ref:"scrollableElRef",class:`${o}-layout-scroll-container`,style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):le(as,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const e_=QB(!1),t_={extraFontSize:"12px",width:"440px"},o_={name:"Transfer",common:$e,peers:{Checkbox:tr,Scrollbar:Qt,Input:po,Empty:nn,Button:eo},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:i,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:s,heightLarge:c,heightMedium:u,heightSmall:f,borderRadius:p,inputColor:d,tableHeaderColor:v,textColor1:x,textColorDisabled:g,textColor2:k,hoverColor:M}=e;return Object.assign(Object.assign({},t_),{itemHeightSmall:f,itemHeightMedium:u,itemHeightLarge:c,fontSizeSmall:s,fontSizeMedium:r,fontSizeLarge:n,borderRadius:p,borderColor:"#0000",listColor:d,headerColor:v,titleTextColor:x,titleTextColorDisabled:g,extraTextColor:k,filterDividerColor:"#0000",itemTextColor:k,itemTextColorDisabled:g,itemColorPending:M,titleFontWeight:i,iconColor:o,iconColorDisabled:t})}},i_=o_,m0="n-loading-bar",v0="n-loading-bar-api",n_=Me("loading-bar-container",`
  1463. z-index: 5999;
  1464. position: fixed;
  1465. top: 0;
  1466. left: 0;
  1467. right: 0;
  1468. height: 2px;
  1469. `,[th({enterDuration:"0.3s",leaveDuration:"0.8s"}),Me("loading-bar",`
  1470. width: 100%;
  1471. transition:
  1472. max-width 4s linear,
  1473. background .2s linear;
  1474. height: var(--n-height);
  1475. `,[Oe("starting",`
  1476. background: var(--n-color-loading);
  1477. `),Oe("finishing",`
  1478. background: var(--n-color-loading);
  1479. transition:
  1480. max-width .2s linear,
  1481. background .2s linear;
  1482. `),Oe("error",`
  1483. background: var(--n-color-error);
  1484. transition:
  1485. max-width .2s linear,
  1486. background .2s linear;
  1487. `)])]);var jl=globalThis&&globalThis.__awaiter||function(e,t,o,i){function n(r){return r instanceof o?r:new o(function(s){s(r)})}return new(o||(o=Promise))(function(r,s){function c(p){try{f(i.next(p))}catch(d){s(d)}}function u(p){try{f(i.throw(p))}catch(d){s(d)}}function f(p){p.done?r(p.value):n(p.value).then(c,u)}f((i=i.apply(e,t||[])).next())})};function Fs(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const r_=Ne({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Rt(),{props:t,mergedClsPrefixRef:o}=Xe(m0),i=ke(null),n=ke(!1),r=ke(!1),s=ke(!1),c=ke(!1);let u=!1;const f=ke(!1),p=be(()=>{const{loadingBarStyle:R}=t;return R?R[f.value?"error":"loading"]:""});function d(){return jl(this,void 0,void 0,function*(){n.value=!1,s.value=!1,u=!1,f.value=!1,c.value=!0,yield Ft(),c.value=!1})}function v(R=0,z=80,P="starting"){return jl(this,void 0,void 0,function*(){yield d(),s.value=!0,r.value=!0,yield Ft();const L=i.value;L&&(L.style.maxWidth=`${R}%`,L.style.transition="none",L.offsetWidth,L.className=Fs(P,o.value),L.style.transition="",L.style.maxWidth=`${z}%`)})}function x(){if(u||f.value||!s.value)return;u=!0;const R=i.value;R&&(R.className=Fs("finishing",o.value),R.style.maxWidth="100%",R.offsetWidth,s.value=!1)}function g(){if(!(u||f.value))if(!s.value)v(100,100,"error").then(()=>{f.value=!0;const R=i.value;R&&(R.className=Fs("error",o.value),R.offsetWidth,s.value=!1)});else{f.value=!0;const R=i.value;if(!R)return;R.className=Fs("error",o.value),R.style.maxWidth="100%",R.offsetWidth,s.value=!1}}function k(){n.value=!0}function M(){n.value=!1}function y(){return jl(this,void 0,void 0,function*(){yield d()})}const T=Je("LoadingBar","-loading-bar",n_,OI,t,o),I=be(()=>{const{self:{height:R,colorError:z,colorLoading:P}}=T.value;return{"--n-height":R,"--n-color-loading":P,"--n-color-error":z}}),A=e?jt("loading-bar",void 0,I,t):void 0;return{mergedClsPrefix:o,loadingBarRef:i,started:r,loading:s,entering:n,transitionDisabled:c,start:v,error:g,finish:x,handleEnter:k,handleAfterEnter:M,handleAfterLeave:y,mergedLoadingBarStyle:p,cssVars:e?void 0:I,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return le(Jt,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Vo(le("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},le("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Bn,this.loading||!this.loading&&this.entering]])}})}}),s_=Object.assign(Object.assign({},Je.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),x0=Ne({name:"LoadingBarProvider",props:s_,setup(e){const t=Zn(),o=ke(null),i={start(){var r;t.value?(r=o.value)===null||r===void 0||r.start():Ft(()=>{var s;(s=o.value)===null||s===void 0||s.start()})},error(){var r;t.value?(r=o.value)===null||r===void 0||r.error():Ft(()=>{var s;(s=o.value)===null||s===void 0||s.error()})},finish(){var r;t.value?(r=o.value)===null||r===void 0||r.finish():Ft(()=>{var s;(s=o.value)===null||s===void 0||s.finish()})}},{mergedClsPrefixRef:n}=Rt(e);return ct(v0,i),ct(m0,{props:e,mergedClsPrefixRef:n}),Object.assign(i,{loadingBarRef:o})},render(){var e,t;return le(ut,null,le(Fa,{disabled:this.to===!1,to:this.to||"body"},le(r_,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function a_(){const e=Xe(v0,null);return e===null&&is("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const b0={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},y0="n-message-api",C0="n-message-provider",l_=Ce([Me("message-wrapper",`
  1488. margin: var(--n-margin);
  1489. z-index: 0;
  1490. transform-origin: top center;
  1491. display: flex;
  1492. `,[uO({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),Me("message",`
  1493. box-sizing: border-box;
  1494. display: flex;
  1495. align-items: center;
  1496. transition:
  1497. color .3s var(--n-bezier),
  1498. box-shadow .3s var(--n-bezier),
  1499. background-color .3s var(--n-bezier),
  1500. opacity .3s var(--n-bezier),
  1501. transform .3s var(--n-bezier),
  1502. margin-bottom .3s var(--n-bezier);
  1503. padding: var(--n-padding);
  1504. border-radius: var(--n-border-radius);
  1505. flex-wrap: nowrap;
  1506. overflow: hidden;
  1507. max-width: var(--n-max-width);
  1508. color: var(--n-text-color);
  1509. background-color: var(--n-color);
  1510. box-shadow: var(--n-box-shadow);
  1511. `,[xe("content",`
  1512. display: inline-block;
  1513. line-height: var(--n-line-height);
  1514. font-size: var(--n-font-size);
  1515. `),xe("icon",`
  1516. position: relative;
  1517. margin: var(--n-icon-margin);
  1518. height: var(--n-icon-size);
  1519. width: var(--n-icon-size);
  1520. font-size: var(--n-icon-size);
  1521. flex-shrink: 0;
  1522. `,[["default","info","success","warning","error","loading"].map(e=>Oe(`${e}-type`,[Ce("> *",`
  1523. color: var(--n-icon-color-${e});
  1524. transition: color .3s var(--n-bezier);
  1525. `)])),Ce("> *",`
  1526. position: absolute;
  1527. left: 0;
  1528. top: 0;
  1529. right: 0;
  1530. bottom: 0;
  1531. `,[Kr()])]),xe("close",`
  1532. margin: var(--n-close-margin);
  1533. transition:
  1534. background-color .3s var(--n-bezier),
  1535. color .3s var(--n-bezier);
  1536. flex-shrink: 0;
  1537. `,[Ce("&:hover",`
  1538. color: var(--n-close-icon-color-hover);
  1539. `),Ce("&:active",`
  1540. color: var(--n-close-icon-color-pressed);
  1541. `)])]),Me("message-container",`
  1542. z-index: 6000;
  1543. position: fixed;
  1544. height: 0;
  1545. overflow: visible;
  1546. display: flex;
  1547. flex-direction: column;
  1548. align-items: center;
  1549. `,[Oe("top",`
  1550. top: 12px;
  1551. left: 0;
  1552. right: 0;
  1553. `),Oe("top-left",`
  1554. top: 12px;
  1555. left: 12px;
  1556. right: 0;
  1557. align-items: flex-start;
  1558. `),Oe("top-right",`
  1559. top: 12px;
  1560. left: 0;
  1561. right: 12px;
  1562. align-items: flex-end;
  1563. `),Oe("bottom",`
  1564. bottom: 4px;
  1565. left: 0;
  1566. right: 0;
  1567. justify-content: flex-end;
  1568. `),Oe("bottom-left",`
  1569. bottom: 4px;
  1570. left: 12px;
  1571. right: 0;
  1572. justify-content: flex-end;
  1573. align-items: flex-start;
  1574. `),Oe("bottom-right",`
  1575. bottom: 4px;
  1576. left: 0;
  1577. right: 12px;
  1578. justify-content: flex-end;
  1579. align-items: flex-end;
  1580. `)])]),c_={info:()=>le(va,null),success:()=>le(Jd,null),warning:()=>le(Qd,null),error:()=>le(Zd,null),default:()=>null},d_=Ne({name:"Message",props:Object.assign(Object.assign({},b0),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Rt(e),{props:i,mergedClsPrefixRef:n}=Xe(C0),r=on("Message",o,n),s=Je("Message","-message",l_,hI,i,n),c=be(()=>{const{type:f}=e,{common:{cubicBezierEaseInOut:p},self:{padding:d,margin:v,maxWidth:x,iconMargin:g,closeMargin:k,closeSize:M,iconSize:y,fontSize:T,lineHeight:I,borderRadius:A,iconColorInfo:R,iconColorSuccess:z,iconColorWarning:P,iconColorError:L,iconColorLoading:S,closeIconSize:w,closeBorderRadius:E,[ze("textColor",f)]:m,[ze("boxShadow",f)]:C,[ze("color",f)]:a,[ze("closeColorHover",f)]:l,[ze("closeColorPressed",f)]:h,[ze("closeIconColor",f)]:b,[ze("closeIconColorPressed",f)]:B,[ze("closeIconColorHover",f)]:F}}=s.value;return{"--n-bezier":p,"--n-margin":v,"--n-padding":d,"--n-max-width":x,"--n-font-size":T,"--n-icon-margin":g,"--n-icon-size":y,"--n-close-icon-size":w,"--n-close-border-radius":E,"--n-close-size":M,"--n-close-margin":k,"--n-text-color":m,"--n-color":a,"--n-box-shadow":C,"--n-icon-color-info":R,"--n-icon-color-success":z,"--n-icon-color-warning":P,"--n-icon-color-error":L,"--n-icon-color-loading":S,"--n-close-color-hover":l,"--n-close-color-pressed":h,"--n-close-icon-color":b,"--n-close-icon-color-pressed":B,"--n-close-icon-color-hover":F,"--n-line-height":I,"--n-border-radius":A}}),u=t?jt("message",be(()=>e.type[0]),c,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:r,messageProviderProps:i,handleClose(){var f;(f=e.onClose)===null||f===void 0||f.call(e)},cssVars:t?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender,placement:i.placement}},render(){const{render:e,type:t,closable:o,content:i,mergedClsPrefix:n,cssVars:r,themeClass:s,onRender:c,icon:u,handleClose:f,showIcon:p}=this;c==null||c();let d;return le("div",{class:[`${n}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},r]},e?e(this.$props):le("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(d=h_(u,t,n))&&p?le("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},le(Xa,null,{default:()=>d})):null,le("div",{class:`${n}-message__content`},Dt(i)),o?le(ss,{clsPrefix:n,class:`${n}-message__close`,onClick:f,absolute:!0}):null))}});function h_(e,t,o){if(typeof e=="function")return e();{const i=t==="loading"?le(qa,{clsPrefix:o,strokeWidth:24,scale:.85}):c_[t]();return i?le(Eo,{clsPrefix:o,key:t},{default:()=>i}):null}}const u_=Ne({name:"MessageEnvironment",props:Object.assign(Object.assign({},b0),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=ke(!0);Pt(()=>{i()});function i(){const{duration:p}=e;p&&(t=window.setTimeout(s,p))}function n(p){p.currentTarget===p.target&&t!==null&&(window.clearTimeout(t),t=null)}function r(p){p.currentTarget===p.target&&i()}function s(){const{onHide:p}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),p&&p()}function c(){const{onClose:p}=e;p&&p(),s()}function u(){const{onAfterLeave:p,onInternalAfterLeave:d,onAfterHide:v,internalKey:x}=e;p&&p(),d&&d(x),v&&v()}function f(){s()}return{show:o,hide:s,handleClose:c,handleAfterLeave:u,handleMouseleave:r,handleMouseenter:n,deactivate:f}},render(){return le(Ym,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?le(d_,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),f_=Object.assign(Object.assign({},Je.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),w0=Ne({name:"MessageProvider",props:f_,setup(e){const{mergedClsPrefixRef:t}=Rt(e),o=ke([]),i=ke({}),n={create(u,f){return r(u,Object.assign({type:"default"},f))},info(u,f){return r(u,Object.assign(Object.assign({},f),{type:"info"}))},success(u,f){return r(u,Object.assign(Object.assign({},f),{type:"success"}))},warning(u,f){return r(u,Object.assign(Object.assign({},f),{type:"warning"}))},error(u,f){return r(u,Object.assign(Object.assign({},f),{type:"error"}))},loading(u,f){return r(u,Object.assign(Object.assign({},f),{type:"loading"}))},destroyAll:c};ct(C0,{props:e,mergedClsPrefixRef:t}),ct(y0,n);function r(u,f){const p=zn(),d=Oo(Object.assign(Object.assign({},f),{content:u,key:p,destroy:()=>{var x;(x=i.value[p])===null||x===void 0||x.hide()}})),{max:v}=e;return v&&o.value.length>=v&&o.value.shift(),o.value.push(d),d}function s(u){o.value.splice(o.value.findIndex(f=>f.key===u),1),delete i.value[u]}function c(){Object.values(i.value).forEach(u=>{u.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:i,messageList:o,handleAfterLeave:s},n)},render(){var e,t,o;return le(ut,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?le(Fa,{to:(o=this.to)!==null&&o!==void 0?o:"body"},le("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(i=>le(u_,Object.assign({ref:n=>{n&&(this.messageRefs[i.key]=n)},internalKey:i.key,onInternalAfterLeave:this.handleAfterLeave},Td(i,["destroy"],void 0),{duration:i.duration===void 0?this.duration:i.duration,keepAliveOnHover:i.keepAliveOnHover===void 0?this.keepAliveOnHover:i.keepAliveOnHover,closable:i.closable===void 0?this.closable:i.closable}))))):null)}});function S0(){const e=Xe(y0,null);return e===null&&is("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Qa="n-notification-provider",p_=Ne({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Xe(Qa),i=ke(null);return Go(()=>{var n,r;o.value>0?(n=i==null?void 0:i.value)===null||n===void 0||n.classList.add("transitioning"):(r=i==null?void 0:i.value)===null||r===void 0||r.classList.remove("transitioning")}),{selfRef:i,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:i,placement:n}=this;return le("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`]},t?le(as,{theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),g_={info:()=>le(va,null),success:()=>le(Jd,null),warning:()=>le(Qd,null),error:()=>le(Zd,null),default:()=>null},dh={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},m_=qi(dh),v_=Ne({name:"Notification",props:dh,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:i}=Xe(Qa),{inlineThemeDisabled:n,mergedRtlRef:r}=Rt(),s=on("Notification",r,t),c=be(()=>{const{type:f}=e,{self:{color:p,textColor:d,closeIconColor:v,closeIconColorHover:x,closeIconColorPressed:g,headerTextColor:k,descriptionTextColor:M,actionTextColor:y,borderRadius:T,headerFontWeight:I,boxShadow:A,lineHeight:R,fontSize:z,closeMargin:P,closeSize:L,width:S,padding:w,closeIconSize:E,closeBorderRadius:m,closeColorHover:C,closeColorPressed:a,titleFontSize:l,metaFontSize:h,descriptionFontSize:b,[ze("iconColor",f)]:B},common:{cubicBezierEaseOut:F,cubicBezierEaseIn:O,cubicBezierEaseInOut:W}}=o.value,{left:X,right:Q,top:ee,bottom:Y}=Tn(w);return{"--n-color":p,"--n-font-size":z,"--n-text-color":d,"--n-description-text-color":M,"--n-action-text-color":y,"--n-title-text-color":k,"--n-title-font-weight":I,"--n-bezier":W,"--n-bezier-ease-out":F,"--n-bezier-ease-in":O,"--n-border-radius":T,"--n-box-shadow":A,"--n-close-border-radius":m,"--n-close-color-hover":C,"--n-close-color-pressed":a,"--n-close-icon-color":v,"--n-close-icon-color-hover":x,"--n-close-icon-color-pressed":g,"--n-line-height":R,"--n-icon-color":B,"--n-close-margin":P,"--n-close-size":L,"--n-close-icon-size":E,"--n-width":S,"--n-padding-left":X,"--n-padding-right":Q,"--n-padding-top":ee,"--n-padding-bottom":Y,"--n-title-font-size":l,"--n-meta-font-size":h,"--n-description-font-size":b}}),u=n?jt("notification",be(()=>e.type[0]),c,i):void 0;return{mergedClsPrefix:t,showAvatar:be(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:n?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),le("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},le("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?le("div",{class:`${t}-notification__avatar`},this.avatar?Dt(this.avatar):this.type!=="default"?le(Eo,{clsPrefix:t},{default:()=>g_[this.type]()}):null):null,this.closable?le(ss,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,le("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?le("div",{class:`${t}-notification-main__header`},Dt(this.title)):null,this.description?le("div",{class:`${t}-notification-main__description`},Dt(this.description)):null,this.content?le("pre",{class:`${t}-notification-main__content`},Dt(this.content)):null,this.meta||this.action?le("div",{class:`${t}-notification-main-footer`},this.meta?le("div",{class:`${t}-notification-main-footer__meta`},Dt(this.meta)):null,this.action?le("div",{class:`${t}-notification-main-footer__action`},Dt(this.action)):null):null)))}}),x_=Object.assign(Object.assign({},dh),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),b_=Ne({name:"NotificationEnvironment",props:Object.assign(Object.assign({},x_),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Xe(Qa),o=ke(!0);let i=null;function n(){o.value=!1,i&&window.clearTimeout(i)}function r(g){t.value++,Ft(()=>{g.style.height=`${g.offsetHeight}px`,g.style.maxHeight="0",g.style.transition="none",g.offsetHeight,g.style.transition="",g.style.maxHeight=g.style.height})}function s(g){t.value--,g.style.height="",g.style.maxHeight="";const{onAfterEnter:k,onAfterShow:M}=e;k&&k(),M&&M()}function c(g){t.value++,g.style.maxHeight=`${g.offsetHeight}px`,g.style.height=`${g.offsetHeight}px`,g.offsetHeight}function u(g){const{onHide:k}=e;k&&k(),g.style.maxHeight="0",g.offsetHeight}function f(){t.value--;const{onAfterLeave:g,onInternalAfterLeave:k,onAfterHide:M,internalKey:y}=e;g&&g(),k(y),M&&M()}function p(){const{duration:g}=e;g&&(i=window.setTimeout(n,g))}function d(g){g.currentTarget===g.target&&i!==null&&(window.clearTimeout(i),i=null)}function v(g){g.currentTarget===g.target&&p()}function x(){const{onClose:g}=e;g?Promise.resolve(g()).then(k=>{k!==!1&&n()}):n()}return Pt(()=>{e.duration&&(i=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:x,handleAfterLeave:f,handleLeave:u,handleBeforeLeave:c,handleAfterEnter:s,handleBeforeEnter:r,handleMouseenter:d,handleMouseleave:v}},render(){return le(Jt,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?le(v_,Object.assign({},$n(this.$props,m_),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),y_=Ce([Me("notification-container",`
  1581. z-index: 4000;
  1582. position: fixed;
  1583. overflow: visible;
  1584. display: flex;
  1585. flex-direction: column;
  1586. align-items: flex-end;
  1587. `,[Ce(">",[Me("scrollbar",`
  1588. width: initial;
  1589. overflow: visible;
  1590. height: -moz-fit-content !important;
  1591. height: fit-content !important;
  1592. max-height: 100vh !important;
  1593. `,[Ce(">",[Me("scrollbar-container",`
  1594. height: -moz-fit-content !important;
  1595. height: fit-content !important;
  1596. max-height: 100vh !important;
  1597. `,[Me("scrollbar-content",`
  1598. padding-top: 12px;
  1599. padding-bottom: 33px;
  1600. `)])])])]),Oe("top, top-right, top-left",`
  1601. top: 12px;
  1602. `,[Ce("&.transitioning >",[Me("scrollbar",[Ce(">",[Me("scrollbar-container",`
  1603. min-height: 100vh !important;
  1604. `)])])])]),Oe("bottom, bottom-right, bottom-left",`
  1605. bottom: 12px;
  1606. `,[Ce(">",[Me("scrollbar",[Ce(">",[Me("scrollbar-container",[Me("scrollbar-content",`
  1607. padding-bottom: 12px;
  1608. `)])])])]),Me("notification-wrapper",`
  1609. display: flex;
  1610. align-items: flex-end;
  1611. margin-bottom: 0;
  1612. margin-top: 12px;
  1613. `)]),Oe("top, bottom",`
  1614. left: 50%;
  1615. transform: translateX(-50%);
  1616. `,[Me("notification-wrapper",[Ce("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  1617. transform: scale(0.85);
  1618. `),Ce("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  1619. transform: scale(1);
  1620. `)])]),Oe("top",[Me("notification-wrapper",`
  1621. transform-origin: top center;
  1622. `)]),Oe("bottom",[Me("notification-wrapper",`
  1623. transform-origin: bottom center;
  1624. `)]),Oe("top-right, bottom-right",[Me("notification",`
  1625. margin-left: 28px;
  1626. margin-right: 16px;
  1627. `)]),Oe("top-left, bottom-left",[Me("notification",`
  1628. margin-left: 16px;
  1629. margin-right: 28px;
  1630. `)]),Oe("top-right",`
  1631. right: 0;
  1632. `,[Hs("top-right")]),Oe("top-left",`
  1633. left: 0;
  1634. `,[Hs("top-left")]),Oe("bottom-right",`
  1635. right: 0;
  1636. `,[Hs("bottom-right")]),Oe("bottom-left",`
  1637. left: 0;
  1638. `,[Hs("bottom-left")]),Oe("scrollable",[Oe("top-right",`
  1639. top: 0;
  1640. `),Oe("top-left",`
  1641. top: 0;
  1642. `),Oe("bottom-right",`
  1643. bottom: 0;
  1644. `),Oe("bottom-left",`
  1645. bottom: 0;
  1646. `)]),Me("notification-wrapper",`
  1647. margin-bottom: 12px;
  1648. `,[Ce("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  1649. opacity: 0;
  1650. margin-top: 0 !important;
  1651. margin-bottom: 0 !important;
  1652. `),Ce("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  1653. opacity: 1;
  1654. `),Ce("&.notification-transition-leave-active",`
  1655. transition:
  1656. background-color .3s var(--n-bezier),
  1657. color .3s var(--n-bezier),
  1658. opacity .3s var(--n-bezier),
  1659. transform .3s var(--n-bezier-ease-in),
  1660. max-height .3s var(--n-bezier),
  1661. margin-top .3s linear,
  1662. margin-bottom .3s linear,
  1663. box-shadow .3s var(--n-bezier);
  1664. `),Ce("&.notification-transition-enter-active",`
  1665. transition:
  1666. background-color .3s var(--n-bezier),
  1667. color .3s var(--n-bezier),
  1668. opacity .3s var(--n-bezier),
  1669. transform .3s var(--n-bezier-ease-out),
  1670. max-height .3s var(--n-bezier),
  1671. margin-top .3s linear,
  1672. margin-bottom .3s linear,
  1673. box-shadow .3s var(--n-bezier);
  1674. `)]),Me("notification",`
  1675. background-color: var(--n-color);
  1676. color: var(--n-text-color);
  1677. transition:
  1678. background-color .3s var(--n-bezier),
  1679. color .3s var(--n-bezier),
  1680. opacity .3s var(--n-bezier),
  1681. box-shadow .3s var(--n-bezier);
  1682. font-family: inherit;
  1683. font-size: var(--n-font-size);
  1684. font-weight: 400;
  1685. position: relative;
  1686. display: flex;
  1687. overflow: hidden;
  1688. flex-shrink: 0;
  1689. padding-left: var(--n-padding-left);
  1690. padding-right: var(--n-padding-right);
  1691. width: var(--n-width);
  1692. border-radius: var(--n-border-radius);
  1693. box-shadow: var(--n-box-shadow);
  1694. box-sizing: border-box;
  1695. opacity: 1;
  1696. `,[xe("avatar",[Me("icon",{color:"var(--n-icon-color)"}),Me("base-icon",{color:"var(--n-icon-color)"})]),Oe("show-avatar",[Me("notification-main",`
  1697. margin-left: 40px;
  1698. width: calc(100% - 40px);
  1699. `)]),Oe("closable",[Me("notification-main",[Ce("> *:first-child",{paddingRight:"20px"})]),xe("close",`
  1700. position: absolute;
  1701. top: 0;
  1702. right: 0;
  1703. margin: var(--n-close-margin);
  1704. transition:
  1705. background-color .3s var(--n-bezier),
  1706. color .3s var(--n-bezier);
  1707. `)]),xe("avatar",`
  1708. position: absolute;
  1709. top: var(--n-padding-top);
  1710. left: var(--n-padding-left);
  1711. width: 28px;
  1712. height: 28px;
  1713. font-size: 28px;
  1714. display: flex;
  1715. align-items: center;
  1716. justify-content: center;
  1717. `,[Me("icon","transition: color .3s var(--n-bezier);")]),Me("notification-main",`
  1718. padding-top: var(--n-padding-top);
  1719. padding-bottom: var(--n-padding-bottom);
  1720. box-sizing: border-box;
  1721. display: flex;
  1722. flex-direction: column;
  1723. margin-left: 8px;
  1724. width: calc(100% - 8px);
  1725. `,[Me("notification-main-footer",`
  1726. display: flex;
  1727. align-items: center;
  1728. justify-content: space-between;
  1729. margin-top: 12px;
  1730. `,[xe("meta",`
  1731. font-size: var(--n-meta-font-size);
  1732. transition: color .3s var(--n-bezier-ease-out);
  1733. color: var(--n-description-text-color);
  1734. `),xe("action",`
  1735. cursor: pointer;
  1736. transition: color .3s var(--n-bezier-ease-out);
  1737. color: var(--n-action-text-color);
  1738. `)]),xe("header",`
  1739. font-weight: var(--n-title-font-weight);
  1740. font-size: var(--n-title-font-size);
  1741. transition: color .3s var(--n-bezier-ease-out);
  1742. color: var(--n-title-text-color);
  1743. `),xe("description",`
  1744. margin-top: 8px;
  1745. font-size: var(--n-description-font-size);
  1746. white-space: pre-wrap;
  1747. word-wrap: break-word;
  1748. transition: color .3s var(--n-bezier-ease-out);
  1749. color: var(--n-description-text-color);
  1750. `),xe("content",`
  1751. line-height: var(--n-line-height);
  1752. margin: 12px 0 0 0;
  1753. font-family: inherit;
  1754. white-space: pre-wrap;
  1755. word-wrap: break-word;
  1756. transition: color .3s var(--n-bezier-ease-out);
  1757. color: var(--n-text-color);
  1758. `,[Ce("&:first-child",{margin:0})])])])])]);function Hs(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",i="0";return Me("notification-wrapper",[Ce("&.notification-transition-enter-from, &.notification-transition-leave-to",`
  1759. transform: translate(${o}, 0);
  1760. `),Ce("&.notification-transition-leave-from, &.notification-transition-enter-to",`
  1761. transform: translate(${i}, 0);
  1762. `)])}const k0="n-notification-api",C_=Object.assign(Object.assign({},Je.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),T0=Ne({name:"NotificationProvider",props:C_,setup(e){const{mergedClsPrefixRef:t}=Rt(e),o=ke([]),i={},n=new Set;function r(x){const g=zn(),k=()=>{n.add(g),i[g]&&i[g].hide()},M=Oo(Object.assign(Object.assign({},x),{key:g,destroy:k,hide:k,deactivate:k})),{max:y}=e;if(y&&o.value.length-n.size>=y){let T=!1,I=0;for(const A of o.value){if(!n.has(A.key)){i[A.key]&&(A.destroy(),T=!0);break}I++}T||o.value.splice(I,1)}return o.value.push(M),M}const s=["info","success","warning","error"].map(x=>g=>r(Object.assign(Object.assign({},g),{type:x})));function c(x){n.delete(x),o.value.splice(o.value.findIndex(g=>g.key===x),1)}const u=Je("Notification","-notification",y_,sI,e,t),f={create:r,info:s[0],success:s[1],warning:s[2],error:s[3],open:d,destroyAll:v},p=ke(0);ct(k0,f),ct(Qa,{props:e,mergedClsPrefixRef:t,mergedThemeRef:u,wipTransitionCountRef:p});function d(x){return r(x)}function v(){Object.values(o.value).forEach(x=>{x.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:i,handleAfterLeave:c},f)},render(){var e,t,o;const{placement:i}=this;return le(ut,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?le(Fa,{to:(o=this.to)!==null&&o!==void 0?o:"body"},le(p_,{style:this.containerStyle,scrollable:this.scrollable&&i!=="top"&&i!=="bottom",placement:i},{default:()=>this.notificationList.map(n=>le(b_,Object.assign({ref:r=>{const s=n.key;r===null?delete this.notificationRefs[s]:this.notificationRefs[s]=r}},Td(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function P0(){const e=Xe(k0,null);return e===null&&is("use-notification","No outer `n-notification-provider` found."),e}const w_={name:"Skeleton",common:$e,self(e){const{heightSmall:t,heightMedium:o,heightLarge:i,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:i}}},S_=Ne({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var i;return(i=t.default)===null||i===void 0?void 0:i.call(t)}}}),k_={message:S0,notification:P0,loadingBar:a_,dialog:GL};function T_({providersAndProps:e,configProviderProps:t}){let i=Eg(()=>le(ah,St(t),{default:()=>e.map(({type:c,Provider:u,props:f})=>le(u,St(f),{default:()=>le(S_,{onSetup:()=>n[c]=k_[c]()})}))}));const n={app:i};let r;return Kn&&(r=document.createElement("div"),document.body.appendChild(r),i.mount(r)),Object.assign({unmount:()=>{var c;if(i===null||r===null){wi("discrete","unmount call no need because discrete app has been unmounted");return}i.unmount(),(c=r.parentNode)===null||c===void 0||c.removeChild(r),r=null,i=null}},n)}function P_(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:i,notificationProviderProps:n,loadingBarProviderProps:r}={}){const s=[];return e.forEach(u=>{switch(u){case"message":s.push({type:u,Provider:w0,props:o});break;case"notification":s.push({type:u,Provider:T0,props:n});break;case"dialog":s.push({type:u,Provider:qv,props:i});break;case"loadingBar":s.push({type:u,Provider:x0,props:r});break}}),T_({providersAndProps:s,configProviderProps:t})}const A_=()=>({}),M_={name:"Equation",common:$e,self:A_},E_=M_,O_={name:"dark",common:$e,Alert:cO,Anchor:mO,AutoComplete:LO,Avatar:gv,AvatarGroup:zO,BackTop:HO,Badge:NO,Breadcrumb:VO,Button:eo,ButtonGroup:gI,Calendar:oR,Card:yv,Carousel:pR,Cascader:CR,Checkbox:tr,Code:wv,Collapse:TR,CollapseTransition:MR,ColorPicker:rR,DataTable:aL,DatePicker:wL,Descriptions:PL,Dialog:Nv,Divider:qL,Drawer:ZL,Dropdown:lh,DynamicInput:eD,DynamicTags:nD,Element:sD,Empty:nn,Ellipsis:Ov,Equation:E_,Form:dD,GradientText:eI,Icon:hL,IconWrapper:iI,Image:qB,Input:po,InputNumber:vI,LegacyTransfer:i_,Layout:bI,List:TI,LoadingBar:AI,Log:LI,Menu:$I,Mention:II,Message:fI,Modal:_L,Notification:lI,PageHeader:HI,Pagination:Mv,Popconfirm:UI,Popover:sn,Popselect:Sv,Progress:c0,Radio:Lv,Rate:YI,Result:QI,Row:XB,Scrollbar:Qt,Select:Pv,Skeleton:w_,Slider:oB,Space:Zv,Spin:rB,Statistic:lB,Steps:uB,Switch:gB,Table:bB,Tabs:SB,Tag:av,Thing:PB,TimePicker:zv,Timeline:EB,Tooltip:Za,Transfer:LB,Tree:p0,TreeSelect:_B,Typography:HB,Upload:WB,Watermark:GB},R_={__name:"App",setup(e){const t={common:{primaryColor:"#2d8cf0",primaryColorHover:"#2d8cf0",primaryColorPressed:"#2d8cf0",primaryColorSuppl:"#2d8cf0"},Tabs:{colorSegment:"#f0f2f5"}};return(o,i)=>{const n=Xp("RouterView"),r=qv,s=T0,c=w0,u=x0,f=ah;return Ti(),Ha(f,{locale:St(VA),"date-locale":St(FM),"theme-overrides":t},{default:At(()=>[Ze(u,null,{default:At(()=>[Ze(c,null,{default:At(()=>[Ze(s,null,{default:At(()=>[Ze(r,null,{default:At(()=>[Ze(n)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale"])}}},L_="modulepreload",D_=function(e,t){return new URL(e,t).href},_f={},zo=function(t,o,i){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=D_(r,i),r in _f)return;_f[r]=!0;const s=r.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(!!i)for(let p=n.length-1;p>=0;p--){const d=n[p];if(d.href===r&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${c}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":L_,s||(f.as="script",f.crossOrigin=""),f.href=r,document.head.appendChild(f),s)return new Promise((p,d)=>{f.addEventListener("load",p),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};/*!
  1763. * vue-router v4.2.2
  1764. * (c) 2023 Eduardo San Martin Morote
  1765. * @license MIT
  1766. */const vn=typeof window<"u";function I_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const dt=Object.assign;function Nl(e,t){const o={};for(const i in t){const n=t[i];o[i]=bo(n)?n.map(e):e(n)}return o}const Or=()=>{},bo=Array.isArray,B_=/\/$/,__=e=>e.replace(B_,"");function Wl(e,t,o="/"){let i,n={},r="",s="";const c=t.indexOf("#");let u=t.indexOf("?");return c<u&&c>=0&&(u=-1),u>-1&&(i=t.slice(0,u),r=t.slice(u+1,c>-1?c:t.length),n=e(r)),c>-1&&(i=i||t.slice(0,c),s=t.slice(c,t.length)),i=H_(i??t,o),{fullPath:i+(r&&"?")+r+s,path:i,query:n,hash:s}}function z_(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function zf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $_(e,t,o){const i=t.matched.length-1,n=o.matched.length-1;return i>-1&&i===n&&Fn(t.matched[i],o.matched[n])&&A0(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function A0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!F_(e[o],t[o]))return!1;return!0}function F_(e,t){return bo(e)?$f(e,t):bo(t)?$f(t,e):e===t}function $f(e,t){return bo(t)?e.length===t.length&&e.every((o,i)=>o===t[i]):e.length===1&&e[0]===t}function H_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),i=e.split("/"),n=i[i.length-1];(n===".."||n===".")&&i.push("");let r=o.length-1,s,c;for(s=0;s<i.length;s++)if(c=i[s],c!==".")if(c==="..")r>1&&r--;else break;return o.slice(0,r).join("/")+"/"+i.slice(s-(s===i.length?1:0)).join("/")}var Jr;(function(e){e.pop="pop",e.push="push"})(Jr||(Jr={}));var Rr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rr||(Rr={}));function j_(e){if(!e)if(vn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),__(e)}const N_=/^[^#]+#/;function W_(e,t){return e.replace(N_,"#")+t}function U_(e,t){const o=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-o.left-(t.left||0),top:i.top-o.top-(t.top||0)}}const el=()=>({left:window.pageXOffset,top:window.pageYOffset});function G_(e){let t;if("el"in e){const o=e.el,i=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?i?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=U_(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ff(e,t){return(history.state?history.state.position-t:-1)+e}const Uc=new Map;function V_(e,t){Uc.set(e,t)}function X_(e){const t=Uc.get(e);return Uc.delete(e),t}let q_=()=>location.protocol+"//"+location.host;function M0(e,t){const{pathname:o,search:i,hash:n}=t,r=e.indexOf("#");if(r>-1){let c=n.includes(e.slice(r))?e.slice(r).length:1,u=n.slice(c);return u[0]!=="/"&&(u="/"+u),zf(u,"")}return zf(o,e)+i+n}function Y_(e,t,o,i){let n=[],r=[],s=null;const c=({state:v})=>{const x=M0(e,location),g=o.value,k=t.value;let M=0;if(v){if(o.value=x,t.value=v,s&&s===g){s=null;return}M=k?v.position-k.position:0}else i(x);n.forEach(y=>{y(o.value,g,{delta:M,type:Jr.pop,direction:M?M>0?Rr.forward:Rr.back:Rr.unknown})})};function u(){s=o.value}function f(v){n.push(v);const x=()=>{const g=n.indexOf(v);g>-1&&n.splice(g,1)};return r.push(x),x}function p(){const{history:v}=window;v.state&&v.replaceState(dt({},v.state,{scroll:el()}),"")}function d(){for(const v of r)v();r=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",p,{passive:!0}),{pauseListeners:u,listen:f,destroy:d}}function Hf(e,t,o,i=!1,n=!1){return{back:e,current:t,forward:o,replaced:i,position:window.history.length,scroll:n?el():null}}function K_(e){const{history:t,location:o}=window,i={value:M0(e,o)},n={value:t.state};n.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,f,p){const d=e.indexOf("#"),v=d>-1?(o.host&&document.querySelector("base")?e:e.slice(d))+u:q_()+e+u;try{t[p?"replaceState":"pushState"](f,"",v),n.value=f}catch(x){console.error(x),o[p?"replace":"assign"](v)}}function s(u,f){const p=dt({},t.state,Hf(n.value.back,u,n.value.forward,!0),f,{position:n.value.position});r(u,p,!0),i.value=u}function c(u,f){const p=dt({},n.value,t.state,{forward:u,scroll:el()});r(p.current,p,!0);const d=dt({},Hf(i.value,u,null),{position:p.position+1},f);r(u,d,!1),i.value=u}return{location:i,state:n,push:c,replace:s}}function Z_(e){e=j_(e);const t=K_(e),o=Y_(e,t.state,t.location,t.replace);function i(r,s=!0){s||o.pauseListeners(),history.go(r)}const n=dt({location:"",base:e,go:i,createHref:W_.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function J_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Z_(e)}function Q_(e){return typeof e=="string"||e&&typeof e=="object"}function E0(e){return typeof e=="string"||typeof e=="symbol"}const ai={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},O0=Symbol("");var jf;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jf||(jf={}));function Hn(e,t){return dt(new Error,{type:e,[O0]:!0},t)}function $o(e,t){return e instanceof Error&&O0 in e&&(t==null||!!(e.type&t))}const Nf="[^/]+?",ez={sensitive:!1,strict:!1,start:!0,end:!0},tz=/[.+*?^${}()[\]/\\]/g;function oz(e,t){const o=dt({},ez,t),i=[];let n=o.start?"^":"";const r=[];for(const f of e){const p=f.length?[]:[90];o.strict&&!f.length&&(n+="/");for(let d=0;d<f.length;d++){const v=f[d];let x=40+(o.sensitive?.25:0);if(v.type===0)d||(n+="/"),n+=v.value.replace(tz,"\\$&"),x+=40;else if(v.type===1){const{value:g,repeatable:k,optional:M,regexp:y}=v;r.push({name:g,repeatable:k,optional:M});const T=y||Nf;if(T!==Nf){x+=10;try{new RegExp(`(${T})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${g}" (${T}): `+A.message)}}let I=k?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;d||(I=M&&f.length<2?`(?:/${I})`:"/"+I),M&&(I+="?"),n+=I,x+=20,M&&(x+=-8),k&&(x+=-20),T===".*"&&(x+=-50)}p.push(x)}i.push(p)}if(o.strict&&o.end){const f=i.length-1;i[f][i[f].length-1]+=.7000000000000001}o.strict||(n+="/?"),o.end?n+="$":o.strict&&(n+="(?:/|$)");const s=new RegExp(n,o.sensitive?"":"i");function c(f){const p=f.match(s),d={};if(!p)return null;for(let v=1;v<p.length;v++){const x=p[v]||"",g=r[v-1];d[g.name]=x&&g.repeatable?x.split("/"):x}return d}function u(f){let p="",d=!1;for(const v of e){(!d||!p.endsWith("/"))&&(p+="/"),d=!1;for(const x of v)if(x.type===0)p+=x.value;else if(x.type===1){const{value:g,repeatable:k,optional:M}=x,y=g in f?f[g]:"";if(bo(y)&&!k)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const T=bo(y)?y.join("/"):y;if(!T)if(M)v.length<2&&(p.endsWith("/")?p=p.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);p+=T}}return p||"/"}return{re:s,score:i,keys:r,parse:c,stringify:u}}function iz(e,t){let o=0;for(;o<e.length&&o<t.length;){const i=t[o]-e[o];if(i)return i;o++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function nz(e,t){let o=0;const i=e.score,n=t.score;for(;o<i.length&&o<n.length;){const r=iz(i[o],n[o]);if(r)return r;o++}if(Math.abs(n.length-i.length)===1){if(Wf(i))return 1;if(Wf(n))return-1}return n.length-i.length}function Wf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const rz={type:0,value:""},sz=/[a-zA-Z0-9_]/;function az(e){if(!e)return[[]];if(e==="/")return[[rz]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${o})/"${f}": ${x}`)}let o=0,i=o;const n=[];let r;function s(){r&&n.push(r),r=[]}let c=0,u,f="",p="";function d(){f&&(o===0?r.push({type:0,value:f}):o===1||o===2||o===3?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:f,regexp:p,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),f="")}function v(){f+=u}for(;c<e.length;){if(u=e[c++],u==="\\"&&o!==2){i=o,o=4;continue}switch(o){case 0:u==="/"?(f&&d(),s()):u===":"?(d(),o=1):v();break;case 4:v(),o=i;break;case 1:u==="("?o=2:sz.test(u)?v():(d(),o=0,u!=="*"&&u!=="?"&&u!=="+"&&c--);break;case 2:u===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+u:o=3:p+=u;break;case 3:d(),o=0,u!=="*"&&u!=="?"&&u!=="+"&&c--,p="";break;default:t("Unknown state");break}}return o===2&&t(`Unfinished custom RegExp for param "${f}"`),d(),s(),n}function lz(e,t,o){const i=oz(az(e.path),o),n=dt(i,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function cz(e,t){const o=[],i=new Map;t=Vf({strict:!1,end:!0,sensitive:!1},t);function n(p){return i.get(p)}function r(p,d,v){const x=!v,g=dz(p);g.aliasOf=v&&v.record;const k=Vf(t,p),M=[g];if("alias"in p){const I=typeof p.alias=="string"?[p.alias]:p.alias;for(const A of I)M.push(dt({},g,{components:v?v.record.components:g.components,path:A,aliasOf:v?v.record:g}))}let y,T;for(const I of M){const{path:A}=I;if(d&&A[0]!=="/"){const R=d.record.path,z=R[R.length-1]==="/"?"":"/";I.path=d.record.path+(A&&z+A)}if(y=lz(I,d,k),v?v.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),x&&p.name&&!Gf(y)&&s(p.name)),g.children){const R=g.children;for(let z=0;z<R.length;z++)r(R[z],y,v&&v.children[z])}v=v||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&u(y)}return T?()=>{s(T)}:Or}function s(p){if(E0(p)){const d=i.get(p);d&&(i.delete(p),o.splice(o.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=o.indexOf(p);d>-1&&(o.splice(d,1),p.record.name&&i.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function c(){return o}function u(p){let d=0;for(;d<o.length&&nz(p,o[d])>=0&&(p.record.path!==o[d].record.path||!R0(p,o[d]));)d++;o.splice(d,0,p),p.record.name&&!Gf(p)&&i.set(p.record.name,p)}function f(p,d){let v,x={},g,k;if("name"in p&&p.name){if(v=i.get(p.name),!v)throw Hn(1,{location:p});k=v.record.name,x=dt(Uf(d.params,v.keys.filter(T=>!T.optional).map(T=>T.name)),p.params&&Uf(p.params,v.keys.map(T=>T.name))),g=v.stringify(x)}else if("path"in p)g=p.path,v=o.find(T=>T.re.test(g)),v&&(x=v.parse(g),k=v.record.name);else{if(v=d.name?i.get(d.name):o.find(T=>T.re.test(d.path)),!v)throw Hn(1,{location:p,currentLocation:d});k=v.record.name,x=dt({},d.params,p.params),g=v.stringify(x)}const M=[];let y=v;for(;y;)M.unshift(y.record),y=y.parent;return{name:k,path:g,params:x,matched:M,meta:uz(M)}}return e.forEach(p=>r(p)),{addRoute:r,resolve:f,removeRoute:s,getRoutes:c,getRecordMatcher:n}}function Uf(e,t){const o={};for(const i of t)i in e&&(o[i]=e[i]);return o}function dz(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hz(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function hz(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const i in e.components)t[i]=typeof o=="boolean"?o:o[i];return t}function Gf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function uz(e){return e.reduce((t,o)=>dt(t,o.meta),{})}function Vf(e,t){const o={};for(const i in e)o[i]=i in t?t[i]:e[i];return o}function R0(e,t){return t.children.some(o=>o===e||R0(e,o))}const L0=/#/g,fz=/&/g,pz=/\//g,gz=/=/g,mz=/\?/g,D0=/\+/g,vz=/%5B/g,xz=/%5D/g,I0=/%5E/g,bz=/%60/g,B0=/%7B/g,yz=/%7C/g,_0=/%7D/g,Cz=/%20/g;function hh(e){return encodeURI(""+e).replace(yz,"|").replace(vz,"[").replace(xz,"]")}function wz(e){return hh(e).replace(B0,"{").replace(_0,"}").replace(I0,"^")}function Gc(e){return hh(e).replace(D0,"%2B").replace(Cz,"+").replace(L0,"%23").replace(fz,"%26").replace(bz,"`").replace(B0,"{").replace(_0,"}").replace(I0,"^")}function Sz(e){return Gc(e).replace(gz,"%3D")}function kz(e){return hh(e).replace(L0,"%23").replace(mz,"%3F")}function Tz(e){return e==null?"":kz(e).replace(pz,"%2F")}function ya(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Pz(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<i.length;++n){const r=i[n].replace(D0," "),s=r.indexOf("="),c=ya(s<0?r:r.slice(0,s)),u=s<0?null:ya(r.slice(s+1));if(c in t){let f=t[c];bo(f)||(f=t[c]=[f]),f.push(u)}else t[c]=u}return t}function Xf(e){let t="";for(let o in e){const i=e[o];if(o=Sz(o),i==null){i!==void 0&&(t+=(t.length?"&":"")+o);continue}(bo(i)?i.map(r=>r&&Gc(r)):[i&&Gc(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+o,r!=null&&(t+="="+r))})}return t}function Az(e){const t={};for(const o in e){const i=e[o];i!==void 0&&(t[o]=bo(i)?i.map(n=>n==null?null:""+n):i==null?i:""+i)}return t}const Mz=Symbol(""),qf=Symbol(""),tl=Symbol(""),z0=Symbol(""),Vc=Symbol("");function ur(){let e=[];function t(i){return e.push(i),()=>{const n=e.indexOf(i);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e,reset:o}}function hi(e,t,o,i,n){const r=i&&(i.enterCallbacks[n]=i.enterCallbacks[n]||[]);return()=>new Promise((s,c)=>{const u=d=>{d===!1?c(Hn(4,{from:o,to:t})):d instanceof Error?c(d):Q_(d)?c(Hn(2,{from:t,to:d})):(r&&i.enterCallbacks[n]===r&&typeof d=="function"&&r.push(d),s())},f=e.call(i&&i.instances[n],t,o,u);let p=Promise.resolve(f);e.length<3&&(p=p.then(u)),p.catch(d=>c(d))})}function Ul(e,t,o,i){const n=[];for(const r of e)for(const s in r.components){let c=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(Ez(c)){const f=(c.__vccOpts||c)[t];f&&n.push(hi(f,o,i,r,s))}else{let u=c();n.push(()=>u.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const p=I_(f)?f.default:f;r.components[s]=p;const v=(p.__vccOpts||p)[t];return v&&hi(v,o,i,r,s)()}))}}return n}function Ez(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yf(e){const t=Xe(tl),o=Xe(z0),i=be(()=>t.resolve(St(e.to))),n=be(()=>{const{matched:u}=i.value,{length:f}=u,p=u[f-1],d=o.matched;if(!p||!d.length)return-1;const v=d.findIndex(Fn.bind(null,p));if(v>-1)return v;const x=Kf(u[f-2]);return f>1&&Kf(p)===x&&d[d.length-1].path!==x?d.findIndex(Fn.bind(null,u[f-2])):v}),r=be(()=>n.value>-1&&Dz(o.params,i.value.params)),s=be(()=>n.value>-1&&n.value===o.matched.length-1&&A0(o.params,i.value.params));function c(u={}){return Lz(u)?t[St(e.replace)?"replace":"push"](St(e.to)).catch(Or):Promise.resolve()}return{route:i,href:be(()=>i.value.href),isActive:r,isExactActive:s,navigate:c}}const Oz=Ne({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Yf,setup(e,{slots:t}){const o=Oo(Yf(e)),{options:i}=Xe(tl),n=be(()=>({[Zf(e.activeClass,i.linkActiveClass,"router-link-active")]:o.isActive,[Zf(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const r=t.default&&t.default(o);return e.custom?r:le("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},r)}}}),Rz=Oz;function Lz(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Dz(e,t){for(const o in t){const i=t[o],n=e[o];if(typeof i=="string"){if(i!==n)return!1}else if(!bo(n)||n.length!==i.length||i.some((r,s)=>r!==n[s]))return!1}return!0}function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Zf=(e,t,o)=>e??t??o,Iz=Ne({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const i=Xe(Vc),n=be(()=>e.route||i.value),r=Xe(qf,0),s=be(()=>{let f=St(r);const{matched:p}=n.value;let d;for(;(d=p[f])&&!d.components;)f++;return f}),c=be(()=>n.value.matched[s.value]);ct(qf,be(()=>s.value+1)),ct(Mz,c),ct(Vc,n);const u=ke();return lt(()=>[u.value,c.value,e.name],([f,p,d],[v,x,g])=>{p&&(p.instances[d]=f,x&&x!==p&&f&&f===v&&(p.leaveGuards.size||(p.leaveGuards=x.leaveGuards),p.updateGuards.size||(p.updateGuards=x.updateGuards))),f&&p&&(!x||!Fn(p,x)||!v)&&(p.enterCallbacks[d]||[]).forEach(k=>k(f))},{flush:"post"}),()=>{const f=n.value,p=e.name,d=c.value,v=d&&d.components[p];if(!v)return Jf(o.default,{Component:v,route:f});const x=d.props[p],g=x?x===!0?f.params:typeof x=="function"?x(f):x:null,M=le(v,dt({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[p]=null)},ref:u}));return Jf(o.default,{Component:M,route:f})||M}}});function Jf(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Bz=Iz;function _z(e){const t=cz(e.routes,e),o=e.parseQuery||Pz,i=e.stringifyQuery||Xf,n=e.history,r=ur(),s=ur(),c=ur(),u=Kb(ai);let f=ai;vn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=Nl.bind(null,N=>""+N),d=Nl.bind(null,Tz),v=Nl.bind(null,ya);function x(N,V){let j,K;return E0(N)?(j=t.getRecordMatcher(N),K=V):K=N,t.addRoute(K,j)}function g(N){const V=t.getRecordMatcher(N);V&&t.removeRoute(V)}function k(){return t.getRoutes().map(N=>N.record)}function M(N){return!!t.getRecordMatcher(N)}function y(N,V){if(V=dt({},V||u.value),typeof N=="string"){const q=Wl(o,N,V.path),Z=t.resolve({path:q.path},V),J=n.createHref(q.fullPath);return dt(q,Z,{params:v(Z.params),hash:ya(q.hash),redirectedFrom:void 0,href:J})}let j;if("path"in N)j=dt({},N,{path:Wl(o,N.path,V.path).path});else{const q=dt({},N.params);for(const Z in q)q[Z]==null&&delete q[Z];j=dt({},N,{params:d(q)}),V.params=d(V.params)}const K=t.resolve(j,V),_=N.hash||"";K.params=p(v(K.params));const $=z_(i,dt({},N,{hash:wz(_),path:K.path})),H=n.createHref($);return dt({fullPath:$,hash:_,query:i===Xf?Az(N.query):N.query||{}},K,{redirectedFrom:void 0,href:H})}function T(N){return typeof N=="string"?Wl(o,N,u.value.path):dt({},N)}function I(N,V){if(f!==N)return Hn(8,{from:V,to:N})}function A(N){return P(N)}function R(N){return A(dt(T(N),{replace:!0}))}function z(N){const V=N.matched[N.matched.length-1];if(V&&V.redirect){const{redirect:j}=V;let K=typeof j=="function"?j(N):j;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=T(K):{path:K},K.params={}),dt({query:N.query,hash:N.hash,params:"path"in K?{}:N.params},K)}}function P(N,V){const j=f=y(N),K=u.value,_=N.state,$=N.force,H=N.replace===!0,q=z(j);if(q)return P(dt(T(q),{state:typeof q=="object"?dt({},_,q.state):_,force:$,replace:H}),V||j);const Z=j;Z.redirectedFrom=V;let J;return!$&&$_(i,K,j)&&(J=Hn(16,{to:Z,from:K}),W(K,K,!0,!1)),(J?Promise.resolve(J):w(Z,K)).catch(te=>$o(te)?$o(te,2)?te:O(te):B(te,Z,K)).then(te=>{if(te){if($o(te,2))return P(dt({replace:H},T(te.to),{state:typeof te.to=="object"?dt({},_,te.to.state):_,force:$}),V||Z)}else te=m(Z,K,!0,H,_);return E(Z,K,te),te})}function L(N,V){const j=I(N,V);return j?Promise.reject(j):Promise.resolve()}function S(N){const V=ee.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(N):N()}function w(N,V){let j;const[K,_,$]=zz(N,V);j=Ul(K.reverse(),"beforeRouteLeave",N,V);for(const q of K)q.leaveGuards.forEach(Z=>{j.push(hi(Z,N,V))});const H=L.bind(null,N,V);return j.push(H),D(j).then(()=>{j=[];for(const q of r.list())j.push(hi(q,N,V));return j.push(H),D(j)}).then(()=>{j=Ul(_,"beforeRouteUpdate",N,V);for(const q of _)q.updateGuards.forEach(Z=>{j.push(hi(Z,N,V))});return j.push(H),D(j)}).then(()=>{j=[];for(const q of N.matched)if(q.beforeEnter&&!V.matched.includes(q))if(bo(q.beforeEnter))for(const Z of q.beforeEnter)j.push(hi(Z,N,V));else j.push(hi(q.beforeEnter,N,V));return j.push(H),D(j)}).then(()=>(N.matched.forEach(q=>q.enterCallbacks={}),j=Ul($,"beforeRouteEnter",N,V),j.push(H),D(j))).then(()=>{j=[];for(const q of s.list())j.push(hi(q,N,V));return j.push(H),D(j)}).catch(q=>$o(q,8)?q:Promise.reject(q))}function E(N,V,j){for(const K of c.list())S(()=>K(N,V,j))}function m(N,V,j,K,_){const $=I(N,V);if($)return $;const H=V===ai,q=vn?history.state:{};j&&(K||H?n.replace(N.fullPath,dt({scroll:H&&q&&q.scroll},_)):n.push(N.fullPath,_)),u.value=N,W(N,V,j,H),O()}let C;function a(){C||(C=n.listen((N,V,j)=>{if(!Y.listening)return;const K=y(N),_=z(K);if(_){P(dt(_,{replace:!0}),K).catch(Or);return}f=K;const $=u.value;vn&&V_(Ff($.fullPath,j.delta),el()),w(K,$).catch(H=>$o(H,12)?H:$o(H,2)?(P(H.to,K).then(q=>{$o(q,20)&&!j.delta&&j.type===Jr.pop&&n.go(-1,!1)}).catch(Or),Promise.reject()):(j.delta&&n.go(-j.delta,!1),B(H,K,$))).then(H=>{H=H||m(K,$,!1),H&&(j.delta&&!$o(H,8)?n.go(-j.delta,!1):j.type===Jr.pop&&$o(H,20)&&n.go(-1,!1)),E(K,$,H)}).catch(Or)}))}let l=ur(),h=ur(),b;function B(N,V,j){O(N);const K=h.list();return K.length?K.forEach(_=>_(N,V,j)):console.error(N),Promise.reject(N)}function F(){return b&&u.value!==ai?Promise.resolve():new Promise((N,V)=>{l.add([N,V])})}function O(N){return b||(b=!N,a(),l.list().forEach(([V,j])=>N?j(N):V()),l.reset()),N}function W(N,V,j,K){const{scrollBehavior:_}=e;if(!vn||!_)return Promise.resolve();const $=!j&&X_(Ff(N.fullPath,0))||(K||!j)&&history.state&&history.state.scroll||null;return Ft().then(()=>_(N,V,$)).then(H=>H&&G_(H)).catch(H=>B(H,N,V))}const X=N=>n.go(N);let Q;const ee=new Set,Y={currentRoute:u,listening:!0,addRoute:x,removeRoute:g,hasRoute:M,getRoutes:k,resolve:y,options:e,push:A,replace:R,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:r.add,beforeResolve:s.add,afterEach:c.add,onError:h.add,isReady:F,install(N){const V=this;N.component("RouterLink",Rz),N.component("RouterView",Bz),N.config.globalProperties.$router=V,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>St(u)}),vn&&!Q&&u.value===ai&&(Q=!0,A(n.location).catch(_=>{}));const j={};for(const _ in ai)j[_]=be(()=>u.value[_]);N.provide(tl,V),N.provide(z0,Oo(j)),N.provide(Vc,u);const K=N.unmount;ee.add(N),N.unmount=function(){ee.delete(N),ee.size<1&&(f=ai,C&&C(),C=null,u.value=ai,Q=!1,b=!1),K()}}};function D(N){return N.reduce((V,j)=>V.then(()=>S(j)),Promise.resolve())}return Y}function zz(e,t){const o=[],i=[],n=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const c=t.matched[s];c&&(e.matched.find(f=>Fn(f,c))?i.push(c):o.push(c));const u=e.matched[s];u&&(t.matched.find(f=>Fn(f,u))||n.push(u))}return[o,i,n]}function $z(){return Xe(tl)}const Fz=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o},Hz={};function jz(e,t){const o=Xp("RouterView"),i=sh,n=e_;return Ti(),Ha(n,{"content-style":"padding: 24px; background-color: #f0f2f5",position:"absolute",style:{top:"0",right:"0",bottom:"0",left:"0"}},{default:At(()=>[Ze(i,{class:"h-full",bordered:!1,"content-style":{position:"relative"}},{default:At(()=>[Ze(o)]),_:1})]),_:1})}const Nz=Fz(Hz,[["render",jz]]),Wz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Uz=Vn("path",{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z",fill:"currentColor"},null,-1),Gz=[Uz],Vz=Ne({name:"LockOutlined",render:function(t,o){return Ti(),Cd("svg",Wz,Gz)}}),Xz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},qz=Vn("path",{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5a375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1c-.4.2-.8.3-1.2.5c-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8c2-77.2 33-149.5 87.8-204.3c56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z",fill:"currentColor"},null,-1),Yz=[qz],Kz=Ne({name:"UserOutlined",render:function(t,o){return Ti(),Cd("svg",Xz,Yz)}});function $0(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zz}=Object.prototype,{getPrototypeOf:uh}=Object,ol=(e=>t=>{const o=Zz.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Lo=e=>(e=e.toLowerCase(),t=>ol(t)===e),il=e=>t=>typeof t===e,{isArray:ir}=Array,Qr=il("undefined");function Jz(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&uo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F0=Lo("ArrayBuffer");function Qz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F0(e.buffer),t}const e$=il("string"),uo=il("function"),H0=il("number"),nl=e=>e!==null&&typeof e=="object",t$=e=>e===!0||e===!1,qs=e=>{if(ol(e)!=="object")return!1;const t=uh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},o$=Lo("Date"),i$=Lo("File"),n$=Lo("Blob"),r$=Lo("FileList"),s$=e=>nl(e)&&uo(e.pipe),a$=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||uo(e.append)&&((t=ol(e))==="formdata"||t==="object"&&uo(e.toString)&&e.toString()==="[object FormData]"))},l$=Lo("URLSearchParams"),c$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hs(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),ir(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let c;for(i=0;i<s;i++)c=r[i],t.call(null,e[c],c,e)}}function j0(e,t){t=t.toLowerCase();const o=Object.keys(e);let i=o.length,n;for(;i-- >0;)if(n=o[i],t===n.toLowerCase())return n;return null}const N0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),W0=e=>!Qr(e)&&e!==N0;function Xc(){const{caseless:e}=W0(this)&&this||{},t={},o=(i,n)=>{const r=e&&j0(t,n)||n;qs(t[r])&&qs(i)?t[r]=Xc(t[r],i):qs(i)?t[r]=Xc({},i):ir(i)?t[r]=i.slice():t[r]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&hs(arguments[i],o);return t}const d$=(e,t,o,{allOwnKeys:i}={})=>(hs(t,(n,r)=>{o&&uo(n)?e[r]=$0(n,o):e[r]=n},{allOwnKeys:i}),e),h$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u$=(e,t,o,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},f$=(e,t,o,i)=>{let n,r,s;const c={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)s=n[r],(!i||i(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=o!==!1&&uh(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},p$=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const i=e.indexOf(t,o);return i!==-1&&i===o},g$=e=>{if(!e)return null;if(ir(e))return e;let t=e.length;if(!H0(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},m$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&uh(Uint8Array)),v$=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=i.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},x$=(e,t)=>{let o;const i=[];for(;(o=e.exec(t))!==null;)i.push(o);return i},b$=Lo("HTMLFormElement"),y$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,i,n){return i.toUpperCase()+n}),Qf=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),C$=Lo("RegExp"),U0=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),i={};hs(o,(n,r)=>{t(n,r,e)!==!1&&(i[r]=n)}),Object.defineProperties(e,i)},w$=e=>{U0(e,(t,o)=>{if(uo(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const i=e[o];if(uo(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},S$=(e,t)=>{const o={},i=n=>{n.forEach(r=>{o[r]=!0})};return ir(e)?i(e):i(String(e).split(t)),o},k$=()=>{},T$=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Gl="abcdefghijklmnopqrstuvwxyz",ep="0123456789",G0={DIGIT:ep,ALPHA:Gl,ALPHA_DIGIT:Gl+Gl.toUpperCase()+ep},P$=(e=16,t=G0.ALPHA_DIGIT)=>{let o="";const{length:i}=t;for(;e--;)o+=t[Math.random()*i|0];return o};function A$(e){return!!(e&&uo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const M$=e=>{const t=new Array(10),o=(i,n)=>{if(nl(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;const r=ir(i)?[]:{};return hs(i,(s,c)=>{const u=o(s,n+1);!Qr(u)&&(r[c]=u)}),t[n]=void 0,r}}return i};return o(e,0)},E$=Lo("AsyncFunction"),O$=e=>e&&(nl(e)||uo(e))&&uo(e.then)&&uo(e.catch),Ee={isArray:ir,isArrayBuffer:F0,isBuffer:Jz,isFormData:a$,isArrayBufferView:Qz,isString:e$,isNumber:H0,isBoolean:t$,isObject:nl,isPlainObject:qs,isUndefined:Qr,isDate:o$,isFile:i$,isBlob:n$,isRegExp:C$,isFunction:uo,isStream:s$,isURLSearchParams:l$,isTypedArray:m$,isFileList:r$,forEach:hs,merge:Xc,extend:d$,trim:c$,stripBOM:h$,inherits:u$,toFlatObject:f$,kindOf:ol,kindOfTest:Lo,endsWith:p$,toArray:g$,forEachEntry:v$,matchAll:x$,isHTMLForm:b$,hasOwnProperty:Qf,hasOwnProp:Qf,reduceDescriptors:U0,freezeMethods:w$,toObjectSet:S$,toCamelCase:y$,noop:k$,toFiniteNumber:T$,findKey:j0,global:N0,isContextDefined:W0,ALPHABET:G0,generateString:P$,isSpecCompliantForm:A$,toJSONObject:M$,isAsyncFn:E$,isThenable:O$};function at(e,t,o,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),i&&(this.request=i),n&&(this.response=n)}Ee.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V0=at.prototype,X0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{X0[e]={value:e}});Object.defineProperties(at,X0);Object.defineProperty(V0,"isAxiosError",{value:!0});at.from=(e,t,o,i,n,r)=>{const s=Object.create(V0);return Ee.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),at.call(s,e.message,t,o,i,n),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const R$=null;function qc(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function q0(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function tp(e,t,o){return e?e.concat(t).map(function(n,r){return n=q0(n),!o&&r?"["+n+"]":n}).join(o?".":""):t}function L$(e){return Ee.isArray(e)&&!e.some(qc)}const D$=Ee.toFlatObject(Ee,{},null,function(t){return/^is[A-Z]/.test(t)});function rl(e,t,o){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=Ee.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,M){return!Ee.isUndefined(M[k])});const i=o.metaTokens,n=o.visitor||p,r=o.dots,s=o.indexes,u=(o.Blob||typeof Blob<"u"&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(n))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(Ee.isDate(g))return g.toISOString();if(!u&&Ee.isBlob(g))throw new at("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(g)||Ee.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,k,M){let y=g;if(g&&!M&&typeof g=="object"){if(Ee.endsWith(k,"{}"))k=i?k:k.slice(0,-2),g=JSON.stringify(g);else if(Ee.isArray(g)&&L$(g)||(Ee.isFileList(g)||Ee.endsWith(k,"[]"))&&(y=Ee.toArray(g)))return k=q0(k),y.forEach(function(I,A){!(Ee.isUndefined(I)||I===null)&&t.append(s===!0?tp([k],A,r):s===null?k:k+"[]",f(I))}),!1}return qc(g)?!0:(t.append(tp(M,k,r),f(g)),!1)}const d=[],v=Object.assign(D$,{defaultVisitor:p,convertValue:f,isVisitable:qc});function x(g,k){if(!Ee.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));d.push(g),Ee.forEach(g,function(y,T){(!(Ee.isUndefined(y)||y===null)&&n.call(t,y,Ee.isString(T)?T.trim():T,k,v))===!0&&x(y,k?k.concat(T):[T])}),d.pop()}}if(!Ee.isObject(e))throw new TypeError("data must be an object");return x(e),t}function op(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function fh(e,t){this._pairs=[],e&&rl(e,this,t)}const Y0=fh.prototype;Y0.append=function(t,o){this._pairs.push([t,o])};Y0.toString=function(t){const o=t?function(i){return t.call(this,i,op)}:op;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function I$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function K0(e,t,o){if(!t)return e;const i=o&&o.encode||I$,n=o&&o.serialize;let r;if(n?r=n(t,o):r=Ee.isURLSearchParams(t)?t.toString():new fh(t,o).toString(i),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class B${constructor(){this.handlers=[]}use(t,o,i){return this.handlers.push({fulfilled:t,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ee.forEach(this.handlers,function(i){i!==null&&t(i)})}}const ip=B$,Z0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_$=typeof URLSearchParams<"u"?URLSearchParams:fh,z$=typeof FormData<"u"?FormData:null,$$=typeof Blob<"u"?Blob:null,F$=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),H$=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ao={isBrowser:!0,classes:{URLSearchParams:_$,FormData:z$,Blob:$$},isStandardBrowserEnv:F$,isStandardBrowserWebWorkerEnv:H$,protocols:["http","https","file","blob","url","data"]};function j$(e,t){return rl(e,new Ao.classes.URLSearchParams,Object.assign({visitor:function(o,i,n,r){return Ao.isNode&&Ee.isBuffer(o)?(this.append(i,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function N$(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function W$(e){const t={},o=Object.keys(e);let i;const n=o.length;let r;for(i=0;i<n;i++)r=o[i],t[r]=e[r];return t}function J0(e){function t(o,i,n,r){let s=o[r++];const c=Number.isFinite(+s),u=r>=o.length;return s=!s&&Ee.isArray(n)?n.length:s,u?(Ee.hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!c):((!n[s]||!Ee.isObject(n[s]))&&(n[s]=[]),t(o,i,n[s],r)&&Ee.isArray(n[s])&&(n[s]=W$(n[s])),!c)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const o={};return Ee.forEachEntry(e,(i,n)=>{t(N$(i),n,o,0)}),o}return null}const U$={"Content-Type":void 0};function G$(e,t,o){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(o||JSON.stringify)(e)}const sl={transitional:Z0,adapter:["xhr","http"],transformRequest:[function(t,o){const i=o.getContentType()||"",n=i.indexOf("application/json")>-1,r=Ee.isObject(t);if(r&&Ee.isHTMLForm(t)&&(t=new FormData(t)),Ee.isFormData(t))return n&&n?JSON.stringify(J0(t)):t;if(Ee.isArrayBuffer(t)||Ee.isBuffer(t)||Ee.isStream(t)||Ee.isFile(t)||Ee.isBlob(t))return t;if(Ee.isArrayBufferView(t))return t.buffer;if(Ee.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return j$(t,this.formSerializer).toString();if((c=Ee.isFileList(t))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return rl(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return r||n?(o.setContentType("application/json",!1),G$(t)):t}],transformResponse:[function(t){const o=this.transitional||sl.transitional,i=o&&o.forcedJSONParsing,n=this.responseType==="json";if(t&&Ee.isString(t)&&(i&&!this.responseType||n)){const s=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?at.from(c,at.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ao.classes.FormData,Blob:Ao.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ee.forEach(["delete","get","head"],function(t){sl.headers[t]={}});Ee.forEach(["post","put","patch"],function(t){sl.headers[t]=Ee.merge(U$)});const ph=sl,V$=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X$=e=>{const t={};let o,i,n;return e&&e.split(`
  1767. `).forEach(function(s){n=s.indexOf(":"),o=s.substring(0,n).trim().toLowerCase(),i=s.substring(n+1).trim(),!(!o||t[o]&&V$[o])&&(o==="set-cookie"?t[o]?t[o].push(i):t[o]=[i]:t[o]=t[o]?t[o]+", "+i:i)}),t},np=Symbol("internals");function fr(e){return e&&String(e).trim().toLowerCase()}function Ys(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Ys):String(e)}function q$(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=o.exec(e);)t[i[1]]=i[2];return t}const Y$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vl(e,t,o,i,n){if(Ee.isFunction(i))return i.call(this,t,o);if(n&&(t=o),!!Ee.isString(t)){if(Ee.isString(i))return t.indexOf(i)!==-1;if(Ee.isRegExp(i))return i.test(t)}}function K$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,i)=>o.toUpperCase()+i)}function Z$(e,t){const o=Ee.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+o,{value:function(n,r,s){return this[i].call(this,t,n,r,s)},configurable:!0})})}class al{constructor(t){t&&this.set(t)}set(t,o,i){const n=this;function r(c,u,f){const p=fr(u);if(!p)throw new Error("header name must be a non-empty string");const d=Ee.findKey(n,p);(!d||n[d]===void 0||f===!0||f===void 0&&n[d]!==!1)&&(n[d||u]=Ys(c))}const s=(c,u)=>Ee.forEach(c,(f,p)=>r(f,p,u));return Ee.isPlainObject(t)||t instanceof this.constructor?s(t,o):Ee.isString(t)&&(t=t.trim())&&!Y$(t)?s(X$(t),o):t!=null&&r(o,t,i),this}get(t,o){if(t=fr(t),t){const i=Ee.findKey(this,t);if(i){const n=this[i];if(!o)return n;if(o===!0)return q$(n);if(Ee.isFunction(o))return o.call(this,n,i);if(Ee.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=fr(t),t){const i=Ee.findKey(this,t);return!!(i&&this[i]!==void 0&&(!o||Vl(this,this[i],i,o)))}return!1}delete(t,o){const i=this;let n=!1;function r(s){if(s=fr(s),s){const c=Ee.findKey(i,s);c&&(!o||Vl(i,i[c],c,o))&&(delete i[c],n=!0)}}return Ee.isArray(t)?t.forEach(r):r(t),n}clear(t){const o=Object.keys(this);let i=o.length,n=!1;for(;i--;){const r=o[i];(!t||Vl(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const o=this,i={};return Ee.forEach(this,(n,r)=>{const s=Ee.findKey(i,r);if(s){o[s]=Ys(n),delete o[r];return}const c=t?K$(r):String(r).trim();c!==r&&delete o[r],o[c]=Ys(n),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return Ee.forEach(this,(i,n)=>{i!=null&&i!==!1&&(o[n]=t&&Ee.isArray(i)?i.join(", "):i)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(`
  1768. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const i=new this(t);return o.forEach(n=>i.set(n)),i}static accessor(t){const i=(this[np]=this[np]={accessors:{}}).accessors,n=this.prototype;function r(s){const c=fr(s);i[c]||(Z$(n,s),i[c]=!0)}return Ee.isArray(t)?t.forEach(r):r(t),this}}al.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.freezeMethods(al.prototype);Ee.freezeMethods(al);const No=al;function Xl(e,t){const o=this||ph,i=t||o,n=No.from(i.headers);let r=i.data;return Ee.forEach(e,function(c){r=c.call(o,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function Q0(e){return!!(e&&e.__CANCEL__)}function us(e,t,o){at.call(this,e??"canceled",at.ERR_CANCELED,t,o),this.name="CanceledError"}Ee.inherits(us,at,{__CANCEL__:!0});function J$(e,t,o){const i=o.config.validateStatus;!o.status||!i||i(o.status)?e(o):t(new at("Request failed with status code "+o.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const Q$=Ao.isStandardBrowserEnv?function(){return{write:function(o,i,n,r,s,c){const u=[];u.push(o+"="+encodeURIComponent(i)),Ee.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Ee.isString(r)&&u.push("path="+r),Ee.isString(s)&&u.push("domain="+s),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(o){const i=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function e5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t5(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ex(e,t){return e&&!e5(t)?t5(e,t):t}const o5=Ao.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let i;function n(r){let s=r;return t&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return i=n(window.location.href),function(s){const c=Ee.isString(s)?n(s):s;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function i5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function n5(e,t){e=e||10;const o=new Array(e),i=new Array(e);let n=0,r=0,s;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),p=i[r];s||(s=f),o[n]=u,i[n]=f;let d=r,v=0;for(;d!==n;)v+=o[d++],d=d%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),f-s<t)return;const x=p&&f-p;return x?Math.round(v*1e3/x):void 0}}function rp(e,t){let o=0;const i=n5(50,250);return n=>{const r=n.loaded,s=n.lengthComputable?n.total:void 0,c=r-o,u=i(c),f=r<=s;o=r;const p={loaded:r,total:s,progress:s?r/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&f?(s-r)/u:void 0,event:n};p[t?"download":"upload"]=!0,e(p)}}const r5=typeof XMLHttpRequest<"u",s5=r5&&function(e){return new Promise(function(o,i){let n=e.data;const r=No.from(e.headers).normalize(),s=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}Ee.isFormData(n)&&(Ao.isStandardBrowserEnv||Ao.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let f=new XMLHttpRequest;if(e.auth){const x=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(x+":"+g))}const p=ex(e.baseURL,e.url);f.open(e.method.toUpperCase(),K0(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function d(){if(!f)return;const x=No.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:e,request:f};J$(function(y){o(y),u()},function(y){i(y),u()},k),f=null}if("onloadend"in f?f.onloadend=d:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(d)},f.onabort=function(){f&&(i(new at("Request aborted",at.ECONNABORTED,e,f)),f=null)},f.onerror=function(){i(new at("Network Error",at.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const k=e.transitional||Z0;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),i(new at(g,k.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,f)),f=null},Ao.isStandardBrowserEnv){const x=(e.withCredentials||o5(p))&&e.xsrfCookieName&&Q$.read(e.xsrfCookieName);x&&r.set(e.xsrfHeaderName,x)}n===void 0&&r.setContentType(null),"setRequestHeader"in f&&Ee.forEach(r.toJSON(),function(g,k){f.setRequestHeader(k,g)}),Ee.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",rp(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",rp(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=x=>{f&&(i(!x||x.type?new us(null,e,f):x),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const v=i5(p);if(v&&Ao.protocols.indexOf(v)===-1){i(new at("Unsupported protocol "+v+":",at.ERR_BAD_REQUEST,e));return}f.send(n||null)})},Ks={http:R$,xhr:s5};Ee.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a5={getAdapter:e=>{e=Ee.isArray(e)?e:[e];const{length:t}=e;let o,i;for(let n=0;n<t&&(o=e[n],!(i=Ee.isString(o)?Ks[o.toLowerCase()]:o));n++);if(!i)throw i===!1?new at(`Adapter ${o} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ee.hasOwnProp(Ks,o)?`Adapter '${o}' is not available in the build`:`Unknown adapter '${o}'`);if(!Ee.isFunction(i))throw new TypeError("adapter is not a function");return i},adapters:Ks};function ql(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new us(null,e)}function sp(e){return ql(e),e.headers=No.from(e.headers),e.data=Xl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),a5.getAdapter(e.adapter||ph.adapter)(e).then(function(i){return ql(e),i.data=Xl.call(e,e.transformResponse,i),i.headers=No.from(i.headers),i},function(i){return Q0(i)||(ql(e),i&&i.response&&(i.response.data=Xl.call(e,e.transformResponse,i.response),i.response.headers=No.from(i.response.headers))),Promise.reject(i)})}const ap=e=>e instanceof No?e.toJSON():e;function jn(e,t){t=t||{};const o={};function i(f,p,d){return Ee.isPlainObject(f)&&Ee.isPlainObject(p)?Ee.merge.call({caseless:d},f,p):Ee.isPlainObject(p)?Ee.merge({},p):Ee.isArray(p)?p.slice():p}function n(f,p,d){if(Ee.isUndefined(p)){if(!Ee.isUndefined(f))return i(void 0,f,d)}else return i(f,p,d)}function r(f,p){if(!Ee.isUndefined(p))return i(void 0,p)}function s(f,p){if(Ee.isUndefined(p)){if(!Ee.isUndefined(f))return i(void 0,f)}else return i(void 0,p)}function c(f,p,d){if(d in t)return i(f,p);if(d in e)return i(void 0,f)}const u={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(f,p)=>n(ap(f),ap(p),!0)};return Ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const d=u[p]||n,v=d(e[p],t[p],p);Ee.isUndefined(v)&&d!==c||(o[p]=v)}),o}const tx="1.4.0",gh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gh[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const lp={};gh.transitional=function(t,o,i){function n(r,s){return"[Axios v"+tx+"] Transitional option '"+r+"'"+s+(i?". "+i:"")}return(r,s,c)=>{if(t===!1)throw new at(n(s," has been removed"+(o?" in "+o:"")),at.ERR_DEPRECATED);return o&&!lp[s]&&(lp[s]=!0,console.warn(n(s," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(r,s,c):!0}};function l5(e,t,o){if(typeof e!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const r=i[n],s=t[r];if(s){const c=e[r],u=c===void 0||s(c,r,e);if(u!==!0)throw new at("option "+r+" must be "+u,at.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new at("Unknown option "+r,at.ERR_BAD_OPTION)}}const Yc={assertOptions:l5,validators:gh},li=Yc.validators;class Ca{constructor(t){this.defaults=t,this.interceptors={request:new ip,response:new ip}}request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=jn(this.defaults,o);const{transitional:i,paramsSerializer:n,headers:r}=o;i!==void 0&&Yc.assertOptions(i,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),n!=null&&(Ee.isFunction(n)?o.paramsSerializer={serialize:n}:Yc.assertOptions(n,{encode:li.function,serialize:li.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s;s=r&&Ee.merge(r.common,r[o.method]),s&&Ee.forEach(["delete","get","head","post","put","patch","common"],g=>{delete r[g]}),o.headers=No.concat(s,r);const c=[];let u=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(o)===!1||(u=u&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const f=[];this.interceptors.response.forEach(function(k){f.push(k.fulfilled,k.rejected)});let p,d=0,v;if(!u){const g=[sp.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,f),v=g.length,p=Promise.resolve(o);d<v;)p=p.then(g[d++],g[d++]);return p}v=c.length;let x=o;for(d=0;d<v;){const g=c[d++],k=c[d++];try{x=g(x)}catch(M){k.call(this,M);break}}try{p=sp.call(this,x)}catch(g){return Promise.reject(g)}for(d=0,v=f.length;d<v;)p=p.then(f[d++],f[d++]);return p}getUri(t){t=jn(this.defaults,t);const o=ex(t.baseURL,t.url);return K0(o,t.params,t.paramsSerializer)}}Ee.forEach(["delete","get","head","options"],function(t){Ca.prototype[t]=function(o,i){return this.request(jn(i||{},{method:t,url:o,data:(i||{}).data}))}});Ee.forEach(["post","put","patch"],function(t){function o(i){return function(r,s,c){return this.request(jn(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}Ca.prototype[t]=o(),Ca.prototype[t+"Form"]=o(!0)});const Zs=Ca;class mh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(r){o=r});const i=this;this.promise.then(n=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r;const s=new Promise(c=>{i.subscribe(c),r=c}).then(n);return s.cancel=function(){i.unsubscribe(r)},s},t(function(r,s,c){i.reason||(i.reason=new us(r,s,c),o(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new mh(function(n){t=n}),cancel:t}}}const c5=mh;function d5(e){return function(o){return e.apply(null,o)}}function h5(e){return Ee.isObject(e)&&e.isAxiosError===!0}const Kc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kc).forEach(([e,t])=>{Kc[t]=e});const u5=Kc;function ox(e){const t=new Zs(e),o=$0(Zs.prototype.request,t);return Ee.extend(o,Zs.prototype,t,{allOwnKeys:!0}),Ee.extend(o,t,null,{allOwnKeys:!0}),o.create=function(n){return ox(jn(e,n))},o}const Bt=ox(ph);Bt.Axios=Zs;Bt.CanceledError=us;Bt.CancelToken=c5;Bt.isCancel=Q0;Bt.VERSION=tx;Bt.toFormData=rl;Bt.AxiosError=at;Bt.Cancel=Bt.CanceledError;Bt.all=function(t){return Promise.all(t)};Bt.spread=d5;Bt.isAxiosError=h5;Bt.mergeConfig=jn;Bt.AxiosHeaders=No;Bt.formToJSON=e=>J0(Ee.isHTMLForm(e)?new FormData(e):e);Bt.HttpStatusCode=u5;Bt.default=Bt;const f5=Bt,vh="User_tokey",ix="https://coldverify.coldbaozhida.com/api",TF="https://coldverifylocal.coldbaozhida.com",PF="https://cold.coldbaozhida.com/api",p5="https://coldverifylocal.coldbaozhida.com/api",AF="https://coldverify.coldbaozhida.com/local/api",nx=()=>{const e=window.sessionStorage.getItem(vh);return e||""},g5=e=>window.sessionStorage.setItem(vh,e),{message:Yl,loadingBar:Zc}=P_(["message","loadingBar"]),m5=e=>{e.Code===201?(Yl.error("登录过期,请重新登录"),window.sessionStorage.clear(),xh.replace("/login")):e.Code===502?Yl.error("服务器资源耗尽,请等待2-10分钟"):e.Code!==200&&e.Code!==600&&e.Code!==601&&e.Code!==501&&Yl.error(e.Msg)},fs=f5.create({timeout:1e3*60*8});fs.interceptors.request.use(function(e){Zc.start();const t=nx();if(e.url!=="/VerifyTemplateMapData/Pu"){const o=new FormData;e.url!=="/Login_Admin_verification"&&e.url!=="/Login_verification"&&o.append(vh,t),Object.entries(e.data).forEach(([i,n])=>{n==null?o.append(i,""):o.append(i,n)}),e.data=o}return e},function(e){return Promise.reject(e)});fs.interceptors.response.use(function(e){const{data:t}=e;return m5(t),Zc.finish(),e},function(e){return Zc.finish(),Promise.reject(e)});const v5=(e,t)=>fs.request({method:"POST",url:t==="管理员"?"/Login_Admin_verification":"/Login_verification",data:e,baseURL:ix}),MF=e=>fs.request({method:"POST",url:"/UpFileToken",data:e,baseURL:ix});var rx={exports:{}},sx={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(o,i){return o<<i|o>>>32-i},rotr:function(o,i){return o<<32-i|o>>>i},endian:function(o){if(o.constructor==Number)return t.rotl(o,8)&16711935|t.rotl(o,24)&4278255360;for(var i=0;i<o.length;i++)o[i]=t.endian(o[i]);return o},randomBytes:function(o){for(var i=[];o>0;o--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(o){for(var i=[],n=0,r=0;n<o.length;n++,r+=8)i[r>>>5]|=o[n]<<24-r%32;return i},wordsToBytes:function(o){for(var i=[],n=0;n<o.length*32;n+=8)i.push(o[n>>>5]>>>24-n%32&255);return i},bytesToHex:function(o){for(var i=[],n=0;n<o.length;n++)i.push((o[n]>>>4).toString(16)),i.push((o[n]&15).toString(16));return i.join("")},hexToBytes:function(o){for(var i=[],n=0;n<o.length;n+=2)i.push(parseInt(o.substr(n,2),16));return i},bytesToBase64:function(o){for(var i=[],n=0;n<o.length;n+=3)for(var r=o[n]<<16|o[n+1]<<8|o[n+2],s=0;s<4;s++)n*8+s*6<=o.length*8?i.push(e.charAt(r>>>6*(3-s)&63)):i.push("=");return i.join("")},base64ToBytes:function(o){o=o.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],n=0,r=0;n<o.length;r=++n%4)r!=0&&i.push((e.indexOf(o.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<r*2|e.indexOf(o.charAt(n))>>>6-r*2);return i}};sx.exports=t})();var x5=sx.exports,Jc={utf8:{stringToBytes:function(e){return Jc.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Jc.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o<e.length;o++)t.push(e.charCodeAt(o)&255);return t},bytesToString:function(e){for(var t=[],o=0;o<e.length;o++)t.push(String.fromCharCode(e[o]));return t.join("")}}},cp=Jc;/*!
  1769. * Determine if an object is a Buffer
  1770. *
  1771. * @author Feross Aboukhadijeh <https://feross.org>
  1772. * @license MIT
  1773. */var b5=function(e){return e!=null&&(ax(e)||y5(e)||!!e._isBuffer)};function ax(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function y5(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&ax(e.slice(0,0))}(function(){var e=x5,t=cp.utf8,o=b5,i=cp.bin,n=function(r,s){r.constructor==String?s&&s.encoding==="binary"?r=i.stringToBytes(r):r=t.stringToBytes(r):o(r)?r=Array.prototype.slice.call(r,0):!Array.isArray(r)&&r.constructor!==Uint8Array&&(r=r.toString());for(var c=e.bytesToWords(r),u=r.length*8,f=1732584193,p=-271733879,d=-1732584194,v=271733878,x=0;x<c.length;x++)c[x]=(c[x]<<8|c[x]>>>24)&16711935|(c[x]<<24|c[x]>>>8)&4278255360;c[u>>>5]|=128<<u%32,c[(u+64>>>9<<4)+14]=u;for(var g=n._ff,k=n._gg,M=n._hh,y=n._ii,x=0;x<c.length;x+=16){var T=f,I=p,A=d,R=v;f=g(f,p,d,v,c[x+0],7,-680876936),v=g(v,f,p,d,c[x+1],12,-389564586),d=g(d,v,f,p,c[x+2],17,606105819),p=g(p,d,v,f,c[x+3],22,-1044525330),f=g(f,p,d,v,c[x+4],7,-176418897),v=g(v,f,p,d,c[x+5],12,1200080426),d=g(d,v,f,p,c[x+6],17,-1473231341),p=g(p,d,v,f,c[x+7],22,-45705983),f=g(f,p,d,v,c[x+8],7,1770035416),v=g(v,f,p,d,c[x+9],12,-1958414417),d=g(d,v,f,p,c[x+10],17,-42063),p=g(p,d,v,f,c[x+11],22,-1990404162),f=g(f,p,d,v,c[x+12],7,1804603682),v=g(v,f,p,d,c[x+13],12,-40341101),d=g(d,v,f,p,c[x+14],17,-1502002290),p=g(p,d,v,f,c[x+15],22,1236535329),f=k(f,p,d,v,c[x+1],5,-165796510),v=k(v,f,p,d,c[x+6],9,-1069501632),d=k(d,v,f,p,c[x+11],14,643717713),p=k(p,d,v,f,c[x+0],20,-373897302),f=k(f,p,d,v,c[x+5],5,-701558691),v=k(v,f,p,d,c[x+10],9,38016083),d=k(d,v,f,p,c[x+15],14,-660478335),p=k(p,d,v,f,c[x+4],20,-405537848),f=k(f,p,d,v,c[x+9],5,568446438),v=k(v,f,p,d,c[x+14],9,-1019803690),d=k(d,v,f,p,c[x+3],14,-187363961),p=k(p,d,v,f,c[x+8],20,1163531501),f=k(f,p,d,v,c[x+13],5,-1444681467),v=k(v,f,p,d,c[x+2],9,-51403784),d=k(d,v,f,p,c[x+7],14,1735328473),p=k(p,d,v,f,c[x+12],20,-1926607734),f=M(f,p,d,v,c[x+5],4,-378558),v=M(v,f,p,d,c[x+8],11,-2022574463),d=M(d,v,f,p,c[x+11],16,1839030562),p=M(p,d,v,f,c[x+14],23,-35309556),f=M(f,p,d,v,c[x+1],4,-1530992060),v=M(v,f,p,d,c[x+4],11,1272893353),d=M(d,v,f,p,c[x+7],16,-155497632),p=M(p,d,v,f,c[x+10],23,-1094730640),f=M(f,p,d,v,c[x+13],4,681279174),v=M(v,f,p,d,c[x+0],11,-358537222),d=M(d,v,f,p,c[x+3],16,-722521979),p=M(p,d,v,f,c[x+6],23,76029189),f=M(f,p,d,v,c[x+9],4,-640364487),v=M(v,f,p,d,c[x+12],11,-421815835),d=M(d,v,f,p,c[x+15],16,530742520),p=M(p,d,v,f,c[x+2],23,-995338651),f=y(f,p,d,v,c[x+0],6,-198630844),v=y(v,f,p,d,c[x+7],10,1126891415),d=y(d,v,f,p,c[x+14],15,-1416354905),p=y(p,d,v,f,c[x+5],21,-57434055),f=y(f,p,d,v,c[x+12],6,1700485571),v=y(v,f,p,d,c[x+3],10,-1894986606),d=y(d,v,f,p,c[x+10],15,-1051523),p=y(p,d,v,f,c[x+1],21,-2054922799),f=y(f,p,d,v,c[x+8],6,1873313359),v=y(v,f,p,d,c[x+15],10,-30611744),d=y(d,v,f,p,c[x+6],15,-1560198380),p=y(p,d,v,f,c[x+13],21,1309151649),f=y(f,p,d,v,c[x+4],6,-145523070),v=y(v,f,p,d,c[x+11],10,-1120210379),d=y(d,v,f,p,c[x+2],15,718787259),p=y(p,d,v,f,c[x+9],21,-343485551),f=f+T>>>0,p=p+I>>>0,d=d+A>>>0,v=v+R>>>0}return e.endian([f,p,d,v])};n._ff=function(r,s,c,u,f,p,d){var v=r+(s&c|~s&u)+(f>>>0)+d;return(v<<p|v>>>32-p)+s},n._gg=function(r,s,c,u,f,p,d){var v=r+(s&u|c&~u)+(f>>>0)+d;return(v<<p|v>>>32-p)+s},n._hh=function(r,s,c,u,f,p,d){var v=r+(s^c^u)+(f>>>0)+d;return(v<<p|v>>>32-p)+s},n._ii=function(r,s,c,u,f,p,d){var v=r+(c^(s|~u))+(f>>>0)+d;return(v<<p|v>>>32-p)+s},n._blocksize=16,n._digestsize=16,rx.exports=function(r,s){if(r==null)throw new Error("Illegal argument "+r);var c=e.wordsToBytes(n(r,s));return s&&s.asBytes?c:s&&s.asString?i.bytesToString(c):e.bytesToHex(c)}})();var C5=rx.exports;const w5=or(C5),S5=e=>fs.request({method:"POST",url:"/Ping",data:e,baseURL:p5}),k5={class:"absolute top-0 right-0 bottom-0 left-0 bg-[#2d3a4b] flex justify-center items-center overflow-auto"},T5=Vn("h2",{class:"text-center"},"冷链验证报告生成系统",-1),P5=Vn("span",{class:"text-white"},"立即登录",-1),A5={__name:"index",setup(e){const t=ke(null),o=$z(),i=S0(),n=P0(),r=async()=>{const p=await S5({});p.data.Code==200?localStorage.setItem("ping",!0):localStorage.setItem("ping",!1),console.log("11",p)},s={username:{required:!0,message:"不能为空",trigger:"blur"},password:{required:!0,message:"不能为空",trigger:"blur"},role:{required:!0,message:"不能为空",trigger:["blur","change"]}},c=Oo({username:"",password:"",role:"管理员"}),u=["管理员","用户"].map(p=>({label:p,value:p})),f=async()=>{t.value.validate(async p=>{if(p)i.error("验证失败");else{const{data:d}=await v5({bzd_username:c.username,bzd_password:w5(c.password)},c.role);d.Code===200&&(r(),o.replace("/"),localStorage.setItem("keepAlive",JSON.stringify({T_name:"",page:1})),n.success({content:`你好,${c.username}`,title:"登录成功",duration:2500,keepAliveOnHover:!0}),g5(d.Data),window.sessionStorage.setItem("username",c.username))}})};return(p,d)=>{const v=pL,x=EO,g=JD,k=$R,M=$c,y=pD,T=sh,I=ah;return Ti(),Cd("div",k5,[Ze(I,{theme:St(O_)},{default:At(()=>[Ze(T,{class:"w-[500px] bg-transparent",bordered:!1},{header:At(()=>[T5]),default:At(()=>[Ze(y,{ref_key:"formRef",ref:t,rules:s,model:St(c),size:"large","label-placement":"left"},{default:At(()=>[Ze(g,{path:"username"},{default:At(()=>[Ze(x,{value:St(c).username,"onUpdate:value":d[0]||(d[0]=A=>St(c).username=A),maxlength:8},{prefix:At(()=>[Ze(v,{component:St(Kz)},null,8,["component"])]),_:1},8,["value"])]),_:1}),Ze(g,{path:"password"},{default:At(()=>[Ze(x,{value:St(c).password,"onUpdate:value":d[1]||(d[1]=A=>St(c).password=A),type:"password","show-password-on":"click",maxlength:20},{prefix:At(()=>[Ze(v,{component:St(Vz)},null,8,["component"])]),_:1},8,["value"])]),_:1}),Ze(g,{path:"role"},{default:At(()=>[Ze(k,{value:St(c).role,"onUpdate:value":d[2]||(d[2]=A=>St(c).role=A),options:St(u)},null,8,["value","options"])]),_:1}),Ze(g,null,{default:At(()=>[Ze(M,{type:"primary",block:"",onClick:f},{default:At(()=>[P5]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1},8,["theme"])])}}},xh=_z({history:J_("./"),routes:[{path:"/",component:Nz,redirect:"/project",children:[{path:"/project",name:"project",component:()=>zo(()=>import("./index-30bea123.js"),["./index-30bea123.js","./Task-28f1f3c2.js","./DataTable-41a24bfd.js","./RadioGroup-6edab0a1.js","./get-slot-1efb97e5.js","./Space-84278c21.js"],import.meta.url),meta:{keepAlive:!0,name:"project"}},{path:"/certificate",name:"certificate",component:()=>zo(()=>import("./index-10f631dd.js"),["./index-10f631dd.js","./vue3-pdf-embed-3a5703cb.js","./vue.runtime.esm-bundler-8d6a0dde.js","./Task-28f1f3c2.js","./Certificate-813c5f89.js","./index-f2c1e765.js","./get-slot-1efb97e5.js","./PageHeader-74caddbf.js","./Scrollbar-cb9be281.js","./Popconfirm-7119bd46.js","./Space-84278c21.js"],import.meta.url),meta:{keepAlive:!1,name:"certificate"}},{path:"/scheme",name:"scheme",component:()=>zo(()=>import("./index-30c8a192.js"),["./index-30c8a192.js","./Task-28f1f3c2.js","./VerifyTemplateMapData-c79050aa.js","./get-slot-1efb97e5.js","./FormList-eb0fbdb5.js","./TaskData-11f744cb.js","./DatePicker-02d3d64b.js","./RadioGroup-6edab0a1.js","./Upload-e16a41ce.js","./Add-f2559956.js","./Space-84278c21.js","./Popconfirm-7119bd46.js","./FormList-638639bd.css","./index-f2c1e765.js","./DataTable-41a24bfd.js","./PageHeader-74caddbf.js","./Scrollbar-cb9be281.js"],import.meta.url),meta:{keepAlive:!1,name:"scheme"}},{path:"/equipment",name:"equipment",component:()=>zo(()=>import("./index-e97eb066.js"),["./index-e97eb066.js","./xlsx-97c7c9c5.js","./DeviceClassList-c188dd4c.js","./Certificate-813c5f89.js","./RadioGroup-6edab0a1.js","./get-slot-1efb97e5.js","./PageHeader-74caddbf.js","./DataTable-41a24bfd.js","./Space-84278c21.js","./Popconfirm-7119bd46.js","./Upload-e16a41ce.js","./Add-f2559956.js","./index-18385e4b.css"],import.meta.url),meta:{keepAlive:!1,name:"equipment"}},{path:"/data_source",name:"data_source",component:()=>zo(()=>import("./index-0aaa87c2.js"),["./index-0aaa87c2.js","./TaskData-11f744cb.js","./PageHeader-74caddbf.js","./DataTable-41a24bfd.js","./RadioGroup-6edab0a1.js","./get-slot-1efb97e5.js","./Space-84278c21.js","./DatePicker-02d3d64b.js"],import.meta.url),meta:{keepAlive:!1,name:"data_source"}},{path:"/data_edit",name:"data_edit",component:()=>zo(()=>import("./index-cceaeb3e.js"),["./index-cceaeb3e.js","./vue.runtime.esm-bundler-8d6a0dde.js","./Certificate-813c5f89.js","./Task-28f1f3c2.js","./TaskData-11f744cb.js","./Tabs-3c1baf8d.js","./Add-f2559956.js","./DatePicker-02d3d64b.js","./RadioGroup-6edab0a1.js","./get-slot-1efb97e5.js","./Space-84278c21.js","./xlsx-97c7c9c5.js","./index-f2c1e765.js","./Upload-e16a41ce.js","./VerifyTemplateMapData-c79050aa.js","./Popconfirm-7119bd46.js","./PageHeader-74caddbf.js"],import.meta.url),meta:{keepAlive:!1,name:"data_edit"}},{path:"/data_checkout",name:"data_checkout",component:()=>zo(()=>import("./index-1d842d3b.js"),["./index-1d842d3b.js","./TaskData-11f744cb.js","./PageHeader-74caddbf.js","./DataTable-41a24bfd.js","./RadioGroup-6edab0a1.js","./get-slot-1efb97e5.js"],import.meta.url),meta:{keepAlive:!1,name:"data_checkout"}},{path:"/report_create",name:"report_create",component:()=>zo(()=>import("./index-46c26e12.js"),["./index-46c26e12.js","./Task-28f1f3c2.js","./VerifyTemplateMapData-c79050aa.js","./get-slot-1efb97e5.js","./FormList-eb0fbdb5.js","./TaskData-11f744cb.js","./DatePicker-02d3d64b.js","./RadioGroup-6edab0a1.js","./Upload-e16a41ce.js","./Add-f2559956.js","./Space-84278c21.js","./Popconfirm-7119bd46.js","./FormList-638639bd.css","./index-f2c1e765.js","./DataTable-41a24bfd.js","./PageHeader-74caddbf.js","./Scrollbar-cb9be281.js"],import.meta.url),meta:{keepAlive:!1,name:"report_create"}},{path:"/report_audit",name:"report_audit",component:()=>zo(()=>import("./index-0b817cc7.js"),["./index-0b817cc7.js","./vue3-pdf-embed-3a5703cb.js","./vue.runtime.esm-bundler-8d6a0dde.js","./Task-28f1f3c2.js","./TaskData-11f744cb.js","./DeviceClassList-c188dd4c.js","./Tabs-3c1baf8d.js","./Add-f2559956.js","./Scrollbar-cb9be281.js","./DatePicker-02d3d64b.js","./RadioGroup-6edab0a1.js","./get-slot-1efb97e5.js","./Space-84278c21.js","./DataTable-41a24bfd.js","./index-f2c1e765.js","./PageHeader-74caddbf.js","./index-84a3fb22.css"],import.meta.url),meta:{keepAlive:!1,name:"report_audit"}}]},{path:"/login",component:A5}]});xh.beforeEach((e,t,o)=>{nx()?e.path==="/login"?o("/"):o():e.path==="/login"?o():o("/login")});var lx={exports:{}};(function(e){(function(t,o){e.exports?(o.default=o,e.exports=t.document?o(t):o):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=o(t))})(typeof window<"u"?window:Vs,function(t){function o(n,r,s,c){n.hasOwnProperty(r)||(n[r]=c.apply(null,s),typeof CustomEvent=="function"&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:r,module:n[r]}})))}var i={};return o(i,"Core/Globals.js",[],function(){var n;return function(r){r.SVG_NS="http://www.w3.org/2000/svg",r.product="Highcharts",r.version="11.1.0",r.win=typeof t<"u"?t:{},r.doc=r.win.document,r.svg=r.doc&&r.doc.createElementNS&&!!r.doc.createElementNS(r.SVG_NS,"svg").createSVGRect,r.userAgent=r.win.navigator&&r.win.navigator.userAgent||"",r.isChrome=r.userAgent.indexOf("Chrome")!==-1,r.isFirefox=r.userAgent.indexOf("Firefox")!==-1,r.isMS=/(edge|msie|trident)/i.test(r.userAgent)&&!r.win.opera,r.isSafari=!r.isChrome&&r.userAgent.indexOf("Safari")!==-1,r.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(r.userAgent),r.isWebKit=r.userAgent.indexOf("AppleWebKit")!==-1,r.deg2rad=2*Math.PI/360,r.hasBidiBug=r.isFirefox&&4>parseInt(r.userAgent.split("Firefox/")[1],10),r.hasTouch=!!r.win.TouchEvent,r.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],r.noop=function(){},r.supportsPassiveEvents=function(){let s=!1;if(!r.isMS){const c=Object.defineProperty({},"passive",{get:function(){s=!0}});r.win.addEventListener&&r.win.removeEventListener&&(r.win.addEventListener("testPassive",r.noop,c),r.win.removeEventListener("testPassive",r.noop,c))}return s}(),r.charts=[],r.dateFormats={},r.seriesTypes={},r.symbolSizes={},r.chartCount=0}(n||(n={})),n}),o(i,"Core/Utilities.js",[i["Core/Globals.js"]],function(n){function r(l,h,b,B){const F=h?"Highcharts error":"Highcharts warning";l===32&&(l=`${F}: Deprecated member`);const O=v(l);let W=O?`${F} #${l}: www.highcharts.com/errors/${l}/`:l.toString();if(typeof B<"u"){let X="";O&&(W+="?"),z(B,function(Q,ee){X+=`
  1774. - ${ee}: ${Q}`,O&&(W+=encodeURI(ee)+"="+encodeURI(Q))}),W+=X}L(n,"displayError",{chart:b,code:l,message:W,params:B},function(){if(h)throw Error(W);E.console&&r.messages.indexOf(W)===-1&&console.warn(W)}),r.messages.push(W)}function s(l,h){return parseInt(l,h||10)}function c(l){return typeof l=="string"}function u(l){return l=Object.prototype.toString.call(l),l==="[object Array]"||l==="[object Array Iterator]"}function f(l,h){return!!l&&typeof l=="object"&&(!h||!u(l))}function p(l){return f(l)&&typeof l.nodeType=="number"}function d(l){const h=l&&l.constructor;return!(!f(l,!0)||p(l)||!h||!h.name||h.name==="Object")}function v(l){return typeof l=="number"&&!isNaN(l)&&1/0>l&&-1/0<l}function x(l){return typeof l<"u"&&l!==null}function g(l,h,b){const B=c(h)&&!x(b);let F;const O=(W,X)=>{x(W)?l.setAttribute(X,W):B?(F=l.getAttribute(X))||X!=="class"||(F=l.getAttribute(X+"Name")):l.removeAttribute(X)};return c(h)?O(b,h):z(h,O),F}function k(l){return u(l)?l:[l]}function M(l,h){let b;l||(l={});for(b in h)l[b]=h[b];return l}function y(){const l=arguments,h=l.length;for(let b=0;b<h;b++){const B=l[b];if(typeof B<"u"&&B!==null)return B}}function T(l,h){n.isMS&&!n.svg&&h&&x(h.opacity)&&(h.filter=`alpha(opacity=${100*h.opacity})`),M(l.style,h)}function I(l){return Math.pow(10,Math.floor(Math.log(l)/Math.LN10))}function A(l,h){return 1e14<l?l:parseFloat(l.toPrecision(h||14))}function R(l,h,b){let B;return h==="width"?(h=Math.min(l.offsetWidth,l.scrollWidth),b=l.getBoundingClientRect&&l.getBoundingClientRect().width,b<h&&b>=h-1&&(h=Math.floor(b)),Math.max(0,h-(R(l,"padding-left",!0)||0)-(R(l,"padding-right",!0)||0))):h==="height"?Math.max(0,Math.min(l.offsetHeight,l.scrollHeight)-(R(l,"padding-top",!0)||0)-(R(l,"padding-bottom",!0)||0)):((l=E.getComputedStyle(l,void 0))&&(B=l.getPropertyValue(h),y(b,h!=="opacity")&&(B=s(B))),B)}function z(l,h,b){for(const B in l)Object.hasOwnProperty.call(l,B)&&h.call(b||l[B],l[B],B,l)}function P(l,h,b){function B(W,X){const Q=l.removeEventListener;Q&&Q.call(l,W,X,!1)}function F(W){let X,Q;l.nodeName&&(h?(X={},X[h]=!0):X=W,z(X,function(ee,Y){if(W[Y])for(Q=W[Y].length;Q--;)B(Y,W[Y][Q].fn)}))}var O=typeof l=="function"&&l.prototype||l;if(Object.hasOwnProperty.call(O,"hcEvents")){const W=O.hcEvents;h?(O=W[h]||[],b?(W[h]=O.filter(function(X){return b!==X.fn}),B(h,b)):(F(W),W[h]=[])):(F(W),delete O.hcEvents)}}function L(l,h,b,B){if(b=b||{},w.createEvent&&(l.dispatchEvent||l.fireEvent&&l!==n)){var F=w.createEvent("Events");F.initEvent(h,!0,!0),b=M(F,b),l.dispatchEvent?l.dispatchEvent(b):l.fireEvent(h,b)}else if(l.hcEvents){b.target||M(b,{preventDefault:function(){b.defaultPrevented=!0},target:l,type:h}),F=[];let O=l,W=!1;for(;O.hcEvents;)Object.hasOwnProperty.call(O,"hcEvents")&&O.hcEvents[h]&&(F.length&&(W=!0),F.unshift.apply(F,O.hcEvents[h])),O=Object.getPrototypeOf(O);W&&F.sort((X,Q)=>X.order-Q.order),F.forEach(X=>{X.fn.call(l,b)===!1&&b.preventDefault()})}B&&!b.defaultPrevented&&B.call(l,b)}const{charts:S,doc:w,win:E}=n;(r||(r={})).messages=[],Math.easeInOutSine=function(l){return-.5*(Math.cos(Math.PI*l)-1)};var m=Array.prototype.find?function(l,h){return l.find(h)}:function(l,h){let b;const B=l.length;for(b=0;b<B;b++)if(h(l[b],b))return l[b]};z({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(l,h){n[h]=function(b){return r(32,!1,void 0,{[`Highcharts.${h}`]:`use Array.${l}`}),Array.prototype[l].apply(b,[].slice.call(arguments,1))}});let C;const a=function(){const l=Math.random().toString(36).substring(2,9)+"-";let h=0;return function(){return"highcharts-"+(C?"":l)+h++}}();return E.jQuery&&(E.jQuery.fn.highcharts=function(){const l=[].slice.call(arguments);if(this[0])return l[0]?(new n[c(l[0])?l.shift():"Chart"](this[0],l[0],l[1]),this):S[g(this[0],"data-highcharts-chart")]}),m={addEvent:function(l,h,b,B={}){var F=typeof l=="function"&&l.prototype||l;Object.hasOwnProperty.call(F,"hcEvents")||(F.hcEvents={}),F=F.hcEvents,n.Point&&l instanceof n.Point&&l.series&&l.series.chart&&(l.series.chart.runTrackerClick=!0);const O=l.addEventListener;return O&&O.call(l,h,b,n.supportsPassiveEvents?{passive:B.passive===void 0?h.indexOf("touch")!==-1:B.passive,capture:!1}:!1),F[h]||(F[h]=[]),F[h].push({fn:b,order:typeof B.order=="number"?B.order:1/0}),F[h].sort((W,X)=>W.order-X.order),function(){P(l,h,b)}},arrayMax:function(l){let h=l.length,b=l[0];for(;h--;)l[h]>b&&(b=l[h]);return b},arrayMin:function(l){let h=l.length,b=l[0];for(;h--;)l[h]<b&&(b=l[h]);return b},attr:g,clamp:function(l,h,b){return l>h?l<b?l:b:h},clearTimeout:function(l){x(l)&&clearTimeout(l)},correctFloat:A,createElement:function(l,h,b,B,F){return l=w.createElement(l),h&&M(l,h),F&&T(l,{padding:"0",border:"none",margin:"0"}),b&&T(l,b),B&&B.appendChild(l),l},css:T,defined:x,destroyObjectProperties:function(l,h){z(l,function(b,B){b&&b!==h&&b.destroy&&b.destroy(),delete l[B]})},diffObjects:function(l,h,b,B){function F(W,X,Q,ee){const Y=b?X:W;z(W,function(D,N){if(!ee&&B&&-1<B.indexOf(N)&&X[N]){D=k(D),Q[N]=[];for(let V=0;V<Math.max(D.length,X[N].length);V++)X[N][V]&&(D[V]===void 0?Q[N][V]=X[N][V]:(Q[N][V]={},F(D[V],X[N][V],Q[N][V],ee+1)))}else f(D,!0)&&!D.nodeType?(Q[N]=u(D)?[]:{},F(D,X[N]||{},Q[N],ee+1),Object.keys(Q[N]).length!==0||N==="colorAxis"&&ee===0||delete Q[N]):(W[N]!==X[N]||N in W&&!(N in X))&&(Q[N]=Y[N])})}const O={};return F(l,h,O,0),O},discardElement:function(l){l&&l.parentElement&&l.parentElement.removeChild(l)},erase:function(l,h){let b=l.length;for(;b--;)if(l[b]===h){l.splice(b,1);break}},error:r,extend:M,extendClass:function(l,h){const b=function(){};return b.prototype=new l,M(b.prototype,h),b},find:m,fireEvent:L,getClosestDistance:function(l,h){const b=!h;let B,F,O;return l.forEach(W=>{if(1<W.length)for(O=W.length-1;0<O;O--)F=W[O]-W[O-1],0>F&&!b?(h==null||h(),h=void 0):F&&(typeof B>"u"||F<B)&&(B=F)}),B},getMagnitude:I,getNestedProperty:function(l,h){for(l=l.split(".");l.length&&x(h);){const b=l.shift();if(typeof b>"u"||b==="__proto__")return;if(b==="this"){let B;return f(h)&&(B=h["@this"]),B??h}if(h=h[b],!x(h)||typeof h=="function"||typeof h.nodeType=="number"||h===E)return}return h},getStyle:R,inArray:function(l,h,b){return r(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),h.indexOf(l,b)},insertItem:function(l,h){const b=l.options.index,B=h.length;let F;for(F=l.options.isInternal?B:0;F<B+1;F++)if(!h[F]||v(b)&&b<y(h[F].options.index,h[F]._i)||h[F].options.isInternal){h.splice(F,0,l);break}return F},isArray:u,isClass:d,isDOMElement:p,isFunction:function(l){return typeof l=="function"},isNumber:v,isObject:f,isString:c,keys:function(l){return r(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(l)},merge:function(){let l,h=arguments,b={};const B=function(O,W){return typeof O!="object"&&(O={}),z(W,function(X,Q){Q!=="__proto__"&&Q!=="constructor"&&(!f(X,!0)||d(X)||p(X)?O[Q]=W[Q]:O[Q]=B(O[Q]||{},X))}),O};h[0]===!0&&(b=h[1],h=Array.prototype.slice.call(h,2));const F=h.length;for(l=0;l<F;l++)b=B(b,h[l]);return b},normalizeTickInterval:function(l,h,b,B,F){let O=l;b=y(b,I(l));const W=l/b;for(h||(h=F?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],B===!1&&(b===1?h=h.filter(function(X){return X%1===0}):.1>=b&&(h=[1/b]))),B=0;B<h.length&&(O=h[B],!(F&&O*b>=l||!F&&W<=(h[B]+(h[B+1]||h[B]))/2));B++);return O=A(O*b,-Math.round(Math.log(.001)/Math.LN10))},objectEach:z,offset:function(l){const h=w.documentElement;return l=l.parentElement||l.parentNode?l.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:l.top+(E.pageYOffset||h.scrollTop)-(h.clientTop||0),left:l.left+(E.pageXOffset||h.scrollLeft)-(h.clientLeft||0),width:l.width,height:l.height}},pad:function(l,h,b){return Array((h||2)+1-String(l).replace("-","").length).join(b||"0")+l},pick:y,pInt:s,pushUnique:function(l,h){return 0>l.indexOf(h)&&!!l.push(h)},relativeLength:function(l,h,b){return/%$/.test(l)?h*parseFloat(l)/100+(b||0):parseFloat(l)},removeEvent:P,splat:k,stableSort:function(l,h){const b=l.length;let B,F;for(F=0;F<b;F++)l[F].safeI=F;for(l.sort(function(O,W){return B=h(O,W),B===0?O.safeI-W.safeI:B}),F=0;F<b;F++)delete l[F].safeI},syncTimeout:function(l,h,b){return 0<h?setTimeout(l,h,b):(l.call(0,b),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:a,useSerialIds:function(l){return C=y(l,C)},wrap:function(l,h,b){const B=l[h];l[h]=function(){const F=arguments,O=this;return b.apply(this,[function(){return B.apply(O,arguments.length?arguments:F)}].concat([].slice.call(arguments)))}}},m}),o(i,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),o(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r){const{isNumber:s,merge:c,pInt:u}=r;class f{static parse(d){return d?new f(d):f.None}constructor(d){this.rgba=[NaN,NaN,NaN,NaN],this.input=d;const v=n.Color;if(v&&v!==f)return new v(d);this.init(d)}init(d){let v,x;if(typeof d=="object"&&typeof d.stops<"u")this.stops=d.stops.map(M=>new f(M[1]));else if(typeof d=="string"){if(this.input=d=f.names[d.toLowerCase()]||d,d.charAt(0)==="#"){var g=d.length,k=parseInt(d.substr(1),16);g===7?v=[(k&16711680)>>16,(k&65280)>>8,k&255,1]:g===4&&(v=[(k&3840)>>4|(k&3840)>>8,(k&240)>>4|k&240,(k&15)<<4|k&15,1])}if(!v)for(k=f.parsers.length;k--&&!v;)x=f.parsers[k],(g=x.regex.exec(d))&&(v=x.parse(g))}v&&(this.rgba=v)}get(d){const v=this.input,x=this.rgba;if(typeof v=="object"&&typeof this.stops<"u"){const g=c(v);return g.stops=[].slice.call(g.stops),this.stops.forEach((k,M)=>{g.stops[M]=[g.stops[M][0],k.get(d)]}),g}return x&&s(x[0])?d==="rgb"||!d&&x[3]===1?"rgb("+x[0]+","+x[1]+","+x[2]+")":d==="a"?`${x[3]}`:"rgba("+x.join(",")+")":v}brighten(d){const v=this.rgba;if(this.stops)this.stops.forEach(function(x){x.brighten(d)});else if(s(d)&&d!==0)for(let x=0;3>x;x++)v[x]+=u(255*d),0>v[x]&&(v[x]=0),255<v[x]&&(v[x]=255);return this}setOpacity(d){return this.rgba[3]=d,this}tweenTo(d,v){const x=this.rgba,g=d.rgba;return!s(x[0])||!s(g[0])?d.input||"none":(d=g[3]!==1||x[3]!==1,(d?"rgba(":"rgb(")+Math.round(g[0]+(x[0]-g[0])*(1-v))+","+Math.round(g[1]+(x[1]-g[1])*(1-v))+","+Math.round(g[2]+(x[2]-g[2])*(1-v))+(d?","+(g[3]+(x[3]-g[3])*(1-v)):"")+")")}}return f.names={white:"#ffffff",black:"#000000"},f.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(p){return[u(p[1]),u(p[2]),u(p[3]),parseFloat(p[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(p){return[u(p[1]),u(p[2]),u(p[3]),1]}}],f.None=new f(""),f}),o(i,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),o(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r){const{win:s}=n,{defined:c,error:u,extend:f,isObject:p,merge:d,objectEach:v,pad:x,pick:g,splat:k,timeUnits:M}=r,y=n.isSafari&&s.Intl&&s.Intl.DateTimeFormat.prototype.formatRange,T=n.isSafari&&s.Intl&&!s.Intl.DateTimeFormat.prototype.formatRange;class I{constructor(R){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=s.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(R)}get(R,z){if(this.variableTimezone||this.timezoneOffset){const P=z.getTime(),L=P-this.getTimezoneOffset(z);return z.setTime(L),R=z["getUTC"+R](),z.setTime(P),R}return this.useUTC?z["getUTC"+R]():z["get"+R]()}set(R,z,P){if(this.variableTimezone||this.timezoneOffset){if(R==="Milliseconds"||R==="Seconds"||R==="Minutes"&&this.getTimezoneOffset(z)%36e5===0)return z["setUTC"+R](P);var L=this.getTimezoneOffset(z);return L=z.getTime()-L,z.setTime(L),z["setUTC"+R](P),R=this.getTimezoneOffset(z),L=z.getTime()+R,z.setTime(L)}return this.useUTC||y&&R==="FullYear"?z["setUTC"+R](P):z["set"+R](P)}update(R={}){const z=g(R.useUTC,!0);this.options=R=d(!0,this.options,R),this.Date=R.Date||s.Date||Date,this.timezoneOffset=(this.useUTC=z)&&R.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=z&&!(!R.getTimezoneOffset&&!R.timezone)}makeTime(R,z,P,L,S,w){let E,m,C;return this.useUTC?(E=this.Date.UTC.apply(0,arguments),m=this.getTimezoneOffset(E),E+=m,C=this.getTimezoneOffset(E),m!==C?E+=C-m:m-36e5!==this.getTimezoneOffset(E-36e5)||T||(E-=36e5)):E=new this.Date(R,z,g(P,1),g(L,0),g(S,0),g(w,0)).getTime(),E}timezoneOffsetFunction(){const R=this,z=this.options,P=z.getTimezoneOffset,L=z.moment||s.moment;if(!this.useUTC)return function(S){return 6e4*new Date(S.toString()).getTimezoneOffset()};if(z.timezone){if(L)return function(S){return 6e4*-L.tz(S,z.timezone).utcOffset()};u(25)}return this.useUTC&&P?function(S){return 6e4*P(S.valueOf())}:function(){return 6e4*(R.timezoneOffset||0)}}dateFormat(R,z,P){if(!c(z)||isNaN(z))return n.defaultOptions.lang&&n.defaultOptions.lang.invalidDate||"";R=g(R,"%Y-%m-%d %H:%M:%S");const L=this;var S=new this.Date(z);const w=this.get("Hours",S),E=this.get("Day",S),m=this.get("Date",S),C=this.get("Month",S),a=this.get("FullYear",S),l=n.defaultOptions.lang,h=l&&l.weekdays,b=l&&l.shortWeekdays;return S=f({a:b?b[E]:h[E].substr(0,3),A:h[E],d:x(m),e:x(m,2," "),w:E,b:l.shortMonths[C],B:l.months[C],m:x(C+1),o:C+1,y:a.toString().substr(2,2),Y:a,H:x(w),k:w,I:x(w%12||12),l:w%12||12,M:x(this.get("Minutes",S)),p:12>w?"AM":"PM",P:12>w?"am":"pm",S:x(S.getSeconds()),L:x(Math.floor(z%1e3),3)},n.dateFormats),v(S,function(B,F){for(;R.indexOf("%"+F)!==-1;)R=R.replace("%"+F,typeof B=="function"?B.call(L,z):B)}),P?R.substr(0,1).toUpperCase()+R.substr(1):R}resolveDTLFormat(R){return p(R,!0)?R:(R=k(R),{main:R[0],from:R[1],to:R[2]})}getTimeTicks(R,z,P,L){const S=this,w=[],E={};var m=new S.Date(z);const C=R.unitRange,a=R.count||1;let l;if(L=g(L,1),c(z)){if(S.set("Milliseconds",m,C>=M.second?0:a*Math.floor(S.get("Milliseconds",m)/a)),C>=M.second&&S.set("Seconds",m,C>=M.minute?0:a*Math.floor(S.get("Seconds",m)/a)),C>=M.minute&&S.set("Minutes",m,C>=M.hour?0:a*Math.floor(S.get("Minutes",m)/a)),C>=M.hour&&S.set("Hours",m,C>=M.day?0:a*Math.floor(S.get("Hours",m)/a)),C>=M.day&&S.set("Date",m,C>=M.month?1:Math.max(1,a*Math.floor(S.get("Date",m)/a))),C>=M.month){S.set("Month",m,C>=M.year?0:a*Math.floor(S.get("Month",m)/a));var h=S.get("FullYear",m)}C>=M.year&&S.set("FullYear",m,h-h%a),C===M.week&&(h=S.get("Day",m),S.set("Date",m,S.get("Date",m)-h+L+(h<L?-7:0))),h=S.get("FullYear",m),L=S.get("Month",m);const b=S.get("Date",m),B=S.get("Hours",m);for(z=m.getTime(),!S.variableTimezone&&S.useUTC||!c(P)||(l=P-z>4*M.month||S.getTimezoneOffset(z)!==S.getTimezoneOffset(P)),z=m.getTime(),m=1;z<P;)w.push(z),z=C===M.year?S.makeTime(h+m*a,0):C===M.month?S.makeTime(h,L+m*a):!l||C!==M.day&&C!==M.week?l&&C===M.hour&&1<a?S.makeTime(h,L,b,B+m*a):z+C*a:S.makeTime(h,L,b+m*a*(C===M.day?1:7)),m++;w.push(z),C<=M.hour&&1e4>w.length&&w.forEach(function(F){F%18e5===0&&S.dateFormat("%H%M%S%L",F)==="000000000"&&(E[F]="day")})}return w.info=f(R,{higherRanks:E,totalRange:C*a}),w}getDateFormat(R,z,P,L){const S=this.dateFormat("%m-%d %H:%M:%S.%L",z),w={millisecond:15,second:12,minute:9,hour:6,day:3};let E,m="millisecond";for(E in M){if(R===M.week&&+this.dateFormat("%w",z)===P&&S.substr(6)==="00:00:00.000"){E="week";break}if(M[E]>R){E=m;break}if(w[E]&&S.substr(w[E])!=="01-01 00:00:00.000".substr(w[E]))break;E!=="week"&&(m=E)}return this.resolveDTLFormat(L[E]).main}}return I}),o(i,"Core/Defaults.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f){const{isTouchDevice:p,svg:d}=s,{merge:v}=f,x={colors:c.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:n,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:d,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:p?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};x.chart.styledMode=!1;const g=new u(x.time);return n={defaultOptions:x,defaultTime:g,getOptions:function(){return x},setOptions:function(k){return v(!0,x,k),(k.time||k.global)&&(s.time?s.time.update(v(x.global,x.time,k.global,k.time)):s.time=g),x}},n}),o(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r,s){const{parse:c}=n,{win:u}=r,{isNumber:f,objectEach:p}=s;class d{constructor(x,g,k){this.pos=NaN,this.options=g,this.elem=x,this.prop=k}dSetter(){var x=this.paths;const g=x&&x[0];x=x&&x[1];const k=this.now||0;let M=[];if(k!==1&&g&&x)if(g.length===x.length&&1>k)for(let y=0;y<x.length;y++){const T=g[y],I=x[y],A=[];for(let R=0;R<I.length;R++){const z=T[R],P=I[R];f(z)&&f(P)&&(I[0]!=="A"||R!==4&&R!==5)?A[R]=z+k*(P-z):A[R]=P}M.push(A)}else M=x;else M=this.toD||[];this.elem.attr("d",M,void 0,!0)}update(){const x=this.elem,g=this.prop,k=this.now,M=this.options.step;this[g+"Setter"]?this[g+"Setter"]():x.attr?x.element&&x.attr(g,k,null,!0):x.style[g]=k+this.unit,M&&M.call(x,k,this)}run(x,g,k){const M=this,y=M.options,T=function(R){return T.stopped?!1:M.step(R)},I=u.requestAnimationFrame||function(R){setTimeout(R,13)},A=function(){for(let R=0;R<d.timers.length;R++)d.timers[R]()||d.timers.splice(R--,1);d.timers.length&&I(A)};x!==g||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=x,this.end=g,this.unit=k,this.now=this.start,this.pos=0,T.elem=this.elem,T.prop=this.prop,T()&&d.timers.push(T)===1&&I(A)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))}step(x){const g=+new Date,k=this.options,M=this.elem,y=k.complete,T=k.duration,I=k.curAnim;let A;return M.attr&&!M.element?x=!1:x||g>=T+this.startTime?(this.now=this.end,this.pos=1,this.update(),A=I[this.prop]=!0,p(I,function(R){R!==!0&&(A=!1)}),A&&y&&y.call(M),x=!1):(this.pos=k.easing((g-this.startTime)/T),this.now=this.start+(this.end-this.start)*this.pos,this.update(),x=!0),x}initPath(x,g,k){function M(S,w){for(;S.length<P;){var E=S[0];const m=w[P-S.length];m&&E[0]==="M"&&(S[0]=m[0]==="C"?["C",E[1],E[2],E[1],E[2],E[1],E[2]]:["L",E[1],E[2]]),S.unshift(E),A&&(E=S.pop(),S.push(S[S.length-1],E))}}function y(S,w){for(;S.length<P;)if(w=S[Math.floor(S.length/R)-1].slice(),w[0]==="C"&&(w[1]=w[5],w[2]=w[6]),A){const E=S[Math.floor(S.length/R)].slice();S.splice(S.length/2,0,w,E)}else S.push(w)}const T=x.startX,I=x.endX;k=k.slice();const A=x.isArea,R=A?2:1;let z,P,L;if(g=g&&g.slice(),!g)return[k,k];if(T&&I&&I.length){for(x=0;x<T.length;x++)if(T[x]===I[0]){z=x;break}else if(T[0]===I[I.length-T.length+x]){z=x,L=!0;break}else if(T[T.length-1]===I[I.length-T.length+x]){z=T.length-x;break}typeof z>"u"&&(g=[])}return g.length&&f(z)&&(P=k.length+z*R,L?(M(g,k),y(k,g)):(M(k,g),y(g,k))),[g,k]}fillSetter(){d.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,c(this.start).tweenTo(c(this.end),this.pos),void 0,!0)}}return d.timers=[],d}),o(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Utilities.js"]],function(n,r){function s(M){return v(M)?x({duration:500,defer:0},M):{duration:M?500:0,defer:0}}function c(M,y){let T=n.timers.length;for(;T--;)n.timers[T].elem!==M||y&&y!==n.timers[T].prop||(n.timers[T].stopped=!0)}const{defined:u,getStyle:f,isArray:p,isNumber:d,isObject:v,merge:x,objectEach:g,pick:k}=r;return{animate:function(M,y,T){let I,A="",R,z,P;v(T)||(P=arguments,T={duration:P[2],easing:P[3],complete:P[4]}),d(T.duration)||(T.duration=400),T.easing=typeof T.easing=="function"?T.easing:Math[T.easing]||Math.easeInOutSine,T.curAnim=x(y),g(y,function(L,S){c(M,S),z=new n(M,T,S),R=void 0,S==="d"&&p(y.d)?(z.paths=z.initPath(M,M.pathArray,y.d),z.toD=y.d,I=0,R=1):M.attr?I=M.attr(S):(I=parseFloat(f(M,S))||0,S!=="opacity"&&(A="px")),R||(R=L),typeof R=="string"&&R.match("px")&&(R=R.replace(/px/g,"")),z.run(I,R,A)})},animObject:s,getDeferredAnimation:function(M,y,T){const I=s(y);let A=0,R=0;return(T?[T]:M.series).forEach(z=>{z=s(z.options.animation),A=y&&u(y.defer)?I.defer:Math.max(A,z.duration+z.defer),R=Math.min(I.duration,z.duration)}),M.renderer.forExport&&(A=0),{defer:Math.max(0,A-R),duration:Math.min(A,R)}},setAnimation:function(M,y){y.renderer.globalAnimation=k(M,y.options.chart.animation,!0)},stop:c}}),o(i,"Core/Renderer/HTML/AST.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r){const{SVG_NS:s,win:c}=n,{attr:u,createElement:f,css:p,error:d,isFunction:v,isString:x,objectEach:g,splat:k}=r;({trustedTypes:r}=c);const M=r&&v(r.createPolicy)&&r.createPolicy("highcharts",{createHTML:A=>A});r=M?M.createHTML(""):"";try{var y=!!new DOMParser().parseFromString(r,"text/html")}catch{y=!1}const T=y;class I{static filterUserAttributes(R){return g(R,(z,P)=>{let L=!0;I.allowedAttributes.indexOf(P)===-1&&(L=!1),["background","dynsrc","href","lowsrc","src"].indexOf(P)!==-1&&(L=x(z)&&I.allowedReferences.some(S=>z.indexOf(S)===0)),L||(d(33,!1,void 0,{"Invalid attribute in config":`${P}`}),delete R[P]),x(z)&&R[P]&&(R[P]=z.replace(/</g,"&lt;"))}),R}static parseStyle(R){return R.split(";").reduce((z,P)=>{P=P.split(":").map(S=>S.trim());const L=P.shift();return L&&P.length&&(z[L.replace(/-([a-z])/g,S=>S[1].toUpperCase())]=P.join(":")),z},{})}static setElementHTML(R,z){R.innerHTML=I.emptyHTML,z&&new I(z).addToDOM(R)}constructor(R){this.nodes=typeof R=="string"?this.parseMarkup(R):R}addToDOM(R){function z(P,L){let S;return k(P).forEach(function(w){var E=w.tagName;const m=w.textContent?n.doc.createTextNode(w.textContent):void 0,C=I.bypassHTMLFiltering;let a;if(E)if(E==="#text")a=m;else if(I.allowedTags.indexOf(E)!==-1||C){E=n.doc.createElementNS(E==="svg"?s:L.namespaceURI||s,E);const l=w.attributes||{};g(w,function(h,b){b!=="tagName"&&b!=="attributes"&&b!=="children"&&b!=="style"&&b!=="textContent"&&(l[b]=h)}),u(E,C?l:I.filterUserAttributes(l)),w.style&&p(E,w.style),m&&E.appendChild(m),z(w.children||[],E),a=E}else d(33,!1,void 0,{"Invalid tagName in config":E});a&&L.appendChild(a),S=a}),S}return z(this.nodes,R)}parseMarkup(R){const z=[];if(R=R.trim().replace(/ style=(["'])/g," data-style=$1"),T)R=new DOMParser().parseFromString(M?M.createHTML(R):R,"text/html");else{const L=f("div");L.innerHTML=R,R={body:L}}const P=(L,S)=>{var w=L.nodeName.toLowerCase();const E={tagName:w};if(w==="#text"&&(E.textContent=L.textContent||""),w=L.attributes){const m={};[].forEach.call(w,C=>{C.name==="data-style"?E.style=I.parseStyle(C.value):m[C.name]=C.value}),E.attributes=m}if(L.childNodes.length){const m=[];[].forEach.call(L.childNodes,C=>{P(C,m)}),m.length&&(E.children=m)}S.push(E)};return[].forEach.call(R.body.childNodes,L=>P(L,z)),z}}return I.allowedAttributes="alt aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill flood-color flood-opacity height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),I.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),I.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feDropShadow feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),I.emptyHTML=r,I.bypassHTMLFiltering=!1,I}),o(i,"Core/Templating.js",[i["Core/Defaults.js"],i["Core/Utilities.js"]],function(n,r){function s(T="",I,A){const R=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,z=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,P=[],L=/f$/,S=/\.([0-9])/,w=u.lang,E=A&&A.time||f,m=A&&A.numberFormatter||c,C=(O="")=>{let W;return O==="true"?!0:O==="false"?!1:(W=Number(O)).toString()===O?W:d(O,I)};let a,l,h=0,b;for(;(a=R.exec(T))!==null;){const O=z.exec(a[1]);O&&(a=O,b=!0),l&&l.isBlock||(l={ctx:I,expression:a[1],find:a[0],isBlock:a[1].charAt(0)==="#",start:a.index,startInner:a.index+a[0].length,length:a[0].length});var B=a[1].split(" ")[0].replace("#","");if(y[B]&&(l.isBlock&&B===l.fn&&h++,l.fn||(l.fn=B)),B=a[1]==="else",l.isBlock&&l.fn&&(a[1]===`/${l.fn}`||B))if(h)B||h--;else{var F=l.startInner;F=T.substr(F,a.index-F),l.body===void 0?(l.body=F,l.startInner=a.index+a[0].length):l.elseBody=F,l.find+=F+a[0],B||(P.push(l),l=void 0)}else l.isBlock||P.push(l);if(O&&(l==null||!l.isBlock))break}return P.forEach(O=>{const{body:W,elseBody:X,expression:Q,fn:ee}=O;var Y;if(ee){var D=[O],N=Q.split(" ");for(Y=y[ee].length;Y--;)D.unshift(C(N[Y+1]));Y=y[ee].apply(I,D),O.isBlock&&typeof Y=="boolean"&&(Y=s(Y?W:X,I))}else D=Q.split(":"),Y=C(D.shift()||""),D.length&&typeof Y=="number"&&(D=D.join(":"),L.test(D)?(N=parseInt((D.match(S)||["","-1"])[1],10),Y!==null&&(Y=m(Y,N,w.decimalPoint,-1<D.indexOf(",")?w.thousandsSep:""))):Y=E.dateFormat(D,Y));T=T.replace(O.find,k(Y,""))}),b?s(T,I,A):T}function c(T,I,A,R){T=+T||0,I=+I;const z=u.lang;var P=(T.toString().split(".")[1]||"").split("e")[0].length;const L=T.toString().split("e"),S=I;if(I===-1)I=Math.min(P,20);else if(!x(I))I=2;else if(I&&L[1]&&0>L[1]){var w=I+ +L[1];0<=w?(L[0]=(+L[0]).toExponential(w).split("e")[0],I=w):(L[0]=L[0].split(".")[0]||0,T=20>I?(L[0]*Math.pow(10,L[1])).toFixed(I):0,L[1]=0)}w=(Math.abs(L[1]?L[0]:T)+Math.pow(10,-Math.max(I,P)-1)).toFixed(I),P=String(M(w));const E=3<P.length?P.length%3:0;return A=k(A,z.decimalPoint),R=k(R,z.thousandsSep),T=(0>T?"-":"")+(E?P.substr(0,E)+R:""),T=0>+L[1]&&!S?"0":T+P.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+R),I&&(T+=A+w.slice(-I)),L[1]&&+T!=0&&(T+="e"+L[1]),T}const{defaultOptions:u,defaultTime:f}=n,{extend:p,getNestedProperty:d,isArray:v,isNumber:x,isObject:g,pick:k,pInt:M}=r,y={add:(T,I)=>T+I,divide:(T,I)=>I!==0?T/I:"",eq:(T,I)=>T==I,each:function(T){const I=arguments[arguments.length-1];return v(T)?T.map((A,R)=>s(I.body,p(g(A)?A:{"@this":A},{"@index":R,"@first":R===0,"@last":R===T.length-1}))).join(""):!1},ge:(T,I)=>T>=I,gt:(T,I)=>T>I,if:T=>!!T,le:(T,I)=>T<=I,lt:(T,I)=>T<I,multiply:(T,I)=>T*I,ne:(T,I)=>T!=I,subtract:(T,I)=>T-I,unless:T=>!T};return{dateFormat:function(T,I,A){return f.dateFormat(T,I,A)},format:s,helpers:y,numberFormat:c}}),o(i,"Core/Renderer/RendererUtilities.js",[i["Core/Utilities.js"]],function(n){const{clamp:r,pick:s,stableSort:c}=n;var u;return function(f){function p(d,v,x){const g=d;var k=g.reducedLen||v,M=(z,P)=>(P.rank||0)-(z.rank||0);const y=(z,P)=>z.target-P.target;let T,I=!0,A=[],R=0;for(T=d.length;T--;)R+=d[T].size;if(R>k){for(c(d,M),R=T=0;R<=k;)R+=d[T].size,T++;A=d.splice(T-1,d.length)}for(c(d,y),d=d.map(z=>({size:z.size,targets:[z.target],align:s(z.align,.5)}));I;){for(T=d.length;T--;)k=d[T],M=(Math.min.apply(0,k.targets)+Math.max.apply(0,k.targets))/2,k.pos=r(M-k.size*k.align,0,v-k.size);for(T=d.length,I=!1;T--;)0<T&&d[T-1].pos+d[T-1].size>d[T].pos&&(d[T-1].size+=d[T].size,d[T-1].targets=d[T-1].targets.concat(d[T].targets),d[T-1].align=.5,d[T-1].pos+d[T-1].size>v&&(d[T-1].pos=v-d[T-1].size),d.splice(T,1),I=!0)}return g.push.apply(g,A),T=0,d.some(z=>{let P=0;return(z.targets||[]).some(()=>(g[T].pos=z.pos+P,typeof x<"u"&&Math.abs(g[T].pos-g[T].target)>x?(g.slice(0,T+1).forEach(L=>delete L.pos),g.reducedLen=(g.reducedLen||v)-.1*v,g.reducedLen>.1*v&&p(g,v,x),!0):(P+=g[T].size,T++,!1)))}),c(g,y),g}f.distribute=p}(u||(u={})),u}),o(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r,s,c){const{animate:u,animObject:f,stop:p}=n,{deg2rad:d,doc:v,svg:x,SVG_NS:g,win:k}=s,{addEvent:M,attr:y,createElement:T,css:I,defined:A,erase:R,extend:z,fireEvent:P,isArray:L,isFunction:S,isObject:w,isString:E,merge:m,objectEach:C,pick:a,pInt:l,syncTimeout:h,uniqueKey:b}=c;class B{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g}_defaultGetter(O){return O=a(this[O+"Value"],this[O],this.element?this.element.getAttribute(O):null,0),/^[\-0-9\.]+$/.test(O)&&(O=parseFloat(O)),O}_defaultSetter(O,W,X){X.setAttribute(W,O)}add(O){const W=this.renderer,X=this.element;let Q;return O&&(this.parentGroup=O),typeof this.textStr<"u"&&this.element.nodeName==="text"&&W.buildText(this),this.added=!0,(!O||O.handleZ||this.zIndex)&&(Q=this.zIndexSetter()),Q||(O?O.element:W.box).appendChild(X),this.onAdd&&this.onAdd(),this}addClass(O,W){const X=W?"":this.attr("class")||"";return O=(O||"").split(/ /g).reduce(function(Q,ee){return X.indexOf(ee)===-1&&Q.push(ee),Q},X?[X]:[]).join(" "),O!==X&&this.attr("class",O),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(O,W,X){const Q={};var ee=this.renderer,Y=ee.alignedObjects,D;let N,V;O?(this.alignOptions=O,this.alignByTranslate=W,(!X||E(X))&&(this.alignTo=D=X||"renderer",R(Y,this),Y.push(this),X=void 0)):(O=this.alignOptions,W=this.alignByTranslate,D=this.alignTo),X=a(X,ee[D],D==="scrollablePlotBox"?ee.plotBox:void 0,ee),D=O.align;const j=O.verticalAlign;return ee=(X.x||0)+(O.x||0),Y=(X.y||0)+(O.y||0),D==="right"?N=1:D==="center"&&(N=2),N&&(ee+=(X.width-(O.width||0))/N),Q[W?"translateX":"x"]=Math.round(ee),j==="bottom"?V=1:j==="middle"&&(V=2),V&&(Y+=(X.height-(O.height||0))/V),Q[W?"translateY":"y"]=Math.round(Y),this[this.placed?"animate":"attr"](Q),this.placed=!0,this.alignAttr=Q,this}alignSetter(O){const W={left:"start",center:"middle",right:"end"};W[O]&&(this.alignValue=O,this.element.setAttribute("text-anchor",W[O]))}animate(O,W,X){const Q=f(a(W,this.renderer.globalAnimation,!0));return W=Q.defer,v.hidden&&(Q.duration=0),Q.duration!==0?(X&&(Q.complete=X),h(()=>{this.element&&u(this,O,Q)},W)):(this.attr(O,void 0,X||Q.complete),C(O,function(ee,Y){Q.step&&Q.step.call(this,ee,{prop:Y,pos:1,elem:this})},this)),this}applyTextOutline(O){const W=this.element;O.indexOf("contrast")!==-1&&(O=O.replace(/contrast/g,this.renderer.getContrast(W.style.fill)));var X=O.split(" ");if(O=X[X.length-1],(X=X[0])&&X!=="none"&&s.svg){this.fakeTS=!0,X=X.replace(/(^[\d\.]+)(.*?)$/g,function(Y,D,N){return 2*Number(D)+N}),this.removeTextOutline();const Q=v.createElementNS(g,"tspan");y(Q,{class:"highcharts-text-outline",fill:O,stroke:O,"stroke-width":X,"stroke-linejoin":"round"}),O=W.querySelector("textPath")||W,[].forEach.call(O.childNodes,Y=>{const D=Y.cloneNode(!0);D.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(N=>D.removeAttribute(N)),Q.appendChild(D)});let ee=0;[].forEach.call(O.querySelectorAll("text tspan"),Y=>{ee+=Number(Y.getAttribute("dy"))}),X=v.createElementNS(g,"tspan"),X.textContent="​",y(X,{x:Number(W.getAttribute("x")),dy:-ee}),Q.appendChild(X),O.insertBefore(Q,O.firstChild)}}attr(O,W,X,Q){const ee=this.element,Y=B.symbolCustomAttribs;let D,N,V=this,j,K;return typeof O=="string"&&typeof W<"u"&&(D=O,O={},O[D]=W),typeof O=="string"?V=(this[O+"Getter"]||this._defaultGetter).call(this,O,ee):(C(O,function(_,$){j=!1,Q||p(this,$),this.symbolName&&Y.indexOf($)!==-1&&(N||(this.symbolAttr(O),N=!0),j=!0),!this.rotation||$!=="x"&&$!=="y"||(this.doTransform=!0),j||(K=this[$+"Setter"]||this._defaultSetter,K.call(this,_,$,ee))},this),this.afterSetters()),X&&X.call(this),V}clip(O){return this.attr("clip-path",O?"url("+this.renderer.url+"#"+O.id+")":"none")}crisp(O,W){W=W||O.strokeWidth||0;const X=Math.round(W)%2/2;return O.x=Math.floor(O.x||this.x||0)+X,O.y=Math.floor(O.y||this.y||0)+X,O.width=Math.floor((O.width||this.width||0)-2*X),O.height=Math.floor((O.height||this.height||0)-2*X),A(O.strokeWidth)&&(O.strokeWidth=W),O}complexColor(O,W,X){const Q=this.renderer;let ee,Y,D,N,V,j,K,_,$,H,q=[],Z;P(this.renderer,"complexColor",{args:arguments},function(){if(O.radialGradient?Y="radialGradient":O.linearGradient&&(Y="linearGradient"),Y){if(D=O[Y],V=Q.gradients,j=O.stops,$=X.radialReference,L(D)&&(O[Y]=D={x1:D[0],y1:D[1],x2:D[2],y2:D[3],gradientUnits:"userSpaceOnUse"}),Y==="radialGradient"&&$&&!A(D.gradientUnits)&&(N=D,D=m(D,Q.getRadialAttr($,N),{gradientUnits:"userSpaceOnUse"})),C(D,function(J,te){te!=="id"&&q.push(te,J)}),C(j,function(J){q.push(J)}),q=q.join(","),V[q])H=V[q].attr("id");else{D.id=H=b();const J=V[q]=Q.createElement(Y).attr(D).add(Q.defs);J.radAttr=N,J.stops=[],j.forEach(function(te){te[1].indexOf("rgba")===0?(ee=r.parse(te[1]),K=ee.get("rgb"),_=ee.get("a")):(K=te[1],_=1),te=Q.createElement("stop").attr({offset:te[0],"stop-color":K,"stop-opacity":_}).add(J),J.stops.push(te)})}Z="url("+Q.url+"#"+H+")",X.setAttribute(W,Z),X.gradient=q,O.toString=function(){return Z}}})}css(O){const W=this.styles,X={},Q=this.element;let ee,Y=!W;if(W&&C(O,function(D,N){W&&W[N]!==D&&(X[N]=D,Y=!0)}),Y){W&&(O=z(W,X)),O.width===null||O.width==="auto"?delete this.textWidth:Q.nodeName.toLowerCase()==="text"&&O.width&&(ee=this.textWidth=l(O.width)),this.styles=O,ee&&!x&&this.renderer.forExport&&delete O.width;const D=m(O);Q.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(N=>D&&delete D[N]),D.color&&(D.fill=D.color)),I(Q,D)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),O.textOutline&&this.applyTextOutline(O.textOutline)),this}dashstyleSetter(O){let W=this["stroke-width"];if(W==="inherit"&&(W=1),O=O&&O.toLowerCase()){const X=O.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(O=X.length;O--;)X[O]=""+l(X[O])*a(W,NaN);O=X.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",O)}}destroy(){const O=this;var W=O.element||{};const X=O.renderer;var Q=W.ownerSVGElement;let ee=W.nodeName==="SPAN"&&O.parentGroup||void 0;if(W.onclick=W.onmouseout=W.onmouseover=W.onmousemove=W.point=null,p(O),O.clipPath&&Q){const Y=O.clipPath;[].forEach.call(Q.querySelectorAll("[clip-path],[CLIP-PATH]"),function(D){-1<D.getAttribute("clip-path").indexOf(Y.element.id)&&D.removeAttribute("clip-path")}),O.clipPath=Y.destroy()}if(O.stops){for(Q=0;Q<O.stops.length;Q++)O.stops[Q].destroy();O.stops.length=0,O.stops=void 0}for(O.safeRemoveChild(W);ee&&ee.div&&ee.div.childNodes.length===0;)W=ee.parentGroup,O.safeRemoveChild(ee.div),delete ee.div,ee=W;O.alignTo&&R(X.alignedObjects,O),C(O,function(Y,D){O[D]&&O[D].parentGroup===O&&O[D].destroy&&O[D].destroy(),delete O[D]})}dSetter(O,W,X){L(O)&&(typeof O[0]=="string"&&(O=this.renderer.pathToSegments(O)),this.pathArray=O,O=O.reduce((Q,ee,Y)=>ee&&ee.join?(Y?Q+" ":"")+ee.join(" "):(ee||"").toString(),"")),/(NaN| {2}|^$)/.test(O)&&(O="M 0 0"),this[W]!==O&&(X.setAttribute(W,O),this[W]=O)}fadeOut(O){const W=this;W.animate({opacity:0},{duration:a(O,150),complete:function(){W.hide()}})}fillSetter(O,W,X){typeof O=="string"?X.setAttribute(W,O):O&&this.complexColor(O,W,X)}getBBox(O,W){const{alignValue:X,element:Q,renderer:ee,styles:Y,textStr:D}=this,{cache:N,cacheKeys:V}=ee;var j=Q.namespaceURI===this.SVG_NS;W=a(W,this.rotation,0);var K=ee.styledMode?Q&&B.prototype.getStyle.call(Q,"font-size"):Y&&Y.fontSize;let _,$;if(A(D)&&($=D.toString(),$.indexOf("<")===-1&&($=$.replace(/[0-9]/g,"0")),$+=["",ee.rootFontSize,K,W,this.textWidth,X,Y&&Y.textOverflow,Y&&Y.fontWeight].join()),$&&!O&&(_=N[$]),!_){if(j||ee.forExport){try{var H=this.fakeTS&&function(se){const ce=Q.querySelector(".highcharts-text-outline");ce&&I(ce,{display:se})};S(H)&&H("none"),_=Q.getBBox?z({},Q.getBBox()):{width:Q.offsetWidth,height:Q.offsetHeight,x:0,y:0},S(H)&&H("")}catch{}(!_||0>_.width)&&(_={x:0,y:0,width:0,height:0})}else _=this.htmlGetBBox();if(H=_.width,O=_.height,j&&(_.height=O={"11px,17":14,"13px,20":16}[`${K||""},${Math.round(O)}`]||O),W){j=Number(Q.getAttribute("y")||0)-_.y,K={right:1,center:.5}[X||0]||0;var q=W*d,Z=(W-90)*d,J=H*Math.cos(q);W=H*Math.sin(q);var te=Math.cos(Z);q=Math.sin(Z),H=_.x+K*(H-J)+j*te,Z=H+J,te=Z-O*te,J=te-J,j=_.y+j-K*W+j*q,K=j+W,O=K-O*q,W=O-W,_.x=Math.min(H,Z,te,J),_.y=Math.min(j,K,O,W),_.width=Math.max(H,Z,te,J)-_.x,_.height=Math.max(j,K,O,W)-_.y}}if($&&(D===""||0<_.height)){for(;250<V.length;)delete N[V.shift()];N[$]||V.push($),N[$]=_}return _}getStyle(O){return k.getComputedStyle(this.element||this,"").getPropertyValue(O)}hasClass(O){return(""+this.attr("class")).split(" ").indexOf(O)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(O,W){this.element=W==="span"?T(W):v.createElementNS(this.SVG_NS,W),this.renderer=O,P(this,"afterInit")}on(O,W){const{onEvents:X}=this;return X[O]&&X[O](),X[O]=M(this.element,O,W),this}opacitySetter(O,W,X){this.opacity=O=Number(Number(O).toFixed(3)),X.setAttribute(W,O)}removeClass(O){return this.attr("class",(""+this.attr("class")).replace(E(O)?new RegExp(`(^| )${O}( |$)`):O," ").replace(/ +/g," ").trim())}removeTextOutline(){const O=this.element.querySelector("tspan.highcharts-text-outline");O&&this.safeRemoveChild(O)}safeRemoveChild(O){const W=O.parentNode;W&&W.removeChild(O)}setRadialReference(O){const W=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=O,W&&W.radAttr&&W.animate(this.renderer.getRadialAttr(O,W.radAttr)),this}setTextPath(O,W){W=m(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},W);const X=this.renderer.url,Q=this.text||this,ee=Q.textPath,{attributes:Y,enabled:D}=W;return O=O||ee&&ee.path,ee&&ee.undo(),O&&D?(W=M(Q,"afterModifyTree",N=>{if(O&&D){let j=O.attr("id");j||O.attr("id",j=b());var V={x:0,y:0};A(Y.dx)&&(V.dx=Y.dx,delete Y.dx),A(Y.dy)&&(V.dy=Y.dy,delete Y.dy),Q.attr(V),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),V=N.nodes.slice(0),N.nodes.length=0,N.nodes[0]={tagName:"textPath",attributes:z(Y,{"text-anchor":Y.textAnchor,href:`${X}#${j}`}),children:V}}}),Q.textPath={path:O,undo:W}):(Q.attr({dx:0,dy:0}),delete Q.textPath),this.added&&(Q.textCache="",this.renderer.buildText(Q)),this}shadow(O){var W;const{renderer:X}=this,Q=m(((W=this.parentGroup)===null||W===void 0?void 0:W.rotation)===90?{offsetX:-1,offsetY:-1}:{},w(O)?O:{});return W=X.shadowDefinition(Q),this.attr({filter:O?`url(${X.url}#${W})`:"none"})}show(O=!0){return this.attr({visibility:O?"inherit":"visible"})}"stroke-widthSetter"(O,W,X){this[W]=O,X.setAttribute(W,O)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const O=this.getStyle("stroke-width");let W=0,X;return O.indexOf("px")===O.length-2?W=l(O):O!==""&&(X=v.createElementNS(g,"rect"),y(X,{width:O,"stroke-width":0}),this.element.parentNode.appendChild(X),W=X.getBBox().width,X.parentNode.removeChild(X)),W}symbolAttr(O){const W=this;B.symbolCustomAttribs.forEach(function(X){W[X]=a(O[X],W[X])}),W.attr({d:W.renderer.symbols[W.symbolName](W.x,W.y,W.width,W.height,W)})}textSetter(O){O!==this.textStr&&(delete this.textPxLength,this.textStr=O,this.added&&this.renderer.buildText(this))}titleSetter(O){const W=this.element,X=W.getElementsByTagName("title")[0]||v.createElementNS(this.SVG_NS,"title");W.insertBefore?W.insertBefore(X,W.firstChild):W.appendChild(X),X.textContent=String(a(O,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){const O=this.element;return O.parentNode.appendChild(O),this}translate(O,W){return this.attr({translateX:O,translateY:W})}updateTransform(){const{element:O,matrix:W,rotation:X=0,scaleX:Q,scaleY:ee,translateX:Y=0,translateY:D=0}=this,N=["translate("+Y+","+D+")"];A(W)&&N.push("matrix("+W.join(",")+")"),X&&N.push("rotate("+X+" "+a(this.rotationOriginX,O.getAttribute("x"),0)+" "+a(this.rotationOriginY,O.getAttribute("y")||0)+")"),(A(Q)||A(ee))&&N.push("scale("+a(Q,1)+" "+a(ee,1)+")"),N.length&&!(this.text||this).textPath&&O.setAttribute("transform",N.join(" "))}visibilitySetter(O,W,X){O==="inherit"?X.removeAttribute(W):this[W]!==O&&X.setAttribute(W,O),this[W]=O}xGetter(O){return this.element.nodeName==="circle"&&(O==="x"?O="cx":O==="y"&&(O="cy")),this._defaultGetter(O)}zIndexSetter(O,W){var X=this.renderer,Q=this.parentGroup;const ee=(Q||X).element||X.box,Y=this.element;X=ee===X.box;let D=!1,N;var V=this.added;let j;if(A(O)?(Y.setAttribute("data-z-index",O),O=+O,this[W]===O&&(V=!1)):A(this[W])&&Y.removeAttribute("data-z-index"),this[W]=O,V){for((O=this.zIndex)&&Q&&(Q.handleZ=!0),W=ee.childNodes,j=W.length-1;0<=j&&!D;j--)Q=W[j],V=Q.getAttribute("data-z-index"),N=!A(V),Q!==Y&&(0>O&&N&&!X&&!j?(ee.insertBefore(Y,W[j]),D=!0):(l(V)<=O||N&&(!A(O)||0<=O))&&(ee.insertBefore(Y,W[j+1]),D=!0));D||(ee.insertBefore(Y,W[X?3:0]),D=!0)}return D}}return B.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),B.prototype.strokeSetter=B.prototype.fillSetter,B.prototype.yGetter=B.prototype.xGetter,B.prototype.matrixSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.rotationSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.translateXSetter=B.prototype.translateYSetter=B.prototype.verticalAlignSetter=function(F,O){this[O]=F,this.doTransform=!0},B}),o(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],function(n){var r;return function(s){s.rendererTypes={};let c;s.getRendererType=function(u=c){return s.rendererTypes[u]||s.rendererTypes[c]},s.registerRendererType=function(u,f,p){s.rendererTypes[u]=f,(!c||p)&&(c=u,n.Renderer=f)}}(r||(r={})),r}),o(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(n,r){const{defined:s,extend:c,isNumber:u,merge:f,pick:p,removeEvent:d}=r;class v extends n{constructor(g,k,M,y,T,I,A,R,z,P){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(g,"g"),this.textStr=k,this.x=M,this.y=y,this.anchorX=I,this.anchorY=A,this.baseline=z,this.className=P,this.addClass(P==="button"?"highcharts-no-tooltip":"highcharts-label"),P&&this.addClass("highcharts-"+P),this.text=g.text(void 0,0,0,R).attr({zIndex:1});let L;typeof T=="string"&&((L=/^url\((.*?)\)$/.test(T))||this.renderer.symbols[T])&&(this.symbolKey=T),this.bBox=v.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=g.styledMode||L,this.deferredAttr={},this.alignFactor=0}alignSetter(g){g={left:0,center:.5,right:1}[g],g!==this.alignFactor&&(this.alignFactor=g,this.bBox&&u(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(g,k){this.anchorX=g,this.boxAttr(k,Math.round(g)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(g,k){this.anchorY=g,this.boxAttr(k,g-this.ySetting)}boxAttr(g,k){this.box?this.box.attr(g,k):this.deferredAttr[g]=k}css(g){if(g){const k={};g=f(g),v.textProps.forEach(M=>{typeof g[M]<"u"&&(k[M]=g[M],delete g[M])}),this.text.css(k),"fontSize"in k||"fontWeight"in k?this.updateTextPadding():("width"in k||"textOverflow"in k)&&this.updateBoxSize()}return n.prototype.css.call(this,g)}destroy(){d(this.element,"mouseenter"),d(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),n.prototype.destroy.call(this)}fillSetter(g,k){g&&(this.needsBox=!0),this.fill=g,this.boxAttr(k,g)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const g=this.padding,k=p(this.paddingLeft,g);return{width:this.width,height:this.height,x:this.bBox.x-k,y:this.bBox.y-g}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(g){this.heightSetting=g}onAdd(){this.text.add(this),this.attr({text:p(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(g,k){u(g)?g!==this[k]&&(this[k]=g,this.updateTextPadding()):this[k]=void 0}rSetter(g,k){this.boxAttr(k,g)}strokeSetter(g,k){this.stroke=g,this.boxAttr(k,g)}"stroke-widthSetter"(g,k){g&&(this.needsBox=!0),this["stroke-width"]=g,this.boxAttr(k,g)}"text-alignSetter"(g){this.textAlign=g}textSetter(g){typeof g<"u"&&this.text.attr({text:g}),this.updateTextPadding()}updateBoxSize(){var g=this.text;const k={},M=this.padding,y=this.bBox=u(this.widthSetting)&&u(this.heightSetting)&&!this.textAlign||!s(g.textStr)?v.emptyBBox:g.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||y.height||0)+2*M;const T=this.renderer.fontMetrics(g);this.baselineOffset=M+Math.min((this.text.firstLineMetrics||T).b,y.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-T.h)/2),this.needsBox&&!g.textPath&&(this.box||(g=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),g.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),g.add(this)),g=this.getCrispAdjust(),k.x=g,k.y=(this.baseline?-this.baselineOffset:0)+g,k.width=Math.round(this.width),k.height=Math.round(this.height),this.box.attr(c(k,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const g=this.text;if(!g.textPath){this.updateBoxSize();const k=this.baseline?0:this.baselineOffset;let M=p(this.paddingLeft,this.padding);s(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(M+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(M!==g.x||k!==g.y)&&(g.attr("x",M),g.hasBoxWidthChanged&&(this.bBox=g.getBBox(!0)),typeof k<"u"&&g.attr("y",k)),g.x=M,g.y=k}}widthSetter(g){this.widthSetting=u(g)?g:void 0}getPaddedWidth(){var g=this.padding;const k=p(this.paddingLeft,g);return g=p(this.paddingRight,g),(this.widthSetting||this.bBox.width||0)+k+g}xSetter(g){this.x=g,this.alignFactor&&(g-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(g),this.attr("translateX",this.xSetting)}ySetter(g){this.ySetting=this.y=Math.round(g),this.attr("translateY",this.ySetting)}}return v.emptyBBox={width:0,height:0,x:0,y:0},v.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),v}),o(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],function(n){function r(d,v,x,g,k){const M=[];if(k){const y=k.start||0,T=p(k.r,x);x=p(k.r,g||x),g=(k.end||0)-.001;const I=k.innerR,A=p(k.open,.001>Math.abs((k.end||0)-y-2*Math.PI)),R=Math.cos(y),z=Math.sin(y),P=Math.cos(g),L=Math.sin(g),S=p(k.longArc,.001>g-y-Math.PI?0:1);let w=["A",T,x,0,S,p(k.clockwise,1),d+T*P,v+x*L];w.params={start:y,end:g,cx:d,cy:v},M.push(["M",d+T*R,v+x*z],w),u(I)&&(w=["A",I,I,0,S,u(k.clockwise)?1-k.clockwise:0,d+I*R,v+I*z],w.params={start:g,end:y,cx:d,cy:v},M.push(A?["M",d+I*P,v+I*L]:["L",d+I*P,v+I*L],w)),A||M.push(["Z"])}return M}function s(d,v,x,g,k){return k&&k.r?c(d,v,x,g,k):[["M",d,v],["L",d+x,v],["L",d+x,v+g],["L",d,v+g],["Z"]]}function c(d,v,x,g,k){return k=(k==null?void 0:k.r)||0,[["M",d+k,v],["L",d+x-k,v],["A",k,k,0,0,1,d+x,v+k],["L",d+x,v+g-k],["A",k,k,0,0,1,d+x-k,v+g],["L",d+k,v+g],["A",k,k,0,0,1,d,v+g-k],["L",d,v+k],["A",k,k,0,0,1,d+k,v],["Z"]]}const{defined:u,isNumber:f,pick:p}=n;return{arc:r,callout:function(d,v,x,g,k){const M=Math.min(k&&k.r||0,x,g),y=M+6,T=k&&k.anchorX;k=k&&k.anchorY||0;const I=c(d,v,x,g,{r:M});return f(T)&&(d+T>=x?k>v+y&&k<v+g-y?I.splice(3,1,["L",d+x,k-6],["L",d+x+6,k],["L",d+x,k+6],["L",d+x,v+g-M]):I.splice(3,1,["L",d+x,g/2],["L",T,k],["L",d+x,g/2],["L",d+x,v+g-M]):0>=d+T?k>v+y&&k<v+g-y?I.splice(7,1,["L",d,k+6],["L",d-6,k],["L",d,k-6],["L",d,v+M]):I.splice(7,1,["L",d,g/2],["L",T,k],["L",d,g/2],["L",d,v+M]):k&&k>g&&T>d+y&&T<d+x-y?I.splice(5,1,["L",T+6,v+g],["L",T,v+g+6],["L",T-6,v+g],["L",d+M,v+g]):k&&0>k&&T>d+y&&T<d+x-y&&I.splice(1,1,["L",T-6,v],["L",T,v-6],["L",T+6,v],["L",x-M,v])),I},circle:function(d,v,x,g){return r(d+x/2,v+g/2,x/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(d,v,x,g){return[["M",d+x/2,v],["L",d+x,v+g/2],["L",d+x/2,v+g],["L",d,v+g/2],["Z"]]},rect:s,roundedRect:c,square:s,triangle:function(d,v,x,g){return[["M",d+x/2,v],["L",d+x,v+g],["L",d,v+g],["Z"]]},"triangle-down":function(d,v,x,g){return[["M",d,v],["L",d+x,v],["L",d+x/2,v+g],["Z"]]}}}),o(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r,s){const{doc:c,SVG_NS:u,win:f}=r,{attr:p,extend:d,fireEvent:v,isString:x,objectEach:g,pick:k}=s;class M{constructor(T){const I=T.styles;this.renderer=T.renderer,this.svgElement=T,this.width=T.textWidth,this.textLineHeight=I&&I.lineHeight,this.textOutline=I&&I.textOutline,this.ellipsis=!(!I||I.textOverflow!=="ellipsis"),this.noWrap=!(!I||I.whiteSpace!=="nowrap")}buildSVG(){const T=this.svgElement,I=T.element;var A=T.renderer,R=k(T.textStr,"").toString();const z=R.indexOf("<")!==-1,P=I.childNodes;A=!T.added&&A.box;const L=/<br.*?>/g;var S=[R,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,T.getStyle("font-size"),this.width].join();if(S!==T.textCache){for(T.textCache=S,delete T.actualWidth,S=P.length;S--;)I.removeChild(P[S]);z||this.ellipsis||this.width||T.textPath||R.indexOf(" ")!==-1&&(!this.noWrap||L.test(R))?R!==""&&(A&&A.appendChild(I),R=new n(R),this.modifyTree(R.nodes),R.addToDOM(I),this.modifyDOM(),this.ellipsis&&(I.textContent||"").indexOf("…")!==-1&&T.attr("title",this.unescapeEntities(T.textStr||"",["&lt;","&gt;"])),A&&A.removeChild(I)):I.appendChild(c.createTextNode(this.unescapeEntities(R))),x(this.textOutline)&&T.applyTextOutline&&T.applyTextOutline(this.textOutline)}}modifyDOM(){const T=this.svgElement,I=p(T.element,"x");T.firstLineMetrics=void 0;let A;for(;(A=T.element.firstChild)&&/^[\s\u200B]*$/.test(A.textContent||" ");)T.element.removeChild(A);[].forEach.call(T.element.querySelectorAll("tspan.highcharts-br"),(L,S)=>{L.nextSibling&&L.previousSibling&&(S===0&&L.previousSibling.nodeType===1&&(T.firstLineMetrics=T.renderer.fontMetrics(L.previousSibling)),p(L,{dy:this.getLineHeight(L.nextSibling),x:I}))});const R=this.width||0;if(R){var z=(L,S)=>{var w=L.textContent||"";const E=w.replace(/([^\^])-/g,"$1- ").split(" ");var m=!this.noWrap&&(1<E.length||1<T.element.childNodes.length);const C=this.getLineHeight(S);let a=0,l=T.actualWidth;if(this.ellipsis)w&&this.truncate(L,w,void 0,0,Math.max(0,R-.8*C),(h,b)=>h.substring(0,b)+"…");else if(m){for(w=[],m=[];S.firstChild&&S.firstChild!==L;)m.push(S.firstChild),S.removeChild(S.firstChild);for(;E.length;)E.length&&!this.noWrap&&0<a&&(w.push(L.textContent||""),L.textContent=E.join(" ").replace(/- /g,"-")),this.truncate(L,void 0,E,a===0&&l||0,R,(h,b)=>E.slice(0,b).join(" ").replace(/- /g,"-")),l=T.actualWidth,a++;m.forEach(h=>{S.insertBefore(h,L)}),w.forEach(h=>{S.insertBefore(c.createTextNode(h),L),h=c.createElementNS(u,"tspan"),h.textContent="​",p(h,{dy:C,x:I}),S.insertBefore(h,L)})}},P=L=>{[].slice.call(L.childNodes).forEach(S=>{S.nodeType===f.Node.TEXT_NODE?z(S,L):(S.className.baseVal.indexOf("highcharts-br")!==-1&&(T.actualWidth=0),P(S))})};P(T.element)}}getLineHeight(T){return T=T.nodeType===f.Node.TEXT_NODE?T.parentElement:T,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(T||this.svgElement.element).h}modifyTree(T){const I=(A,R)=>{const{attributes:z={},children:P,style:L={},tagName:S}=A,w=this.renderer.styledMode;S==="b"||S==="strong"?w?z.class="highcharts-strong":L.fontWeight="bold":(S==="i"||S==="em")&&(w?z.class="highcharts-emphasized":L.fontStyle="italic"),L&&L.color&&(L.fill=L.color),S==="br"?(z.class="highcharts-br",A.textContent="​",(R=T[R+1])&&R.textContent&&(R.textContent=R.textContent.replace(/^ +/gm,""))):S==="a"&&P&&P.some(E=>E.tagName==="#text")&&(A.children=[{children:P,tagName:"tspan"}]),S!=="#text"&&S!=="a"&&(A.tagName="tspan"),d(A,{attributes:z,style:L}),P&&P.filter(E=>E.tagName!=="#text").forEach(I)};T.forEach(I),v(this.svgElement,"afterModifyTree",{nodes:T})}truncate(T,I,A,R,z,P){const L=this.svgElement,{rotation:S}=L,w=[];let E=A?1:0,m=(I||A||"").length,C=m,a,l;const h=function(b,B){if(b=B||b,(B=T.parentNode)&&typeof w[b]>"u"&&B.getSubStringLength)try{w[b]=R+B.getSubStringLength(0,A?b+1:b)}catch{}return w[b]};if(L.rotation=0,l=h(T.textContent.length),R+l>z){for(;E<=m;)C=Math.ceil((E+m)/2),A&&(a=P(A,C)),l=h(C,a&&a.length-1),E===m?E=m+1:l>z?m=C-1:E=C;m===0?T.textContent="":I&&m===I.length-1||(T.textContent=a||P(I||A,C))}A&&A.splice(0,C),L.actualWidth=l,L.rotation=S}unescapeEntities(T,I){return g(this.renderer.escapes,function(A,R){I&&I.indexOf(A)!==-1||(T=T.toString().replace(new RegExp(A,"g"),R))}),T}}return M}),o(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f,p,d,v){const{charts:x,deg2rad:g,doc:k,isFirefox:M,isMS:y,isWebKit:T,noop:I,SVG_NS:A,symbolSizes:R,win:z}=s,{addEvent:P,attr:L,createElement:S,css:w,defined:E,destroyObjectProperties:m,extend:C,isArray:a,isNumber:l,isObject:h,isString:b,merge:B,pick:F,pInt:O,uniqueKey:W}=v;let X;class Q{constructor(Y,D,N,V,j,K,_){this.width=this.url=this.style=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(Y,D,N,V,j,K,_)}init(Y,D,N,V,j,K,_){const $=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),H=$.element;_||$.css(this.getStyle(V)),Y.appendChild(H),L(Y,"dir","ltr"),Y.innerHTML.indexOf("xmlns")===-1&&L(H,"xmlns",this.SVG_NS),this.box=H,this.boxWrapper=$,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=K,this.forExport=j,this.styledMode=_,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=$.getStyle("font-size"),this.setSize(D,N,!1);let q;M&&Y.getBoundingClientRect&&(D=function(){w(Y,{left:0,top:0}),q=Y.getBoundingClientRect(),w(Y,{left:Math.ceil(q.left)-q.left+"px",top:Math.ceil(q.top)-q.top+"px"})},D(),this.unSubPixelFix=P(z,"resize",D))}definition(Y){return new n([Y]).addToDOM(this.defs.element)}getReferenceURL(){if((M||T)&&k.getElementsByTagName("base").length){if(!E(X)){var Y=W();Y=new n([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:Y},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${Y})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(k.body),w(Y,{position:"fixed",top:0,left:0,zIndex:9e5});const D=k.elementFromPoint(6,6);X=(D&&D.id)==="hitme",k.body.removeChild(Y)}if(X)return z.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(Y){return this.style=C({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},Y)}setStyle(Y){this.boxWrapper.css(this.getStyle(Y))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const Y=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),m(this.gradients||{}),this.gradients=null,this.defs=Y.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(Y){const D=new this.Element;return D.init(this,Y),D}getRadialAttr(Y,D){return{cx:Y[0]-Y[2]/2+(D.cx||0)*Y[2],cy:Y[1]-Y[2]/2+(D.cy||0)*Y[2],r:(D.r||0)*Y[2]}}shadowDefinition(Y){const D=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(Y).map(V=>Y[V])].join("-").replace(/[^a-z0-9\-]/g,""),N=B({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},Y);return this.defs.element.querySelector(`#${D}`)||this.definition({tagName:"filter",attributes:{id:D},children:[{tagName:"feDropShadow",attributes:{dx:N.offsetX,dy:N.offsetY,"flood-color":N.color,"flood-opacity":Math.min(5*N.opacity,1),stdDeviation:N.width/2}}]}),D}buildText(Y){new d(Y).buildSVG()}getContrast(Y){return Y=r.parse(Y).rgba.map(D=>(D/=255,.03928>=D?D/12.92:Math.pow((D+.055)/1.055,2.4))),Y=.2126*Y[0]+.7152*Y[1]+.0722*Y[2],1.05/(Y+.05)>(Y+.05)/.05?"#FFFFFF":"#000000"}button(Y,D,N,V,j={},K,_,$,H,q){const Z=this.label(Y,D,N,H,void 0,void 0,q,void 0,"button"),J=this.styledMode;Y=j.states||{};let te=0;j=B(j),delete j.states;const se=B({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},j.style);delete j.style;let ce=n.filterUserAttributes(j);Z.attr(B({padding:8,r:2},ce));let ne,oe,U;return J||(ce=B({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},ce),K=B(ce,{fill:"#e6e6e6"},n.filterUserAttributes(K||Y.hover||{})),ne=K.style,delete K.style,_=B(ce,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},n.filterUserAttributes(_||Y.select||{})),oe=_.style,delete _.style,$=B(ce,{style:{color:"#cccccc"}},n.filterUserAttributes($||Y.disabled||{})),U=$.style,delete $.style),P(Z.element,y?"mouseover":"mouseenter",function(){te!==3&&Z.setState(1)}),P(Z.element,y?"mouseout":"mouseleave",function(){te!==3&&Z.setState(te)}),Z.setState=function(G){G!==1&&(Z.state=te=G),Z.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][G||0]),J||(Z.attr([ce,K,_,$][G||0]),G=[se,ne,oe,U][G||0],h(G)&&Z.css(G))},J||(Z.attr(ce).css(C({cursor:"default"},se)),q&&Z.text.css({pointerEvents:"none"})),Z.on("touchstart",G=>G.stopPropagation()).on("click",function(G){te!==3&&V.call(Z,G)})}crispLine(Y,D,N="round"){const V=Y[0],j=Y[1];return E(V[1])&&V[1]===j[1]&&(V[1]=j[1]=Math[N](V[1])-D%2/2),E(V[2])&&V[2]===j[2]&&(V[2]=j[2]=Math[N](V[2])+D%2/2),Y}path(Y){const D=this.styledMode?{}:{fill:"none"};return a(Y)?D.d=Y:h(Y)&&C(D,Y),this.createElement("path").attr(D)}circle(Y,D,N){return Y=h(Y)?Y:typeof Y>"u"?{}:{x:Y,y:D,r:N},D=this.createElement("circle"),D.xSetter=D.ySetter=function(V,j,K){K.setAttribute("c"+j,V)},D.attr(Y)}arc(Y,D,N,V,j,K){return h(Y)?(V=Y,D=V.y,N=V.r,Y=V.x):V={innerR:V,start:j,end:K},Y=this.symbol("arc",Y,D,N,N,V),Y.r=N,Y}rect(Y,D,N,V,j,K){Y=h(Y)?Y:typeof Y>"u"?{}:{x:Y,y:D,r:j,width:Math.max(N||0,0),height:Math.max(V||0,0)};const _=this.createElement("rect");return this.styledMode||(typeof K<"u"&&(Y["stroke-width"]=K,C(Y,_.crisp(Y))),Y.fill="none"),_.rSetter=function($,H,q){_.r=$,L(q,{rx:$,ry:$})},_.rGetter=function(){return _.r||0},_.attr(Y)}roundedRect(Y){return this.symbol("roundedRect").attr(Y)}setSize(Y,D,N){this.width=Y,this.height=D,this.boxWrapper.animate({width:Y,height:D},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:F(N,!0)?void 0:0}),this.alignElements()}g(Y){const D=this.createElement("g");return Y?D.attr({class:"highcharts-"+Y}):D}image(Y,D,N,V,j,K){const _={preserveAspectRatio:"none"};l(D)&&(_.x=D),l(N)&&(_.y=N),l(V)&&(_.width=V),l(j)&&(_.height=j);const $=this.createElement("image").attr(_);return D=function(H){$.attr({href:Y}),K.call($,H)},K?($.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),N=new z.Image,P(N,"load",D),N.src=Y,N.complete&&D({})):$.attr({href:Y}),$}symbol(Y,D,N,V,j,K){const _=this,$=/^url\((.*?)\)$/,H=$.test(Y),q=!H&&(this.symbols[Y]?Y:"circle"),Z=q&&this.symbols[q];let J,te,se,ce;if(Z)typeof D=="number"&&(te=Z.call(this.symbols,Math.round(D||0),Math.round(N||0),V||0,j||0,K)),J=this.path(te),_.styledMode||J.attr("fill","none"),C(J,{symbolName:q||void 0,x:D,y:N,width:V,height:j}),K&&C(J,K);else if(H){se=Y.match($)[1];const ne=J=this.image(se);ne.imgwidth=F(K&&K.width,R[se]&&R[se].width),ne.imgheight=F(K&&K.height,R[se]&&R[se].height),ce=oe=>oe.attr({width:oe.width,height:oe.height}),["width","height"].forEach(function(oe){ne[oe+"Setter"]=function(U,G){this[G]=U;const{alignByTranslate:re,element:ie,width:ae,height:ue,imgwidth:he,imgheight:me}=this;if(U=this["img"+G],E(U)){let ve=1;K&&K.backgroundSize==="within"&&ae&&ue?(ve=Math.min(ae/he,ue/me),L(ie,{width:Math.round(he*ve),height:Math.round(me*ve)})):ie&&ie.setAttribute(G,U),re||this.translate(((ae||0)-he*ve)/2,((ue||0)-me*ve)/2)}}}),E(D)&&ne.attr({x:D,y:N}),ne.isImg=!0,E(ne.imgwidth)&&E(ne.imgheight)?ce(ne):(ne.attr({width:0,height:0}),S("img",{onload:function(){const oe=x[_.chartIndex];this.width===0&&(w(this,{position:"absolute",top:"-999em"}),k.body.appendChild(this)),R[se]={width:this.width,height:this.height},ne.imgwidth=this.width,ne.imgheight=this.height,ne.element&&ce(ne),this.parentNode&&this.parentNode.removeChild(this),_.imgCount--,!_.imgCount&&oe&&!oe.hasLoaded&&oe.onload()},src:se}),this.imgCount++)}return J}clipRect(Y,D,N,V){const j=W()+"-",K=this.createElement("clipPath").attr({id:j}).add(this.defs);return Y=this.rect(Y,D,N,V,0).add(K),Y.id=j,Y.clipPath=K,Y.count=0,Y}text(Y,D,N,V){const j={};return V&&(this.allowHTML||!this.forExport)?this.html(Y,D,N):(j.x=Math.round(D||0),N&&(j.y=Math.round(N)),E(Y)&&(j.text=Y),Y=this.createElement("text").attr(j),(!V||this.forExport&&!this.allowHTML)&&(Y.xSetter=function(K,_,$){const H=$.getElementsByTagName("tspan"),q=$.getAttribute(_);for(let Z=0,J;Z<H.length;Z++)J=H[Z],J.getAttribute(_)===q&&J.setAttribute(_,K);$.setAttribute(_,K)}),Y)}fontMetrics(Y){Y=O(u.prototype.getStyle.call(Y,"font-size")||0);const D=24>Y?Y+3:Math.round(1.2*Y);return{h:D,b:Math.round(.8*D),f:Y}}rotCorr(Y,D,N){let V=Y;return D&&N&&(V=Math.max(V*Math.cos(D*g),4)),{x:-Y/3*Math.sin(D*g),y:V}}pathToSegments(Y){const D=[],N=[],V={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let j=0;j<Y.length;j++)b(N[0])&&l(Y[j])&&N.length===V[N[0].toUpperCase()]&&Y.splice(j,0,N[0].replace("M","L").replace("m","l")),typeof Y[j]=="string"&&(N.length&&D.push(N.slice(0)),N.length=0),N.push(Y[j]);return D.push(N.slice(0)),D}label(Y,D,N,V,j,K,_,$,H){return new f(this,Y,D,N,V,j,K,_,$,H)}alignElements(){this.alignedObjects.forEach(Y=>Y.align())}}return C(Q.prototype,{Element:u,SVG_NS:A,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:p,draw:I}),c.registerRendererType("svg",Q,!0),Q}),o(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(n,r,s){const{isFirefox:c,isMS:u,isWebKit:f,win:p}=n,{css:d,defined:v,extend:x,pick:g,pInt:k}=s,M=[];class y extends r{static compose(I){if(s.pushUnique(M,I)){const A=y.prototype,R=I.prototype;R.getSpanCorrection=A.getSpanCorrection,R.htmlCss=A.htmlCss,R.htmlGetBBox=A.htmlGetBBox,R.htmlUpdateTransform=A.htmlUpdateTransform,R.setSpanRotation=A.setSpanRotation}return I}getSpanCorrection(I,A,R){this.xCorr=-I*R,this.yCorr=-A}htmlCss(I){const A=this.element.tagName==="SPAN"&&I&&"width"in I,R=g(A&&I.width,void 0);let z;return A&&(delete I.width,this.textWidth=R,z=!0),I&&I.textOverflow==="ellipsis"&&(I.whiteSpace="nowrap",I.overflow="hidden"),this.styles=x(this.styles,I),d(this.element,I),z&&this.htmlUpdateTransform(),this}htmlGetBBox(){const I=this.element;return{x:I.offsetLeft,y:I.offsetTop,width:I.offsetWidth,height:I.offsetHeight}}htmlUpdateTransform(){if(this.added){var I=this.renderer,A=this.element,R=this.x||0,z=this.y||0,P=this.textAlign||"left",L={left:0,center:.5,right:1}[P],S=this.styles,w=S&&S.whiteSpace;if(d(A,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),A.tagName==="SPAN"){S=this.rotation;const m=this.textWidth&&k(this.textWidth),C=[S,P,A.innerHTML,this.textWidth,this.textAlign].join();let a=!1;if(m!==this.oldTextWidth){if(this.textPxLength)var E=this.textPxLength;else d(A,{width:"",whiteSpace:w||"nowrap"}),E=A.offsetWidth;(m>this.oldTextWidth||E>m)&&(/[ \-]/.test(A.textContent||A.innerText)||A.style.textOverflow==="ellipsis")&&(d(A,{width:E>m||S?m+"px":"auto",display:"block",whiteSpace:w||"normal"}),this.oldTextWidth=m,a=!0)}this.hasBoxWidthChanged=a,C!==this.cTT&&(I=I.fontMetrics(A).b,!v(S)||S===(this.oldRotation||0)&&P===this.oldAlign||this.setSpanRotation(S,L,I),this.getSpanCorrection(!v(S)&&this.textPxLength||A.offsetWidth,I,L,S,P)),d(A,{left:R+(this.xCorr||0)+"px",top:z+(this.yCorr||0)+"px"}),this.cTT=C,this.oldRotation=S,this.oldAlign=P}}else this.alignOnAdd=!0}setSpanRotation(I,A,R){const z={},P=u&&!/Edge/.test(p.navigator.userAgent)?"-ms-transform":f?"-webkit-transform":c?"MozTransform":p.opera?"-o-transform":void 0;P&&(z[P]=z.transform="rotate("+I+"deg)",z[P+(c?"Origin":"-origin")]=z.transformOrigin=100*A+"% "+R+"px",d(this.element,z))}}return y}),o(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(n,r,s,c){const{attr:u,createElement:f,extend:p,pick:d}=c,v=[];class x extends s{static compose(k){return c.pushUnique(v,k)&&(k.prototype.html=x.prototype.html),k}html(k,M,y){const T=this.createElement("span"),I=T.element,A=T.renderer,R=function(z,P){["opacity","visibility"].forEach(function(L){z[L+"Setter"]=function(S,w,E){const m=z.div?z.div.style:P;r.prototype[L+"Setter"].call(this,S,w,E),m&&(m[w]=S)}}),z.addedSetters=!0};return T.textSetter=function(z){z!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,n.setElementHTML(this.element,d(z,"")),this.textStr=z,T.doTransform=!0)},R(T,T.element.style),T.xSetter=T.ySetter=T.alignSetter=T.rotationSetter=function(z,P){P==="align"?T.alignValue=T.textAlign=z:T[P]=z,T.doTransform=!0},T.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},T.attr({text:k,x:Math.round(M),y:Math.round(y)}).css({position:"absolute"}),A.styledMode||T.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),I.style.whiteSpace="nowrap",T.css=T.htmlCss,T.add=function(z){const P=A.box.parentNode,L=[];let S;if(this.parentGroup=z){if(S=z.div,!S){for(;z;)L.push(z),z=z.parentGroup;L.reverse().forEach(function(w){function E(l,h){w[h]=l,h==="translateX"?a.left=l+"px":a.top=l+"px",w.doTransform=!0}const m=u(w.element,"class"),C=w.styles||{};S=w.div=w.div||f("div",m?{className:m}:void 0,{position:"absolute",left:(w.translateX||0)+"px",top:(w.translateY||0)+"px",display:w.display,opacity:w.opacity,visibility:w.visibility},S||P);const a=S.style;p(w,{classSetter:function(l){return function(h){this.element.setAttribute("class",h),l.className=h}}(S),css:function(l){return T.css.call(w,l),["cursor","pointerEvents"].forEach(h=>{l[h]&&(a[h]=l[h])}),w},on:function(){return L[0].div&&T.on.apply({element:L[0].div,onEvents:w.onEvents},arguments),w},translateXSetter:E,translateYSetter:E}),w.addedSetters||R(w),w.css(C)})}}else S=P;return S.appendChild(I),T.added=!0,T.alignOnAdd&&T.htmlUpdateTransform(),T},T}}return x}),o(i,"Core/Axis/AxisDefaults.js",[],function(){var n;return function(r){r.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},r.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:s}=this.axis.chart;return s(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},r.defaultLeftAxisOptions={title:{rotation:270}},r.defaultRightAxisOptions={title:{rotation:90}},r.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},r.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(n||(n={})),n}),o(i,"Core/Foundation.js",[i["Core/Utilities.js"]],function(n){const{addEvent:r,isFunction:s,objectEach:c,removeEvent:u}=n;var f;return function(p){p.registerEventOptions=function(d,v){d.eventOptions=d.eventOptions||{},c(v.events,function(x,g){d.eventOptions[g]!==x&&(d.eventOptions[g]&&(u(d,g,d.eventOptions[g]),delete d.eventOptions[g]),s(x)&&(d.eventOptions[g]=x,r(d,g,x,{order:0})))})}}(f||(f={})),f}),o(i,"Core/Axis/Tick.js",[i["Core/Templating.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r,s){const{deg2rad:c}=r,{clamp:u,correctFloat:f,defined:p,destroyObjectProperties:d,extend:v,fireEvent:x,isNumber:g,merge:k,objectEach:M,pick:y}=s;class T{constructor(A,R,z,P,L){this.isNewLabel=this.isNew=!0,this.axis=A,this.pos=R,this.type=z||"",this.parameters=L||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,x(this,"init"),z||P||this.addLabel()}addLabel(){const A=this,R=A.axis;var z=R.options;const P=R.chart;var L=R.categories;const S=R.logarithmic,w=R.names,E=A.pos,m=y(A.options&&A.options.labels,z.labels);var C=R.tickPositions;const a=E===C[0],l=E===C[C.length-1],h=(!m.step||m.step===1)&&R.tickInterval===1;C=C.info;let b=A.label,B,F,O;L=this.parameters.category||(L?y(L[E],w[E],E):E),S&&g(L)&&(L=f(S.lin2log(L))),R.dateTime&&(C?(F=P.time.resolveDTLFormat(z.dateTimeLabelFormats[!z.grid&&C.higherRanks[E]||C.unitName]),B=F.main):g(L)&&(B=R.dateTime.getXDateFormat(L,z.dateTimeLabelFormats||{}))),A.isFirst=a,A.isLast=l;const W={axis:R,chart:P,dateTimeLabelFormat:B,isFirst:a,isLast:l,pos:E,tick:A,tickPositionInfo:C,value:L};x(this,"labelFormat",W);const X=ee=>m.formatter?m.formatter.call(ee,ee):m.format?(ee.text=R.defaultLabelFormatter.call(ee,ee),n.format(m.format,ee,P)):R.defaultLabelFormatter.call(ee,ee);z=X.call(W,W);const Q=F&&F.list;A.shortenLabel=Q?function(){for(O=0;O<Q.length;O++)if(v(W,{dateTimeLabelFormat:Q[O]}),b.attr({text:X.call(W,W)}),b.getBBox().width<R.getSlotWidth(A)-2*m.padding)return;b.attr({text:""})}:void 0,h&&R._addedPlotLB&&A.moveLabel(z,m),p(b)||A.movedLabel?b&&b.textStr!==z&&!h&&(!b.textWidth||m.style.width||b.styles.width||b.css({width:null}),b.attr({text:z}),b.textPxLength=b.getBBox().width):(A.label=b=A.createLabel({x:0,y:0},z,m),A.rotation=0)}createLabel(A,R,z){const P=this.axis,L=P.chart;return(A=p(R)&&z.enabled?L.renderer.text(R,A.x,A.y,z.useHTML).add(P.labelGroup):null)&&(L.styledMode||A.css(k(z.style)),A.textPxLength=A.getBBox().width),A}destroy(){d(this,this.axis)}getPosition(A,R,z,P){const L=this.axis,S=L.chart,w=P&&S.oldChartHeight||S.chartHeight;return A={x:A?f(L.translate(R+z,void 0,void 0,P)+L.transB):L.left+L.offset+(L.opposite?(P&&S.oldChartWidth||S.chartWidth)-L.right-L.left:0),y:A?w-L.bottom+L.offset-(L.opposite?L.height:0):f(w-L.translate(R+z,void 0,void 0,P)-L.transB)},A.y=u(A.y,-1e5,1e5),x(this,"afterGetPosition",{pos:A}),A}getLabelPosition(A,R,z,P,L,S,w,E){const m=this.axis,C=m.transA,a=m.isLinked&&m.linkedParent?m.linkedParent.reversed:m.reversed,l=m.staggerLines,h=m.tickRotCorr||{x:0,y:0},b=P||m.reserveSpaceDefault?0:-m.labelOffset*(m.labelAlign==="center"?.5:1),B=L.distance,F={};return z=m.side===0?z.rotation?-B:-z.getBBox().height:m.side===2?h.y+B:Math.cos(z.rotation*c)*(h.y-z.getBBox(!1,0).height/2),p(L.y)&&(z=m.side===0&&m.horiz?L.y+z:L.y),A=A+y(L.x,[0,1,0,-1][m.side]*B)+b+h.x-(S&&P?S*C*(a?-1:1):0),R=R+z-(S&&!P?S*C*(a?1:-1):0),l&&(P=w/(E||1)%l,m.opposite&&(P=l-P-1),R+=m.labelOffset/l*P),F.x=A,F.y=Math.round(R),x(this,"afterGetLabelPosition",{pos:F,tickmarkOffset:S,index:w}),F}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(A,R,z,P,L,S){return S.crispLine([["M",A,R],["L",A+(L?0:-z),R+(L?z:0)]],P)}handleOverflow(A){const R=this.axis,z=R.options.labels,P=A.x;var L=R.chart.chartWidth,S=R.chart.spacing;const w=y(R.labelLeft,Math.min(R.pos,S[3]));S=y(R.labelRight,Math.max(R.isRadial?0:R.pos+R.len,L-S[1]));const E=this.label,m=this.rotation,C={left:0,center:.5,right:1}[R.labelAlign||E.attr("align")],a=E.getBBox().width,l=R.getSlotWidth(this),h={};let b=l,B=1,F;m||z.overflow!=="justify"?0>m&&P-C*a<w?F=Math.round(P/Math.cos(m*c)-w):0<m&&P+C*a>S&&(F=Math.round((L-P)/Math.cos(m*c))):(L=P+(1-C)*a,P-C*a<w?b=A.x+b*(1-C)-w:L>S&&(b=S-A.x+b*C,B=-1),b=Math.min(l,b),b<l&&R.labelAlign==="center"&&(A.x+=B*(l-b-C*(l-Math.min(a,b)))),(a>b||R.autoRotation&&(E.styles||{}).width)&&(F=b)),F&&(this.shortenLabel?this.shortenLabel():(h.width=Math.floor(F)+"px",(z.style||{}).textOverflow||(h.textOverflow="ellipsis"),E.css(h)))}moveLabel(A,R){const z=this;var P=z.label;const L=z.axis;let S=!1;P&&P.textStr===A?(z.movedLabel=P,S=!0,delete z.label):M(L.ticks,function(w){S||w.isNew||w===z||!w.label||w.label.textStr!==A||(z.movedLabel=w.label,S=!0,w.labelPos=z.movedLabel.xy,delete w.label)}),S||!z.labelPos&&!P||(P=z.labelPos||P.xy,z.movedLabel=z.createLabel(P,A,R),z.movedLabel&&z.movedLabel.attr({opacity:0}))}render(A,R,z){var P=this.axis,L=P.horiz,S=this.pos,w=y(this.tickmarkOffset,P.tickmarkOffset);S=this.getPosition(L,S,w,R),w=S.x;const E=S.y;P=L&&w===P.pos+P.len||!L&&E===P.pos?-1:1,L=y(z,this.label&&this.label.newOpacity,1),z=y(z,1),this.isActive=!0,this.renderGridLine(R,z,P),this.renderMark(S,z,P),this.renderLabel(S,R,L,A),this.isNew=!1,x(this,"afterRender")}renderGridLine(A,R,z){const P=this.axis,L=P.options,S={},w=this.pos,E=this.type,m=y(this.tickmarkOffset,P.tickmarkOffset),C=P.chart.renderer;let a=this.gridLine,l=L.gridLineWidth,h=L.gridLineColor,b=L.gridLineDashStyle;this.type==="minor"&&(l=L.minorGridLineWidth,h=L.minorGridLineColor,b=L.minorGridLineDashStyle),a||(P.chart.styledMode||(S.stroke=h,S["stroke-width"]=l||0,S.dashstyle=b),E||(S.zIndex=1),A&&(R=0),this.gridLine=a=C.path().attr(S).addClass("highcharts-"+(E?E+"-":"")+"grid-line").add(P.gridGroup)),a&&(z=P.getPlotLinePath({value:w+m,lineWidth:a.strokeWidth()*z,force:"pass",old:A,acrossPanes:!1}))&&a[A||this.isNew?"attr":"animate"]({d:z,opacity:R})}renderMark(A,R,z){const P=this.axis;var L=P.options;const S=P.chart.renderer,w=this.type,E=P.tickSize(w?w+"Tick":"tick"),m=A.x;A=A.y;const C=y(L[w!=="minor"?"tickWidth":"minorTickWidth"],!w&&P.isXAxis?1:0);L=L[w!=="minor"?"tickColor":"minorTickColor"];let a=this.mark;const l=!a;E&&(P.opposite&&(E[0]=-E[0]),a||(this.mark=a=S.path().addClass("highcharts-"+(w?w+"-":"")+"tick").add(P.axisGroup),P.chart.styledMode||a.attr({stroke:L,"stroke-width":C})),a[l?"attr":"animate"]({d:this.getMarkPath(m,A,E[0],a.strokeWidth()*z,P.horiz,S),opacity:R}))}renderLabel(A,R,z,P){var L=this.axis;const S=L.horiz,w=L.options,E=this.label,m=w.labels,C=m.step;L=y(this.tickmarkOffset,L.tickmarkOffset);const a=A.x;A=A.y;let l=!0;E&&g(a)&&(E.xy=A=this.getLabelPosition(a,A,E,S,m,L,P,C),this.isFirst&&!this.isLast&&!w.showFirstLabel||this.isLast&&!this.isFirst&&!w.showLastLabel?l=!1:!S||m.step||m.rotation||R||z===0||this.handleOverflow(A),C&&P%C&&(l=!1),l&&g(A.y)?(A.opacity=z,E[this.isNewLabel?"attr":"animate"](A).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const A=this.label,R=this.axis;A&&!this.isNew&&(A.animate({opacity:0},void 0,A.destroy),delete this.label),R.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return T}),o(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f,p,d){const{animObject:v}=n,{defaultOptions:x}=c,{registerEventOptions:g}=u,{deg2rad:k}=f,{arrayMax:M,arrayMin:y,clamp:T,correctFloat:I,defined:A,destroyObjectProperties:R,erase:z,error:P,extend:L,fireEvent:S,getClosestDistance:w,insertItem:E,isArray:m,isNumber:C,isString:a,merge:l,normalizeTickInterval:h,objectEach:b,pick:B,relativeLength:F,removeEvent:O,splat:W,syncTimeout:X}=d,Q=(Y,D)=>h(D,void 0,void 0,B(Y.options.allowDecimals,.5>D||Y.tickAmount!==void 0),!!Y.tickAmount);class ee{constructor(D,N,V){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(D,N,V)}init(D,N,V=this.coll){const j=V==="xAxis";this.chart=D,this.horiz=this.isZAxis||(D.inverted?!j:j),this.isXAxis=j,this.coll=V,S(this,"init",{userOptions:N}),this.opposite=B(N.opposite,this.opposite),this.side=B(N.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(N),V=this.options;const K=V.labels,_=V.type;this.userOptions=N,this.minPixelPadding=0,this.reversed=B(V.reversed,this.reversed),this.visible=V.visible,this.zoomEnabled=V.zoomEnabled,this.hasNames=_==="category"||V.categories===!0,this.categories=V.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=A(V.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=V.minRange||V.maxZoom,this.range=V.range,this.offset=V.offset||0,this.min=this.max=null,N=B(V.crosshair,W(D.options.tooltip.crosshairs)[j?0:1]),this.crosshair=N===!0?{}:N,D.axes.indexOf(this)===-1&&(j?D.axes.splice(D.xAxis.length,0,this):D.axes.push(this),E(this,D[this.coll])),D.orderItems(this.coll),this.series=this.series||[],D.inverted&&!this.isZAxis&&j&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=C(K.rotation)?K.rotation:void 0,g(this,V),S(this,"afterInit")}setOptions(D){this.options=l(r.defaultXAxisOptions,this.coll==="yAxis"&&r.defaultYAxisOptions,[r.defaultTopAxisOptions,r.defaultRightAxisOptions,r.defaultBottomAxisOptions,r.defaultLeftAxisOptions][this.side],l(x[this.coll],D)),S(this,"afterSetOptions",{userOptions:D})}defaultLabelFormatter(D){var N=this.axis;({numberFormatter:D}=this.chart);const V=C(this.value)?this.value:NaN,j=N.chart.time,K=this.dateTimeLabelFormat;var _=x.lang;const $=_.numericSymbols;_=_.numericSymbolMagnitude||1e3;const H=N.logarithmic?Math.abs(V):N.tickInterval;let q=$&&$.length,Z;if(N.categories)Z=`${this.value}`;else if(K)Z=j.dateFormat(K,V);else if(q&&1e3<=H)for(;q--&&typeof Z>"u";)N=Math.pow(_,q+1),H>=N&&10*V%N===0&&$[q]!==null&&V!==0&&(Z=D(V/N,-1)+$[q]);return typeof Z>"u"&&(Z=1e4<=Math.abs(V)?D(V,-1):D(V,-1,void 0,"")),Z}getSeriesExtremes(){const D=this,N=D.chart;let V;S(this,"getSeriesExtremes",null,function(){D.hasVisibleSeries=!1,D.dataMin=D.dataMax=D.threshold=null,D.softThreshold=!D.isXAxis,D.series.forEach(function(j){if(j.visible||!N.options.chart.ignoreHiddenSeries){var K=j.options;let _=K.threshold,$,H;D.hasVisibleSeries=!0,D.positiveValuesOnly&&0>=_&&(_=null),D.isXAxis?(K=j.xData)&&K.length&&(K=D.logarithmic?K.filter(q=>0<q):K,V=j.getXExtremes(K),$=V.min,H=V.max,C($)||$ instanceof Date||(K=K.filter(C),V=j.getXExtremes(K),$=V.min,H=V.max),K.length&&(D.dataMin=Math.min(B(D.dataMin,$),$),D.dataMax=Math.max(B(D.dataMax,H),H))):(j=j.applyExtremes(),C(j.dataMin)&&($=j.dataMin,D.dataMin=Math.min(B(D.dataMin,$),$)),C(j.dataMax)&&(H=j.dataMax,D.dataMax=Math.max(B(D.dataMax,H),H)),A(_)&&(D.threshold=_),(!K.softThreshold||D.positiveValuesOnly)&&(D.softThreshold=!1))}})}),S(this,"afterGetSeriesExtremes")}translate(D,N,V,j,K,_){const $=this.linkedParent||this,H=j&&$.old?$.old.min:$.min;if(!C(H))return NaN;const q=$.minPixelPadding;K=($.isOrdinal||$.brokenAxis&&$.brokenAxis.hasBreaks||$.logarithmic&&K)&&$.lin2val;let Z=1,J=0;return j=j&&$.old?$.old.transA:$.transA,j||(j=$.transA),V&&(Z*=-1,J=$.len),$.reversed&&(Z*=-1,J-=Z*($.sector||$.len)),N?(_=(D*Z+J-q)/j+H,K&&(_=$.lin2val(_))):(K&&(D=$.val2lin(D)),D=Z*(D-H)*j,_=($.isRadial?D:I(D))+J+Z*q+(C(_)?j*_:0)),_}toPixels(D,N){return this.translate(D,!1,!this.horiz,void 0,!0)+(N?0:this.pos)}toValue(D,N){return this.translate(D-(N?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(D){function N(ie,ae,ue){return ce!=="pass"&&(ie<ae||ie>ue)&&(ce?ie=T(ie,ae,ue):re=!0),ie}const V=this,j=V.chart,K=V.left,_=V.top,$=D.old,H=D.value,q=D.lineWidth,Z=$&&j.oldChartHeight||j.chartHeight,J=$&&j.oldChartWidth||j.chartWidth,te=V.transB;let se=D.translatedValue,ce=D.force,ne,oe,U,G,re;return D={value:H,lineWidth:q,old:$,force:ce,acrossPanes:D.acrossPanes,translatedValue:se},S(this,"getPlotLinePath",D,function(ie){se=B(se,V.translate(H,void 0,void 0,$)),se=T(se,-1e5,1e5),ne=U=Math.round(se+te),oe=G=Math.round(Z-se-te),C(se)?V.horiz?(oe=_,G=Z-V.bottom,ne=U=N(ne,K,K+V.width)):(ne=K,U=J-V.right,oe=G=N(oe,_,_+V.height)):(re=!0,ce=!1),ie.path=re&&!ce?null:j.renderer.crispLine([["M",ne,oe],["L",U,G]],q||1)}),D.path}getLinearTickPositions(D,N,V){const j=I(Math.floor(N/D)*D);V=I(Math.ceil(V/D)*D);const K=[];let _,$;if(I(j+D)===j&&($=20),this.single)return[N];for(N=j;N<=V&&(K.push(N),N=I(N+D,$),N!==_);)_=N;return K}getMinorTickInterval(){const D=this.options;return D.minorTicks===!0?B(D.minorTickInterval,"auto"):D.minorTicks===!1?null:D.minorTickInterval}getMinorTickPositions(){var D=this.options;const N=this.tickPositions,V=this.minorTickInterval;var j=this.pointRangePadding||0;const K=this.min-j;j=this.max+j;const _=j-K;let $=[];if(_&&_/V<this.len/3){const H=this.logarithmic;if(H)this.paddedTicks.forEach(function(q,Z,J){Z&&$.push.apply($,H.getLogTickPositions(V,J[Z-1],J[Z],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")$=$.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(V),K,j,D.startOfWeek));else for(D=K+(N[0]-K)%V;D<=j&&D!==$[0];D+=V)$.push(D)}return $.length!==0&&this.trimTicks($),$}adjustForMinRange(){const D=this.options,N=this.logarithmic;let V=this.min;var j=this.max;let K,_;if(this.isXAxis&&typeof this.minRange>"u"&&!N)if(A(D.min)||A(D.max)||A(D.floor)||A(D.ceiling))this.minRange=null;else{var $=w(this.series.map(H=>{var q;return(H.xIncrement?(q=H.xData)===null||q===void 0?void 0:q.slice(0,2):H.xData)||[]}))||0;this.minRange=Math.min(5*$,this.dataMax-this.dataMin)}j-V<this.minRange&&($=this.dataMax-this.dataMin>=this.minRange,_=this.minRange,j=(_-j+V)/2,K=[V-j,B(D.min,V-j)],$&&(K[2]=N?N.log2lin(this.dataMin):this.dataMin),V=M(K),j=[V+_,B(D.max,V+_)],$&&(j[2]=N?N.log2lin(this.dataMax):this.dataMax),j=y(j),j-V<_&&(K[0]=j-_,K[1]=B(D.min,j-_),V=M(K))),this.min=V,this.max=j}getClosest(){let D,N;if(this.categories)N=1;else{const V=[];this.series.forEach(function(j){var K;const _=j.closestPointRange,$=j.visible||!j.chart.options.chart.ignoreHiddenSeries;((K=j.xData)===null||K===void 0?void 0:K.length)===1?V.push(j.xData[0]):!j.noSharedTooltip&&A(_)&&$&&(N=A(N)?Math.min(N,_):_)}),V.length&&(V.sort((j,K)=>j-K),D=w([V]))}return D&&N?Math.min(D,N):D||N}nameToX(D){const N=m(this.options.categories),V=N?this.categories:this.names;let j=D.options.x,K;return D.series.requireSorting=!1,A(j)||(j=this.options.uniqueNames&&V?N?V.indexOf(D.name):B(V.keys[D.name],-1):D.series.autoIncrement()),j===-1?!N&&V&&(K=V.length):K=j,typeof K<"u"?(this.names[K]=D.name,this.names.keys[D.name]=K):D.x&&(K=D.x),K}updateNames(){const D=this,N=this.names;0<N.length&&(Object.keys(N.keys).forEach(function(V){delete N.keys[V]}),N.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(V){V.xIncrement=null,(!V.points||V.isDirtyData)&&(D.max=Math.max(D.max,V.xData.length-1),V.processData(),V.generatePoints()),V.data.forEach(function(j,K){let _;j&&j.options&&typeof j.name<"u"&&(_=D.nameToX(j),typeof _<"u"&&_!==j.x&&(j.x=_,V.xData[K]=_))})}))}setAxisTranslation(){const D=this,N=D.max-D.min;var V=D.linkedParent;const j=!!D.categories,K=D.isXAxis;let _=D.axisPointRange||0,$,H=0,q=0,Z=D.transA;(K||j||_)&&($=D.getClosest(),V?(H=V.minPointOffset,q=V.pointRangePadding):D.series.forEach(function(J){const te=j?1:K?B(J.options.pointRange,$,0):D.axisPointRange||0,se=J.options.pointPlacement;_=Math.max(_,te),(!D.single||j)&&(J=J.is("xrange")?!K:K,H=Math.max(H,J&&a(se)?0:te/2),q=Math.max(q,J&&se==="on"?0:te))}),V=D.ordinal&&D.ordinal.slope&&$?D.ordinal.slope/$:1,D.minPointOffset=H*=V,D.pointRangePadding=q*=V,D.pointRange=Math.min(_,D.single&&j?1:N),K&&$&&(D.closestPointRange=$)),D.translationSlope=D.transA=Z=D.staticScale||D.len/(N+q||1),D.transB=D.horiz?D.left:D.bottom,D.minPixelPadding=Z*H,S(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(D){var N=this.chart;const V=this.logarithmic,j=this.options,K=this.isXAxis,_=this.isLinked,$=j.tickPixelInterval,H=this.categories,q=this.softThreshold;let Z=j.maxPadding,J=j.minPadding,te=C(j.tickInterval)&&0<=j.tickInterval?j.tickInterval:void 0,se=C(this.threshold)?this.threshold:null,ce,ne,oe;if(this.dateTime||H||_||this.getTickAmount(),ne=B(this.userMin,j.min),oe=B(this.userMax,j.max),_){this.linkedParent=N[this.coll][j.linkedTo];var U=this.linkedParent.getExtremes();this.min=B(U.min,U.dataMin),this.max=B(U.max,U.dataMax),j.type!==this.linkedParent.options.type&&P(11,1,N)}else q&&A(se)&&(this.dataMin>=se?(U=se,J=0):this.dataMax<=se&&(ce=se,Z=0)),this.min=B(ne,U,this.dataMin),this.max=B(oe,ce,this.dataMax);if(V&&(this.positiveValuesOnly&&!D&&0>=Math.min(this.min,B(this.dataMin,this.min))&&P(10,1,N),this.min=I(V.log2lin(this.min),16),this.max=I(V.log2lin(this.max),16)),this.range&&A(this.max)&&(this.userMin=this.min=ne=Math.max(this.dataMin,this.minFromRange()),this.userMax=oe=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!C(this.userMin)&&C(j.softMin)&&j.softMin<this.min&&(this.min=ne=j.softMin),!C(this.userMax)&&C(j.softMax)&&j.softMax>this.max&&(this.max=oe=j.softMax),!(H||this.axisPointRange||this.stacking&&this.stacking.usePercentage||_)&&A(this.min)&&A(this.max)&&(N=this.max-this.min)&&(!A(ne)&&J&&(this.min-=N*J),!A(oe)&&Z&&(this.max+=N*Z)),!C(this.userMin)&&C(j.floor)&&(this.min=Math.max(this.min,j.floor)),!C(this.userMax)&&C(j.ceiling)&&(this.max=Math.min(this.max,j.ceiling)),q&&A(this.dataMin)&&(se=se||0,!A(ne)&&this.min<se&&this.dataMin>=se?this.min=this.options.minRange?Math.min(se,this.max-this.minRange):se:!A(oe)&&this.max>se&&this.dataMax<=se&&(this.max=this.options.minRange?Math.max(se,this.min+this.minRange):se)),C(this.min)&&C(this.max)&&!this.chart.polar&&this.min>this.max&&(A(this.options.min)?this.max=this.min:A(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:_&&this.linkedParent&&!te&&$===this.linkedParent.options.tickPixelInterval?te=this.linkedParent.tickInterval:B(te,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,H?1:(this.max-this.min)*$/Math.max(this.len,$)),K&&!D){const G=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(re){re.forceCrop=re.forceCropping&&re.forceCropping(),re.processData(G)}),S(this,"postProcessData",{hasExtremesChanged:G})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!te&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),D=B(j.minTickInterval,this.dateTime&&!this.series.some(G=>G.noSharedTooltip)?this.closestPointRange:0),!te&&this.tickInterval<D&&(this.tickInterval=D),this.dateTime||this.logarithmic||te||(this.tickInterval=Q(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var D=this.options;const N=D.tickPositions,V=D.tickPositioner;var j=this.getMinorTickInterval(),K=this.hasVerticalPanning(),_=this.coll==="colorAxis";const $=(_||!K)&&D.startOnTick;K=(_||!K)&&D.endOnTick,_=[];let H;if(this.tickmarkOffset=this.categories&&D.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=j==="auto"&&this.tickInterval?this.tickInterval/D.minorTicksPerMajor:j,this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||D.allowDecimals!==!1),N)_=N.slice();else if(C(this.min)&&C(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)_=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,D.units),this.min,this.max,D.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)_=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(j=D=this.tickInterval;j<=2*D&&(_=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&_.length>this.tickAmount);)this.tickInterval=Q(this,j*=1.1);else _=[this.min,this.max],P(19,!1,this.chart);_.length>this.len&&(_=[_[0],_[_.length-1]],_[0]===_[1]&&(_.length=1)),V&&(this.tickPositions=_,(H=V.apply(this,[this.min,this.max]))&&(_=H))}this.tickPositions=_,this.paddedTicks=_.slice(0),this.trimTicks(_,$,K),!this.isLinked&&C(this.min)&&C(this.max)&&(this.single&&2>_.length&&!this.categories&&!this.series.some(q=>q.is("heatmap")&&q.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),N||H||this.adjustTickAmount()),S(this,"afterSetTickPositions")}trimTicks(D,N,V){const j=D[0],K=D[D.length-1],_=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(N&&j!==-1/0)this.min=j;else for(;this.min-_>D[0];)D.shift();if(V)this.max=K;else for(;this.max+_<D[D.length-1];)D.pop();D.length===0&&A(j)&&!this.options.tickPositions&&D.push((K+j)/2)}}alignToOthers(){const D=this,N=[this],V=D.options,j=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,K=[];let _;if(D.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&V.alignTicks||j)&&V.startOnTick!==!1&&V.endOnTick!==!1&&!D.logarithmic){const $=q=>{const{horiz:Z,options:J}=q;return[Z?J.left:J.top,J.width,J.height,J.pane].join()},H=$(this);this.chart[this.coll].forEach(function(q){const{series:Z}=q;Z.length&&Z.some(J=>J.visible)&&q!==D&&$(q)===H&&(_=!0,N.push(q))})}if(_&&j){N.forEach(H=>{H=H.getThresholdAlignment(D),C(H)&&K.push(H)});const $=1<K.length?K.reduce((H,q)=>H+q,0)/K.length:void 0;N.forEach(H=>{H.thresholdAlignment=$})}return _}getThresholdAlignment(D){if((!C(this.dataMin)||this!==D&&this.series.some(N=>N.isDirty||N.isDirtyData))&&this.getSeriesExtremes(),C(this.threshold))return D=T((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(D=1-D),D}getTickAmount(){const D=this.options,N=D.tickPixelInterval;let V=D.tickAmount;!A(D.tickInterval)&&!V&&this.len<N&&!this.isRadial&&!this.logarithmic&&D.startOnTick&&D.endOnTick&&(V=2),!V&&this.alignToOthers()&&(V=Math.ceil(this.len/N)+1),4>V&&(this.finalTickAmt=V,V=5),this.tickAmount=V}adjustTickAmount(){const D=this,{finalTickAmt:N,max:V,min:j,options:K,tickPositions:_,tickAmount:$,thresholdAlignment:H}=D,q=_&&_.length;var Z=B(D.threshold,D.softThreshold?0:null),J=D.tickInterval;let te;if(C(H)&&(te=.5>H?Math.ceil(H*($-1)):Math.floor(H*($-1)),K.reversed&&(te=$-1-te)),D.hasData()&&C(j)&&C(V)){const se=()=>{D.transA*=(q-1)/($-1),D.min=K.startOnTick?_[0]:Math.min(j,_[0]),D.max=K.endOnTick?_[_.length-1]:Math.max(V,_[_.length-1])};if(C(te)&&C(D.threshold)){for(;_[te]!==Z||_.length!==$||_[0]>j||_[_.length-1]<V;){for(_.length=0,_.push(D.threshold);_.length<$;)_[te]===void 0||_[te]>D.threshold?_.unshift(I(_[0]-J)):_.push(I(_[_.length-1]+J));if(J>8*D.tickInterval)break;J*=2}se()}else if(q<$){for(;_.length<$;)_.length%2||j===Z?_.push(I(_[_.length-1]+J)):_.unshift(I(_[0]-J));se()}if(A(N)){for(J=Z=_.length;J--;)(N===3&&J%2===1||2>=N&&0<J&&J<Z-1)&&_.splice(J,1);D.finalTickAmt=void 0}}}setScale(){let D=!1,N=!1;this.series.forEach(function(j){D=D||j.isDirtyData||j.isDirty,N=N||j.xAxis&&j.xAxis.isDirty||!1}),this.setAxisSize();const V=this.len!==(this.old&&this.old.len);V||D||N||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=V||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),D&&this.panningState&&(this.panningState.isDirty=!0),S(this,"afterSetScale")}setExtremes(D,N,V,j,K){const _=this,$=_.chart;V=B(V,!0),_.series.forEach(function(H){delete H.kdTree}),K=L(K,{min:D,max:N}),S(_,"setExtremes",K,function(){_.userMin=D,_.userMax=N,_.eventArgs=K,V&&$.redraw(j)})}zoom(D,N){const V=this,j=this.dataMin,K=this.dataMax,_=this.options,$=Math.min(j,B(_.min,j)),H=Math.max(K,B(_.max,K));return D={newMin:D,newMax:N},S(this,"zoom",D,function(q){let Z=q.newMin,J=q.newMax;(Z!==V.min||J!==V.max)&&(V.allowZoomOutside||(A(j)&&(Z<$&&(Z=$),Z>H&&(Z=H)),A(K)&&(J<$&&(J=$),J>H&&(J=H))),V.displayBtn=typeof Z<"u"||typeof J<"u",V.setExtremes(Z,J,!1,void 0,{trigger:"zoom"})),q.zoomed=!0}),D.zoomed}setAxisSize(){const D=this.chart;var N=this.options;const V=N.offsets||[0,0,0,0],j=this.horiz,K=this.width=Math.round(F(B(N.width,D.plotWidth-V[3]+V[1]),D.plotWidth)),_=this.height=Math.round(F(B(N.height,D.plotHeight-V[0]+V[2]),D.plotHeight)),$=this.top=Math.round(F(B(N.top,D.plotTop+V[0]),D.plotHeight,D.plotTop));N=this.left=Math.round(F(B(N.left,D.plotLeft+V[3]),D.plotWidth,D.plotLeft)),this.bottom=D.chartHeight-_-$,this.right=D.chartWidth-K-N,this.len=Math.max(j?K:_,0),this.pos=j?N:$}getExtremes(){const D=this.logarithmic;return{min:D?I(D.lin2log(this.min)):this.min,max:D?I(D.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(D){var N=this.logarithmic;const V=N?N.lin2log(this.min):this.min;return N=N?N.lin2log(this.max):this.max,D===null||D===-1/0?D=V:D===1/0?D=N:V>D?D=V:N<D&&(D=N),this.translate(D,0,1,0,1)}autoLabelAlign(D){const N=(B(D,0)-90*this.side+720)%360;return D={align:"center"},S(this,"autoLabelAlign",D,function(V){15<N&&165>N?V.align="right":195<N&&345>N&&(V.align="left")}),D.align}tickSize(D){const N=this.options,V=B(N[D==="tick"?"tickWidth":"minorTickWidth"],D==="tick"&&this.isXAxis&&!this.categories?1:0);let j=N[D==="tick"?"tickLength":"minorTickLength"],K;return V&&j&&(N[D+"Position"]==="inside"&&(j=-j),K=[j,V]),D={tickSize:K},S(this,"afterTickSize",D),D.tickSize}labelMetrics(){const D=this.chart.renderer;var N=this.ticks;return N=N[Object.keys(N)[0]]||{},this.chart.renderer.fontMetrics(N.label||N.movedLabel||D.box)}unsquish(){const D=this.options.labels;var N=this.horiz;const V=this.tickInterval,j=this.len/(((this.categories?1:0)+this.max-this.min)/V),K=D.rotation,_=.75*this.labelMetrics().h,$=Math.max(this.max-this.min,0),H=function(se){let ce=se/(j||1);return ce=1<ce?Math.ceil(ce):1,ce*V>$&&se!==1/0&&j!==1/0&&$&&(ce=Math.ceil($/V)),I(ce*V)};let q=V,Z,J=Number.MAX_VALUE,te;if(N){if(D.staggerLines||(C(K)?te=[K]:j<D.autoRotationLimit&&(te=D.autoRotation)),te){let se;for(const ce of te)(ce===K||ce&&-90<=ce&&90>=ce)&&(N=H(Math.abs(_/Math.sin(k*ce))),se=N+Math.abs(ce/360),se<J&&(J=se,Z=ce,q=N))}}else q=H(_);return this.autoRotation=te,this.labelRotation=B(Z,C(K)?K:0),D.step?V:q}getSlotWidth(D){const N=this.chart,V=this.horiz,j=this.options.labels,K=Math.max(this.tickPositions.length-(this.categories?0:1),1),_=N.margin[3];if(D&&C(D.slotWidth))return D.slotWidth;if(V&&2>j.step)return j.rotation?0:(this.staggerLines||1)*this.len/K;if(!V){if(D=j.style.width,D!==void 0)return parseInt(String(D),10);if(_)return _-N.spacing[3]}return .33*N.chartWidth}renderUnsquish(){const D=this.chart,N=D.renderer,V=this.tickPositions,j=this.ticks,K=this.options.labels,_=K.style,$=this.horiz,H=this.getSlotWidth();var q=Math.max(1,Math.round(H-2*K.padding));const Z={},J=this.labelMetrics(),te=_.textOverflow;let se,ce,ne=0;if(a(K.rotation)||(Z.rotation=K.rotation||0),V.forEach(function(U){U=j[U],U.movedLabel&&U.replaceMovedLabel(),U&&U.label&&U.label.textPxLength>ne&&(ne=U.label.textPxLength)}),this.maxLabelLength=ne,this.autoRotation)ne>q&&ne>J.h?Z.rotation=this.labelRotation:this.labelRotation=0;else if(H&&(se=q,!te))for(ce="clip",q=V.length;!$&&q--;){var oe=V[q];(oe=j[oe].label)&&(oe.styles&&oe.styles.textOverflow==="ellipsis"?oe.css({textOverflow:"clip"}):oe.textPxLength>H&&oe.css({width:H+"px"}),oe.getBBox().height>this.len/V.length-(J.h-J.f)&&(oe.specificTextOverflow="ellipsis"))}Z.rotation&&(se=ne>.5*D.chartHeight?.33*D.chartHeight:ne,te||(ce="ellipsis")),(this.labelAlign=K.align||this.autoLabelAlign(this.labelRotation))&&(Z.align=this.labelAlign),V.forEach(function(U){const G=(U=j[U])&&U.label,re=_.width,ie={};G&&(G.attr(Z),U.shortenLabel?U.shortenLabel():se&&!re&&_.whiteSpace!=="nowrap"&&(se<G.textPxLength||G.element.tagName==="SPAN")?(ie.width=se+"px",te||(ie.textOverflow=G.specificTextOverflow||ce),G.css(ie)):G.styles&&G.styles.width&&!ie.width&&!re&&G.css({width:null}),delete G.specificTextOverflow,U.rotation=Z.rotation)},this),this.tickRotCorr=N.rotCorr(J.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(D){return D.hasData()})||this.options.showEmpty&&A(this.min)&&A(this.max)}addTitle(D){const N=this.chart.renderer,V=this.horiz,j=this.opposite,K=this.options.title,_=this.chart.styledMode;let $;this.axisTitle||(($=K.textAlign)||($=(V?{low:"left",middle:"center",high:"right"}:{low:j?"right":"left",middle:"center",high:j?"left":"right"})[K.align]),this.axisTitle=N.text(K.text||"",0,0,K.useHTML).attr({zIndex:7,rotation:K.rotation,align:$}).addClass("highcharts-axis-title"),_||this.axisTitle.css(l(K.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),_||K.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[D?"show":"hide"](D)}generateTick(D){const N=this.ticks;N[D]?N[D].addLabel():N[D]=new p(this,D)}getOffset(){const D=this,{chart:N,horiz:V,options:j,side:K,ticks:_,tickPositions:$,coll:H,axisParent:q}=D,Z=N.renderer,J=N.inverted&&!D.isZAxis?[1,0,3,2][K]:K;var te=D.hasData();const se=j.title;var ce=j.labels;const ne=C(j.crossing);var oe=N.axisOffset;const U=N.clipOffset,G=[-1,1,1,-1][K],re=j.className;let ie,ae=0,ue;var he=0;let me=0;if(D.showAxis=ie=te||j.showEmpty,D.staggerLines=D.horiz&&ce.staggerLines||void 0,!D.axisGroup){const ve=(pe,Se,Le)=>Z.g(pe).attr({zIndex:Le}).addClass(`highcharts-${H.toLowerCase()}${Se} `+(this.isRadial?`highcharts-radial-axis${Se} `:"")+(re||"")).add(q);D.gridGroup=ve("grid","-grid",j.gridZIndex),D.axisGroup=ve("axis","",j.zIndex),D.labelGroup=ve("axis-labels","-labels",ce.zIndex)}te||D.isLinked?($.forEach(function(ve){D.generateTick(ve)}),D.renderUnsquish(),D.reserveSpaceDefault=K===0||K===2||{1:"left",3:"right"}[K]===D.labelAlign,B(ce.reserveSpace,ne?!1:null,D.labelAlign==="center"?!0:null,D.reserveSpaceDefault)&&$.forEach(function(ve){me=Math.max(_[ve].getLabelSize(),me)}),D.staggerLines&&(me*=D.staggerLines),D.labelOffset=me*(D.opposite?-1:1)):b(_,function(ve,pe){ve.destroy(),delete _[pe]}),se&&se.text&&se.enabled!==!1&&(D.addTitle(ie),ie&&!ne&&se.reserveSpace!==!1&&(D.titleOffset=ae=D.axisTitle.getBBox()[V?"height":"width"],ue=se.offset,he=A(ue)?0:B(se.margin,V?5:10))),D.renderLine(),D.offset=G*B(j.offset,oe[K]?oe[K]+(j.margin||0):0),D.tickRotCorr=D.tickRotCorr||{x:0,y:0},te=K===0?-D.labelMetrics().h:K===2?D.tickRotCorr.y:0,he=Math.abs(me)+he,me&&(he=he-te+G*(V?B(ce.y,D.tickRotCorr.y+G*ce.distance):B(ce.x,G*ce.distance))),D.axisTitleMargin=B(ue,he),D.getMaxLabelDimensions&&(D.maxLabelDimensions=D.getMaxLabelDimensions(_,$)),H!=="colorAxis"&&(ce=this.tickSize("tick"),oe[K]=Math.max(oe[K],(D.axisTitleMargin||0)+ae+G*D.offset,he,$&&$.length&&ce?ce[0]+G*D.offset:0),oe=!D.axisLine||j.offset?0:2*Math.floor(D.axisLine.strokeWidth()/2),U[J]=Math.max(U[J],oe)),S(this,"afterGetOffset")}getLinePath(D){const N=this.chart,V=this.opposite;var j=this.offset;const K=this.horiz,_=this.left+(V?this.width:0)+j;return j=N.chartHeight-this.bottom-(V?this.height:0)+j,V&&(D*=-1),N.renderer.crispLine([["M",K?this.left:_,K?j:this.top],["L",K?N.chartWidth-this.right:_,K?j:N.chartHeight-this.bottom]],D)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(D){var N=this.horiz,V=this.left;const j=this.top;var K=this.len;const _=this.options.title,$=N?V:j,H=this.opposite,q=this.offset,Z=_.x,J=_.y,te=this.chart.renderer.fontMetrics(D);return D=D?Math.max(D.getBBox(!1,0).height-te.h-1,0):0,K={low:$+(N?0:K),middle:$+K/2,high:$+(N?K:0)}[_.align],V=(N?j+this.height:V)+(N?1:-1)*(H?-1:1)*(this.axisTitleMargin||0)+[-D,D,te.f,-D][this.side],N={x:N?K+Z:V+(H?this.width:0)+q+Z,y:N?V+J-(H?this.height:0)+q:K+J},S(this,"afterGetTitlePosition",{titlePosition:N}),N}renderMinorTick(D,N){const V=this.minorTicks;V[D]||(V[D]=new p(this,D,"minor")),N&&V[D].isNew&&V[D].render(null,!0),V[D].render(null,!1,1)}renderTick(D,N,V){const j=this.ticks;(!this.isLinked||D>=this.min&&D<=this.max||this.grid&&this.grid.isColumn)&&(j[D]||(j[D]=new p(this,D)),V&&j[D].isNew&&j[D].render(N,!0,-1),j[D].render(N))}render(){const D=this,N=D.chart,V=D.logarithmic,j=D.options,K=D.isLinked,_=D.tickPositions,$=D.axisTitle,H=D.ticks,q=D.minorTicks,Z=D.alternateBands,J=j.stackLabels,te=j.alternateGridColor;var se=j.crossing;const ce=D.tickmarkOffset,ne=D.axisLine,oe=D.showAxis,U=v(N.renderer.globalAnimation);let G,re;if(D.labelEdge.length=0,D.overlap=!1,[H,q,Z].forEach(function(ie){b(ie,function(ae){ae.isActive=!1})}),C(se)){const ie=this.isXAxis?N.yAxis[0]:N.xAxis[0],ae=[1,-1,-1,1][this.side];ie&&(se=ie.toPixels(se,!0),D.horiz&&(se=ie.len-se),D.offset=ae*se)}if(D.hasData()||K){const ie=D.chart.hasRendered&&D.old&&C(D.old.min);D.minorTickInterval&&!D.categories&&D.getMinorTickPositions().forEach(function(ae){D.renderMinorTick(ae,ie)}),_.length&&(_.forEach(function(ae,ue){D.renderTick(ae,ue,ie)}),ce&&(D.min===0||D.single)&&(H[-1]||(H[-1]=new p(D,-1,null,!0)),H[-1].render(-1))),te&&_.forEach(function(ae,ue){re=typeof _[ue+1]<"u"?_[ue+1]+ce:D.max-ce,ue%2===0&&ae<D.max&&re<=D.max+(N.polar?-ce:ce)&&(Z[ae]||(Z[ae]=new f.PlotLineOrBand(D)),G=ae+ce,Z[ae].options={from:V?V.lin2log(G):G,to:V?V.lin2log(re):re,color:te,className:"highcharts-alternate-grid"},Z[ae].render(),Z[ae].isActive=!0)}),D._addedPlotLB||(D._addedPlotLB=!0,(j.plotLines||[]).concat(j.plotBands||[]).forEach(function(ae){D.addPlotBandOrLine(ae)}))}[H,q,Z].forEach(function(ie){const ae=[],ue=U.duration;b(ie,function(he,me){he.isActive||(he.render(me,!1,0),he.isActive=!1,ae.push(me))}),X(function(){let he=ae.length;for(;he--;)ie[ae[he]]&&!ie[ae[he]].isActive&&(ie[ae[he]].destroy(),delete ie[ae[he]])},ie!==Z&&N.hasRendered&&ue?ue:0)}),ne&&(ne[ne.isPlaced?"animate":"attr"]({d:this.getLinePath(ne.strokeWidth())}),ne.isPlaced=!0,ne[oe?"show":"hide"](oe)),$&&oe&&($[$.isNew?"attr":"animate"](D.getTitlePosition($)),$.isNew=!1),J&&J.enabled&&D.stacking&&D.stacking.renderStackTotals(),D.old={len:D.len,max:D.max,min:D.min,transA:D.transA,userMax:D.userMax,userMin:D.userMin},D.isDirty=!1,S(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(D){D.render()})),this.series.forEach(function(D){D.isDirty=!0})}getKeepProps(){return this.keepProps||ee.keepProps}destroy(D){const N=this,V=N.plotLinesAndBands,j=this.eventOptions;if(S(this,"destroy",{keepEvents:D}),D||O(N),[N.ticks,N.minorTicks,N.alternateBands].forEach(function(K){R(K)}),V)for(D=V.length;D--;)V[D].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(K){N[K]&&(N[K]=N[K].destroy())});for(const K in N.plotLinesAndBandsGroups)N.plotLinesAndBandsGroups[K]=N.plotLinesAndBandsGroups[K].destroy();b(N,function(K,_){N.getKeepProps().indexOf(_)===-1&&delete N[_]}),this.eventOptions=j}drawCrosshair(D,N){const V=this.crosshair;var j=B(V&&V.snap,!0);const K=this.chart;let _,$=this.cross;if(S(this,"drawCrosshair",{e:D,point:N}),D||(D=this.cross&&this.cross.e),V&&(A(N)||!j)!==!1){if(j?A(N)&&(_=B(this.coll!=="colorAxis"?N.crosshairPos:null,this.isXAxis?N.plotX:this.len-N.plotY)):_=D&&(this.horiz?D.chartX-this.pos:this.len-D.chartY+this.pos),A(_)){var H={value:N&&(this.isXAxis?N.x:B(N.stackY,N.y)),translatedValue:_};K.polar&&L(H,{isCrosshair:!0,chartX:D&&D.chartX,chartY:D&&D.chartY,point:N}),H=this.getPlotLinePath(H)||null}if(!A(H)){this.hideCrosshair();return}j=this.categories&&!this.isRadial,$||(this.cross=$=K.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(j?"category ":"thin ")+(V.className||"")).attr({zIndex:B(V.zIndex,2)}).add(),K.styledMode||($.attr({stroke:V.color||(j?s.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":B(V.width,1)}).css({"pointer-events":"none"}),V.dashStyle&&$.attr({dashstyle:V.dashStyle}))),$.show().attr({d:H}),j&&!V.width&&$.attr({"stroke-width":this.transA}),this.cross.e=D}else this.hideCrosshair();S(this,"afterDrawCrosshair",{e:D,point:N})}hideCrosshair(){this.cross&&this.cross.hide(),S(this,"afterHideCrosshair")}hasVerticalPanning(){const D=this.chart.options.chart.panning;return!!(D&&D.enabled&&/y/.test(D.type))}update(D,N){const V=this.chart;D=l(this.userOptions,D),this.destroy(!0),this.init(V,D),V.isDirtyBox=!0,B(N,!0)&&V.redraw()}remove(D){const N=this.chart,V=this.coll,j=this.series;let K=j.length;for(;K--;)j[K]&&j[K].remove(!1);z(N.axes,this),z(N[V]||[],this),N.orderItems(V),this.destroy(),N.isDirtyBox=!0,B(D,!0)&&N.redraw()}setTitle(D,N){this.update({title:D},N)}setCategories(D,N){this.update({categories:D},N)}}return ee.defaultOptions=r.defaultXAxisOptions,ee.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),ee}),o(i,"Core/Axis/DateTimeAxis.js",[i["Core/Utilities.js"]],function(n){const{addEvent:r,getMagnitude:s,normalizeTickInterval:c,timeUnits:u}=n;var f;return function(p){function d(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function v(k){k.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}const x=[];p.compose=function(k){return n.pushUnique(x,k)&&(k.keepProps.push("dateTime"),k.prototype.getTimeTicks=d,r(k,"init",v)),k};class g{constructor(M){this.axis=M}normalizeTimeTickInterval(M,y){const T=y||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];y=T[T.length-1];let I=u[y[0]],A=y[1],R;for(R=0;R<T.length&&(y=T[R],I=u[y[0]],A=y[1],!(T[R+1]&&M<=(I*A[A.length-1]+u[T[R+1][0]])/2));R++);return I===u.year&&M<5*I&&(A=[1,2,5]),M=c(M/I,A,y[0]==="year"?Math.max(s(M/I),1):1),{unitRange:I,count:M,unitName:y[0]}}getXDateFormat(M,y){const{axis:T}=this,I=T.chart.time;return T.closestPointRange?I.getDateFormat(T.closestPointRange,M,T.options.startOfWeek,y)||I.resolveDTLFormat(y.year).main:I.resolveDTLFormat(y.day).main}}p.Additions=g}(f||(f={})),f}),o(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Utilities.js"]],function(n){const{addEvent:r,normalizeTickInterval:s,pick:c}=n;var u;return function(f){function p(g){let k=this.logarithmic;g.userOptions.type!=="logarithmic"?this.logarithmic=void 0:k||(this.logarithmic=new x(this))}function d(){const g=this.logarithmic;g&&(this.lin2val=function(k){return g.lin2log(k)},this.val2lin=function(k){return g.log2lin(k)})}const v=[];f.compose=function(g){return n.pushUnique(v,g)&&(g.keepProps.push("logarithmic"),r(g,"init",p),r(g,"afterInit",d)),g};class x{constructor(k){this.axis=k}getLogTickPositions(k,M,y,T){const I=this.axis;var A=I.len,R=I.options;let z=[];if(T||(this.minorAutoInterval=void 0),.5<=k)k=Math.round(k),z=I.getLinearTickPositions(k,M,y);else if(.08<=k){R=Math.floor(M);let P,L,S,w,E;for(A=.3<k?[1,2,4]:.15<k?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];R<y+1&&!E;R++)for(L=A.length,P=0;P<L&&!E;P++)S=this.log2lin(this.lin2log(R)*A[P]),S>M&&(!T||w<=y)&&typeof w<"u"&&z.push(w),w>y&&(E=!0),w=S}else M=this.lin2log(M),y=this.lin2log(y),k=T?I.getMinorTickInterval():R.tickInterval,k=c(k==="auto"?null:k,this.minorAutoInterval,R.tickPixelInterval/(T?5:1)*(y-M)/((T?A/I.tickPositions.length:A)||1)),k=s(k),z=I.getLinearTickPositions(k,M,y).map(this.log2lin),T||(this.minorAutoInterval=k/5);return T||(I.tickInterval=k),z}lin2log(k){return Math.pow(10,k)}log2lin(k){return Math.log(k)/Math.LN10}}f.Additions=x}(u||(u={})),u}),o(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],function(n){const{erase:r,extend:s,isNumber:c}=n;var u;return function(f){function p(I){return this.addPlotBandOrLine(I,"plotBands")}function d(I,A){const R=this.userOptions;let z=new T(this,I);if(this.visible&&(z=z.render()),z){if(this._addedPlotLB||(this._addedPlotLB=!0,(R.plotLines||[]).concat(R.plotBands||[]).forEach(P=>{this.addPlotBandOrLine(P)})),A){const P=R[A]||[];P.push(I),R[A]=P}this.plotLinesAndBands.push(z)}return z}function v(I){return this.addPlotBandOrLine(I,"plotLines")}function x(I,A,R=this.options){const z=this.getPlotLinePath({value:A,force:!0,acrossPanes:R.acrossPanes}),P=[],L=this.horiz;A=!c(this.min)||!c(this.max)||I<this.min&&A<this.min||I>this.max&&A>this.max,I=this.getPlotLinePath({value:I,force:!0,acrossPanes:R.acrossPanes}),R=1;let S;if(I&&z)for(A&&(S=I.toString()===z.toString(),R=0),A=0;A<I.length;A+=2){const w=I[A],E=I[A+1],m=z[A],C=z[A+1];w[0]!=="M"&&w[0]!=="L"||E[0]!=="M"&&E[0]!=="L"||m[0]!=="M"&&m[0]!=="L"||C[0]!=="M"&&C[0]!=="L"||(L&&m[1]===w[1]?(m[1]+=R,C[1]+=R):L||m[2]!==w[2]||(m[2]+=R,C[2]+=R),P.push(["M",w[1],w[2]],["L",E[1],E[2]],["L",C[1],C[2]],["L",m[1],m[2]],["Z"])),P.isFlat=S}return P}function g(I){this.removePlotBandOrLine(I)}function k(I){const A=this.plotLinesAndBands,R=this.options,z=this.userOptions;if(A){let P=A.length;for(;P--;)A[P].id===I&&A[P].destroy();[R.plotLines||[],z.plotLines||[],R.plotBands||[],z.plotBands||[]].forEach(function(L){for(P=L.length;P--;)(L[P]||{}).id===I&&r(L,L[P])})}}function M(I){this.removePlotBandOrLine(I)}const y=[];let T;f.compose=function(I,A){return T||(T=I),n.pushUnique(y,A)&&s(A.prototype,{addPlotBand:p,addPlotLine:v,addPlotBandOrLine:d,getPlotBandPath:x,removePlotBand:g,removePlotLine:M,removePlotBandOrLine:k}),A}}(u||(u={})),u}),o(i,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[i["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],i["Core/Utilities.js"]],function(n,r){const{arrayMax:s,arrayMin:c,defined:u,destroyObjectProperties:f,erase:p,fireEvent:d,merge:v,objectEach:x,pick:g}=r;class k{static compose(y){return n.compose(k,y)}constructor(y,T){this.axis=y,T&&(this.options=T,this.id=T.id)}render(){d(this,"render");const y=this,T=y.axis,I=T.horiz;var A=T.logarithmic;const R=y.options,z=R.color,P=g(R.zIndex,0),L=R.events,S={},w=T.chart.renderer;let E=R.label,m=y.label,C=R.to,a=R.from,l=R.value,h=y.svgElem;var b=[];const B=u(a)&&u(C);b=u(l);const F=!h,O={class:"highcharts-plot-"+(B?"band ":"line ")+(R.className||"")};let W=B?"bands":"lines";if(A&&(a=A.log2lin(a),C=A.log2lin(C),l=A.log2lin(l)),T.chart.styledMode||(b?(O.stroke=z||"#999999",O["stroke-width"]=g(R.width,1),R.dashStyle&&(O.dashstyle=R.dashStyle)):B&&(O.fill=z||"#e6e9ff",R.borderWidth&&(O.stroke=R.borderColor,O["stroke-width"]=R.borderWidth))),S.zIndex=P,W+="-"+P,(A=T.plotLinesAndBandsGroups[W])||(T.plotLinesAndBandsGroups[W]=A=w.g("plot-"+W).attr(S).add()),F&&(y.svgElem=h=w.path().attr(O).add(A)),b)b=T.getPlotLinePath({value:l,lineWidth:h.strokeWidth(),acrossPanes:R.acrossPanes});else if(B)b=T.getPlotBandPath(a,C,R);else return;return!y.eventsAdded&&L&&(x(L,function(X,Q){h.on(Q,function(ee){L[Q].apply(y,[ee])})}),y.eventsAdded=!0),(F||!h.d)&&b&&b.length?h.attr({d:b}):h&&(b?(h.show(),h.animate({d:b})):h.d&&(h.hide(),m&&(y.label=m=m.destroy()))),E&&(u(E.text)||u(E.formatter))&&b&&b.length&&0<T.width&&0<T.height&&!b.isFlat?(E=v({align:I&&B&&"center",x:I?!B&&4:10,verticalAlign:!I&&B&&"middle",y:I?B?16:10:B?6:-4,rotation:I&&!B&&90},E),this.renderLabel(E,b,B,P)):m&&m.hide(),y}renderLabel(y,T,I,A){const R=this.axis;var z=R.chart.renderer;let P=this.label;P||(this.label=P=z.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(I?"band":"line")+"-label "+(y.className||""),zIndex:A}).add(),R.chart.styledMode||P.css(v({fontSize:"0.8em",textOverflow:"ellipsis"},y.style))),A=T.xBounds||[T[0][1],T[1][1],I?T[2][1]:T[0][1]],T=T.yBounds||[T[0][2],T[1][2],I?T[2][2]:T[0][2]],I=c(A),z=c(T),P.align(y,!1,{x:I,y:z,width:s(A)-I,height:s(T)-z}),P.alignValue&&P.alignValue!=="left"||(y=y.clip?R.width:R.chart.chartWidth,P.css({width:(P.rotation===90?R.height-(P.alignAttr.y-R.top):y-(P.alignAttr.x-R.left))+"px"})),P.show(!0)}getLabelText(y){return u(y.formatter)?y.formatter.call(this):y.text}destroy(){p(this.axis.plotLinesAndBands,this),delete this.axis,f(this)}}return k}),o(i,"Core/Tooltip.js",[i["Core/Templating.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(n,r,s,c,u){const{format:f}=n,{doc:p,isSafari:d}=r,{distribute:v}=s,{addEvent:x,clamp:g,css:k,discardElement:M,extend:y,fireEvent:T,isArray:I,isNumber:A,isString:R,merge:z,pick:P,splat:L,syncTimeout:S}=u;class w{constructor(m,C){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=m,this.init(m,C)}bodyFormatter(m){return m.map(function(C){const a=C.series.tooltipOptions;return(a[(C.point.formatPrefix||"point")+"Formatter"]||C.point.tooltipFormatter).call(C.point,a[(C.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(m){this.chart.series.forEach(function(C){const a=C&&C.tt;a&&(!a.isActive||m?C.tt=a.destroy():a.isActive=!1)})}defaultFormatter(m){const C=this.points||L(this);let a;return a=[m.tooltipFooterHeaderFormatter(C[0])],a=a.concat(m.bodyFormatter(C)),a.push(m.tooltipFooterHeaderFormatter(C[0],!0)),a}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),u.clearTimeout(this.hideTimer),u.clearTimeout(this.tooltipTimeout)}getAnchor(m,C){var a=this.chart;const l=a.pointer,h=a.inverted,b=a.plotTop;if(a=a.plotLeft,m=L(m),m[0].series&&m[0].series.yAxis&&!m[0].series.yAxis.options.reversedStacks&&(m=m.slice().reverse()),this.followPointer&&C)typeof C.chartX>"u"&&(C=l.normalize(C)),m=[C.chartX-a,C.chartY-b];else if(m[0].tooltipPos)m=m[0].tooltipPos;else{let B=0,F=0;m.forEach(function(O){(O=O.pos(!0))&&(B+=O[0],F+=O[1])}),B/=m.length,F/=m.length,this.shared&&1<m.length&&C&&(h?B=C.chartX:F=C.chartY),m=[B-a,F-b]}return m.map(Math.round)}getClassName(m,C,a){const l=m.series,h=l.options;return[this.options.className,"highcharts-label",a&&"highcharts-tooltip-header",C?"highcharts-tooltip-box":"highcharts-tooltip",!a&&"highcharts-color-"+P(m.colorIndex,l.colorIndex),h&&h.className].filter(R).join(" ")}getLabel(){const m=this,C=this.chart.styledMode,a=this.options,l=this.split&&this.allowShared,h=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let b,B=this.chart.renderer;if(this.label){var F=!this.label.hasClass("highcharts-label");(!l&&F||l&&!F)&&this.destroy()}if(!this.label){if(this.outside){F=this.chart.options.chart.style;const O=c.getRendererType();this.container=b=r.doc.createElement("div"),b.className="highcharts-tooltip-container",k(b,{position:"absolute",top:"1px",pointerEvents:h,zIndex:Math.max(this.options.style.zIndex||0,(F&&F.zIndex||0)+3)}),r.doc.body.appendChild(b),this.renderer=B=new O(b,0,0,F,void 0,void 0,B.styledMode)}if(l?this.label=B.g("tooltip"):(this.label=B.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),C||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth||0}).css(a.style).css({pointerEvents:h})),m.outside){const O=this.label,{xSetter:W,ySetter:X}=O;O.xSetter=function(Q){W.call(O,m.distance),b.style.left=Q+"px"},O.ySetter=function(Q){X.call(O,m.distance),b.style.top=Q+"px"}}this.label.attr({zIndex:8}).shadow(a.shadow).add()}return this.label}getPlayingField(){const{body:m,documentElement:C}=p,{chart:a,distance:l,outside:h}=this;return{width:h?Math.max(m.scrollWidth,C.scrollWidth,m.offsetWidth,C.offsetWidth,C.clientWidth)-2*l:a.chartWidth,height:h?Math.max(m.scrollHeight,C.scrollHeight,m.offsetHeight,C.offsetHeight,C.clientHeight):a.chartHeight}}getPosition(m,C,a){const l=this.chart,h=this.distance,b={},B=l.inverted&&a.h||0,F=this.outside;var O=this.getPlayingField();const W=O.width,X=O.height,Q=l.pointer.getChartPosition();O=$=>{const H=$==="x";return[$,H?W:X,H?m:C].concat(F?[H?m*Q.scaleX:C*Q.scaleY,H?Q.left-h+(a.plotX+l.plotLeft)*Q.scaleX:Q.top-h+(a.plotY+l.plotTop)*Q.scaleY,0,H?W:X]:[H?m:C,H?a.plotX+l.plotLeft:a.plotY+l.plotTop,H?l.plotLeft:l.plotTop,H?l.plotLeft+l.plotWidth:l.plotTop+l.plotHeight])};let ee=O("y"),Y=O("x"),D;O=!!a.negative,!l.polar&&l.hoverSeries&&l.hoverSeries.yAxis&&l.hoverSeries.yAxis.reversed&&(O=!O);const N=!this.followPointer&&P(a.ttBelow,!l.inverted===O),V=function($,H,q,Z,J,te,se){const ce=F?$==="y"?h*Q.scaleY:h*Q.scaleX:h,ne=(q-Z)/2,oe=Z<J-h,U=J+h+Z<H,G=J-ce-q+ne;if(J=J+ce-ne,N&&U)b[$]=J;else if(!N&&oe)b[$]=G;else if(oe)b[$]=Math.min(se-Z,0>G-B?G:G-B);else if(U)b[$]=Math.max(te,J+B+q>H?J:J+B);else return!1},j=function($,H,q,Z,J){let te;return J<h||J>H-h?te=!1:b[$]=J<q/2?1:J>H-Z/2?H-Z-2:J-q/2,te},K=function($){const H=ee;ee=Y,Y=H,D=$},_=function(){V.apply(0,ee)!==!1?j.apply(0,Y)!==!1||D||(K(!0),_()):D?b.x=b.y=0:(K(!0),_())};return(l.inverted||1<this.len)&&K(),_(),b}hide(m){const C=this;u.clearTimeout(this.hideTimer),m=P(m,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){C.getLabel().fadeOut(m&&void 0),C.isHidden=!0},m))}init(m,C){this.chart=m,this.options=C,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=C.split&&!m.inverted&&!m.polar,this.shared=C.shared||this.split,this.outside=P(C.outside,!(!m.scrollablePixelsX&&!m.scrollablePixelsY))}shouldStickOnContact(m){return!(this.followPointer||!this.options.stickOnContact||m&&!this.chart.pointer.inClass(m.target,"highcharts-tooltip"))}move(m,C,a,l){const h=this,b=h.now,B=h.options.animation!==!1&&!h.isHidden&&(1<Math.abs(m-b.x)||1<Math.abs(C-b.y)),F=h.followPointer||1<h.len;y(b,{x:B?(2*b.x+m)/3:m,y:B?(b.y+C)/2:C,anchorX:F?void 0:B?(2*b.anchorX+a)/3:a,anchorY:F?void 0:B?(b.anchorY+l)/2:l}),h.getLabel().attr(b),h.drawTracker(),B&&(u.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){h&&h.move(m,C,a,l)},32))}refresh(m,C){const a=this.chart,l=this.options,h=a.pointer,b=L(m),B=b[0],F=[];var O=l.format,W=l.formatter||this.defaultFormatter;const X=this.shared,Q=a.styledMode;let ee={};if(l.enabled&&B.series){u.clearTimeout(this.hideTimer),this.allowShared=!(!I(m)&&m.series&&m.series.noSharedTooltip),this.followPointer=!this.split&&B.series.tooltipOptions.followPointer,m=this.getAnchor(m,C);var Y=m[0],D=m[1];if(X&&this.allowShared?(h.applyInactiveState(b),b.forEach(function(N){N.setState("hover"),F.push(N.getLabelConfig())}),ee=B.getLabelConfig(),ee.points=F):ee=B.getLabelConfig(),this.len=F.length,O=R(O)?f(O,ee,a):W.call(ee,this),W=B.series,this.distance=P(W.tooltipOptions.distance,16),O===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(O,b);else{let N=Y,V=D;if(C&&h.isDirectTouch&&(N=C.chartX-a.plotLeft,V=C.chartY-a.plotTop),a.polar||W.options.clip===!1||b.some(j=>h.isDirectTouch||j.series.shouldShowTooltip(N,V)))C=this.getLabel(),l.style.width&&!Q||C.css({width:(this.outside?this.getPlayingField():a.spacingBox).width+"px"}),C.attr({text:O&&O.join?O.join(""):O}),C.addClass(this.getClassName(B),!0),Q||C.attr({stroke:l.borderColor||B.color||W.color||"#666666"}),this.updatePosition({plotX:Y,plotY:D,negative:B.negative,ttBelow:B.ttBelow,h:m[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}T(this,"refresh")}}renderSplit(m,C){function a(ie,ae,ue,he,me=!0){return ue?(ae=q?0:ce,ie=g(ie-he/2,_.left,_.right-he-(l.outside?Z:0))):(ae-=te,ie=me?ie-he-V:ie+V,ie=g(ie,me?ie:_.left,_.right)),{x:ie,y:ae}}const l=this,{chart:h,chart:{chartWidth:b,chartHeight:B,plotHeight:F,plotLeft:O,plotTop:W,pointer:X,scrollablePixelsY:Q=0,scrollablePixelsX:ee,scrollingContainer:{scrollLeft:Y,scrollTop:D}={scrollLeft:0,scrollTop:0},styledMode:N},distance:V,options:j,options:{positioner:K}}=l,_=l.outside&&typeof ee!="number"?p.documentElement.getBoundingClientRect():{left:Y,right:Y+b,top:D,bottom:D+B},$=l.getLabel(),H=this.renderer||h.renderer,q=!(!h.xAxis[0]||!h.xAxis[0].opposite),{left:Z,top:J}=X.getChartPosition();let te=W+D,se=0,ce=F-Q;R(m)&&(m=[!1,m]),m=m.slice(0,C.length+1).reduce(function(ie,ae,ue){if(ae!==!1&&ae!==""){ue=C[ue-1]||{isHeader:!0,plotX:C[0].plotX,plotY:F,series:{}};const Le=ue.isHeader;var he=Le?l:ue.series,me;{var ve=ue;ae=ae.toString();var pe=he.tt;const{isHeader:de,series:fe}=ve;pe||(pe={padding:j.padding,r:j.borderRadius},N||(pe.fill=j.backgroundColor,pe["stroke-width"]=(me=j.borderWidth)!==null&&me!==void 0?me:1),pe=H.label("",0,0,j[de?"headerShape":"shape"],void 0,void 0,j.useHTML).addClass(l.getClassName(ve,!0,de)).attr(pe).add($)),pe.isActive=!0,pe.attr({text:ae}),N||pe.css(j.style).attr({stroke:j.borderColor||ve.color||fe.color||"#333333"}),me=pe}me=he.tt=me,ve=me.getBBox(),he=ve.width+me.strokeWidth(),Le&&(se=ve.height,ce+=se,q&&(te-=se));{const{isHeader:de,plotX:fe=0,plotY:we=0,series:Ie}=ue;if(de){ae=O+fe;var Se=W+F/2}else{const{xAxis:Ae,yAxis:ye}=Ie;ae=Ae.pos+g(fe,-V,Ae.len+V),Ie.shouldShowTooltip(0,ye.pos-W+we,{ignoreX:!0})&&(Se=ye.pos+we)}ae=g(ae,_.left-V,_.right+V),Se={anchorX:ae,anchorY:Se}}const{anchorX:Te,anchorY:Pe}=Se;typeof Pe=="number"?(Se=ve.height+1,ve=K?K.call(l,he,Se,ue):a(Te,Pe,Le,he),ie.push({align:K?0:void 0,anchorX:Te,anchorY:Pe,boxWidth:he,point:ue,rank:P(ve.rank,Le?1:0),size:Se,target:ve.y,tt:me,x:ve.x})):me.isActive=!1}return ie},[]),!K&&m.some(ie=>{var{outside:ae}=l;return ae=(ae?Z:0)+ie.anchorX,ae<_.left&&ae+ie.boxWidth<_.right?!0:ae<Z-_.left+ie.boxWidth&&_.right-ae>ae})&&(m=m.map(ie=>{const{x:ae,y:ue}=a(ie.anchorX,ie.anchorY,ie.point.isHeader,ie.boxWidth,!1);return y(ie,{target:ue,x:ae})})),l.cleanSplit(),v(m,ce);var ne=Z,oe=Z;m.forEach(function(ie){const{x:ae,boxWidth:ue,isHeader:he}=ie;he||(l.outside&&Z+ae<ne&&(ne=Z+ae),!he&&l.outside&&ne+ue>oe&&(oe=Z+ae))}),m.forEach(function(ie){const{x:ae,anchorX:ue,anchorY:he,pos:me,point:{isHeader:ve}}=ie,pe={visibility:typeof me>"u"?"hidden":"inherit",x:ae,y:(me||0)+te,anchorX:ue,anchorY:he};if(l.outside&&ae<ue){const Se=Z-ne;0<Se&&(ve||(pe.x=ae+Se,pe.anchorX=ue+Se),ve&&(pe.x=(oe-ne)/2,pe.anchorX=ue+Se))}ie.tt.attr(pe)});const{container:U,outside:G,renderer:re}=l;if(G&&U&&re){const{width:ie,height:ae,x:ue,y:he}=$.getBBox();re.setSize(ie+ue,ae+he,!1),U.style.left=ne+"px",U.style.top=J+"px"}d&&$.attr({opacity:$.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var m=this.chart,C=this.label,a=this.shared?m.hoverPoints:m.hoverPoint;if(C&&a){var l={x:0,y:0,width:0,height:0};a=this.getAnchor(a);var h=C.getBBox();a[0]+=m.plotLeft-C.translateX,a[1]+=m.plotTop-C.translateY,l.x=Math.min(0,a[0]),l.y=Math.min(0,a[1]),l.width=0>a[0]?Math.max(Math.abs(a[0]),h.width-a[0]):Math.max(Math.abs(a[0]),h.width),l.height=0>a[1]?Math.max(Math.abs(a[1]),h.height-Math.abs(a[1])):Math.max(Math.abs(a[1]),h.height),this.tracker?this.tracker.attr(l):(this.tracker=C.renderer.rect(l).addClass("highcharts-tracker").add(C),m.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(m){return m.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(m,C){const a=m.series,l=a.tooltipOptions;var h=a.xAxis;const b=h&&h.dateTime;h={isFooter:C,labelConfig:m};let B=l.xDateFormat,F=l[C?"footerFormat":"headerFormat"];return T(this,"headerFormatter",h,function(O){b&&!B&&A(m.key)&&(B=b.getXDateFormat(m.key,l.dateTimeLabelFormats)),b&&B&&(m.point&&m.point.tooltipDateKeys||["key"]).forEach(function(W){F=F.replace("{point."+W+"}","{point."+W+":"+B+"}")}),a.chart.styledMode&&(F=this.styledModeFormat(F)),O.text=f(F,{point:m,series:a},this.chart)}),h.text}update(m){this.destroy(),this.init(this.chart,z(!0,this.options,m))}updatePosition(m){const{chart:C,distance:a,options:l}=this;var h=C.pointer;const b=this.getLabel(),{left:B,top:F,scaleX:O,scaleY:W}=h.getChartPosition();h=(l.positioner||this.getPosition).call(this,b.width,b.height,m);let X=(m.plotX||0)+C.plotLeft;m=(m.plotY||0)+C.plotTop;let Q;this.outside&&(l.positioner&&(h.x+=B-a,h.y+=F-a),Q=(l.borderWidth||0)+2*a,this.renderer.setSize(b.width+Q,b.height+Q,!1),(O!==1||W!==1)&&(k(this.container,{transform:`scale(${O}, ${W})`}),X*=O,m*=W),X+=B-h.x,m+=F-h.y),this.move(Math.round(h.x),Math.round(h.y||0),X,m)}}return function(E){const m=[];E.compose=function(C){u.pushUnique(m,C)&&x(C,"afterInit",function(){const a=this.chart;a.options.tooltip&&(a.tooltip=new E(a,a.options.tooltip))})}}(w||(w={})),w}),o(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/Templating.js"],i["Core/Utilities.js"]],function(n,r,s,c,u){const{animObject:f}=r,{defaultOptions:p}=s,{format:d}=c,{addEvent:v,defined:x,erase:g,extend:k,fireEvent:M,getNestedProperty:y,isArray:T,isFunction:I,isNumber:A,isObject:R,merge:z,objectEach:P,pick:L,syncTimeout:S,removeEvent:w,uniqueKey:E}=u;class m{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const a=this,l={x:a.startXPos,opacity:0},h=a.getGraphicalProps();h.singular.forEach(function(b){a[b]=a[b].animate(b==="dataLabel"?{x:a[b].startXPos,y:a[b].startYPos,opacity:0}:l)}),h.plural.forEach(function(b){a[b].forEach(function(B){B.element&&B.animate(k({x:a.startXPos},B.startYPos?{x:B.startXPos,y:B.startYPos}:{}))})})}applyOptions(a,l){const h=this.series,b=h.options.pointValKey||h.pointValKey;return a=m.prototype.optionsToObject.call(this,a),k(this,a),this.options=this.options?k(this.options,a):a,a.group&&delete this.group,a.dataLabels&&delete this.dataLabels,b&&(this.y=m.prototype.getNestedProperty.call(this,b)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof l>"u"&&h.xAxis&&h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this)),typeof this.x>"u"&&h?this.x=typeof l>"u"?h.autoIncrement():l:A(a.x)&&h.options.relativeXValue&&(this.x=h.autoIncrement(a.x)),this}destroy(){if(!this.destroyed){const l=this;var a=l.series;const h=a.chart;a=a.options.dataSorting;const b=h.hoverPoints,B=f(l.series.chart.renderer.globalAnimation),F=()=>{(l.graphic||l.graphics||l.dataLabel||l.dataLabels)&&(w(l),l.destroyElements());for(const O in l)delete l[O]};l.legendItem&&h.legend.destroyItem(l),b&&(l.setState(),g(b,l),b.length||(h.hoverPoints=null)),l===h.hoverPoint&&l.onMouseOut(),a&&a.enabled?(this.animateBeforeDestroy(),S(F,B.duration)):F(),h.pointCount--}this.destroyed=!0}destroyElements(a){const l=this;a=l.getGraphicalProps(a),a.singular.forEach(function(h){l[h]=l[h].destroy()}),a.plural.forEach(function(h){l[h].forEach(function(b){b&&b.element&&b.destroy()}),delete l[h]})}firePointEvent(a,l,h){const b=this,B=this.series.options;(B.point.events[a]||b.options&&b.options.events&&b.options.events[a])&&b.importEvents(),a==="click"&&B.allowPointSelect&&(h=function(F){b.select&&b.select(null,F.ctrlKey||F.metaKey||F.shiftKey)}),M(b,a,l,h)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(a){const l=this,h=[],b={singular:[],plural:[]};let B,F;for(a=a||{graphic:1,dataLabel:1},a.graphic&&h.push("graphic"),a.dataLabel&&h.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),F=h.length;F--;)B=h[F],l[B]&&b.singular.push(B);return["graphic","dataLabel","connector"].forEach(function(O){const W=O+"s";a[O]&&l[W]&&b.plural.push(W)}),b}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(a){if(a)return a.indexOf("custom.")===0?y(a,this.options):this[a]}getZone(){var a=this.series;const l=a.zones;a=a.zoneAxis||"y";let h,b=0;for(h=l[b];this[a]>=h.value;)h=l[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=h&&h.color&&!this.options.color?h.color:this.nonZonedColor,h}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(a,l,h){return this.series=a,this.applyOptions(l,h),this.id=x(this.id)?this.id:E(),this.resolveColor(),a.chart.pointCount++,M(this,"afterInit"),this}isValid(){return this.x!==null&&A(this.y)}optionsToObject(a){var l=this.series;const h=l.options.keys,b=h||l.pointArrayMap||["y"],B=b.length;let F={},O=0,W=0;if(A(a)||a===null)F[b[0]]=a;else if(T(a))for(!h&&a.length>B&&(l=typeof a[0],l==="string"?F.name=a[0]:l==="number"&&(F.x=a[0]),O++);W<B;)h&&typeof a[O]>"u"||(0<b[W].indexOf(".")?m.prototype.setNestedProperty(F,a[O],b[W]):F[b[W]]=a[O]),O++,W++;else typeof a=="object"&&(F=a,a.dataLabels&&(l._hasPointLabels=!0),a.marker&&(l._hasPointMarkers=!0));return F}pos(a,l=this.plotY){if(!this.destroyed){const{plotX:h,series:b}=this,{chart:B,xAxis:F,yAxis:O}=b;let W=0,X=0;if(A(h)&&A(l))return a&&(W=F?F.pos:B.plotLeft,X=O?O.pos:B.plotTop),B.inverted&&F&&O?[O.len-l+X,F.len-h+W]:[h+W,l+X]}}resolveColor(){const a=this.series;var l=a.chart.styledMode;let h;var b=a.chart.options.chart.colorCount;delete this.nonZonedColor,a.options.colorByPoint?(l||(b=a.options.colors||a.chart.options.colors,h=b[a.colorCounter],b=b.length),l=a.colorCounter,a.colorCounter++,a.colorCounter===b&&(a.colorCounter=0)):(l||(h=a.color),l=a.colorIndex),this.colorIndex=L(this.options.colorIndex,l),this.color=L(this.options.color,h)}setNestedProperty(a,l,h){return h.split(".").reduce(function(b,B,F,O){return b[B]=O.length-1===F?l:R(b[B],!0)?b[B]:{},b[B]},a),a}shouldDraw(){return!this.isNull}tooltipFormatter(a){const l=this.series,h=l.tooltipOptions,b=L(h.valueDecimals,""),B=h.valuePrefix||"",F=h.valueSuffix||"";return l.chart.styledMode&&(a=l.chart.tooltip.styledModeFormat(a)),(l.pointArrayMap||["y"]).forEach(function(O){O="{point."+O,(B||F)&&(a=a.replace(RegExp(O+"}","g"),B+O+"}"+F)),a=a.replace(RegExp(O+"}","g"),O+":,."+b+"f}")}),d(a,{point:this,series:this.series},l.chart)}update(a,l,h,b){function B(){F.applyOptions(a);var Y=W&&F.hasMockGraphic;Y=F.y===null?!Y:Y,W&&Y&&(F.graphic=W.destroy(),delete F.hasMockGraphic),R(a,!0)&&(W&&W.element&&a&&a.marker&&typeof a.marker.symbol<"u"&&(F.graphic=W.destroy()),a&&a.dataLabels&&F.dataLabel&&(F.dataLabel=F.dataLabel.destroy()),F.connector&&(F.connector=F.connector.destroy())),ee=F.index,O.updateParallelArrays(F,ee),Q.data[ee]=R(Q.data[ee],!0)||R(a,!0)?F.options:L(a,Q.data[ee]),O.isDirty=O.isDirtyData=!0,!O.fixedBox&&O.hasCartesianSeries&&(X.isDirtyBox=!0),Q.legendType==="point"&&(X.isDirtyLegend=!0),l&&X.redraw(h)}const F=this,O=F.series,W=F.graphic,X=O.chart,Q=O.options;let ee;l=L(l,!0),b===!1?B():F.firePointEvent("update",{options:a},B)}remove(a,l){this.series.removePoint(this.series.data.indexOf(this),a,l)}select(a,l){const h=this,b=h.series,B=b.chart;this.selectedStaging=a=L(a,!h.selected),h.firePointEvent(a?"select":"unselect",{accumulate:l},function(){h.selected=h.options.selected=a,b.options.data[b.data.indexOf(h)]=h.options,h.setState(a&&"select"),l||B.getSelectedPoints().forEach(function(F){const O=F.series;F.selected&&F!==h&&(F.selected=F.options.selected=!1,O.options.data[O.data.indexOf(F)]=F.options,F.setState(B.hoverPoints&&O.options.inactiveOtherPoints?"inactive":""),F.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(a){const l=this.series.chart,h=l.pointer;a=a?h.normalize(a):h.getChartCoordinatesFromPoint(this,l.inverted),h.runPointActions(a,this)}onMouseOut(){const a=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(l){l.setState()}),a.hoverPoints=a.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){const a=this,l=z(a.series.options.point,a.options).events;a.events=l,P(l,function(h,b){I(h)&&v(a,b,h)}),this.hasImportedEvents=!0}}setState(a,l){const h=this.series;var b=this.state,B=h.options.states[a||"normal"]||{},F=p.plotOptions[h.type].marker&&h.options.marker;const O=F&&F.enabled===!1,W=F&&F.states&&F.states[a||"normal"]||{},X=W.enabled===!1,Q=this.marker||{},ee=h.chart,Y=F&&h.markerAttribs;let D=h.halo;var N;let V;var j=h.stateMarkerGraphic;if(a=a||"",!(a===this.state&&!l||this.selected&&a!=="select"||B.enabled===!1||a&&(X||O&&W.enabled===!1)||a&&Q.states&&Q.states[a]&&Q.states[a].enabled===!1)){if(this.state=a,Y&&(N=h.markerAttribs(this,a)),this.graphic&&!this.hasMockGraphic){if(b&&this.graphic.removeClass("highcharts-point-"+b),a&&this.graphic.addClass("highcharts-point-"+a),!ee.styledMode){b=h.pointAttribs(this,a),V=L(ee.options.chart.animation,B.animation);const K=b.opacity;h.options.inactiveOtherPoints&&A(K)&&((this.dataLabels||[]).forEach(function(_){_&&!_.hasClass("highcharts-data-label-hidden")&&_.animate({opacity:K},V)}),this.connector&&this.connector.animate({opacity:K},V)),this.graphic.animate(b,V)}N&&this.graphic.animate(N,L(ee.options.chart.animation,W.animation,F.animation)),j&&j.hide()}else a&&W&&(F=Q.symbol||h.symbol,j&&j.currentSymbol!==F&&(j=j.destroy()),N&&(j?j[l?"animate":"attr"]({x:N.x,y:N.y}):F&&(h.stateMarkerGraphic=j=ee.renderer.symbol(F,N.x,N.y,N.width,N.height).add(h.markerGroup),j.currentSymbol=F)),!ee.styledMode&&j&&this.state!=="inactive"&&j.attr(h.pointAttribs(this,a))),j&&(j[a&&this.isInside?"show":"hide"](),j.element.point=this,j.addClass(this.getClassName(),!0));B=B.halo,N=(j=this.graphic||j)&&j.visibility||"inherit",B&&B.size&&j&&N!=="hidden"&&!this.isCluster?(D||(h.halo=D=ee.renderer.path().add(j.parentGroup)),D.show()[l?"animate":"attr"]({d:this.haloPath(B.size)}),D.attr({class:"highcharts-halo highcharts-color-"+L(this.colorIndex,h.colorIndex)+(this.className?" "+this.className:""),visibility:N,zIndex:-1}),D.point=this,ee.styledMode||D.attr(k({fill:this.color||h.color,"fill-opacity":B.opacity},n.filterUserAttributes(B.attributes||{})))):D&&D.point&&D.point.haloPath&&D.animate({d:D.point.haloPath(0)},null,D.hide),M(this,"afterSetState",{state:a})}}haloPath(a){const l=this.pos();return l?this.series.chart.renderer.symbols.circle(Math.floor(l[0])-a,l[1]-a,2*a,2*a):[]}}return m}),o(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(n,r,s){const{parse:c}=n,{charts:u,noop:f}=r,{addEvent:p,attr:d,css:v,defined:x,extend:g,find:k,fireEvent:M,isNumber:y,isObject:T,objectEach:I,offset:A,pick:R,splat:z}=s;class P{constructor(S,w){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=S,this.hasDragged=!1,this.options=w,this.init(S,w)}applyInactiveState(S){let w=[],E;(S||[]).forEach(function(m){E=m.series,w.push(E),E.linkedParent&&w.push(E.linkedParent),E.linkedSeries&&(w=w.concat(E.linkedSeries)),E.navigatorSeries&&w.push(E.navigatorSeries)}),this.chart.series.forEach(function(m){w.indexOf(m)===-1?m.setState("inactive",!0):m.options.inactiveOtherPoints&&m.setAllPointsToState("inactive")})}destroy(){const S=this;this.eventsToUnbind.forEach(w=>w()),this.eventsToUnbind=[],r.chartCount||(P.unbindDocumentMouseUp&&(P.unbindDocumentMouseUp=P.unbindDocumentMouseUp()),P.unbindDocumentTouchEnd&&(P.unbindDocumentTouchEnd=P.unbindDocumentTouchEnd())),clearInterval(S.tooltipTimeout),I(S,function(w,E){S[E]=void 0})}getSelectionMarkerAttrs(S,w){const E={args:{chartX:S,chartY:w},attrs:{},shapeType:"rect"};return M(this,"getSelectionMarkerAttrs",E,m=>{const{chart:C,mouseDownX:a=0,mouseDownY:l=0,zoomHor:h,zoomVert:b}=this;m=m.attrs;let B;m.x=C.plotLeft,m.y=C.plotTop,m.width=h?1:C.plotWidth,m.height=b?1:C.plotHeight,h&&(B=S-a,m.width=Math.abs(B),m.x=(0<B?0:B)+a),b&&(B=w-l,m.height=Math.abs(B),m.y=(0<B?0:B)+l)}),E}drag(S){const w=this.chart,E=w.options.chart;var m=w.plotLeft;const C=w.plotTop,a=w.plotWidth,l=w.plotHeight,h=this.mouseDownX||0,b=this.mouseDownY||0,B=T(E.panning)?E.panning&&E.panning.enabled:E.panning,F=E.panKey&&S[E.panKey+"Key"];let O=S.chartX,W=S.chartY,X=this.selectionMarker;if((!X||!X.touch)&&(O<m?O=m:O>m+a&&(O=m+a),W<C?W=C:W>C+l&&(W=C+l),this.hasDragged=Math.sqrt(Math.pow(h-O,2)+Math.pow(b-W,2)),10<this.hasDragged)){m=w.isInsidePlot(h-m,b-C,{visiblePlotOnly:!0});const{shapeType:Q,attrs:ee}=this.getSelectionMarkerAttrs(O,W);!w.hasCartesianSeries&&!w.mapView||!this.zoomX&&!this.zoomY||!m||F||X||(this.selectionMarker=X=w.renderer[Q](),X.attr({class:"highcharts-selection-marker",zIndex:7}).add(),w.styledMode||X.attr({fill:E.selectionMarkerFill||c("#334eff").setOpacity(.25).get()})),X&&X.attr(ee),m&&!X&&B&&w.pan(S,E.panning)}}dragStart(S){const w=this.chart;w.mouseIsDown=S.type,w.cancelClick=!1,w.mouseDownX=this.mouseDownX=S.chartX,w.mouseDownY=this.mouseDownY=S.chartY}getSelectionBox(S){const w={args:{marker:S},result:{}};return M(this,"getSelectionBox",w,E=>{E.result={x:S.attr?+S.attr("x"):S.x,y:S.attr?+S.attr("y"):S.y,width:S.attr?S.attr("width"):S.width,height:S.attr?S.attr("height"):S.height}}),w.result}drop(S){const w=this,E=this.chart,m=this.hasPinched;if(this.selectionMarker){const{x:C,y:a,width:l,height:h}=this.getSelectionBox(this.selectionMarker),b={originalEvent:S,xAxis:[],yAxis:[],x:C,y:a,width:l,height:h};let B=!!E.mapView;(this.hasDragged||m)&&(E.axes.forEach(function(F){if(F.zoomEnabled&&x(F.min)&&(m||w[{xAxis:"zoomX",yAxis:"zoomY"}[F.coll]])&&y(C)&&y(a)&&y(l)&&y(h)){var O=F.horiz;const W=S.type==="touchend"?F.minPixelPadding:0,X=F.toValue((O?C:a)+W);O=F.toValue((O?C+l:a+h)-W),b[F.coll].push({axis:F,min:Math.min(X,O),max:Math.max(X,O)}),B=!0}}),B&&M(E,"selection",b,function(F){E.zoom(g(F,m?{animation:!1}:null))})),y(E.index)&&(this.selectionMarker=this.selectionMarker.destroy()),m&&this.scaleGroups()}E&&y(E.index)&&(v(E.container,{cursor:E._cursor}),E.cancelClick=10<this.hasDragged,E.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(S,w,E){let m;return S.forEach(function(C){var a=!(C.noSharedTooltip&&w)&&0>C.options.findNearestPointBy.indexOf("y");if(C=C.searchPoint(E,a),(a=T(C,!0)&&C.series)&&!(a=!T(m,!0))){{a=m.distX-C.distX;const l=m.dist-C.dist,h=(C.series.group&&C.series.group.zIndex)-(m.series.group&&m.series.group.zIndex);a=a!==0&&w?a:l!==0?l:h!==0?h:m.series.index>C.series.index?-1:1}a=0<a}a&&(m=C)}),m}getChartCoordinatesFromPoint(S,w){var E=S.series;const m=E.xAxis;E=E.yAxis;const C=S.shapeArgs;if(m&&E){let a=R(S.clientX,S.plotX),l=S.plotY||0;return S.isNode&&C&&y(C.x)&&y(C.y)&&(a=C.x,l=C.y),w?{chartX:E.len+E.pos-l,chartY:m.len+m.pos-a}:{chartX:a+m.pos,chartY:l+E.pos}}if(C&&C.x&&C.y)return{chartX:C.x,chartY:C.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:S}=this.chart;const w=A(S);this.chartPosition={left:w.left,top:w.top,scaleX:1,scaleY:1};const E=S.offsetWidth;return S=S.offsetHeight,2<E&&2<S&&(this.chartPosition.scaleX=w.width/E,this.chartPosition.scaleY=w.height/S),this.chartPosition}getCoordinates(S){const w={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(E){w[E.isXAxis?"xAxis":"yAxis"].push({axis:E,value:E.toValue(S[E.horiz?"chartX":"chartY"])})}),w}getHoverData(S,w,E,m,C,a){const l=[];m=!(!m||!S);const h=function(O){return O.visible&&!(!C&&O.directTouch)&&R(O.options.enableMouseTracking,!0)};let b,B={chartX:a?a.chartX:void 0,chartY:a?a.chartY:void 0,shared:C};M(this,"beforeGetHoverData",B),b=w&&!w.stickyTracking?[w]:E.filter(O=>O.stickyTracking&&(B.filter||h)(O));const F=m||!a?S:this.findNearestKDPoint(b,C,a);return w=F&&F.series,F&&(C&&!w.noSharedTooltip?(b=E.filter(function(O){return B.filter?B.filter(O):h(O)&&!O.noSharedTooltip}),b.forEach(function(O){let W=k(O.points,function(X){return X.x===F.x&&!X.isNull});T(W)&&(O.boosted&&O.boost&&(W=O.boost.getPoint(W)),l.push(W))})):l.push(F)),B={hoverPoint:F},M(this,"afterGetHoverData",B),{hoverPoint:B.hoverPoint,hoverSeries:w,hoverPoints:l}}getPointFromEvent(S){S=S.target;let w;for(;S&&!w;)w=S.point,S=S.parentNode;return w}onTrackerMouseOut(S){S=S.relatedTarget;const w=this.chart.hoverSeries;this.isDirectTouch=!1,!w||!S||w.stickyTracking||this.inClass(S,"highcharts-tooltip")||this.inClass(S,"highcharts-series-"+w.index)&&this.inClass(S,"highcharts-tracker")||w.onMouseOut()}inClass(S,w){let E;for(;S;){if(E=d(S,"class")){if(E.indexOf(w)!==-1)return!0;if(E.indexOf("highcharts-container")!==-1)return!1}S=S.parentElement}}init(S,w){this.options=w,this.chart=S,this.runChartClick=!(!w.chart.events||!w.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),M(this,"afterInit")}normalize(S,w){var E=S.touches,m=E?E.length?E.item(0):R(E.changedTouches,S.changedTouches)[0]:S;return w||(w=this.getChartPosition()),E=m.pageX-w.left,m=m.pageY-w.top,E/=w.scaleX,m/=w.scaleY,g(S,{chartX:Math.round(E),chartY:Math.round(m)})}onContainerClick(S){const w=this.chart,E=w.hoverPoint;S=this.normalize(S);const m=w.plotLeft,C=w.plotTop;w.cancelClick||(E&&this.inClass(S.target,"highcharts-tracker")?(M(E.series,"click",g(S,{point:E})),w.hoverPoint&&E.firePointEvent("click",S)):(g(S,this.getCoordinates(S)),w.isInsidePlot(S.chartX-m,S.chartY-C,{visiblePlotOnly:!0})&&M(w,"click",S)))}onContainerMouseDown(S){const w=((S.buttons||S.button)&1)===1;S=this.normalize(S),r.isFirefox&&S.button!==0&&this.onContainerMouseMove(S),(typeof S.button>"u"||w)&&(this.zoomOption(S),w&&S.preventDefault&&S.preventDefault(),this.dragStart(S))}onContainerMouseLeave(S){const w=u[R(P.hoverChartIndex,-1)];S=this.normalize(S),w&&S.relatedTarget&&!this.inClass(S.relatedTarget,"highcharts-tooltip")&&(w.pointer.reset(),w.pointer.chartPosition=void 0)}onContainerMouseEnter(S){delete this.chartPosition}onContainerMouseMove(S){const w=this.chart,E=w.tooltip;S=this.normalize(S),this.setHoverChartIndex(),(w.mouseIsDown==="mousedown"||this.touchSelect(S))&&this.drag(S),w.openMenu||!this.inClass(S.target,"highcharts-tracker")&&!w.isInsidePlot(S.chartX-w.plotLeft,S.chartY-w.plotTop,{visiblePlotOnly:!0})||E&&E.shouldStickOnContact(S)||(this.inClass(S.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(S))}onDocumentTouchEnd(S){const w=u[R(P.hoverChartIndex,-1)];w&&w.pointer.drop(S)}onContainerTouchMove(S){this.touchSelect(S)?this.onContainerMouseMove(S):this.touch(S)}onContainerTouchStart(S){this.touchSelect(S)?this.onContainerMouseDown(S):(this.zoomOption(S),this.touch(S,!0))}onDocumentMouseMove(S){const w=this.chart,E=w.tooltip,m=this.chartPosition;S=this.normalize(S,m),!m||w.isInsidePlot(S.chartX-w.plotLeft,S.chartY-w.plotTop,{visiblePlotOnly:!0})||E&&E.shouldStickOnContact(S)||this.inClass(S.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(S){const w=u[R(P.hoverChartIndex,-1)];w&&w.pointer.drop(S)}pinch(S){const w=this,E=w.chart,m=w.pinchDown,C=S.touches||[],a=C.length,l=w.lastValidTouch,h=w.hasZoom,b={},B=a===1&&(w.inClass(S.target,"highcharts-tracker")&&E.runTrackerClick||w.runChartClick),F={};var O=w.chart.tooltip;O=a===1&&R(O&&O.options.followTouchMove,!0);let W=w.selectionMarker;1<a?w.initiated=!0:O&&(w.initiated=!1),h&&w.initiated&&!B&&S.cancelable!==!1&&S.preventDefault(),[].map.call(C,function(X){return w.normalize(X)}),S.type==="touchstart"?([].forEach.call(C,function(X,Q){m[Q]={chartX:X.chartX,chartY:X.chartY}}),l.x=[m[0].chartX,m[1]&&m[1].chartX],l.y=[m[0].chartY,m[1]&&m[1].chartY],E.axes.forEach(function(X){if(X.zoomEnabled){const Q=E.bounds[X.horiz?"h":"v"],ee=X.minPixelPadding,Y=X.toPixels(Math.min(R(X.options.min,X.dataMin),X.dataMin)),D=X.toPixels(Math.max(R(X.options.max,X.dataMax),X.dataMax)),N=Math.max(Y,D);Q.min=Math.min(X.pos,Math.min(Y,D)-ee),Q.max=Math.max(X.pos+X.len,N+ee)}}),w.res=!0):O?this.runPointActions(w.normalize(S)):m.length&&(M(E,"touchpan",{originalEvent:S},()=>{W||(w.selectionMarker=W=g({destroy:f,touch:!0},E.plotBox)),w.pinchTranslate(m,C,b,W,F,l),w.hasPinched=h,w.scaleGroups(b,F)}),w.res&&(w.res=!1,this.reset(!1,0)))}pinchTranslate(S,w,E,m,C,a){this.zoomHor&&this.pinchTranslateDirection(!0,S,w,E,m,C,a),this.zoomVert&&this.pinchTranslateDirection(!1,S,w,E,m,C,a)}pinchTranslateDirection(S,w,E,m,C,a,l,h){const b=this.chart,B=S?"x":"y",F=S?"X":"Y",O="chart"+F,W=S?"width":"height",X=b["plot"+(S?"Left":"Top")],Q=b.inverted,ee=b.bounds[S?"h":"v"],Y=w.length===1,D=w[0][O],N=!Y&&w[1][O];w=function(){typeof $=="number"&&20<Math.abs(D-N)&&(K=h||Math.abs(_-$)/Math.abs(D-N)),j=(X-_)/K+D,V=b["plot"+(S?"Width":"Height")]/K};let V,j,K=h||1,_=E[0][O],$=!Y&&E[1][O],H;w(),E=j,E<ee.min?(E=ee.min,H=!0):E+V>ee.max&&(E=ee.max-V,H=!0),H?(_-=.8*(_-l[B][0]),typeof $=="number"&&($-=.8*($-l[B][1])),w()):l[B]=[_,$],Q||(a[B]=j-X,a[W]=V),a=Q?1/K:K,C[W]=V,C[B]=E,m[Q?S?"scaleY":"scaleX":"scale"+F]=K,m["translate"+F]=a*X+(_-a*D)}reset(S,w){const E=this.chart,m=E.hoverSeries,C=E.hoverPoint,a=E.hoverPoints,l=E.tooltip,h=l&&l.shared?a:C;S&&h&&z(h).forEach(function(b){b.series.isCartesian&&typeof b.plotX>"u"&&(S=!1)}),S?l&&h&&z(h).length&&(l.refresh(h),l.shared&&a?a.forEach(function(b){b.setState(b.state,!0),b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):C&&(C.setState(C.state,!0),E.axes.forEach(function(b){b.crosshair&&C.series[b.coll]===b&&b.drawCrosshair(null,C)}))):(C&&C.onMouseOut(),a&&a.forEach(function(b){b.setState()}),m&&m.onMouseOut(),l&&l.hide(w),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),E.axes.forEach(function(b){b.hideCrosshair()}),this.hoverX=E.hoverPoints=E.hoverPoint=null)}runPointActions(S,w,E){const m=this.chart,C=m.tooltip&&m.tooltip.options.enabled?m.tooltip:void 0,a=C?C.shared:!1;let l=w||m.hoverPoint,h=l&&l.series||m.hoverSeries;w=this.getHoverData(l,h,m.series,(!S||S.type!=="touchmove")&&(!!w||h&&h.directTouch&&this.isDirectTouch),a,S),l=w.hoverPoint,h=w.hoverSeries;const b=w.hoverPoints;w=h&&h.tooltipOptions.followPointer&&!h.tooltipOptions.split;const B=a&&h&&!h.noSharedTooltip;if(l&&(E||l!==m.hoverPoint||C&&C.isHidden)){if((m.hoverPoints||[]).forEach(function(F){b.indexOf(F)===-1&&F.setState()}),m.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(b),(b||[]).forEach(function(F){F.setState("hover")}),m.hoverPoint&&m.hoverPoint.firePointEvent("mouseOut"),!l.series)return;m.hoverPoints=b,m.hoverPoint=l,l.firePointEvent("mouseOver",void 0,()=>{C&&l&&C.refresh(B?b:l,S)})}else w&&C&&!C.isHidden&&(E=C.getAnchor([{}],S),m.isInsidePlot(E[0],E[1],{visiblePlotOnly:!0})&&C.updatePosition({plotX:E[0],plotY:E[1]}));this.unDocMouseMove||(this.unDocMouseMove=p(m.container.ownerDocument,"mousemove",function(F){const O=u[P.hoverChartIndex];O&&O.pointer.onDocumentMouseMove(F)}),this.eventsToUnbind.push(this.unDocMouseMove)),m.axes.forEach(function(F){const O=R((F.crosshair||{}).snap,!0);let W;O&&((W=m.hoverPoint)&&W.series[F.coll]===F||(W=k(b,X=>X.series&&X.series[F.coll]===F))),W||!O?F.drawCrosshair(S,W):F.hideCrosshair()})}scaleGroups(S,w){const E=this.chart;E.series.forEach(function(m){const C=S||m.getPlotBox();m.group&&(m.xAxis&&m.xAxis.zoomEnabled||E.mapView)&&(m.group.attr(C),m.markerGroup&&(m.markerGroup.attr(C),m.markerGroup.clip(w?E.clipRect:null)),m.dataLabelsGroup&&m.dataLabelsGroup.attr(C))}),E.clipRect.attr(w||E.clipBox)}setDOMEvents(){const S=this.chart.container,w=S.ownerDocument;S.onmousedown=this.onContainerMouseDown.bind(this),S.onmousemove=this.onContainerMouseMove.bind(this),S.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(p(S,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(p(S,"mouseleave",this.onContainerMouseLeave.bind(this))),P.unbindDocumentMouseUp||(P.unbindDocumentMouseUp=p(w,"mouseup",this.onDocumentMouseUp.bind(this)));let E=this.chart.renderTo.parentElement;for(;E&&E.tagName!=="BODY";)this.eventsToUnbind.push(p(E,"scroll",()=>{delete this.chartPosition})),E=E.parentElement;r.hasTouch&&(this.eventsToUnbind.push(p(S,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(p(S,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),P.unbindDocumentTouchEnd||(P.unbindDocumentTouchEnd=p(w,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const S=this.chart,w=r.charts[R(P.hoverChartIndex,-1)];w&&w!==S&&w.pointer.onContainerMouseLeave({relatedTarget:S.container}),w&&w.mouseIsDown||(P.hoverChartIndex=S.index)}touch(S,w){const E=this.chart;let m;this.setHoverChartIndex(),S.touches.length===1?(S=this.normalize(S),E.isInsidePlot(S.chartX-E.plotLeft,S.chartY-E.plotTop,{visiblePlotOnly:!0})&&!E.openMenu?(w&&this.runPointActions(S),S.type==="touchmove"&&(w=this.pinchDown,m=w[0]?4<=Math.sqrt(Math.pow(w[0].chartX-S.chartX,2)+Math.pow(w[0].chartY-S.chartY,2)):!1),R(m,!0)&&this.pinch(S)):w&&this.reset()):S.touches.length===2&&this.pinch(S)}touchSelect(S){return!(!this.chart.zooming.singleTouch||!S.touches||S.touches.length!==1)}zoomOption(S){const w=this.chart,E=w.inverted;var m=w.zooming.type||"";/touch/.test(S.type)&&(m=R(w.zooming.pinchType,m)),this.zoomX=S=/x/.test(m),this.zoomY=m=/y/.test(m),this.zoomHor=S&&!E||m&&E,this.zoomVert=m&&!E||S&&E,this.hasZoom=S||m}}return function(L){const S=[],w=[];L.compose=function(E){s.pushUnique(w,E)&&p(E,"beforeRender",function(){this.pointer=new L(this,this.options)})},L.dissolve=function(){for(let E=0,m=S.length;E<m;++E)S[E]();S.length=0}}(P||(P={})),P}),o(i,"Core/Legend/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Templating.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f){const{animObject:p,setAnimation:d}=n,{format:v}=r,{marginNames:x}=s,{distribute:g}=u,{addEvent:k,createElement:M,css:y,defined:T,discardElement:I,find:A,fireEvent:R,isNumber:z,merge:P,pick:L,relativeLength:S,stableSort:w,syncTimeout:E}=f;class m{constructor(a,l){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=a,this.init(a,l)}init(a,l){this.chart=a,this.setOptions(l),l.enabled&&(this.render(),k(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),k(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(a){const l=L(a.padding,8);this.options=a,this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=P(this.itemStyle,a.itemHiddenStyle)),this.itemMarginTop=a.itemMarginTop,this.itemMarginBottom=a.itemMarginBottom,this.padding=l,this.initialItemY=l-5,this.symbolWidth=L(a.symbolWidth,16),this.pages=[],this.proximate=a.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(a,l){const h=this.chart;this.setOptions(P(!0,this.options,a)),this.destroy(),h.isDirtyLegend=h.isDirtyBox=!0,L(l,!0)&&h.redraw(),R(this,"afterUpdate")}colorizeItem(a,l){const{group:h,label:b,line:B,symbol:F}=a.legendItem||{};if(h&&h[l?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:O}=this,W=O.color,X=l&&a.color||W,Q=a.options&&a.options.marker;let ee={fill:X};b==null||b.css(P(l?this.itemStyle:O)),B==null||B.attr({stroke:X}),F&&(Q&&F.isMarker&&(ee=a.pointAttribs(),l||(ee.stroke=ee.fill=W)),F.attr(ee))}R(this,"afterColorizeItem",{item:a,visible:l})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(a){const{group:l,x:h=0,y:b=0}=a.legendItem||{};var B=this.options,F=B.symbolPadding;const O=!B.rtl;B=a.checkbox,l&&l.element&&(F={translateX:O?h:this.legendWidth-h-2*F-4,translateY:b},l[T(l.translateY)?"animate":"attr"](F,void 0,()=>{R(this,"afterPositionItem",{item:a})})),B&&(B.x=h,B.y=b)}destroyItem(a){const l=a.checkbox,h=a.legendItem||{};for(const b of["group","label","line","symbol"])h[b]&&(h[b]=h[b].destroy());l&&I(l),a.legendItem=void 0}destroy(){for(const a of this.getAllItems())this.destroyItem(a);for(const a of"clipRect up down pager nav box title group".split(" "))this[a]&&(this[a]=this[a].destroy());this.display=null}positionCheckboxes(){const a=this.group&&this.group.alignAttr,l=this.clipHeight||this.legendHeight,h=this.titleHeight;let b;a&&(b=a.translateY,this.allItems.forEach(function(B){const F=B.checkbox;let O;F&&(O=b+h+F.y+(this.scrollOffset||0)+3,y(F,{left:a.translateX+B.checkboxOffset+F.x-20+"px",top:O+"px",display:this.proximate||O>b-6&&O<b+l-6?"":"none"}))},this))}renderTitle(){var a=this.options;const l=this.padding,h=a.title;let b=0;h.text&&(this.title||(this.title=this.chart.renderer.label(h.text,l-3,l-4,void 0,void 0,void 0,a.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(h.style),this.title.add(this.group)),h.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),b=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:b})),this.titleHeight=b}setText(a){const l=this.options;a.legendItem.label.attr({text:l.labelFormat?v(l.labelFormat,a,this.chart):l.labelFormatter.call(a)})}renderItem(a){const l=a.legendItem=a.legendItem||{};var h=this.chart,b=h.renderer;const B=this.options,F=this.symbolWidth,O=B.symbolPadding||0,W=this.itemStyle,X=this.itemHiddenStyle,Q=B.layout==="horizontal"?L(B.itemDistance,20):0,ee=!B.rtl,Y=!a.series,D=!Y&&a.series.drawLegendSymbol?a.series:a;var N=D.options;const V=this.createCheckboxForItem&&N&&N.showCheckbox,j=B.useHTML,K=a.options.className;let _=l.label;N=F+O+Q+(V?20:0),_||(l.group=b.g("legend-item").addClass("highcharts-"+D.type+"-series highcharts-color-"+a.colorIndex+(K?" "+K:"")+(Y?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),l.label=_=b.text("",ee?F+O:-O,this.baseline||0,j),h.styledMode||_.css(P(a.visible?W:X)),_.attr({align:ee?"left":"right",zIndex:2}).add(l.group),this.baseline||(this.fontMetrics=b.fontMetrics(_),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,_.attr("y",this.baseline),this.symbolHeight=L(B.symbolHeight,this.fontMetrics.f),B.squareSymbol&&(this.symbolWidth=L(B.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+O+Q+(V?20:0),ee&&_.attr("x",this.symbolWidth+O))),D.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,_,j)),V&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a),this.colorizeItem(a,a.visible),!h.styledMode&&W.width||_.css({width:(B.itemWidth||this.widthOption||h.spacingBox.width)-N+"px"}),this.setText(a),h=_.getBBox(),b=this.fontMetrics&&this.fontMetrics.h||0,a.itemWidth=a.checkboxOffset=B.itemWidth||l.labelWidth||h.width+N,this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth),this.totalItemWidth+=a.itemWidth,this.itemHeight=a.itemHeight=Math.round(l.labelHeight||(h.height>1.5*b?h.height:b))}layoutItem(a){var l=this.options;const h=this.padding,b=l.layout==="horizontal",B=a.itemHeight,F=this.itemMarginBottom,O=this.itemMarginTop,W=b?L(l.itemDistance,20):0,X=this.maxLegendWidth;l=l.alignColumns&&this.totalItemWidth>X?this.maxItemWidth:a.itemWidth;const Q=a.legendItem||{};b&&this.itemX-h+l>X&&(this.itemX=h,this.lastLineHeight&&(this.itemY+=O+this.lastLineHeight+F),this.lastLineHeight=0),this.lastItemY=O+this.itemY+F,this.lastLineHeight=Math.max(B,this.lastLineHeight),Q.x=this.itemX,Q.y=this.itemY,b?this.itemX+=l:(this.itemY+=O+B+F,this.lastLineHeight=B),this.offsetWidth=this.widthOption||Math.max((b?this.itemX-h-(a.checkbox?0:W):l)+h,this.offsetWidth)}getAllItems(){let a=[];return this.chart.series.forEach(function(l){const h=l&&l.options;l&&L(h.showInLegend,T(h.linkedTo)?!1:void 0,!0)&&(a=a.concat((l.legendItem||{}).labels||(h.legendType==="point"?l.data:l)))}),R(this,"afterGetAllItems",{allItems:a}),a}getAlignment(){const a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)}adjustMargins(a,l){const h=this.chart,b=this.options,B=this.getAlignment();B&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(F,O){F.test(B)&&!T(a[O])&&(h[x[O]]=Math.max(h[x[O]],h.legend[(O+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][O]*b[O%2?"x":"y"]+L(b.margin,12)+l[O]+(h.titleOffset[O]||0)))})}proximatePositions(){const a=this.chart,l=[],h=this.options.align==="left";this.allItems.forEach(function(B){var F,O=h;let W;B.yAxis&&(B.xAxis.options.reversed&&(O=!O),B.points&&(F=A(O?B.points:B.points.slice(0).reverse(),function(X){return z(X.plotY)})),O=this.itemMarginTop+B.legendItem.label.getBBox().height+this.itemMarginBottom,W=B.yAxis.top-a.plotTop,B.visible?(F=F?F.plotY:B.yAxis.height,F+=W-.3*O):F=W+B.yAxis.height,l.push({target:F,size:O,item:B}))},this);let b;for(const B of g(l,a.plotHeight))b=B.item.legendItem||{},z(B.pos)&&(b.y=a.plotTop-a.spacing[0]+B.pos)}render(){const a=this.chart,l=a.renderer,h=this.options,b=this.padding;var B=this.getAllItems();let F,O=this.group,W=this.box;this.itemX=b,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=S(h.width,a.spacingBox.width-b);var X=a.spacingBox.width-2*b-h.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(X/=2),this.maxLegendWidth=this.widthOption||X,O||(this.group=O=l.g("legend").addClass(h.className||"").attr({zIndex:7}).add(),this.contentGroup=l.g().attr({zIndex:1}).add(O),this.scrollGroup=l.g().add(this.contentGroup)),this.renderTitle(),w(B,(Q,ee)=>(Q.options&&Q.options.legendIndex||0)-(ee.options&&ee.options.legendIndex||0)),h.reversed&&B.reverse(),this.allItems=B,this.display=X=!!B.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,B.forEach(this.renderItem,this),B.forEach(this.layoutItem,this),B=(this.widthOption||this.offsetWidth)+b,F=this.lastItemY+this.lastLineHeight+this.titleHeight,F=this.handleOverflow(F),F+=b,W||(this.box=W=l.rect().addClass("highcharts-legend-box").attr({r:h.borderRadius}).add(O)),a.styledMode||W.attr({stroke:h.borderColor,"stroke-width":h.borderWidth||0,fill:h.backgroundColor||"none"}).shadow(h.shadow),0<B&&0<F&&W[W.placed?"animate":"attr"](W.crisp.call({},{x:0,y:0,width:B,height:F},W.strokeWidth())),O[X?"show":"hide"](),a.styledMode&&O.getStyle("display")==="none"&&(B=F=0),this.legendWidth=B,this.legendHeight=F,X&&this.align(),this.proximate||this.positionItems(),R(this,"afterRender")}align(a=this.chart.spacingBox){const l=this.chart,h=this.options;let b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<l.titleOffset[0]?b+=l.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<l.titleOffset[2]&&(b-=l.titleOffset[2]),b!==a.y&&(a=P(a,{y:b})),l.hasRendered||(this.group.placed=!1),this.group.align(P(h,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":h.verticalAlign}),!0,a)}handleOverflow(a){const l=this,h=this.chart,b=h.renderer,B=this.options;var F=B.y;const O=B.verticalAlign==="top",W=this.padding,X=B.maxHeight,Q=B.navigation,ee=L(Q.animation,!0),Y=Q.arrowSize||12,D=this.pages,N=this.allItems,V=function(Z){typeof Z=="number"?q.attr({height:Z}):q&&(l.clipRect=q.destroy(),l.contentGroup.clip()),l.contentGroup.div&&(l.contentGroup.div.style.clip=Z?"rect("+W+"px,9999px,"+(W+Z)+"px,0)":"auto")},j=function(Z){return l[Z]=b.circle(0,0,1.3*Y).translate(Y/2,Y/2).add(H),h.styledMode||l[Z].attr("fill","rgba(0,0,0,0.0001)"),l[Z]};let K,_,$;F=h.spacingBox.height+(O?-F:F)-W;let H=this.nav,q=this.clipRect;return B.layout!=="horizontal"||B.verticalAlign==="middle"||B.floating||(F/=2),X&&(F=Math.min(F,X)),D.length=0,a&&0<F&&a>F&&Q.enabled!==!1?(this.clipHeight=K=Math.max(F-20-this.titleHeight-W,0),this.currentPage=L(this.currentPage,1),this.fullHeight=a,N.forEach((Z,J)=>{$=Z.legendItem||{},Z=$.y||0;const te=Math.round($.label.getBBox().height);let se=D.length;(!se||Z-D[se-1]>K&&(_||Z)!==D[se-1])&&(D.push(_||Z),se++),$.pageIx=se-1,_&&((N[J-1].legendItem||{}).pageIx=se-1),J===N.length-1&&Z+te-D[se-1]>K&&Z>D[se-1]&&(D.push(Z),$.pageIx=se),Z!==_&&(_=Z)}),q||(q=l.clipRect=b.clipRect(0,W-2,9999,0),l.contentGroup.clip(q)),V(K),H||(this.nav=H=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,Y,Y).add(H),j("upTracker").on("click",function(){l.scroll(-1,ee)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),!h.styledMode&&Q.style&&this.pager.css(Q.style),this.pager.add(H),this.down=b.symbol("triangle-down",0,0,Y,Y).add(H),j("downTracker").on("click",function(){l.scroll(1,ee)})),l.scroll(0),a=F):H&&(V(),this.nav=H.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),a}scroll(a,l){const h=this.chart,b=this.pages,B=b.length,F=this.clipHeight,O=this.options.navigation,W=this.pager,X=this.padding;let Q=this.currentPage+a;Q>B&&(Q=B),0<Q&&(typeof l<"u"&&d(l,h),this.nav.attr({translateX:X,translateY:F+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(ee){ee.attr({class:Q===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),W.attr({text:Q+"/"+B}),[this.down,this.downTracker].forEach(function(ee){ee.attr({x:18+this.pager.getBBox().width,class:Q===B?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),h.styledMode||(this.up.attr({fill:Q===1?O.inactiveColor:O.activeColor}),this.upTracker.css({cursor:Q===1?"default":"pointer"}),this.down.attr({fill:Q===B?O.inactiveColor:O.activeColor}),this.downTracker.css({cursor:Q===B?"default":"pointer"})),this.scrollOffset=-b[Q-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Q,this.positionCheckboxes(),a=p(L(l,h.renderer.globalAnimation,!0)),E(()=>{R(this,"afterScroll",{currentPage:Q})},a.duration))}setItemEvents(a,l,h){const b=this,B=a.legendItem||{},F=b.chart.renderer.boxWrapper,O=a instanceof c,W="highcharts-legend-"+(O?"point":"series")+"-active",X=b.chart.styledMode;h=h?[l,B.symbol]:[B.group];const Q=ee=>{b.allItems.forEach(Y=>{a!==Y&&[Y].concat(Y.linkedSeries||[]).forEach(D=>{D.setState(ee,!O)})})};for(const ee of h)ee&&ee.on("mouseover",function(){a.visible&&Q("inactive"),a.setState("hover"),a.visible&&F.addClass(W),X||l.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||l.css(P(a.visible?b.itemStyle:b.itemHiddenStyle)),Q(""),F.removeClass(W),a.setState()}).on("click",function(Y){const D=function(){a.setVisible&&a.setVisible(),Q(a.visible?"inactive":"")};F.removeClass(W),Y={browserEvent:Y},a.firePointEvent?a.firePointEvent("legendItemClick",Y,D):R(a,"legendItemClick",Y,D)})}createCheckboxForItem(a){a.checkbox=M("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container),k(a.checkbox,"click",function(l){R(a.series||a,"checkboxClick",{checked:l.target.checked,item:a},function(){a.select()})})}}return function(C){const a=[];C.compose=function(l){f.pushUnique(a,l)&&k(l,"beforeMargins",function(){this.legend=new C(this,this.options.legend)})}}(m||(m={})),m}),o(i,"Core/Legend/LegendSymbol.js",[i["Core/Utilities.js"]],function(n){const{extend:r,merge:s,pick:c}=n;var u;return function(f){f.lineMarker=function(p,d){d=this.legendItem=this.legendItem||{};var v=this.options;const x=p.symbolWidth,g=p.symbolHeight,k=g/2,M=this.chart.renderer,y=d.group;p=p.baseline-Math.round(.3*p.fontMetrics.b);let T={},I=v.marker,A=0;this.chart.styledMode||(T={"stroke-width":Math.min(v.lineWidth||0,24)},v.dashStyle?T.dashstyle=v.dashStyle:v.linecap!=="square"&&(T["stroke-linecap"]="round")),d.line=M.path().addClass("highcharts-graph").attr(T).add(y),T["stroke-linecap"]&&(A=Math.min(d.line.strokeWidth(),x)/2),x&&d.line.attr({d:[["M",A,p],["L",x-A,p]]}),I&&I.enabled!==!1&&x&&(v=Math.min(c(I.radius,k),k),this.symbol.indexOf("url")===0&&(I=s(I,{width:g,height:g}),v=0),d.symbol=d=M.symbol(this.symbol,x/2-v,p-v,2*v,2*v,r({context:"legend"},I)).addClass("highcharts-point").add(y),d.isMarker=!0)},f.rectangle=function(p,d){d=d.legendItem||{};const v=p.symbolHeight,x=p.options.squareSymbol;d.symbol=this.chart.renderer.rect(x?(p.symbolWidth-v)/2:0,p.baseline-v+1,x?v:p.symbolWidth,v,c(p.options.symbolRadius,v/2)).addClass("highcharts-point").attr({zIndex:3}).add(d.group)}}(u||(u={})),u}),o(i,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:n}=this.series.chart;return typeof this.y!="number"?"":n(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),o(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/Defaults.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(n,r,s,c){const{defaultOptions:u}=r,{extendClass:f,merge:p}=c;var d;return function(v){function x(g,k){const M=u.plotOptions||{},y=k.defaultOptions,T=k.prototype;T.type=g,T.pointClass||(T.pointClass=s),y&&(M[g]=y),v.seriesTypes[g]=k}v.seriesTypes=n.seriesTypes,v.registerSeriesType=x,v.seriesType=function(g,k,M,y,T){const I=u.plotOptions||{};return k=k||"",I[g]=p(I[k],M),x(g,f(v.seriesTypes[k]||function(){},y)),v.seriesTypes[g].prototype.type=g,T&&(v.seriesTypes[g].prototype.pointClass=f(s,T)),v.seriesTypes[g]}}(d||(d={})),d}),o(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f,p,d,v,x){const{animObject:g,setAnimation:k}=n,{defaultOptions:M}=r,{registerEventOptions:y}=s,{hasTouch:T,svg:I,win:A}=c,{seriesTypes:R}=d,{arrayMax:z,arrayMin:P,clamp:L,correctFloat:S,defined:w,diffObjects:E,erase:m,error:C,extend:a,find:l,fireEvent:h,getClosestDistance:b,getNestedProperty:B,insertItem:F,isArray:O,isNumber:W,isString:X,merge:Q,objectEach:ee,pick:Y,removeEvent:D,splat:N,syncTimeout:V}=x;class j{constructor(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}init(_,$){h(this,"init",{options:$});const H=this,q=_.series;this.eventsToUnbind=[],H.chart=_,H.options=H.setOptions($),$=H.options,H.linkedSeries=[],H.bindAxes(),a(H,{name:$.name,state:"",visible:$.visible!==!1,selected:$.selected===!0}),y(this,$);const Z=$.events;(Z&&Z.click||$.point&&$.point.events&&$.point.events.click||$.allowPointSelect)&&(_.runTrackerClick=!0),H.getColor(),H.getSymbol(),H.parallelArrays.forEach(function(te){H[te+"Data"]||(H[te+"Data"]=[])}),H.isCartesian&&(_.hasCartesianSeries=!0);let J;q.length&&(J=q[q.length-1]),H._i=Y(J&&J._i,-1)+1,H.opacity=H.options.opacity,_.orderItems("series",F(this,q)),$.dataSorting&&$.dataSorting.enabled?H.setDataSortingOptions():H.points||H.data||H.setData($.data,!1),h(this,"afterInit")}is(_){return R[_]&&this instanceof R[_]}bindAxes(){const _=this,$=_.options,H=_.chart;let q;h(this,"bindAxes",null,function(){(_.axisTypes||[]).forEach(function(Z){H[Z].forEach(function(J){q=J.options,(Y($[Z],0)===J.index||typeof $[Z]<"u"&&$[Z]===q.id)&&(F(_,J.series),_[Z]=J,J.isDirty=!0)}),_[Z]||_.optionalAxis===Z||C(18,!0,H)})}),h(this,"afterBindAxes")}updateParallelArrays(_,$,H){const q=_.series,Z=W($)?function(J){const te=J==="y"&&q.toYData?q.toYData(_):_[J];q[J+"Data"][$]=te}:function(J){Array.prototype[$].apply(q[J+"Data"],H)};q.parallelArrays.forEach(Z)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length}autoIncrement(_){var $=this.options;const H=$.pointIntervalUnit,q=$.relativeXValue,Z=this.chart.time;let J=this.xIncrement,te;return J=Y(J,$.pointStart,0),this.pointInterval=te=Y(this.pointInterval,$.pointInterval,1),q&&W(_)&&(te*=_),H&&($=new Z.Date(J),H==="day"?Z.set("Date",$,Z.get("Date",$)+te):H==="month"?Z.set("Month",$,Z.get("Month",$)+te):H==="year"&&Z.set("FullYear",$,Z.get("FullYear",$)+te),te=$.getTime()-J),q&&W(_)?J+te:(this.xIncrement=J+te,J)}setDataSortingOptions(){const _=this.options;a(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(_.pointRange)||(_.pointRange=1)}setOptions(_){var $,H;const q=this.chart;var Z=q.options.plotOptions,J=q.userOptions||{};const te=Q(_);_=q.styledMode;const se={plotOptions:Z,userOptions:te};h(this,"setOptions",se);const ce=se.plotOptions[this.type];J=J.plotOptions||{};const ne=J.series||{},oe=M.plotOptions[this.type]||{},U=J[this.type]||{};return this.userOptions=se.userOptions,Z=Q(ce,Z.series,U,te),this.tooltipOptions=Q(M.tooltip,($=M.plotOptions.series)===null||$===void 0?void 0:$.tooltip,oe==null?void 0:oe.tooltip,q.userOptions.tooltip,(H=J.series)===null||H===void 0?void 0:H.tooltip,U.tooltip,te.tooltip),this.stickyTracking=Y(te.stickyTracking,U.stickyTracking,ne.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:Z.stickyTracking),ce.marker===null&&delete Z.marker,this.zoneAxis=Z.zoneAxis,H=this.zones=(Z.zones||[]).slice(),!Z.negativeColor&&!Z.negativeFillColor||Z.zones||($={value:Z[this.zoneAxis+"Threshold"]||Z.threshold||0,className:"highcharts-negative"},_||($.color=Z.negativeColor,$.fillColor=Z.negativeFillColor),H.push($)),H.length&&w(H[H.length-1].value)&&H.push(_?{}:{color:this.color,fillColor:this.fillColor}),h(this,"afterSetOptions",{options:Z}),Z}getName(){return Y(this.options.name,"Series "+(this.index+1))}getCyclic(_,$,H){const q=this.chart,Z=`${_}Index`,J=`${_}Counter`,te=(H==null?void 0:H.length)||q.options.chart.colorCount;if(!$){var se=Y(_==="color"?this.options.colorIndex:void 0,this[Z]);w(se)||(q.series.length||(q[J]=0),se=q[J]%te,q[J]+=1),H&&($=H[se])}typeof se<"u"&&(this[Z]=se),this[_]=$}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||M.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)}findPointIndex(_,$){const H=_.id,q=_.x,Z=this.points;var J=this.options.dataSorting,te;let se,ce;if(H)J=this.chart.get(H),J instanceof f&&(te=J);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(te=ne=>!ne.touched&&ne.index===_.index,J&&J.matchByName?te=ne=>!ne.touched&&ne.name===_.name:this.options.relativeXValue&&(te=ne=>!ne.touched&&ne.options.x===_.x),te=l(Z,te),!te))return;return te&&(ce=te&&te.index,typeof ce<"u"&&(se=!0)),typeof ce>"u"&&W(q)&&(ce=this.xData.indexOf(q,$)),ce!==-1&&typeof ce<"u"&&this.cropped&&(ce=ce>=this.cropStart?ce-this.cropStart:ce),!se&&W(ce)&&Z[ce]&&Z[ce].touched&&(ce=void 0),ce}updateData(_,$){const H=this.options,q=H.dataSorting,Z=this.points,J=[],te=this.requireSorting,se=_.length===Z.length;let ce,ne,oe,U=!0;if(this.xIncrement=null,_.forEach(function(G,re){var ie=w(G)&&this.pointClass.prototype.optionsToObject.call({series:this},G)||{};const ae=ie.x;ie.id||W(ae)?(ie=this.findPointIndex(ie,oe),ie===-1||typeof ie>"u"?J.push(G):Z[ie]&&G!==H.data[ie]?(Z[ie].update(G,!1,null,!1),Z[ie].touched=!0,te&&(oe=ie+1)):Z[ie]&&(Z[ie].touched=!0),(!se||re!==ie||q&&q.enabled||this.hasDerivedData)&&(ce=!0)):J.push(G)},this),ce)for(_=Z.length;_--;)(ne=Z[_])&&!ne.touched&&ne.remove&&ne.remove(!1,$);else!se||q&&q.enabled?U=!1:(_.forEach(function(G,re){G===Z[re].y||Z[re].destroyed||Z[re].update(G,!1,null,!1)}),J.length=0);return Z.forEach(function(G){G&&(G.touched=!1)}),U?(J.forEach(function(G){this.addPoint(G,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=z(this.xData),this.autoIncrement()),!0):!1}setData(_,$=!0,H,q){var Z;const J=this,te=J.points,se=te&&te.length||0,ce=J.options,ne=J.chart,oe=ce.dataSorting,U=J.xAxis,G=ce.turboThreshold,re=this.xData,ie=this.yData;var ae=J.pointArrayMap;ae=ae&&ae.length;const ue=ce.keys;let he,me=0,ve=1,pe=null;if(!ne.options.chart.allowMutatingData){ce.data&&delete J.options.data,J.userOptions.data&&delete J.userOptions.data;var Se=Q(!0,_)}if(_=Se||_||[],Se=_.length,oe&&oe.enabled&&(_=this.sortData(_)),ne.options.chart.allowMutatingData&&q!==!1&&Se&&se&&!J.cropped&&!J.hasGroupedData&&J.visible&&!J.boosted&&(he=this.updateData(_,H)),!he){if(J.xIncrement=null,J.colorCounter=0,this.parallelArrays.forEach(function(Le){J[Le+"Data"].length=0}),G&&Se>G)if(pe=J.getFirstValidPoint(_),W(pe))for(H=0;H<Se;H++)re[H]=this.autoIncrement(),ie[H]=_[H];else if(O(pe))if(ae)if(pe.length===ae)for(H=0;H<Se;H++)re[H]=this.autoIncrement(),ie[H]=_[H];else for(H=0;H<Se;H++)q=_[H],re[H]=q[0],ie[H]=q.slice(1,ae+1);else if(ue&&(me=ue.indexOf("x"),ve=ue.indexOf("y"),me=0<=me?me:0,ve=0<=ve?ve:1),pe.length===1&&(ve=0),me===ve)for(H=0;H<Se;H++)re[H]=this.autoIncrement(),ie[H]=_[H][ve];else for(H=0;H<Se;H++)q=_[H],re[H]=q[me],ie[H]=q[ve];else C(12,!1,ne);else for(H=0;H<Se;H++)q={series:J},J.pointClass.prototype.applyOptions.apply(q,[_[H]]),J.updateParallelArrays(q,H);for(ie&&X(ie[0])&&C(14,!0,ne),J.data=[],J.options.data=J.userOptions.data=_,H=se;H--;)(Z=te[H])===null||Z===void 0||Z.destroy();U&&(U.minRange=U.userMinRange),J.isDirty=ne.isDirtyBox=!0,J.isDirtyData=!!te,H=!1}ce.legendType==="point"&&(this.processData(),this.generatePoints()),$&&ne.redraw(H)}sortData(_){const $=this,H=$.options.dataSorting.sortKey||"y",q=function(Z,J){return w(J)&&Z.pointClass.prototype.optionsToObject.call({series:Z},J)||{}};return _.forEach(function(Z,J){_[J]=q($,Z),_[J].index=J},this),_.concat().sort((Z,J)=>(Z=B(H,Z),J=B(H,J),J<Z?-1:J>Z?1:0)).forEach(function(Z,J){Z.x=J},this),$.linkedSeries&&$.linkedSeries.forEach(function(Z){const J=Z.options,te=J.data;J.dataSorting&&J.dataSorting.enabled||!te||(te.forEach(function(se,ce){te[ce]=q(Z,se),_[ce]&&(te[ce].x=_[ce].x,te[ce].index=ce)}),Z.setData(te,!1))}),_}getProcessedData(_){const $=this;var H=$.xAxis,q=$.options;const Z=q.cropThreshold,J=_||$.getExtremesFromAll||q.getExtremesFromAll,te=H==null?void 0:H.logarithmic,se=$.isCartesian;let ce=0,ne;_=$.xData,q=$.yData;let oe=!1;const U=_.length;if(H){var G=H.getExtremes();ne=G.min,G=G.max,oe=!(!H.categories||H.names.length)}if(se&&$.sorted&&!J&&(!Z||U>Z||$.forceCrop)){if(_[U-1]<ne||_[0]>G)_=[],q=[];else if($.yData&&(_[0]<ne||_[U-1]>G)){var re=this.cropData($.xData,$.yData,ne,G);_=re.xData,q=re.yData,ce=re.start,re=!0}}return H=b([te?_.map(te.log2lin):_],()=>$.requireSorting&&!oe&&C(15,!1,$.chart)),{xData:_,yData:q,cropped:re,cropStart:ce,closestPointRange:H}}processData(_){const $=this.xAxis;if(this.isCartesian&&!this.isDirty&&!$.isDirty&&!this.yAxis.isDirty&&!_)return!1;_=this.getProcessedData(),this.cropped=_.cropped,this.cropStart=_.cropStart,this.processedXData=_.xData,this.processedYData=_.yData,this.closestPointRange=this.basePointRange=_.closestPointRange,h(this,"afterProcessData")}cropData(_,$,H,q,Z){const J=_.length;let te,se=0,ce=J;for(Z=Y(Z,this.cropShoulder),te=0;te<J;te++)if(_[te]>=H){se=Math.max(0,te-Z);break}for(H=te;H<J;H++)if(_[H]>q){ce=H+Z;break}return{xData:_.slice(se,ce),yData:$.slice(se,ce),start:se,end:ce}}generatePoints(){var _=this.options;const $=this.processedData||_.data,H=this.processedXData,q=this.processedYData,Z=this.pointClass,J=H.length,te=this.cropStart||0,se=this.hasGroupedData,ce=_.keys,ne=[];_=_.dataGrouping&&_.dataGrouping.groupAll?te:0;let oe,U,G,re=this.data;if(!re&&!se){var ie=[];ie.length=$.length,re=this.data=ie}for(ce&&se&&(this.options.keys=!1),G=0;G<J;G++)ie=te+G,se?(U=new Z().init(this,[H[G]].concat(N(q[G]))),U.dataGroup=this.groupMap[_+G],U.dataGroup.options&&(U.options=U.dataGroup.options,a(U,U.dataGroup.options),delete U.dataLabels)):(U=re[ie])||typeof $[ie]>"u"||(re[ie]=U=new Z().init(this,$[ie],H[G])),U&&(U.index=se?_+G:ie,ne[G]=U);if(this.options.keys=ce,re&&(J!==(oe=re.length)||se))for(G=0;G<oe;G++)G!==te||se||(G+=J),re[G]&&(re[G].destroyElements(),re[G].plotX=void 0);this.data=re,this.points=ne,h(this,"afterGeneratePoints")}getXExtremes(_){return{min:P(_),max:z(_)}}getExtremes(_,$){const H=this.xAxis;var q=this.yAxis;const Z=this.processedXData||this.xData,J=[],te=this.requireSorting?this.cropShoulder:0;q=q?q.positiveValuesOnly:!1;let se,ce=0,ne=0,oe=0;_=_||this.stackedYData||this.processedYData||[];const U=_.length;if(H){var G=H.getExtremes();ce=G.min,ne=G.max}for(se=0;se<U;se++){var re=Z[se];G=_[se];var ie=(W(G)||O(G))&&(G.length||0<G||!q);if(re=$||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!H||(Z[se+te]||re)>=ce&&(Z[se-te]||re)<=ne,ie&&re)if(ie=G.length)for(;ie--;)W(G[ie])&&(J[oe++]=G[ie]);else J[oe++]=G}return _={activeYData:J,dataMin:P(J),dataMax:z(J)},h(this,"afterGetExtremes",{dataExtremes:_}),_}applyExtremes(){const _=this.getExtremes();return this.dataMin=_.dataMin,this.dataMax=_.dataMax,_}getFirstValidPoint(_){const $=_.length;let H=0,q=null;for(;q===null&&H<$;)q=_[H],H++;return q}translate(){var _;this.processedXData||this.processData(),this.generatePoints();var $=this.options;const H=$.stacking,q=this.xAxis,Z=q.categories,J=this.enabledDataSorting,te=this.yAxis,se=this.points,ce=se.length,ne=this.pointPlacementToXValue(),oe=!!ne,U=$.threshold;$=$.startFromThreshold?U:0;let G,re,ie,ae,ue=Number.MAX_VALUE;for(G=0;G<ce;G++){const he=se[G],me=he.x;let ve,pe,Se=he.y,Le=he.low;const Te=H&&((_=te.stacking)===null||_===void 0?void 0:_.stacks[(this.negStacks&&Se<($?0:U)?"-":"")+this.stackKey]);re=q.translate(me,!1,!1,!1,!0,ne),he.plotX=W(re)?S(L(re,-1e5,1e5)):void 0,H&&this.visible&&Te&&Te[me]&&(ae=this.getStackIndicator(ae,me,this.index),!he.isNull&&ae.key&&(ve=Te[me],pe=ve.points[ae.key]),ve&&O(pe)&&(Le=pe[0],Se=pe[1],Le===$&&ae.key===Te[me].base&&(Le=Y(W(U)?U:te.min)),te.positiveValuesOnly&&w(Le)&&0>=Le&&(Le=void 0),he.total=he.stackTotal=Y(ve.total),he.percentage=w(he.y)&&ve.total?he.y/ve.total*100:void 0,he.stackY=Se,this.irregularWidths||ve.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),he.yBottom=w(Le)?L(te.translate(Le,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(Se=this.dataModify.modifyValue(Se,G));let Pe;W(Se)&&he.plotX!==void 0&&(Pe=te.translate(Se,!1,!0,!1,!0),Pe=W(Pe)?L(Pe,-1e5,1e5):void 0),he.plotY=Pe,he.isInside=this.isPointInside(he),he.clientX=oe?S(q.translate(me,!1,!1,!1,!0,ne)):re,he.negative=(he.y||0)<(U||0),he.category=Y(Z&&Z[he.x],he.x),he.isNull||he.visible===!1||(typeof ie<"u"&&(ue=Math.min(ue,Math.abs(re-ie))),ie=re),he.zone=this.zones.length?he.getZone():void 0,!he.graphic&&this.group&&J&&(he.isNew=!0)}this.closestPointRangePx=ue,h(this,"afterTranslate")}getValidPoints(_,$,H){const q=this.chart;return(_||this.points||[]).filter(function(Z){const{plotX:J,plotY:te}=Z;return!H&&(Z.isNull||!W(te))||$&&!q.isInsidePlot(J,te,{inverted:q.inverted})?!1:Z.visible!==!1})}getClipBox(){const{chart:_,xAxis:$,yAxis:H}=this,q=Q(_.clipBox);return $&&$.len!==_.plotSizeX&&(q.width=$.len),H&&H.len!==_.plotSizeY&&(q.height=H.len),q}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:_,group:$,markerGroup:H}=this,q=_.sharedClips,Z=_.renderer,J=this.getClipBox(),te=this.getSharedClipKey();let se=q[te];se?se.animate(J):q[te]=se=Z.clipRect(J),$&&$.clip(this.options.clip===!1?void 0:se),H&&H.clip()}animate(_){const{chart:$,group:H,markerGroup:q}=this,Z=$.inverted;var J=g(this.options.animation),te=[this.getSharedClipKey(),J.duration,J.easing,J.defer].join();let se=$.sharedClips[te],ce=$.sharedClips[te+"m"];if(_&&H)J=this.getClipBox(),se?se.attr("height",J.height):(J.width=0,Z&&(J.x=$.plotHeight),se=$.renderer.clipRect(J),$.sharedClips[te]=se,ce=$.renderer.clipRect({x:-99,y:-99,width:Z?$.plotWidth+199:99,height:Z?99:$.plotHeight+199}),$.sharedClips[te+"m"]=ce),H.clip(se),q&&q.clip(ce);else if(se&&!se.hasClass("highcharts-animating")){te=this.getClipBox();const ne=J.step;q&&q.element.childNodes.length&&(J.step=function(oe,U){ne&&ne.apply(U,arguments),U.prop==="width"&&ce&&ce.element&&ce.attr(Z?"height":"width",oe+99)}),se.addClass("highcharts-animating").animate(te,J)}}afterAnimate(){this.setClip(),ee(this.chart.sharedClips,(_,$,H)=>{_&&!this.chart.container.querySelector(`[clip-path="url(#${_.id})"]`)&&(_.destroy(),delete H[$])}),this.finishedAnimating=!0,h(this,"afterAnimate")}drawPoints(_=this.points){const $=this.chart,H=$.styledMode,{colorAxis:q,options:Z}=this,J=Z.marker,te=this[this.specialGroup||"markerGroup"],se=this.xAxis,ce=Y(J.enabled,!se||se.isRadial?!0:null,this.closestPointRangePx>=J.enabledThreshold*J.radius);let ne,oe,U,G,re,ie;if(J.enabled!==!1||this._hasPointMarkers)for(ne=0;ne<_.length;ne++){oe=_[ne],G=(U=oe.graphic)?"animate":"attr";var ae=oe.marker||{};if(re=!!oe.marker,(ce&&typeof ae.enabled>"u"||ae.enabled)&&!oe.isNull&&oe.visible!==!1){const ue=Y(ae.symbol,this.symbol,"rect");ie=this.markerAttribs(oe,oe.selected&&"select"),this.enabledDataSorting&&(oe.startXPos=se.reversed?-(ie.width||0):se.width);const he=oe.isInside!==!1;!U&&he&&(0<(ie.width||0)||oe.hasImage)&&(oe.graphic=U=$.renderer.symbol(ue,ie.x,ie.y,ie.width,ie.height,re?ae:J).add(te),this.enabledDataSorting&&$.hasRendered&&(U.attr({x:oe.startXPos}),G="animate")),U&&G==="animate"&&U[he?"show":"hide"](he).animate(ie),U&&(ae=this.pointAttribs(oe,H||!oe.selected?void 0:"select"),H?q&&U.css({fill:ae.fill}):U[G](ae)),U&&U.addClass(oe.getClassName(),!0)}else U&&(oe.graphic=U.destroy())}}markerAttribs(_,$){const H=this.options;var q=H.marker;const Z=_.marker||{},J=Z.symbol||q.symbol,te={};let se=Y(Z.radius,q&&q.radius);return $&&(q=q.states[$],$=Z.states&&Z.states[$],se=Y($&&$.radius,q&&q.radius,se&&se+(q&&q.radiusPlus||0))),_.hasImage=J&&J.indexOf("url")===0,_.hasImage&&(se=0),_=_.pos(),W(se)&&_&&(te.x=_[0]-se,te.y=_[1]-se,H.crisp&&(te.x=Math.floor(te.x))),se&&(te.width=te.height=2*se),te}pointAttribs(_,$){var H=this.options.marker,q=_&&_.options;const Z=q&&q.marker||{};var J=q&&q.color,te=_&&_.color;const se=_&&_.zone&&_.zone.color;let ce=this.color;return _=Y(Z.lineWidth,H.lineWidth),q=1,ce=J||se||te||ce,J=Z.fillColor||H.fillColor||ce,te=Z.lineColor||H.lineColor||ce,$=$||"normal",H=H.states[$]||{},$=Z.states&&Z.states[$]||{},_=Y($.lineWidth,H.lineWidth,_+Y($.lineWidthPlus,H.lineWidthPlus,0)),J=$.fillColor||H.fillColor||J,te=$.lineColor||H.lineColor||te,q=Y($.opacity,H.opacity,q),{stroke:te,"stroke-width":_,fill:J,opacity:q}}destroy(_){const $=this,H=$.chart,q=/AppleWebKit\/533/.test(A.navigator.userAgent),Z=$.data||[];let J,te,se,ce;for(h($,"destroy",{keepEventsForUpdate:_}),this.removeEvents(_),($.axisTypes||[]).forEach(function(ne){(ce=$[ne])&&ce.series&&(m(ce.series,$),ce.isDirty=ce.forceRedraw=!0)}),$.legendItem&&$.chart.legend.destroyItem($),te=Z.length;te--;)(se=Z[te])&&se.destroy&&se.destroy();$.clips&&$.clips.forEach(ne=>ne.destroy()),x.clearTimeout($.animationTimeout),ee($,function(ne,oe){ne instanceof v&&!ne.survive&&(J=q&&oe==="group"?"hide":"destroy",ne[J]())}),H.hoverSeries===$&&(H.hoverSeries=void 0),m(H.series,$),H.orderItems("series"),ee($,function(ne,oe){_&&oe==="hcEvents"||delete $[oe]})}applyZones(){const _=this,$=this.chart,H=$.renderer,q=this.zones,Z=this.clips||[],J=this.graph,te=this.area,se=Math.max($.plotWidth,$.plotHeight),ce=this[(this.zoneAxis||"y")+"Axis"],ne=$.inverted;let oe,U,G,re,ie,ae,ue,he,me,ve,pe,Se=!1;q.length&&(J||te)&&ce&&typeof ce.min<"u"?(ie=ce.reversed,ae=ce.horiz,J&&!this.showLine&&J.hide(),te&&te.hide(),re=ce.getExtremes(),q.forEach(function(Le,Te){oe=ie?ae?$.plotWidth:0:ae?0:ce.toPixels(re.min)||0,oe=L(Y(U,oe),0,se),U=L(Math.round(ce.toPixels(Y(Le.value,re.max),!0)||0),0,se),Se&&(oe=U=ce.toPixels(re.max)),ue=Math.abs(oe-U),he=Math.min(oe,U),me=Math.max(oe,U),ce.isXAxis?(G={x:ne?me:he,y:0,width:ue,height:se},ae||(G.x=$.plotHeight-G.x)):(G={x:0,y:ne?me:he,width:se,height:ue},ae&&(G.y=$.plotWidth-G.y)),Z[Te]?Z[Te].animate(G):Z[Te]=H.clipRect(G),ve=_["zone-area-"+Te],pe=_["zone-graph-"+Te],J&&pe&&pe.clip(Z[Te]),te&&ve&&ve.clip(Z[Te]),Se=Le.value>re.max,_.resetZones&&U===0&&(U=void 0)}),this.clips=Z):_.visible&&(J&&J.show(),te&&te.show())}plotGroup(_,$,H,q,Z){let J=this[_];const te=!J;return H={visibility:H,zIndex:q||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(H.opacity=this.opacity),te&&(this[_]=J=this.chart.renderer.g().add(Z)),J.addClass("highcharts-"+$+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(J.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),J.attr(H)[te?"attr":"animate"](this.getPlotBox($)),J}getPlotBox(_){let $=this.xAxis,H=this.yAxis;const q=this.chart;return _=q.inverted&&!q.polar&&$&&this.invertible!==!1&&_==="series",q.inverted&&($=H,H=this.xAxis),{translateX:$?$.left:q.plotLeft,translateY:H?H.top:q.plotTop,rotation:_?90:0,rotationOriginX:_?($.len-H.len)/2:0,rotationOriginY:_?($.len+H.len)/2:0,scaleX:_?-1:1,scaleY:1}}removeEvents(_){_||D(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function($){$()}),this.eventsToUnbind.length=0)}render(){const _=this;var $=_.chart;const H=_.options,q=g(H.animation),Z=_.visible?"inherit":"hidden",J=H.zIndex,te=_.hasRendered;$=$.seriesGroup;let se=_.finishedAnimating?0:q.duration;h(this,"render"),_.plotGroup("group","series",Z,J,$),_.markerGroup=_.plotGroup("markerGroup","markers",Z,J,$),H.clip!==!1&&_.setClip(),_.animate&&se&&_.animate(!0),_.drawGraph&&(_.drawGraph(),_.applyZones()),_.visible&&_.drawPoints(),_.drawDataLabels&&_.drawDataLabels(),_.redrawPoints&&_.redrawPoints(),_.drawTracker&&H.enableMouseTracking&&_.drawTracker(),_.animate&&se&&_.animate(),te||(se&&q.defer&&(se+=q.defer),_.animationTimeout=V(function(){_.afterAnimate()},se||0)),_.isDirty=!1,_.hasRendered=!0,h(_,"afterRender")}redraw(){const _=this.isDirty||this.isDirtyData;this.translate(),this.render(),_&&delete this.kdTree}searchPoint(_,$){const H=this.xAxis,q=this.yAxis,Z=this.chart.inverted;return this.searchKDTree({clientX:Z?H.len-_.chartY+H.pos:_.chartX-H.pos,plotY:Z?q.len-_.chartX+q.pos:_.chartY-q.pos},$,_)}buildKDTree(_){function $(Z,J,te){var se=Z&&Z.length;let ce;if(se)return ce=H.kdAxisArray[J%te],Z.sort(function(ne,oe){return ne[ce]-oe[ce]}),se=Math.floor(se/2),{point:Z[se],left:$(Z.slice(0,se),J+1,te),right:$(Z.slice(se+1),J+1,te)}}this.buildingKdTree=!0;const H=this,q=-1<H.options.findNearestPointBy.indexOf("y")?2:1;delete H.kdTree,V(function(){H.kdTree=$(H.getValidPoints(null,!H.directTouch),q,q),H.buildingKdTree=!1},H.options.kdNow||_&&_.type==="touchstart"?0:1)}searchKDTree(_,$,H){function q(ce,ne,oe,U){const G=ne.point;var re=Z.kdAxisArray[oe%U];let ie=G;var ae=w(ce[J])&&w(G[J])?Math.pow(ce[J]-G[J],2):null,ue=w(ce[te])&&w(G[te])?Math.pow(ce[te]-G[te],2):null;return ue=(ae||0)+(ue||0),G.dist=w(ue)?Math.sqrt(ue):Number.MAX_VALUE,G.distX=w(ae)?Math.sqrt(ae):Number.MAX_VALUE,re=ce[re]-G[re],ue=0>re?"left":"right",ae=0>re?"right":"left",ne[ue]&&(ue=q(ce,ne[ue],oe+1,U),ie=ue[se]<ie[se]?ue:G),ne[ae]&&Math.sqrt(re*re)<ie[se]&&(ce=q(ce,ne[ae],oe+1,U),ie=ce[se]<ie[se]?ce:ie),ie}const Z=this,J=this.kdAxisArray[0],te=this.kdAxisArray[1],se=$?"distX":"dist";if($=-1<Z.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(H),this.kdTree)return q(_,this.kdTree,$,$)}pointPlacementToXValue(){const{options:{pointPlacement:_,pointRange:$},xAxis:H}=this;let q=_;return q==="between"&&(q=H.reversed?-.5:.5),W(q)?q*($||H.pointRange):0}isPointInside(_){const{chart:$,xAxis:H,yAxis:q}=this;return typeof _.plotY<"u"&&typeof _.plotX<"u"&&0<=_.plotY&&_.plotY<=(q?q.len:$.plotHeight)&&0<=_.plotX&&_.plotX<=(H?H.len:$.plotWidth)}drawTracker(){const _=this,$=_.options,H=$.trackByArea,q=[].concat(H?_.areaPath:_.graphPath),Z=_.chart,J=Z.pointer,te=Z.renderer,se=Z.options.tooltip.snap,ce=_.tracker,ne=function(U){$.enableMouseTracking&&Z.hoverSeries!==_&&_.onMouseOver()},oe="rgba(192,192,192,"+(I?1e-4:.002)+")";ce?ce.attr({d:q}):_.graph&&(_.tracker=te.path(q).attr({visibility:_.visible?"inherit":"hidden",zIndex:2}).addClass(H?"highcharts-tracker-area":"highcharts-tracker-line").add(_.group),Z.styledMode||_.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:oe,fill:H?oe:"none","stroke-width":_.graph.strokeWidth()+(H?0:2*se)}),[_.tracker,_.markerGroup,_.dataLabelsGroup].forEach(function(U){U&&(U.addClass("highcharts-tracker").on("mouseover",ne).on("mouseout",function(G){J.onTrackerMouseOut(G)}),$.cursor&&!Z.styledMode&&U.css({cursor:$.cursor}),T)&&U.on("touchstart",ne)})),h(this,"afterDrawTracker")}addPoint(_,$,H,q,Z){const J=this.options,te=this.data,se=this.chart;var ce=this.xAxis;ce=ce&&ce.hasNames&&ce.names;const ne=J.data,oe=this.xData;let U,G;$=Y($,!0);const re={series:this};this.pointClass.prototype.applyOptions.apply(re,[_]);const ie=re.x;if(G=oe.length,this.requireSorting&&ie<oe[G-1])for(U=!0;G&&oe[G-1]>ie;)G--;this.updateParallelArrays(re,"splice",[G,0,0]),this.updateParallelArrays(re,G),ce&&re.name&&(ce[ie]=re.name),ne.splice(G,0,_),(U||this.processedData)&&(this.data.splice(G,0,null),this.processData()),J.legendType==="point"&&this.generatePoints(),H&&(te[0]&&te[0].remove?te[0].remove(!1):(te.shift(),this.updateParallelArrays(re,"shift"),ne.shift())),Z!==!1&&h(this,"addPoint",{point:re}),this.isDirtyData=this.isDirty=!0,$&&se.redraw(q)}removePoint(_,$,H){const q=this,Z=q.data,J=Z[_],te=q.points,se=q.chart,ce=function(){te&&te.length===Z.length&&te.splice(_,1),Z.splice(_,1),q.options.data.splice(_,1),q.updateParallelArrays(J||{series:q},"splice",[_,1]),J&&J.destroy(),q.isDirty=!0,q.isDirtyData=!0,$&&se.redraw()};k(H,se),$=Y($,!0),J?J.firePointEvent("remove",null,ce):ce()}remove(_,$,H,q){function Z(){J.destroy(q),te.isDirtyLegend=te.isDirtyBox=!0,te.linkSeries(q),Y(_,!0)&&te.redraw($)}const J=this,te=J.chart;H!==!1?h(J,"remove",null,Z):Z()}update(_,$){_=E(_,this.userOptions),h(this,"update",{options:_});const H=this,q=H.chart;var Z=H.userOptions;const J=H.initialType||H.type;var te=q.options.plotOptions;const se=R[J].prototype;var ce=H.finishedAnimating&&{animation:!1};const ne={};let oe,U=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],G=_.type||Z.type||q.options.chart.type;const re=!(this.hasDerivedData||G&&G!==this.type||typeof _.pointStart<"u"||typeof _.pointInterval<"u"||typeof _.relativeXValue<"u"||_.joinBy||_.mapData||H.hasOptionChanged("dataGrouping")||H.hasOptionChanged("pointStart")||H.hasOptionChanged("pointInterval")||H.hasOptionChanged("pointIntervalUnit")||H.hasOptionChanged("keys"));if(G=G||J,re&&(U.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),_.visible!==!1&&U.push("area","graph"),H.parallelArrays.forEach(function(ie){U.push(ie+"Data")}),_.data&&(_.dataSorting&&a(H.options.dataSorting,_.dataSorting),this.setData(_.data,!1))),_=Q(Z,ce,{index:typeof Z.index>"u"?H.index:Z.index,pointStart:Y(te&&te.series&&te.series.pointStart,Z.pointStart,H.xData[0])},!re&&{data:H.options.data},_),re&&_.data&&(_.data=H.options.data),U=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(U),U.forEach(function(ie){U[ie]=H[ie],delete H[ie]}),te=!1,R[G]){if(te=G!==H.type,H.remove(!1,!1,!1,!0),te)if(Object.setPrototypeOf)Object.setPrototypeOf(H,R[G].prototype);else{ce=Object.hasOwnProperty.call(H,"hcEvents")&&H.hcEvents;for(oe in se)H[oe]=void 0;a(H,R[G].prototype),ce?H.hcEvents=ce:delete H.hcEvents}}else C(17,!0,q,{missingModuleFor:G});if(U.forEach(function(ie){H[ie]=U[ie]}),H.init(q,_),re&&this.points){if(_=H.options,_.visible===!1)ne.graphic=1,ne.dataLabel=1;else if(!H._hasPointLabels){const{marker:ie,dataLabels:ae}=_;Z=Z.marker||{},!ie||ie.enabled!==!1&&Z.symbol===ie.symbol&&Z.height===ie.height&&Z.width===ie.width||(ne.graphic=1),ae&&ae.enabled===!1&&(ne.dataLabel=1)}for(const ie of this.points)ie&&ie.series&&(ie.resolveColor(),Object.keys(ne).length&&ie.destroyElements(ne),_.showInLegend===!1&&ie.legendItem&&q.legend.destroyItem(ie))}H.initialType=J,q.linkSeries(),te&&H.linkedSeries.length&&(H.isDirtyData=!0),h(this,"afterUpdate"),Y($,!0)&&q.redraw(re?void 0:!1)}setName(_){this.name=this.options.name=this.userOptions.name=_,this.chart.isDirtyLegend=!0}hasOptionChanged(_){const $=this.options[_],H=this.chart.options.plotOptions,q=this.userOptions[_];return q?$!==q:$!==Y(H&&H[this.type]&&H[this.type][_],H&&H.series&&H.series[_],$)}onMouseOver(){const _=this.chart,$=_.hoverSeries;_.pointer.setHoverChartIndex(),$&&$!==this&&$.onMouseOut(),this.options.events.mouseOver&&h(this,"mouseOver"),this.setState("hover"),_.hoverSeries=this}onMouseOut(){const _=this.options,$=this.chart,H=$.tooltip,q=$.hoverPoint;$.hoverSeries=null,q&&q.onMouseOut(),this&&_.events.mouseOut&&h(this,"mouseOut"),!H||this.stickyTracking||H.shared&&!this.noSharedTooltip||H.hide(),$.series.forEach(function(Z){Z.setState("",!0)})}setState(_,$){const H=this;var q=H.options;const Z=H.graph,J=q.inactiveOtherPoints,te=q.states,se=Y(te[_||"normal"]&&te[_||"normal"].animation,H.chart.options.chart.animation);let ce=q.lineWidth,ne=0,oe=q.opacity;if(_=_||"",H.state!==_&&([H.group,H.markerGroup,H.dataLabelsGroup].forEach(function(U){U&&(H.state&&U.removeClass("highcharts-series-"+H.state),_&&U.addClass("highcharts-series-"+_))}),H.state=_,!H.chart.styledMode)){if(te[_]&&te[_].enabled===!1)return;if(_&&(ce=te[_].lineWidth||ce+(te[_].lineWidthPlus||0),oe=Y(te[_].opacity,oe)),Z&&!Z.dashstyle&&W(ce))for(q={"stroke-width":ce},Z.animate(q,se);H["zone-graph-"+ne];)H["zone-graph-"+ne].animate(q,se),ne+=1;J||[H.group,H.markerGroup,H.dataLabelsGroup,H.labelBySeries].forEach(function(U){U&&U.animate({opacity:oe},se)})}$&&J&&H.points&&H.setAllPointsToState(_||void 0)}setAllPointsToState(_){this.points.forEach(function($){$.setState&&$.setState(_)})}setVisible(_,$){const H=this,q=H.chart,Z=q.options.chart.ignoreHiddenSeries,J=H.visible,te=(H.visible=_=H.options.visible=H.userOptions.visible=typeof _>"u"?!J:_)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(se){H[se]&&H[se][te]()}),(q.hoverSeries===H||(q.hoverPoint&&q.hoverPoint.series)===H)&&H.onMouseOut(),H.legendItem&&q.legend.colorizeItem(H,_),H.isDirty=!0,H.options.stacking&&q.series.forEach(function(se){se.options.stacking&&se.visible&&(se.isDirty=!0)}),H.linkedSeries.forEach(function(se){se.setVisible(_,!1)}),Z&&(q.isDirtyBox=!0),h(H,te),$!==!1&&q.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(_){this.selected=_=this.options.selected=typeof _>"u"?!this.selected:_,this.checkbox&&(this.checkbox.checked=_),h(this,_?"select":"unselect")}shouldShowTooltip(_,$,H={}){return H.series=this,H.visiblePlotOnly=!0,this.chart.isInsidePlot(_,$,H)}drawLegendSymbol(_,$){var H;(H=u[this.options.legendSymbol||"rectangle"])===null||H===void 0||H.call(this,_,$)}}return j.defaultOptions=p,j.types=d.seriesTypes,j.registerType=d.registerSeriesType,a(j.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:f,requireSorting:!0,sorted:!0}),d.series=j,j}),o(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/Templating.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],function(n,r,s,c,u,f,p,d,v,x,g,k,M){const{animate:y,animObject:T,setAnimation:I}=n,{defaultOptions:A,defaultTime:R}=s,{numberFormat:z}=c,{registerEventOptions:P}=u,{charts:L,doc:S,marginNames:w,svg:E,win:m}=f,{seriesTypes:C}=v,{addEvent:a,attr:l,createElement:h,css:b,defined:B,diffObjects:F,discardElement:O,erase:W,error:X,extend:Q,find:ee,fireEvent:Y,getStyle:D,isArray:N,isNumber:V,isObject:j,isString:K,merge:_,objectEach:$,pick:H,pInt:q,relativeLength:Z,removeEvent:J,splat:te,syncTimeout:se,uniqueKey:ce}=k;class ne{static chart(U,G,re){return new ne(U,G,re)}constructor(U,G,re){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(U,G,re)}getArgs(U,G,re){K(U)||U.nodeName?(this.renderTo=U,this.init(G,re)):this.init(U,G)}setZoomOptions(){const U=this.options.chart,G=U.zooming;this.zooming=Object.assign(Object.assign({},G),{type:H(U.zoomType,G.type),key:H(U.zoomKey,G.key),pinchType:H(U.pinchType,G.pinchType),singleTouch:H(U.zoomBySingleTouch,G.singleTouch,!1),resetButton:_(G.resetButton,U.resetZoomButton)})}init(U,G){Y(this,"init",{args:arguments},function(){const re=_(A,U),ie=re.chart;this.userOptions=Q({},U),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=G,this.isResizing=0,this.options=re,this.axes=[],this.series=[],this.time=U.time&&Object.keys(U.time).length?new g(U.time):f.time,this.numberFormatter=ie.numberFormatter||z,this.styledMode=ie.styledMode,this.hasCartesianSeries=ie.showAxes,this.index=L.length,L.push(this),f.chartCount++,P(this,ie),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Y(this,"afterInit"),this.firstRender()})}initSeries(U){var G=this.options.chart;G=U.type||G.type;const re=C[G];return re||X(17,!0,this,{missingModuleFor:G}),G=new re,typeof G.init=="function"&&G.init(this,U),G}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(U){U.points||U.data||!U.enabledDataSorting||U.setData(U.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(U,G){return U.linkedSeries.length||G.linkedSeries.length?G.linkedSeries.length-U.linkedSeries.length:0})}orderItems(U,G=0){const re=this[U],ie=this.options[U]=te(this.options[U]).slice();if(U=this.userOptions[U]=this.userOptions[U]?te(this.userOptions[U]).slice():[],this.hasRendered&&(ie.splice(G),U.splice(G)),re)for(let ae=G,ue=re.length;ae<ue;++ae)(G=re[ae])&&(G.index=ae,G instanceof d&&(G.name=G.getName()),G.options.isInternal||(ie[ae]=G.options,U[ae]=G.userOptions))}isInsidePlot(U,G,re={}){const{inverted:ie,plotBox:ae,plotLeft:ue,plotTop:he,scrollablePlotBox:me}=this;var ve=0;let pe=0;re.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:ve,scrollTop:pe}=this.scrollingContainer);const Se=re.series,Le=re.visiblePlotOnly&&me||ae;var Te=re.inverted?G:U;if(G=re.inverted?U:G,U={x:Te,y:G,isInsidePlot:!0,options:re},!re.ignoreX){const Pe=Se&&(ie&&!this.polar?Se.yAxis:Se.xAxis)||{pos:ue,len:1/0};Te=re.paneCoordinates?Pe.pos+Te:ue+Te,Te>=Math.max(ve+ue,Pe.pos)&&Te<=Math.min(ve+ue+Le.width,Pe.pos+Pe.len)||(U.isInsidePlot=!1)}return!re.ignoreY&&U.isInsidePlot&&(ve=!ie&&re.axis&&!re.axis.isXAxis&&re.axis||Se&&(ie?Se.xAxis:Se.yAxis)||{pos:he,len:1/0},re=re.paneCoordinates?ve.pos+G:he+G,re>=Math.max(pe+he,ve.pos)&&re<=Math.min(pe+he+Le.height,ve.pos+ve.len)||(U.isInsidePlot=!1)),Y(this,"afterIsInsidePlot",U),U.isInsidePlot}redraw(U){Y(this,"beforeRedraw");const G=this.hasCartesianSeries?this.axes:this.colorAxis||[],re=this.series,ie=this.pointer,ae=this.legend,ue=this.userOptions.legend,he=this.renderer,me=he.isHidden(),ve=[];let pe,Se,Le=this.isDirtyBox,Te=this.isDirtyLegend,Pe;for(he.rootFontSize=he.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),I(this.hasRendered?U:!1,this),me&&this.temporaryDisplay(),this.layOutTitles(!1),U=re.length;U--;)if(Pe=re[U],(Pe.options.stacking||Pe.options.centerInCategory)&&(Se=!0,Pe.isDirty)){pe=!0;break}if(pe)for(U=re.length;U--;)Pe=re[U],Pe.options.stacking&&(Pe.isDirty=!0);re.forEach(function(de){de.isDirty&&(de.options.legendType==="point"?(typeof de.updateTotals=="function"&&de.updateTotals(),Te=!0):ue&&(ue.labelFormatter||ue.labelFormat)&&(Te=!0)),de.isDirtyData&&Y(de,"updatedData")}),Te&&ae&&ae.options.enabled&&(ae.render(),this.isDirtyLegend=!1),Se&&this.getStacks(),G.forEach(function(de){de.updateNames(),de.setScale()}),this.getMargins(),G.forEach(function(de){de.isDirty&&(Le=!0)}),G.forEach(function(de){const fe=de.min+","+de.max;de.extKey!==fe&&(de.extKey=fe,ve.push(function(){Y(de,"afterSetExtremes",Q(de.eventArgs,de.getExtremes())),delete de.eventArgs})),(Le||Se)&&de.redraw()}),Le&&this.drawChartBox(),Y(this,"predraw"),re.forEach(function(de){(Le||de.isDirty)&&de.visible&&de.redraw(),de.isDirtyData=!1}),ie&&ie.reset(!0),he.draw(),Y(this,"redraw"),Y(this,"render"),me&&this.temporaryDisplay(!0),ve.forEach(function(de){de.call()})}get(U){function G(ae){return ae.id===U||ae.options&&ae.options.id===U}const re=this.series;let ie=ee(this.axes,G)||ee(this.series,G);for(let ae=0;!ie&&ae<re.length;ae++)ie=ee(re[ae].points||[],G);return ie}getAxes(){const U=this.options;Y(this,"getAxes");for(const G of["xAxis","yAxis"]){const re=U[G]=te(U[G]||{});for(const ie of re)new r(this,ie,G)}Y(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((U,G)=>(G.getPointsCollection().forEach(re=>{H(re.selectedStaging,re.selected)&&U.push(re)}),U),[])}getSelectedSeries(){return this.series.filter(function(U){return U.selected})}setTitle(U,G,re){this.applyDescription("title",U),this.applyDescription("subtitle",G),this.applyDescription("caption",void 0),this.layOutTitles(re)}applyDescription(U,G){const re=this,ie=this.options[U]=_(this.options[U],G);let ae=this[U];ae&&G&&(this[U]=ae=ae.destroy()),ie&&!ae&&(ae=this.renderer.text(ie.text,0,0,ie.useHTML).attr({align:ie.align,class:"highcharts-"+U,zIndex:ie.zIndex||4}).add(),ae.update=function(ue,he){re.applyDescription(U,ue),re.layOutTitles(he)},this.styledMode||ae.css(Q(U==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},ie.style)),this[U]=ae)}layOutTitles(U=!0){const G=[0,0,0],re=this.renderer,ie=this.spacingBox;["title","subtitle","caption"].forEach(function(ue){const he=this[ue],me=this.options[ue],ve=me.verticalAlign||"top";if(ue=ue==="title"?ve==="top"?-3:0:ve==="top"?G[0]+2:0,he){he.css({width:(me.width||ie.width+(me.widthAdjust||0))+"px"});const pe=re.fontMetrics(he).b,Se=Math.round(he.getBBox(me.useHTML).height);he.align(Q({y:ve==="bottom"?pe:ue+pe,height:Se},me),!1,"spacingBox"),me.floating||(ve==="top"?G[0]=Math.ceil(G[0]+Se):ve==="bottom"&&(G[2]=Math.ceil(G[2]+Se)))}},this),G[0]&&(this.options.title.verticalAlign||"top")==="top"&&(G[0]+=this.options.title.margin),G[2]&&this.options.caption.verticalAlign==="bottom"&&(G[2]+=this.options.caption.margin);const ae=!this.titleOffset||this.titleOffset.join(",")!==G.join(",");this.titleOffset=G,Y(this,"afterLayOutTitles"),!this.isDirtyBox&&ae&&(this.isDirtyBox=this.isDirtyLegend=ae,this.hasRendered&&U&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:D(this.renderTo,"width",!0)||0,height:D(this.renderTo,"height",!0)||0}}getChartSize(){var U=this.options.chart;const G=U.width;U=U.height;const re=this.getContainerBox();this.chartWidth=Math.max(0,G||re.width||600),this.chartHeight=Math.max(0,Z(U,this.chartWidth)||(1<re.height?re.height:400)),this.containerBox=re}temporaryDisplay(U){let G=this.renderTo;if(U)for(;G&&G.style;)G.hcOrigStyle&&(b(G,G.hcOrigStyle),delete G.hcOrigStyle),G.hcOrigDetached&&(S.body.removeChild(G),G.hcOrigDetached=!1),G=G.parentNode;else for(;G&&G.style&&(S.body.contains(G)||G.parentNode||(G.hcOrigDetached=!0,S.body.appendChild(G)),(D(G,"display",!1)==="none"||G.hcOricDetached)&&(G.hcOrigStyle={display:G.style.display,height:G.style.height,overflow:G.style.overflow},U={display:"block",overflow:"hidden"},G!==this.renderTo&&(U.height=0),b(G,U),G.offsetWidth||G.style.setProperty("display","block","important")),G=G.parentNode,G!==S.body););}setClassName(U){this.container.className="highcharts-container "+(U||"")}getContainer(){const U=this.options,G=U.chart;var re=ce();let ie,ae=this.renderTo;ae||(this.renderTo=ae=G.renderTo),K(ae)&&(this.renderTo=ae=S.getElementById(ae)),ae||X(13,!0,this);var ue=q(l(ae,"data-highcharts-chart"));V(ue)&&L[ue]&&L[ue].hasRendered&&L[ue].destroy(),l(ae,"data-highcharts-chart",this.index),ae.innerHTML=M.emptyHTML,G.skipClone||ae.offsetWidth||this.temporaryDisplay(),this.getChartSize(),ue=this.chartWidth;const he=this.chartHeight;if(b(ae,{overflow:"hidden"}),this.styledMode||(ie=Q({position:"relative",overflow:"hidden",width:ue+"px",height:he+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},G.style||{})),this.container=re=h("div",{id:re},ie,ae),this._cursor=re.style.cursor,this.renderer=new(G.renderer||!E?p.getRendererType(G.renderer):x)(re,ue,he,void 0,G.forExport,U.exporting&&U.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),I(void 0,this),this.setClassName(G.className),this.styledMode)for(const me in U.defs)this.renderer.definition(U.defs[me]);else this.renderer.setStyle(G.style);this.renderer.chartIndex=this.index,Y(this,"afterGetContainer")}getMargins(U){const{spacing:G,margin:re,titleOffset:ie}=this;this.resetMargins(),ie[0]&&!B(re[0])&&(this.plotTop=Math.max(this.plotTop,ie[0]+G[0])),ie[2]&&!B(re[2])&&(this.marginBottom=Math.max(this.marginBottom,ie[2]+G[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(re,G),Y(this,"getMargins"),U||this.getAxisMargins()}getAxisMargins(){const U=this,G=U.axisOffset=[0,0,0,0],re=U.colorAxis,ie=U.margin,ae=function(ue){ue.forEach(function(he){he.visible&&he.getOffset()})};U.hasCartesianSeries?ae(U.axes):re&&re.length&&ae(re),w.forEach(function(ue,he){B(ie[he])||(U[ue]+=G[he])}),U.setChartSize()}getOptions(){return F(this.userOptions,A)}reflow(U){const G=this;var re=G.options.chart;re=B(re.width)&&B(re.height);const ie=G.containerBox,ae=G.getContainerBox();delete G.pointer.chartPosition,!re&&!G.isPrinting&&ie&&ae.width&&((ae.width!==ie.width||ae.height!==ie.height)&&(k.clearTimeout(G.reflowTimeout),G.reflowTimeout=se(function(){G.container&&G.setSize(void 0,void 0,!1)},U?100:0)),G.containerBox=ae)}setReflow(){const U=this;var G=re=>{var ie;!((ie=U.options)===null||ie===void 0)&&ie.chart.reflow&&U.hasLoaded&&U.reflow(re)};typeof ResizeObserver=="function"?new ResizeObserver(G).observe(U.renderTo):(G=a(m,"resize",G),a(this,"destroy",G))}setSize(U,G,re){const ie=this,ae=ie.renderer;ie.isResizing+=1,I(re,ie),re=ae.globalAnimation,ie.oldChartHeight=ie.chartHeight,ie.oldChartWidth=ie.chartWidth,typeof U<"u"&&(ie.options.chart.width=U),typeof G<"u"&&(ie.options.chart.height=G),ie.getChartSize(),ie.styledMode||(re?y:b)(ie.container,{width:ie.chartWidth+"px",height:ie.chartHeight+"px"},re),ie.setChartSize(!0),ae.setSize(ie.chartWidth,ie.chartHeight,re),ie.axes.forEach(function(ue){ue.isDirty=!0,ue.setScale()}),ie.isDirtyLegend=!0,ie.isDirtyBox=!0,ie.layOutTitles(),ie.getMargins(),ie.redraw(re),ie.oldChartHeight=null,Y(ie,"resize"),se(function(){ie&&Y(ie,"endResize",null,function(){--ie.isResizing})},T(re).duration)}setChartSize(U){var G=this.inverted;const re=this.renderer;var ie=this.chartWidth,ae=this.chartHeight;const ue=this.options.chart,he=this.spacing,me=this.clipOffset;let ve,pe,Se,Le;this.plotLeft=ve=Math.round(this.plotLeft),this.plotTop=pe=Math.round(this.plotTop),this.plotWidth=Se=Math.max(0,Math.round(ie-ve-this.marginRight)),this.plotHeight=Le=Math.max(0,Math.round(ae-pe-this.marginBottom)),this.plotSizeX=G?Le:Se,this.plotSizeY=G?Se:Le,this.plotBorderWidth=ue.plotBorderWidth||0,this.spacingBox=re.spacingBox={x:he[3],y:he[0],width:ie-he[3]-he[1],height:ae-he[0]-he[2]},this.plotBox=re.plotBox={x:ve,y:pe,width:Se,height:Le},G=2*Math.floor(this.plotBorderWidth/2),ie=Math.ceil(Math.max(G,me[3])/2),ae=Math.ceil(Math.max(G,me[0])/2),this.clipBox={x:ie,y:ae,width:Math.floor(this.plotSizeX-Math.max(G,me[1])/2-ie),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(G,me[2])/2-ae))},U||(this.axes.forEach(function(Te){Te.setAxisSize(),Te.setAxisTranslation()}),re.alignElements()),Y(this,"afterSetChartSize",{skipAxes:U})}resetMargins(){Y(this,"resetMargins");const U=this,G=U.options.chart;["margin","spacing"].forEach(function(re){const ie=G[re],ae=j(ie)?ie:[ie,ie,ie,ie];["Top","Right","Bottom","Left"].forEach(function(ue,he){U[re][he]=H(G[re+ue],ae[he])})}),w.forEach(function(re,ie){U[re]=H(U.margin[ie],U.spacing[ie])}),U.axisOffset=[0,0,0,0],U.clipOffset=[0,0,0,0]}drawChartBox(){const U=this.options.chart,G=this.renderer,re=this.chartWidth,ie=this.chartHeight,ae=this.styledMode,ue=this.plotBGImage;var he=U.backgroundColor;const me=U.plotBackgroundColor,ve=U.plotBackgroundImage,pe=this.plotLeft,Se=this.plotTop,Le=this.plotWidth,Te=this.plotHeight,Pe=this.plotBox,de=this.clipRect,fe=this.clipBox;let we=this.chartBackground,Ie=this.plotBackground,Ae=this.plotBorder,ye,Be,Fe="animate";we||(this.chartBackground=we=G.rect().addClass("highcharts-background").add(),Fe="attr"),ae?ye=Be=we.strokeWidth():(ye=U.borderWidth||0,Be=ye+(U.shadow?8:0),he={fill:he||"none"},(ye||we["stroke-width"])&&(he.stroke=U.borderColor,he["stroke-width"]=ye),we.attr(he).shadow(U.shadow)),we[Fe]({x:Be/2,y:Be/2,width:re-Be-ye%2,height:ie-Be-ye%2,r:U.borderRadius}),Fe="animate",Ie||(Fe="attr",this.plotBackground=Ie=G.rect().addClass("highcharts-plot-background").add()),Ie[Fe](Pe),ae||(Ie.attr({fill:me||"none"}).shadow(U.plotShadow),ve&&(ue?(ve!==ue.attr("href")&&ue.attr("href",ve),ue.animate(Pe)):this.plotBGImage=G.image(ve,pe,Se,Le,Te).add())),de?de.animate({width:fe.width,height:fe.height}):this.clipRect=G.clipRect(fe),Fe="animate",Ae||(Fe="attr",this.plotBorder=Ae=G.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),ae||Ae.attr({stroke:U.plotBorderColor,"stroke-width":U.plotBorderWidth||0,fill:"none"}),Ae[Fe](Ae.crisp({x:pe,y:Se,width:Le,height:Te},-Ae.strokeWidth())),this.isDirtyBox=!1,Y(this,"afterDrawChartBox")}propFromSeries(){const U=this,G=U.options.chart,re=U.options.series;let ie,ae,ue;["inverted","angular","polar"].forEach(function(he){for(ae=C[G.type],ue=G[he]||ae&&ae.prototype[he],ie=re&&re.length;!ue&&ie--;)(ae=C[re[ie].type])&&ae.prototype[he]&&(ue=!0);U[he]=ue})}linkSeries(U){const G=this,re=G.series;re.forEach(function(ie){ie.linkedSeries.length=0}),re.forEach(function(ie){let ae=ie.options.linkedTo;K(ae)&&(ae=ae===":previous"?G.series[ie.index-1]:G.get(ae))&&ae.linkedParent!==ie&&(ae.linkedSeries.push(ie),ie.linkedParent=ae,ae.enabledDataSorting&&ie.setDataSortingOptions(),ie.visible=H(ie.options.visible,ae.options.visible,ie.visible))}),Y(this,"afterLinkSeries",{isUpdating:U})}renderSeries(){this.series.forEach(function(U){U.translate(),U.render()})}render(){const U=this.axes,G=this.colorAxis,re=this.renderer,ie=function(pe){pe.forEach(function(Se){Se.visible&&Se.render()})};let ae=0;this.setTitle(),Y(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const ue=this.plotWidth;U.some(function(pe){if(pe.horiz&&pe.visible&&pe.options.labels.enabled&&pe.series.length)return ae=21,!0});const he=this.plotHeight=Math.max(this.plotHeight-ae,0);U.forEach(function(pe){pe.setScale()}),this.getAxisMargins();const me=1.1<ue/this.plotWidth,ve=1.05<he/this.plotHeight;(me||ve)&&(U.forEach(function(pe){(pe.horiz&&me||!pe.horiz&&ve)&&pe.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?ie(U):G&&G.length&&ie(G),this.seriesGroup||(this.seriesGroup=re.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(U){const G=this,re=_(!0,this.options.credits,U);re.enabled&&!this.credits&&(this.credits=this.renderer.text(re.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){re.href&&(m.location.href=re.href)}).attr({align:re.position.align,zIndex:8}),G.styledMode||this.credits.css(re.style),this.credits.add().align(re.position),this.credits.update=function(ie){G.credits=G.credits.destroy(),G.addCredits(ie)})}destroy(){const U=this,G=U.axes,re=U.series,ie=U.container,ae=ie&&ie.parentNode;let ue;for(Y(U,"destroy"),U.renderer.forExport?W(L,U):L[U.index]=void 0,f.chartCount--,U.renderTo.removeAttribute("data-highcharts-chart"),J(U),ue=G.length;ue--;)G[ue]=G[ue].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ue=re.length;ue--;)re[ue]=re[ue].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(he){const me=U[he];me&&me.destroy&&(U[he]=me.destroy())}),ie&&(ie.innerHTML=M.emptyHTML,J(ie),ae&&O(ie)),$(U,function(he,me){delete U[me]})}firstRender(){const U=this,G=U.options;U.getContainer(),U.resetMargins(),U.setChartSize(),U.propFromSeries(),U.getAxes();const re=N(G.series)?G.series:[];G.series=[],re.forEach(function(ie){U.initSeries(ie)}),U.linkSeries(),U.setSeriesData(),Y(U,"beforeRender"),U.render(),U.pointer.getChartPosition(),!U.renderer.imgCount&&!U.hasLoaded&&U.onload(),U.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(U){U&&typeof this.index<"u"&&U.apply(this,[this])},this),Y(this,"load"),Y(this,"render"),B(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:U,title:G}=this;U&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(G&&G.element.textContent||"").replace(/</g,"&lt;")}),U.accessibility&&U.accessibility.enabled===!1||X('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(U,G,re){const ie=this;let ae;return U&&(G=H(G,!0),Y(ie,"addSeries",{options:U},function(){ae=ie.initSeries(U),ie.isDirtyLegend=!0,ie.linkSeries(),ae.enabledDataSorting&&ae.setData(U.data,!1),Y(ie,"afterAddSeries",{series:ae}),G&&ie.redraw(re)})),ae}addAxis(U,G,re,ie){return this.createAxis(G?"xAxis":"yAxis",{axis:U,redraw:re,animation:ie})}addColorAxis(U,G,re){return this.createAxis("colorAxis",{axis:U,redraw:G,animation:re})}createAxis(U,G){return U=new r(this,G.axis,U),H(G.redraw,!0)&&this.redraw(G.animation),U}showLoading(U){const G=this,re=G.options,ie=re.loading,ae=function(){ue&&b(ue,{left:G.plotLeft+"px",top:G.plotTop+"px",width:G.plotWidth+"px",height:G.plotHeight+"px"})};let ue=G.loadingDiv,he=G.loadingSpan;ue||(G.loadingDiv=ue=h("div",{className:"highcharts-loading highcharts-loading-hidden"},null,G.container)),he||(G.loadingSpan=he=h("span",{className:"highcharts-loading-inner"},null,ue),a(G,"redraw",ae)),ue.className="highcharts-loading",M.setElementHTML(he,H(U,re.lang.loading,"")),G.styledMode||(b(ue,Q(ie.style,{zIndex:10})),b(he,ie.labelStyle),G.loadingShown||(b(ue,{opacity:0,display:""}),y(ue,{opacity:ie.style.opacity||.5},{duration:ie.showDuration||0}))),G.loadingShown=!0,ae()}hideLoading(){const U=this.options,G=this.loadingDiv;G&&(G.className="highcharts-loading highcharts-loading-hidden",this.styledMode||y(G,{opacity:0},{duration:U.loading.hideDuration||100,complete:function(){b(G,{display:"none"})}})),this.loadingShown=!1}update(U,G,re,ie){const ae=this,ue={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},he=U.isResponsiveOptions,me=[];let ve,pe;Y(ae,"update",{options:U}),he||ae.setResponsive(!1,!0),U=F(U,ae.options),ae.userOptions=_(ae.userOptions,U);var Se=U.chart;if(Se){if(_(!0,ae.options.chart,Se),this.setZoomOptions(),"className"in Se&&ae.setClassName(Se.className),"inverted"in Se||"polar"in Se||"type"in Se){ae.propFromSeries();var Le=!0}"alignTicks"in Se&&(Le=!0),"events"in Se&&P(this,Se),$(Se,function(Te,Pe){ae.propsRequireUpdateSeries.indexOf("chart."+Pe)!==-1&&(ve=!0),ae.propsRequireDirtyBox.indexOf(Pe)!==-1&&(ae.isDirtyBox=!0),ae.propsRequireReflow.indexOf(Pe)!==-1&&(he?ae.isDirtyBox=!0:pe=!0)}),!ae.styledMode&&Se.style&&ae.renderer.setStyle(ae.options.chart.style||{})}!ae.styledMode&&U.colors&&(this.options.colors=U.colors),U.time&&(this.time===R&&(this.time=new g(U.time)),_(!0,ae.options.time,U.time)),$(U,function(Te,Pe){ae[Pe]&&typeof ae[Pe].update=="function"?ae[Pe].update(Te,!1):typeof ae[ue[Pe]]=="function"?ae[ue[Pe]](Te):Pe!=="colors"&&ae.collectionsWithUpdate.indexOf(Pe)===-1&&_(!0,ae.options[Pe],U[Pe]),Pe!=="chart"&&ae.propsRequireUpdateSeries.indexOf(Pe)!==-1&&(ve=!0)}),this.collectionsWithUpdate.forEach(function(Te){U[Te]&&(te(U[Te]).forEach(function(Pe,de){const fe=B(Pe.id);let we;fe&&(we=ae.get(Pe.id)),!we&&ae[Te]&&(we=ae[Te][H(Pe.index,de)])&&(fe&&B(we.options.id)||we.options.isInternal)&&(we=void 0),we&&we.coll===Te&&(we.update(Pe,!1),re&&(we.touched=!0)),!we&&re&&ae.collectionsWithInit[Te]&&(ae.collectionsWithInit[Te][0].apply(ae,[Pe].concat(ae.collectionsWithInit[Te][1]||[]).concat([!1])).touched=!0)}),re&&ae[Te].forEach(function(Pe){Pe.touched||Pe.options.isInternal?delete Pe.touched:me.push(Pe)}))}),me.forEach(function(Te){Te.chart&&Te.remove&&Te.remove(!1)}),Le&&ae.axes.forEach(function(Te){Te.update({},!1)}),ve&&ae.getSeriesOrderByLinks().forEach(function(Te){Te.chart&&Te.update({},!1)},this),Le=Se&&Se.width,Se=Se&&(K(Se.height)?Z(Se.height,Le||ae.chartWidth):Se.height),pe||V(Le)&&Le!==ae.chartWidth||V(Se)&&Se!==ae.chartHeight?ae.setSize(Le,Se,ie):H(G,!0)&&ae.redraw(ie),Y(ae,"afterUpdate",{options:U,redraw:G,animation:ie})}setSubtitle(U,G){this.applyDescription("subtitle",U),this.layOutTitles(G)}setCaption(U,G){this.applyDescription("caption",U),this.layOutTitles(G)}showResetZoom(){function U(){G.zoomOut()}const G=this,re=A.lang,ie=G.zooming.resetButton,ae=ie.theme,ue=ie.relativeTo==="chart"||ie.relativeTo==="spacingBox"?null:"scrollablePlotBox";Y(this,"beforeShowResetZoom",null,function(){G.resetZoomButton=G.renderer.button(re.resetZoom,null,null,U,ae).attr({align:ie.position.align,title:re.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ie.position,!1,ue)}),Y(this,"afterShowResetZoom")}zoomOut(){Y(this,"selection",{resetSelection:!0},this.zoom)}zoom(U){const G=this,re=G.pointer;let ie=!1,ae;!U||U.resetSelection?(G.axes.forEach(function(he){ae=he.zoom()}),re.initiated=!1):U.xAxis.concat(U.yAxis).forEach(function(he){const me=he.axis;(re[me.isXAxis?"zoomX":"zoomY"]&&B(re.mouseDownX)&&B(re.mouseDownY)&&G.isInsidePlot(re.mouseDownX-G.plotLeft,re.mouseDownY-G.plotTop,{axis:me})||!B(G.inverted?re.mouseDownX:re.mouseDownY))&&(ae=me.zoom(he.min,he.max),me.displayBtn&&(ie=!0))});const ue=G.resetZoomButton;ie&&!ue?G.showResetZoom():!ie&&j(ue)&&(G.resetZoomButton=ue.destroy()),ae&&G.redraw(H(G.options.chart.animation,U&&U.animation,100>G.pointCount))}pan(U,G){const re=this,ie=re.hoverPoints;G=typeof G=="object"?G:{enabled:G,type:"x"};const ae=re.options.chart;ae&&ae.panning&&(ae.panning=G);const ue=G.type;let he;Y(this,"pan",{originalEvent:U},function(){ie&&ie.forEach(function(pe){pe.setState()});let me=re.xAxis;ue==="xy"?me=me.concat(re.yAxis):ue==="y"&&(me=re.yAxis);const ve={};me.forEach(function(pe){if(pe.options.panningEnabled&&!pe.options.isInternal){var Se=pe.horiz,Le=U[Se?"chartX":"chartY"];Se=Se?"mouseDownX":"mouseDownY";var Te=re[Se],Pe=pe.minPointOffset||0,de=pe.reversed&&!re.inverted||!pe.reversed&&re.inverted?-1:1,fe=pe.getExtremes(),we=pe.toValue(Te-Le,!0)+Pe*de,Ie=pe.toValue(Te+pe.len-Le,!0)-(Pe*de||pe.isXAxis&&pe.pointRangePadding||0),Ae=Ie<we;de=pe.hasVerticalPanning(),Te=Ae?Ie:we,we=Ae?we:Ie;var ye=pe.panningState;!de||pe.isXAxis||ye&&!ye.isDirty||pe.series.forEach(function(Be){var Fe=Be.getProcessedData(!0);Fe=Be.getExtremes(Fe.yData,!0),ye||(ye={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),V(Fe.dataMin)&&V(Fe.dataMax)&&(ye.startMin=Math.min(H(Be.options.threshold,1/0),Fe.dataMin,ye.startMin),ye.startMax=Math.max(H(Be.options.threshold,-1/0),Fe.dataMax,ye.startMax))}),de=Math.min(H(ye&&ye.startMin,fe.dataMin),Pe?fe.min:pe.toValue(pe.toPixels(fe.min)-pe.minPixelPadding)),Ie=Math.max(H(ye&&ye.startMax,fe.dataMax),Pe?fe.max:pe.toValue(pe.toPixels(fe.max)+pe.minPixelPadding)),pe.panningState=ye,pe.isOrdinal||(Pe=de-Te,0<Pe&&(we+=Pe,Te=de),Pe=we-Ie,0<Pe&&(we=Ie,Te-=Pe),pe.series.length&&Te!==fe.min&&we!==fe.max&&Te>=de&&we<=Ie&&(pe.setExtremes(Te,we,!1,!1,{trigger:"pan"}),!re.resetZoomButton&&Te!==de&&we!==Ie&&ue.match("y")&&(re.showResetZoom(),pe.displayBtn=!1),he=!0),ve[Se]=Le)}}),$(ve,(pe,Se)=>{re[Se]=pe}),he&&re.redraw(!1),b(re.container,{cursor:"move"})})}}return Q(ne.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ne.prototype.addAxis,[!0]],yAxis:[ne.prototype.addAxis,[!1]],series:[ne.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),ne}),o(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f){const{stop:p}=n,{addEvent:d,createElement:v,defined:x,merge:g,pick:k}=f;d(s,"afterSetChartSize",function(M){var y=this.options.chart.scrollablePlotArea,T=y&&y.minWidth;y=y&&y.minHeight;let I;this.renderer.forExport||(T?(this.scrollablePixelsX=T=Math.max(0,T-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.width=this.plotWidth+=T,this.inverted?this.clipBox.height+=T:this.clipBox.width+=T,I={1:{name:"right",value:T}}):y&&(this.scrollablePixelsY=T=Math.max(0,y-this.chartHeight),x(T)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.height=this.plotHeight+=T,this.inverted?this.clipBox.width+=T:this.clipBox.height+=T,I={2:{name:"bottom",value:T}})),I&&!M.skipAxes&&this.axes.forEach(function(A){I[A.side]?A.getPlotLinePath=function(){let R=I[A.side].name,z=this[R],P;return this[R]=z-I[A.side].value,P=r.prototype.getPlotLinePath.apply(this,arguments),this[R]=z,P}:(A.setAxisSize(),A.setAxisTranslation())}))}),d(s,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),s.prototype.setUpScrolling=function(){const M={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(M.overflowX="auto"),this.scrollablePixelsY&&(M.overflowY="auto"),this.scrollingParent=v("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=v("div",{className:"highcharts-scrolling"},M,this.scrollingParent);let y;d(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(y=this.hoverPoint),this.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=v("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},s.prototype.moveFixedElements=function(){let M=this.container,y=this.fixedRenderer,T=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),I;this.scrollablePixelsX&&!this.inverted?I=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?I=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(I=".highcharts-yaxis"),I&&T.push(`${I}:not(.highcharts-radial-axis)`,`${I}-labels:not(.highcharts-radial-axis-labels)`),T.forEach(function(A){[].forEach.call(M.querySelectorAll(A),function(R){(R.namespaceURI===y.SVG_NS?y.box:y.box.parentNode).appendChild(R),R.style.pointerEvents="auto"})})},s.prototype.applyFixed=function(){var M=!this.fixedDiv,y=this.options.chart,T=y.scrollablePlotArea,I=u.getRendererType();M?(this.fixedDiv=v("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style&&y.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=y=new I(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":k(T.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d(this,"afterShowResetZoom",this.moveFixedElements),d(this,"afterApplyDrilldown",this.moveFixedElements),d(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||M)&&(this.scrollableDirty=!1,this.moveFixedElements()),y=this.chartWidth+(this.scrollablePixelsX||0),I=this.chartHeight+(this.scrollablePixelsY||0),p(this.container),this.container.style.width=y+"px",this.container.style.height=I+"px",this.renderer.boxWrapper.attr({width:y,height:I,viewBox:[0,0,y,I].join(" ")}),this.chartBackground.attr({width:y,height:I}),this.scrollingContainer.style.height=this.chartHeight+"px",M&&(T.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*T.scrollPositionX),T.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*T.scrollPositionY)),I=this.axisOffset,M=this.plotTop-I[0]-1,T=this.plotLeft-I[3]-1,y=this.plotTop+this.plotHeight+I[2]+1,I=this.plotLeft+this.plotWidth+I[1]+1;let A=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),R=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);M=this.scrollablePixelsX?[["M",0,M],["L",this.plotLeft-1,M],["L",this.plotLeft-1,y],["L",0,y],["Z"],["M",A,M],["L",this.chartWidth,M],["L",this.chartWidth,y],["L",A,y],["Z"]]:this.scrollablePixelsY?[["M",T,0],["L",T,this.plotTop-1],["L",I,this.plotTop-1],["L",I,0],["Z"],["M",T,R],["L",T,this.chartHeight],["L",I,this.chartHeight],["L",I,R],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:M})},d(r,"afterInit",function(){this.chart.scrollableDirty=!0}),d(c,"show",function(){this.chart.scrollableDirty=!0})}),o(i,"Core/Axis/Stacking/StackItem.js",[i["Core/Templating.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{format:c}=n,{series:u}=r,{destroyObjectProperties:f,fireEvent:p,isNumber:d,pick:v}=s;class x{constructor(k,M,y,T,I){const A=k.chart.inverted,R=k.reversed;this.axis=k,k=this.isNegative=!!y!=!!R,this.options=M=M||{},this.x=T,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=I,this.rightCliff=this.leftCliff=0,this.alignOptions={align:M.align||(A?k?"left":"right":"center"),verticalAlign:M.verticalAlign||(A?"middle":k?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(A?k?"right":"left":"center")}destroy(){f(this,this.axis)}render(k){const M=this.axis.chart,y=this.options;var T=y.format;T=T?c(T,this,M):y.formatter.call(this),this.label?this.label.attr({text:T,visibility:"hidden"}):(this.label=M.renderer.label(T,null,void 0,y.shape,void 0,void 0,y.useHTML,!1,"stack-labels"),T={r:y.borderRadius||0,text:T,padding:v(y.padding,5),visibility:"hidden"},M.styledMode||(T.fill=y.backgroundColor,T.stroke=y.borderColor,T["stroke-width"]=y.borderWidth,this.label.css(y.style||{})),this.label.attr(T),this.label.added||this.label.add(k)),this.label.labelrank=M.plotSizeY,p(this,"afterRender")}setOffset(k,M,y,T,I,A){const{alignOptions:R,axis:z,label:P,options:L,textAlign:S}=this,w=z.chart;y=this.getStackBox({xOffset:k,width:M,boxBottom:y,boxTop:T,defaultX:I,xAxis:A});var{verticalAlign:E}=R;if(P&&y){T=P.getBBox(),I=P.padding,A=v(L.overflow,"justify")==="justify",R.x=L.x||0,R.y=L.y||0;const{x:m,y:C}=this.adjustStackPosition({labelBox:T,verticalAlign:E,textAlign:S});y.x-=m,y.y-=C,P.align(R,!1,y),(E=w.isInsidePlot(P.alignAttr.x+R.x+m,P.alignAttr.y+R.y+C))||(A=!1),A&&u.prototype.justifyDataLabel.call(z,P,R,P.alignAttr,T,y),P.attr({x:P.alignAttr.x,y:P.alignAttr.y,rotation:L.rotation,rotationOriginX:T.width/2,rotationOriginY:T.height/2}),v(!A&&L.crop,!0)&&(E=d(P.x)&&d(P.y)&&w.isInsidePlot(P.x-I+P.width,P.y)&&w.isInsidePlot(P.x+I,P.y)),P[E?"show":"hide"]()}p(this,"afterSetOffset",{xOffset:k,width:M})}adjustStackPosition({labelBox:k,verticalAlign:M,textAlign:y}){const T={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:k.width/2+k.width/2*T[y],y:k.height/2*T[M]}}getStackBox(k){var M=this.axis;const y=M.chart,{boxTop:T,defaultX:I,xOffset:A,width:R,boxBottom:z}=k;var P=M.stacking.usePercentage?100:v(T,this.total,0);P=M.toPixels(P),k=k.xAxis||y.xAxis[0];const L=v(I,k.translate(this.x))+A;M=M.toPixels(z||d(M.min)&&M.logarithmic&&M.logarithmic.lin2log(M.min)||0),M=Math.abs(P-M);const S=this.isNegative;return y.inverted?{x:(S?P:P-M)-y.plotLeft,y:k.height-L-R,width:M,height:R}:{x:L+k.transB-y.plotLeft,y:(S?P-M:P)-y.plotTop,width:R,height:M}}}return x}),o(i,"Core/Axis/Stacking/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Utilities.js"]],function(n,r,s,c,u){function f(){const a=this,l=a.inverted;a.yAxis.forEach(h=>{h.stacking&&h.stacking.stacks&&h.hasVisibleSeries&&(h.stacking.oldStacks=h.stacking.stacks)}),a.series.forEach(h=>{const b=h.xAxis&&h.xAxis.options||{};!h.options.stacking||h.visible!==!0&&a.options.chart.ignoreHiddenSeries!==!1||(h.stackKey=[h.type,E(h.options.stack,""),l?b.top:b.left,l?b.height:b.width].join())})}function p(){const a=this.stacking;if(a){var l=a.stacks;w(l,function(h,b){z(h),l[b]=null}),a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function d(){this.coll!=="yAxis"||this.stacking||(this.stacking=new m(this))}function v(a,l,h,b){return!R(a)||a.x!==l||b&&a.stackKey!==b?a={x:l,index:0,key:b,stackKey:b}:a.index++,a.key=[h,l,a.index].join(),a}function x(){const a=this,l=a.stackKey,h=a.yAxis.stacking.stacks,b=a.processedXData,B=a[a.options.stacking+"Stacker"];let F;B&&[l,"-"+l].forEach(O=>{let W=b.length,X;for(;W--;){var Q=b[W];F=a.getStackIndicator(F,Q,a.index,O),(X=(Q=h[O]&&h[O][Q])&&Q.points[F.key])&&B.call(a,X,Q,W)}})}function g(a,l,h){l=l.total?100/l.total:0,a[0]=A(a[0]*l),a[1]=A(a[1]*l),this.stackedYData[h]=a[1]}function k(){const a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?T.setStackedPoints.call(this,"group"):a&&w(a.stacks,(l,h)=>{h.slice(-5)==="group"&&(w(l,b=>b.destroy()),delete a.stacks[h])})}function M(a){var l=this.chart;const h=a||this.options.stacking;if(h&&(this.visible===!0||l.options.chart.ignoreHiddenSeries===!1)){var b=this.processedXData,B=this.processedYData,F=[],O=B.length,W=this.options,X=W.threshold,Q=E(W.startFromThreshold&&X,0);W=W.stack,a=a?`${this.type},${h}`:this.stackKey;var ee="-"+a,Y=this.negStacks;l=h==="group"?l.yAxis[0]:this.yAxis;var D=l.stacking.stacks,N=l.stacking.oldStacks,V,j;for(l.stacking.stacksTouched+=1,j=0;j<O;j++){var K=b[j],_=B[j],$=this.getStackIndicator($,K,this.index),H=$.key,q=(V=Y&&_<(Q?0:X))?ee:a;D[q]||(D[q]={}),D[q][K]||(N[q]&&N[q][K]?(D[q][K]=N[q][K],D[q][K].total=null):D[q][K]=new c(l,l.options.stackLabels,!!V,K,W)),q=D[q][K],_!==null?(q.points[H]=q.points[this.index]=[E(q.cumulative,Q)],R(q.cumulative)||(q.base=H),q.touched=l.stacking.stacksTouched,0<$.index&&this.singleStacks===!1&&(q.points[H][0]=q.points[this.index+","+K+",0"][0])):q.points[H]=q.points[this.index]=null,h==="percent"?(V=V?a:ee,Y&&D[V]&&D[V][K]?(V=D[V][K],q.total=V.total=Math.max(V.total,q.total)+Math.abs(_)||0):q.total=A(q.total+(Math.abs(_)||0))):h==="group"?(L(_)&&(_=_[0]),_!==null&&(q.total=(q.total||0)+1)):q.total=A(q.total+(_||0)),q.cumulative=h==="group"?(q.total||1)-1:A(E(q.cumulative,Q)+(_||0)),_!==null&&(q.points[H].push(q.cumulative),F[j]=q.cumulative,q.hasValidPoints=!0)}h==="percent"&&(l.stacking.usePercentage=!0),h!=="group"&&(this.stackedYData=F),l.stacking.oldStacks={}}}const{getDeferredAnimation:y}=n,{series:{prototype:T}}=s,{addEvent:I,correctFloat:A,defined:R,destroyObjectProperties:z,fireEvent:P,isArray:L,isNumber:S,objectEach:w,pick:E}=u;class m{constructor(l){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=l}buildStacks(){const l=this.axis,h=l.series,b=l.options.reversedStacks,B=h.length;let F,O;for(this.usePercentage=!1,O=B;O--;)F=h[b?O:B-O-1],F.setStackedPoints(),F.setGroupedPoints();for(O=0;O<B;O++)h[O].modifyStacks();P(l,"afterBuildStacks")}cleanStacks(){let l;this.oldStacks&&(l=this.stacks=this.oldStacks),w(l,function(h){w(h,function(b){b.cumulative=b.total})})}resetStacks(){w(this.stacks,l=>{w(l,(h,b)=>{S(h.touched)&&h.touched<this.stacksTouched?(h.destroy(),delete l[b]):(h.total=null,h.cumulative=null)})})}renderStackTotals(){var l=this.axis;const h=l.chart,b=h.renderer,B=this.stacks;l=y(h,l.options.stackLabels&&l.options.stackLabels.animation||!1);const F=this.stackTotalGroup=this.stackTotalGroup||b.g("stack-labels").attr({zIndex:6,opacity:0}).add();F.translate(h.plotLeft,h.plotTop),w(B,function(O){w(O,function(W){W.render(F)})}),F.animate({opacity:1},l)}}var C;return function(a){const l=[];a.compose=function(h,b,B){u.pushUnique(l,h)&&(I(h,"init",d),I(h,"destroy",p)),u.pushUnique(l,b)&&(b.prototype.getStacks=f),u.pushUnique(l,B)&&(h=B.prototype,h.getStackIndicator=v,h.modifyStacks=x,h.percentStacker=g,h.setGroupedPoints=k,h.setStackedPoints=M)}}(C||(C={})),C}),o(i,"Series/Line/LineSeries.js",[i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{defined:c,merge:u}=s;class f extends n{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const d=this,v=this.options,x=(this.gappedPath||this.getGraphPath).call(this),g=this.chart.styledMode;let k=[["graph","highcharts-graph"]];g||k[0].push(v.lineColor||this.color||"#cccccc",v.dashStyle),k=d.getZonesGraphs(k),k.forEach(function(M,y){var T=M[0];let I=d[T];const A=I?"animate":"attr";I?(I.endX=d.preventGraphAnimation?null:x.xMap,I.animate({d:x})):x.length&&(d[T]=I=d.chart.renderer.path(x).addClass(M[1]).attr({zIndex:1}).add(d.group)),I&&!g&&(T={stroke:M[2],"stroke-width":v.lineWidth||0,fill:d.fillGraph&&d.color||"none"},M[3]?T.dashstyle=M[3]:v.linecap!=="square"&&(T["stroke-linecap"]=T["stroke-linejoin"]="round"),I[A](T).shadow(2>y&&v.shadow)),I&&(I.startX=x.xMap,I.isArea=x.isArea)})}getGraphPath(d,v,x){const g=this,k=g.options,M=[],y=[];let T,I=k.step;d=d||g.points;const A=d.reversed;return A&&d.reverse(),(I={right:1,center:2}[I]||I&&3)&&A&&(I=4-I),d=this.getValidPoints(d,!1,!(k.connectNulls&&!v&&!x)),d.forEach(function(R,z){const P=R.plotX,L=R.plotY,S=d[z-1],w=R.isNull||typeof L!="number";(R.leftCliff||S&&S.rightCliff)&&!x&&(T=!0),w&&!c(v)&&0<z?T=!k.connectNulls:w&&!v?T=!0:(z===0||T?z=[["M",R.plotX,R.plotY]]:g.getPointSpline?z=[g.getPointSpline(d,R,z)]:I?(z=I===1?[["L",S.plotX,L]]:I===2?[["L",(S.plotX+P)/2,S.plotY],["L",(S.plotX+P)/2,L]]:[["L",P,S.plotY]],z.push(["L",P,L])):z=[["L",P,L]],y.push(R.x),I&&(y.push(R.x),I===2&&y.push(R.x)),M.push.apply(M,z),T=!1)}),M.xMap=y,g.graphPath=M}getZonesGraphs(d){return this.zones.forEach(function(v,x){x=["zone-graph-"+x,"highcharts-graph highcharts-zone-graph-"+x+" "+(v.className||"")],this.chart.styledMode||x.push(v.color||this.color,v.dashStyle||this.options.dashStyle),d.push(x)},this),d}}return f.defaultOptions=u(n.defaultOptions,{legendSymbol:"lineMarker"}),r.registerSeriesType("line",f),f}),o(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{seriesTypes:{line:c}}=r,{extend:u,merge:f,objectEach:p,pick:d}=s;class v extends c{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const g=this,k=this.areaPath,M=this.options,y=[["area","highcharts-area",this.color,M.fillColor]];this.zones.forEach(function(T,I){y.push(["zone-area-"+I,"highcharts-area highcharts-zone-area-"+I+" "+T.className,T.color||g.color,T.fillColor||M.fillColor])}),y.forEach(function(T){const I=T[0],A={};let R=g[I];const z=R?"animate":"attr";R?(R.endX=g.preventGraphAnimation?null:k.xMap,R.animate({d:k})):(A.zIndex=0,R=g[I]=g.chart.renderer.path(k).addClass(T[1]).add(g.group),R.isArea=!0),g.chart.styledMode||(T[3]?A.fill=T[3]:(A.fill=T[2],A["fill-opacity"]=d(M.fillOpacity,.75))),R[z](A),R.startX=k.xMap,R.shiftUnit=M.step?2:1})}getGraphPath(g){var k=c.prototype.getGraphPath,M=this.options;const y=M.stacking,T=this.yAxis,I=[],A=[],R=this.index,z=T.stacking.stacks[this.stackKey],P=M.threshold,L=Math.round(T.getThreshold(M.threshold));M=d(M.connectNulls,y==="percent");var S=function(C,a,l){var h=g[C];C=y&&z[h.x].points[R];const b=h[l+"Null"]||0;l=h[l+"Cliff"]||0;let B,F;h=!0,l||b?(B=(b?C[0]:C[1])+l,F=C[0]+l,h=!!b):!y&&g[a]&&g[a].isNull&&(B=F=P),typeof B<"u"&&(A.push({plotX:w,plotY:B===null?L:T.getThreshold(B),isNull:h,isCliff:!0}),I.push({plotX:w,plotY:F===null?L:T.getThreshold(F),doCurve:!1}))};let w;g=g||this.points,y&&(g=this.getStackPoints(g));for(let C=0,a=g.length;C<a;++C){y||(g[C].leftCliff=g[C].rightCliff=g[C].leftNull=g[C].rightNull=void 0);var E=g[C].isNull;w=d(g[C].rectPlotX,g[C].plotX);var m=y?d(g[C].yBottom,L):L;(!E||M)&&(M||S(C,C-1,"left"),E&&!y&&M||(A.push(g[C]),I.push({x:C,plotX:w,plotY:m})),M||S(C,C+1,"right"))}return S=k.call(this,A,!0,!0),I.reversed=!0,E=k.call(this,I,!0,!0),(m=E[0])&&m[0]==="M"&&(E[0]=["L",m[1],m[2]]),E=S.concat(E),E.length&&E.push(["Z"]),k=k.call(this,A,!1,M),E.xMap=S.xMap,this.areaPath=E,k}getStackPoints(g){const k=this,M=[],y=[],T=this.xAxis,I=this.yAxis,A=I.stacking.stacks[this.stackKey],R={},z=I.series,P=z.length,L=I.options.reversedStacks?1:-1,S=z.indexOf(k);if(g=g||this.points,this.options.stacking){for(let E=0;E<g.length;E++)g[E].leftNull=g[E].rightNull=void 0,R[g[E].x]=g[E];p(A,function(E,m){E.total!==null&&y.push(m)}),y.sort(function(E,m){return E-m});const w=z.map(E=>E.visible);y.forEach(function(E,m){let C=0,a,l;if(R[E]&&!R[E].isNull)M.push(R[E]),[-1,1].forEach(function(h){const b=h===1?"rightNull":"leftNull",B=A[y[m+h]];let F=0;if(B){let O=S;for(;0<=O&&O<P;){const W=z[O].index;a=B.points[W],a||(W===k.index?R[E][b]=!0:w[O]&&(l=A[E].points[W])&&(F-=l[1]-l[0])),O+=L}}R[E][h===1?"rightCliff":"leftCliff"]=F});else{let h=S;for(;0<=h&&h<P;){if(a=A[E].points[z[h].index]){C=a[1];break}h+=L}C=d(C,0),C=I.translate(C,0,1,0,1),M.push({isNull:!0,plotX:T.translate(E,0,0,0,1),x:E,plotY:C,yBottom:C})}})}return M}}return v.defaultOptions=f(c.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),u(v.prototype,{singleStacks:!1}),r.registerSeriesType("area",v),v}),o(i,"Series/Spline/SplineSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r){const{line:s}=n.seriesTypes,{merge:c,pick:u}=r;class f extends s{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(d,v,x){const g=v.plotX||0,k=v.plotY||0,M=d[x-1];x=d[x+1];let y,T,I;if(M&&!M.isNull&&M.doCurve!==!1&&!v.isCliff&&x&&!x.isNull&&x.doCurve!==!1&&!v.isCliff){d=M.plotY||0;var A=x.plotX||0;x=x.plotY||0;let R=0;y=(1.5*g+(M.plotX||0))/2.5,T=(1.5*k+d)/2.5,A=(1.5*g+A)/2.5,I=(1.5*k+x)/2.5,A!==y&&(R=(I-T)*(A-g)/(A-y)+k-I),T+=R,I+=R,T>d&&T>k?(T=Math.max(d,k),I=2*k-T):T<d&&T<k&&(T=Math.min(d,k),I=2*k-T),I>x&&I>k?(I=Math.max(x,k),T=2*k-I):I<x&&I<k&&(I=Math.min(x,k),T=2*k-I),v.rightContX=A,v.rightContY=I}return v=["C",u(M.rightContX,M.plotX,0),u(M.rightContY,M.plotY,0),u(y,g,0),u(T,k,0),g,k],M.rightContX=M.rightContY=void 0,v}}return f.defaultOptions=c(s.defaultOptions),n.registerSeriesType("spline",f),f}),o(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Spline/SplineSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{area:c,area:{prototype:u}}=r.seriesTypes,{extend:f,merge:p}=s;class d extends n{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return d.defaultOptions=p(n.defaultOptions,c.defaultOptions),f(d.prototype,{getGraphPath:u.getGraphPath,getStackPoints:u.getStackPoints,drawGraph:u.drawGraph}),r.registerSeriesType("areaspline",d),d}),o(i,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),o(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Series/Column/ColumnSeriesDefaults.js"],i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f,p){const{animObject:d}=n,{parse:v}=r,{hasTouch:x,noop:g}=c,{clamp:k,defined:M,extend:y,fireEvent:T,isArray:I,isNumber:A,merge:R,pick:z,objectEach:P}=p;class L extends u{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(w){const E=this,m=this.yAxis,C=m.pos,a=E.options,l=this.chart.inverted,h={},b=l?"translateX":"translateY";let B;w?(h.scaleY=.001,w=k(m.toPixels(a.threshold),C,C+m.len),l?h.translateX=w-m.len:h.translateY=w,E.clipBox&&E.setClip(),E.group.attr(h)):(B=Number(E.group.attr(b)),E.group.animate({scaleY:1},y(d(E.options.animation),{step:function(F,O){E.group&&(h[b]=B+O.pos*(C-B),E.group.attr(h))}})))}init(w,E){super.init.apply(this,arguments);const m=this;w=m.chart,w.hasRendered&&w.series.forEach(function(C){C.type===m.type&&(C.isDirty=!0)})}getColumnMetrics(){const w=this;var E=w.options;const m=w.xAxis,C=w.yAxis;var a=m.options.reversedStacks;a=m.reversed&&!a||!m.reversed&&a;const l={};let h,b=0;E.grouping===!1?b=1:w.chart.series.forEach(function(W){const X=W.yAxis,Q=W.options;let ee;W.type!==w.type||!W.visible&&w.chart.options.chart.ignoreHiddenSeries||C.len!==X.len||C.pos!==X.pos||(Q.stacking&&Q.stacking!=="group"?(h=W.stackKey,typeof l[h]>"u"&&(l[h]=b++),ee=l[h]):Q.grouping!==!1&&(ee=b++),W.columnIndex=ee)});const B=Math.min(Math.abs(m.transA)*(m.ordinal&&m.ordinal.slope||E.pointRange||m.closestPointRange||m.tickInterval||1),m.len),F=B*E.groupPadding,O=(B-2*F)/(b||1);return E=Math.min(E.maxPointWidth||m.len,z(E.pointWidth,O*(1-2*E.pointPadding))),w.columnMetrics={width:E,offset:(O-E)/2+(F+((w.columnIndex||0)+(a?1:0))*O-B/2)*(a?-1:1),paddedWidth:O,columnCount:b},w.columnMetrics}crispCol(w,E,m,C){var a=this.borderWidth,l=-(a%2?.5:0);return a=a%2?.5:1,this.options.crisp&&(m=Math.round(w+m)+l,w=Math.round(w)+l,m-=w),C=Math.round(E+C)+a,l=.5>=Math.abs(E)&&.5<C,E=Math.round(E)+a,C-=E,l&&C&&(--E,C+=1),{x:w,y:E,width:m,height:C}}adjustForMissingColumns(w,E,m,C){const a=this.options.stacking;if(!m.isNull&&1<C.columnCount){const l=this.yAxis.options.reversedStacks;let h=0,b=l?0:-C.columnCount;P(this.yAxis.stacking&&this.yAxis.stacking.stacks,B=>{if(typeof m.x=="number"){const F=B[m.x.toString()];F&&(B=F.points[this.index],a?(B&&(h=b),F.hasValidPoints&&(l?b++:b--)):I(B)&&(B=Object.keys(F.points).filter(O=>!O.match(",")&&F.points[O]&&1<F.points[O].length).map(parseFloat).sort((O,W)=>W-O),h=B.indexOf(this.index),b=B.length))}}),w=(m.plotX||0)+((b-1)*C.paddedWidth+E)/2-E-h*C.paddedWidth}return w}translate(){const w=this,E=w.chart,m=w.options;var C=w.dense=2>w.closestPointRange*w.xAxis.transA;C=w.borderWidth=z(m.borderWidth,C?0:1);const a=w.xAxis,l=w.yAxis,h=m.threshold,b=z(m.minPointLength,5),B=w.getColumnMetrics(),F=B.width,O=w.pointXOffset=B.offset,W=w.dataMin,X=w.dataMax;let Q=w.barW=Math.max(F,1+2*C),ee=w.translatedThreshold=l.getThreshold(h);E.inverted&&(ee-=.5),m.pointPadding&&(Q=Math.ceil(Q)),u.prototype.translate.apply(w),w.points.forEach(function(Y){const D=z(Y.yBottom,ee);var N=999+Math.abs(D),V=Y.plotX||0;N=k(Y.plotY,-N,l.len+N);let j=Math.min(N,D),K=Math.max(N,D)-j,_=F,$=V+O,H=Q;b&&Math.abs(K)<b&&(K=b,V=!l.reversed&&!Y.negative||l.reversed&&Y.negative,A(h)&&A(X)&&Y.y===h&&X<=h&&(l.min||0)<h&&(W!==X||(l.max||0)<=h)&&(V=!V,Y.negative=!Y.negative),j=Math.abs(j-ee)>b?D-b:ee-(V?b:0)),M(Y.options.pointWidth)&&(_=H=Math.ceil(Y.options.pointWidth),$-=Math.round((_-F)/2)),m.centerInCategory&&($=w.adjustForMissingColumns($,_,Y,B)),Y.barX=$,Y.pointWidth=_,Y.tooltipPos=E.inverted?[k(l.len+l.pos-E.plotLeft-N,l.pos-E.plotLeft,l.len+l.pos-E.plotLeft),a.len+a.pos-E.plotTop-$-H/2,K]:[a.left-E.plotLeft+$+H/2,k(N+l.pos-E.plotTop,l.pos-E.plotTop,l.len+l.pos-E.plotTop),K],Y.shapeType=w.pointClass.prototype.shapeType||"roundedRect",Y.shapeArgs=w.crispCol($,Y.isNull?ee:j,H,Y.isNull?0:K)}),T(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(w,E){const m=this.options;var C=this.pointAttrToOptions||{},a=C.stroke||"borderColor";const l=C["stroke-width"]||"borderWidth";let h,b=w&&w.color||this.color,B=w&&w[a]||m[a]||b;C=w&&w.options.dashStyle||m.dashStyle;let F=w&&w[l]||m[l]||this[l]||0,O=z(w&&w.opacity,m.opacity,1);return w&&this.zones.length&&(h=w.getZone(),b=w.options.color||h&&(h.color||w.nonZonedColor)||this.color,h&&(B=h.borderColor||B,C=h.dashStyle||C,F=h.borderWidth||F)),E&&w&&(w=R(m.states[E],w.options.states&&w.options.states[E]||{}),E=w.brightness,b=w.color||typeof E<"u"&&v(b).brighten(w.brightness).get()||b,B=w[a]||B,F=w[l]||F,C=w.dashStyle||C,O=z(w.opacity,O)),a={fill:b,stroke:B,"stroke-width":F,opacity:O},C&&(a.dashstyle=C),a}drawPoints(w=this.points){const E=this,m=this.chart,C=E.options,a=m.renderer,l=C.animationLimit||250;let h;w.forEach(function(b){let B=b.graphic,F=!!B,O=B&&m.pointCount<l?"animate":"attr";A(b.plotY)&&b.y!==null?(h=b.shapeArgs,B&&b.hasNewShapeType()&&(B=B.destroy()),E.enabledDataSorting&&(b.startXPos=E.xAxis.reversed?-(h&&h.width||0):E.xAxis.width),B||(b.graphic=B=a[b.shapeType](h).add(b.group||E.group))&&E.enabledDataSorting&&m.hasRendered&&m.pointCount<l&&(B.attr({x:b.startXPos}),F=!0,O="animate"),B&&F&&B[O](R(h)),m.styledMode||B[O](E.pointAttribs(b,b.selected&&"select")).shadow(b.allowShadow!==!1&&C.shadow),B&&(B.addClass(b.getClassName(),!0),B.attr({visibility:b.visible?"inherit":"hidden"}))):B&&(b.graphic=B.destroy())})}drawTracker(w=this.points){const E=this,m=E.chart,C=m.pointer,a=function(h){const b=C.getPointFromEvent(h);typeof b<"u"&&E.options.enableMouseTracking&&(C.isDirectTouch=!0,b.onMouseOver(h))};let l;w.forEach(function(h){l=I(h.dataLabels)?h.dataLabels:h.dataLabel?[h.dataLabel]:[],h.graphic&&(h.graphic.element.point=h),l.forEach(function(b){b.div?b.div.point=h:b.element.point=h})}),E._hasTracking||(E.trackerGroups.forEach(function(h){E[h]&&(E[h].addClass("highcharts-tracker").on("mouseover",a).on("mouseout",function(b){C.onTrackerMouseOut(b)}),x&&E[h].on("touchstart",a),!m.styledMode&&E.options.cursor&&E[h].css({cursor:E.options.cursor}))}),E._hasTracking=!0),T(this,"afterDrawTracker")}remove(){const w=this,E=w.chart;E.hasRendered&&E.series.forEach(function(m){m.type===w.type&&(m.isDirty=!0)}),u.prototype.remove.apply(w,arguments)}}return L.defaultOptions=R(u.defaultOptions,s),y(L.prototype,{cropShoulder:0,directTouch:!0,getSymbol:g,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),f.registerSeriesType("column",L),L}),o(i,"Core/Series/DataLabel.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Templating.js"],i["Core/Utilities.js"]],function(n,r,s){const{getDeferredAnimation:c}=n,{format:u}=r,{defined:f,extend:p,fireEvent:d,isArray:v,isString:x,merge:g,objectEach:k,pick:M,splat:y}=s;var T;return function(I){function A(C,a,l,h,b){const B=this.chart;var F=this.isCartesian&&B.inverted;const O=this.enabledDataSorting;var W=C.plotX,X=C.plotY;const Q=l.rotation;var ee=l.align;X=f(W)&&f(X)&&B.isInsidePlot(W,Math.round(X),{inverted:F,paneCoordinates:!0,series:this});let Y=M(l.overflow,O?"none":"justify")==="justify";if(F=this.visible&&C.visible!==!1&&f(W)&&(C.series.forceDL||O&&!Y||X||M(l.inside,!!this.options.stacking)&&h&&B.isInsidePlot(W,F?h.x+1:h.y+h.height-1,{inverted:F,paneCoordinates:!0,series:this})),W=C.pos(),F&&W){Q&&a.attr({align:ee}),ee=a.getBBox(!0);var D=[0,0],N=B.renderer.fontMetrics(a).b;if(h=p({x:W[0],y:Math.round(W[1]),width:0,height:0},h),p(l,{width:ee.width,height:ee.height}),Q?(Y=!1,D=B.renderer.rotCorr(N,Q),N={x:h.x+(l.x||0)+h.width/2+D.x,y:h.y+(l.y||0)+{top:0,middle:.5,bottom:1}[l.verticalAlign]*h.height},D=[ee.x-Number(a.attr("x")),ee.y-Number(a.attr("y"))],O&&this.xAxis&&!Y&&this.setDataLabelStartPos(C,a,b,X,N),a[b?"attr":"animate"](N)):(O&&this.xAxis&&!Y&&this.setDataLabelStartPos(C,a,b,X,h),a.align(l,void 0,h),N=a.alignAttr),Y&&0<=h.height)this.justifyDataLabel(a,l,N,ee,h,b);else if(M(l.crop,!0)){let{x:V,y:j}=N;V+=D[0],j+=D[1],F=B.isInsidePlot(V,j,{paneCoordinates:!0,series:this})&&B.isInsidePlot(V+ee.width,j+ee.height,{paneCoordinates:!0,series:this})}l.shape&&!Q&&a[b?"attr":"animate"]({anchorX:W[0],anchorY:W[1]})}b&&O&&(a.placed=!1),F||O&&!Y?a.show():(a.hide(),a.placed=!1)}function R(C,a){var l=a.filter;return l?(a=l.operator,C=C[l.property],l=l.value,a===">"&&C>l||a==="<"&&C<l||a===">="&&C>=l||a==="<="&&C<=l||a==="=="&&C==l||a==="==="&&C===l):!0}function z(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function P(C){const a=this.hasRendered||0,l=this.initDataLabelsGroup().attr({opacity:+a});return!a&&l&&(this.visible&&l.show(),this.options.animation?l.animate({opacity:1},C):l.attr({opacity:1})),l}function L(C=this.points){var a,l;const h=this,b=h.chart,B=h.options,F=b.renderer,{backgroundColor:O,plotBackgroundColor:W}=b.options.chart,X=b.options.plotOptions,Q=F.getContrast(x(W)&&W||x(O)&&O||"#000000");let ee=B.dataLabels,Y,D;var N=y(ee)[0];const V=N.animation;N=N.defer?c(b,V,h):{defer:0,duration:0},ee=w(w((a=X==null?void 0:X.series)===null||a===void 0?void 0:a.dataLabels,(l=X==null?void 0:X[h.type])===null||l===void 0?void 0:l.dataLabels),ee),d(this,"drawDataLabels"),(v(ee)||ee.enabled||h._hasPointLabels)&&(D=this.initDataLabels(N),C.forEach(j=>{var K;const _=j.dataLabels||[];for(Y=y(w(ee,j.dlOptions||((K=j.options)===null||K===void 0?void 0:K.dataLabels))),Y.forEach(($,H)=>{var q,Z=$.enabled&&(!j.isNull||j.dataLabelOnNull)&&R(j,$);const J=j.connectors?j.connectors[H]:j.connector,te=$.style||{};let se={},ce=_[H],ne=!ce;const oe=M($.distance,j.labelDistance);if(Z){var U=M($[j.formatPrefix+"Format"],$.format),G=j.getLabelConfig();if(G=f(U)?u(U,G,b):($[j.formatPrefix+"Formatter"]||$.formatter).call(G,$),U=$.rotation,b.styledMode||(te.color=M($.color,te.color,x(h.color)?h.color:void 0,"#000000"),te.color==="contrast"?(j.contrastColor=F.getContrast(j.color||h.color),te.color=!f(oe)&&$.inside||0>(oe||0)||B.stacking?j.contrastColor:Q):delete j.contrastColor,B.cursor&&(te.cursor=B.cursor)),se={r:$.borderRadius||0,rotation:U,padding:$.padding,zIndex:1},!b.styledMode){const{backgroundColor:re,borderColor:ie}=$;se.fill=re==="auto"?j.color:re,se.stroke=ie==="auto"?j.color:ie,se["stroke-width"]=$.borderWidth}k(se,(re,ie)=>{typeof re>"u"&&delete se[ie]})}!ce||Z&&f(G)&&!!ce.div==!!$.useHTML&&(ce.rotation&&$.rotation||ce.rotation===$.rotation)||(ce=void 0,ne=!0,J&&j.connector&&(j.connector=j.connector.destroy(),j.connectors&&(j.connectors.length===1?delete j.connectors:delete j.connectors[H]))),Z&&f(G)&&(ce?se.text=G:(ce=U?F.text(G,0,0,$.useHTML).addClass("highcharts-data-label"):F.label(G,0,0,$.shape,void 0,void 0,$.useHTML,void 0,"data-label"))&&ce.addClass(" highcharts-data-label-color-"+j.colorIndex+" "+($.className||"")+($.useHTML?" highcharts-tracker":"")),ce&&(ce.options=$,ce.attr(se),b.styledMode||ce.css(te).shadow($.shadow),(Z=$[j.formatPrefix+"TextPath"]||$.textPath)&&!$.useHTML&&(ce.setTextPath(((q=j.getDataLabelPath)===null||q===void 0?void 0:q.call(j,ce))||j.graphic,Z),j.dataLabelPath&&!Z.enabled&&(j.dataLabelPath=j.dataLabelPath.destroy())),ce.added||ce.add(D),h.alignDataLabel(j,ce,$,void 0,ne),ce.isActive=!0,_[H]&&_[H]!==ce&&_[H].destroy(),_[H]=ce))}),K=_.length;K--;)_[K].isActive?_[K].isActive=!1:(_[K].destroy(),_.splice(K,1));j.dataLabel=_[0],j.dataLabels=_})),d(this,"afterDrawDataLabels")}function S(C,a,l,h,b,B){const F=this.chart,O=a.align,W=a.verticalAlign,X=C.box?0:C.padding||0;let{x:Q=0,y:ee=0}=a,Y,D;return Y=(l.x||0)+X,0>Y&&(O==="right"&&0<=Q?(a.align="left",a.inside=!0):Q-=Y,D=!0),Y=(l.x||0)+h.width-X,Y>F.plotWidth&&(O==="left"&&0>=Q?(a.align="right",a.inside=!0):Q+=F.plotWidth-Y,D=!0),Y=l.y+X,0>Y&&(W==="bottom"&&0<=ee?(a.verticalAlign="top",a.inside=!0):ee-=Y,D=!0),Y=(l.y||0)+h.height-X,Y>F.plotHeight&&(W==="top"&&0>=ee?(a.verticalAlign="bottom",a.inside=!0):ee+=F.plotHeight-Y,D=!0),D&&(a.x=Q,a.y=ee,C.placed=!B,C.align(a,void 0,b)),D}function w(C,a){let l=[],h;if(v(C)&&!v(a))l=C.map(function(b){return g(b,a)});else if(v(a)&&!v(C))l=a.map(function(b){return g(C,b)});else if(!v(C)&&!v(a))l=g(C,a);else if(v(C)&&v(a))for(h=Math.max(C.length,a.length);h--;)l[h]=g(C[h],a[h]);return l}function E(C,a,l,h,b){const B=this.chart,F=B.inverted,O=this.xAxis,W=O.reversed,X=F?a.height/2:a.width/2;C=(C=C.pointWidth)?C/2:0,a.startXPos=F?b.x:W?-X-C:O.width-X+C,a.startYPos=F?W?this.yAxis.height-X+C:-X-C:b.y,h?a.visibility==="hidden"&&(a.show(),a.attr({opacity:0}).animate({opacity:1})):a.attr({opacity:1}).animate({opacity:0},void 0,a.hide),B.hasRendered&&(l&&a.attr({x:a.startXPos,y:a.startYPos}),a.placed=!0)}const m=[];I.compose=function(C){s.pushUnique(m,C)&&(C=C.prototype,C.initDataLabelsGroup=z,C.initDataLabels=P,C.alignDataLabel=A,C.drawDataLabels=L,C.justifyDataLabel=S,C.setDataLabelStartPos=E)}}(T||(T={})),T}),o(i,"Series/Column/ColumnDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{series:c}=r,{merge:u,pick:f}=s;var p;return function(d){function v(g,k,M,y,T){let I=this.chart.inverted;var A=g.series;let R=(A.xAxis?A.xAxis.len:this.chart.plotSizeX)||0;A=(A.yAxis?A.yAxis.len:this.chart.plotSizeY)||0;var z=g.dlBox||g.shapeArgs;let P=f(g.below,g.plotY>f(this.translatedThreshold,A)),L=f(M.inside,!!this.options.stacking);z&&(y=u(z),0>y.y&&(y.height+=y.y,y.y=0),z=y.y+y.height-A,0<z&&z<y.height&&(y.height-=z),I&&(y={x:A-y.y-y.height,y:R-y.x-y.width,width:y.height,height:y.width}),L||(I?(y.x+=P?0:y.width,y.width=0):(y.y+=P?y.height:0,y.height=0))),M.align=f(M.align,!I||L?"center":P?"right":"left"),M.verticalAlign=f(M.verticalAlign,I||L?"middle":P?"top":"bottom"),c.prototype.alignDataLabel.call(this,g,k,M,y,T),M.inside&&g.contrastColor&&k.css({color:g.contrastColor})}const x=[];d.compose=function(g){n.compose(c),s.pushUnique(x,g)&&(g.prototype.alignDataLabel=v)}}(p||(p={})),p}),o(i,"Series/Bar/BarSeries.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{extend:c,merge:u}=s;class f extends n{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return f.defaultOptions=u(n.defaultOptions,{}),c(f.prototype,{inverted:!0}),r.registerSeriesType("bar",f),f}),o(i,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),o(i,"Series/Scatter/ScatterSeries.js",[i["Series/Scatter/ScatterSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s){const{column:c,line:u}=r.seriesTypes,{addEvent:f,extend:p,merge:d}=s;class v extends u{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const g=this,k=this.options.jitter,M=this.points.length;k&&this.points.forEach(function(y,T){["x","y"].forEach(function(I,A){let R="plot"+I.toUpperCase(),z,P;if(k[I]&&!y.isNull){var L=g[I+"Axis"];P=k[I]*L.transA,L&&!L.isLog&&(z=Math.max(0,y[R]-P),L=Math.min(L.len,y[R]+P),A=1e4*Math.sin(T+A*M),A-=Math.floor(A),y[R]=z+(L-z)*A,I==="x"&&(y.clientX=y.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return v.defaultOptions=d(u.defaultOptions,n),p(v.prototype,{drawTracker:c.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),f(v,"afterTranslate",function(){this.applyJitter()}),r.registerSeriesType("scatter",v),v}),o(i,"Series/CenteredUtilities.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(n,r,s){const{deg2rad:c}=n,{fireEvent:u,isNumber:f,pick:p,relativeLength:d}=s;var v;return function(x){x.getCenter=function(){var g=this.options,k=this.chart;const M=2*(g.slicedOffset||0),y=k.plotWidth-2*M,T=k.plotHeight-2*M;var I=g.center;const A=Math.min(y,T),R=g.thickness;var z=g.size;let P=g.innerSize||0;for(typeof z=="string"&&(z=parseFloat(z)),typeof P=="string"&&(P=parseFloat(P)),g=[p(I[0],"50%"),p(I[1],"50%"),p(z&&0>z?void 0:g.size,"100%"),p(P&&0>P?void 0:g.innerSize||0,"0%")],!k.angular||this instanceof r||(g[3]=0),I=0;4>I;++I)z=g[I],k=2>I||I===2&&/%$/.test(z),g[I]=d(z,[y,T,A,g[2]][I])+(k?M:0);return g[3]>g[2]&&(g[3]=g[2]),f(R)&&2*R<g[2]&&0<R&&(g[3]=g[2]-2*R),u(this,"afterGetCenter",{positions:g}),g},x.getStartAndEndRadians=function(g,k){return g=f(g)?g:0,k=f(k)&&k>g&&360>k-g?k:g+360,{start:c*(g+-90),end:c*(k+-90)}}}(v||(v={})),v}),o(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(n,r,s){const{setAnimation:c}=n,{addEvent:u,defined:f,extend:p,isNumber:d,pick:v,relativeLength:x}=s;class g extends r{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const M=this.labelPosition,y=this.series.options.dataLabels,T=this.connectorShapes;let I=y.connectorShape;return T[I]&&(I=T[I]),I.call(this,{x:M.computed.x,y:M.computed.y,alignment:M.alignment},M.connectorPosition,y)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(M){const y=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(y.x,y.y,y.r+M,y.r+M,{innerR:y.r-1,start:y.start,end:y.end,borderRadius:y.borderRadius})}init(){super.init.apply(this,arguments),this.name=v(this.name,"Slice");const M=y=>{this.slice(y.type==="select")};return u(this,"select",M),u(this,"unselect",M),this}isValid(){return d(this.y)&&0<=this.y}setVisible(M,y){const T=this.series,I=T.chart,A=T.options.ignoreHiddenPoint;y=v(y,A),M!==this.visible&&(this.visible=this.options.visible=M=typeof M>"u"?!this.visible:M,T.options.data[T.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(R=>{this[R]&&this[R][M?"show":"hide"](M)}),this.legendItem&&I.legend.colorizeItem(this,M),M||this.state!=="hover"||this.setState(""),A&&(T.isDirty=!0),y&&I.redraw())}slice(M,y,T){const I=this.series;c(T,I.chart),v(y,!0),this.sliced=this.options.sliced=f(M)?M:!this.sliced,I.options.data[I.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return p(g.prototype,{connectorShapes:{fixedOffset:function(k,M,y){const T=M.breakAt;return M=M.touchingSliceAt,[["M",k.x,k.y],y.softConnector?["C",k.x+(k.alignment==="left"?-5:5),k.y,2*T.x-M.x,2*T.y-M.y,T.x,T.y]:["L",T.x,T.y],["L",M.x,M.y]]},straight:function(k,M){return M=M.touchingSliceAt,[["M",k.x,k.y],["L",M.x,M.y]]},crookedLine:function(k,M,y){const{breakAt:T,touchingSliceAt:I}=M;({series:M}=this);const[A,R,z]=M.center,P=z/2,L=M.chart.plotWidth,S=M.chart.plotLeft;M=k.alignment==="left";const{x:w,y:E}=k;return y.crookDistance?(k=x(y.crookDistance,1),k=M?A+P+(L+S-A-P)*(1-k):S+(A-P)*k):k=A+(R-E)*Math.tan((this.angle||0)-Math.PI/2),y=[["M",w,E]],(M?k<=w&&k>=T.x:k>=w&&k<=T.x)&&y.push(["L",k,E]),y.push(["L",T.x,T.y],["L",I.x,I.y]),y}}}),g}),o(i,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),o(i,"Series/Pie/PieSeries.js",[i["Series/CenteredUtilities.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Series/Pie/PiePoint.js"],i["Series/Pie/PieSeriesDefaults.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f,p,d,v){const{getStartAndEndRadians:x}=n;({noop:s}=s);const{clamp:g,extend:k,fireEvent:M,merge:y,pick:T,relativeLength:I}=v;class A extends f{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(z){const P=this,L=P.points,S=P.startAngleRad;z||L.forEach(function(w){const E=w.graphic,m=w.shapeArgs;E&&m&&(E.attr({r:T(w.startR,P.center&&P.center[3]/2),start:S,end:S}),E.animate({r:m.r,start:m.start,end:m.end},P.options.animation))})}drawEmpty(){const z=this.startAngleRad,P=this.endAngleRad,L=this.options;let S,w;this.total===0&&this.center?(S=this.center[0],w=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(S,w,this.center[1]/2,0,z,P).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:d.arc(S,w,this.center[2]/2,0,{start:z,end:P,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":L.borderWidth,fill:L.fillColor||"none",stroke:L.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const z=this.chart.renderer;this.points.forEach(function(P){P.graphic&&P.hasNewShapeType()&&(P.graphic=P.graphic.destroy()),P.graphic||(P.graphic=z[P.shapeType](P.shapeArgs).add(P.series.group),P.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(z,P,L){const S=this.center,w=this.radii?this.radii[L.index]||0:S[2]/2;return z=Math.asin(g((z-S[1])/(w+L.labelDistance),-1,1)),S[0]+(P?-1:1)*Math.cos(z)*(w+L.labelDistance)+(0<L.labelDistance?(P?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const z=this,P=z.chart;let L,S,w,E;this.drawEmpty(),z.group&&!P.styledMode&&z.group.shadow(z.options.shadow),z.points.forEach(function(m){const C={};S=m.graphic,!m.isNull&&S?(E=m.shapeArgs,L=m.getTranslate(),P.styledMode||(w=z.pointAttribs(m,m.selected&&"select")),m.delayedRendering?(S.setRadialReference(z.center).attr(E).attr(L),P.styledMode||S.attr(w).attr({"stroke-linejoin":"round"}),m.delayedRendering=!1):(S.setRadialReference(z.center),P.styledMode||y(!0,C,w),y(!0,C,E,L),S.animate(C)),S.attr({visibility:m.visible?"inherit":"hidden"}),S.addClass(m.getClassName(),!0)):S&&(m.graphic=S.destroy())})}sortByAngle(z,P){z.sort(function(L,S){return typeof L.angle<"u"&&(S.angle-L.angle)*P})}translate(z){M(this,"translate"),this.generatePoints();var P=this.options;const L=P.slicedOffset,S=L+(P.borderWidth||0);var w=x(P.startAngle,P.endAngle);const E=this.startAngleRad=w.start;w=(this.endAngleRad=w.end)-E;const m=this.points,C=P.dataLabels.distance;P=P.ignoreHiddenPoint;const a=m.length;let l,h,b,B=0;for(z||(this.center=z=this.getCenter()),h=0;h<a;h++){b=m[h];var F=E+B*w;!b.isValid()||P&&!b.visible||(B+=b.percentage/100);var O=E+B*w,W={x:z[0],y:z[1],r:z[2]/2,innerR:z[3]/2,start:Math.round(1e3*F)/1e3,end:Math.round(1e3*O)/1e3};b.shapeType="arc",b.shapeArgs=W,b.labelDistance=T(b.options.dataLabels&&b.options.dataLabels.distance,C),b.labelDistance=I(b.labelDistance,W.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,b.labelDistance),O=(O+F)/2,O>1.5*Math.PI?O-=2*Math.PI:O<-Math.PI/2&&(O+=2*Math.PI),b.slicedTranslation={translateX:Math.round(Math.cos(O)*L),translateY:Math.round(Math.sin(O)*L)},W=Math.cos(O)*z[2]/2,l=Math.sin(O)*z[2]/2,b.tooltipPos=[z[0]+.7*W,z[1]+.7*l],b.half=O<-Math.PI/2||O>Math.PI/2?1:0,b.angle=O,F=Math.min(S,b.labelDistance/5),b.labelPosition={natural:{x:z[0]+W+Math.cos(O)*b.labelDistance,y:z[1]+l+Math.sin(O)*b.labelDistance},computed:{},alignment:0>b.labelDistance?"center":b.half?"right":"left",connectorPosition:{breakAt:{x:z[0]+W+Math.cos(O)*F,y:z[1]+l+Math.sin(O)*F},touchingSliceAt:{x:z[0]+W,y:z[1]+l}}}}M(this,"afterTranslate")}updateTotals(){const z=this.points,P=z.length,L=this.options.ignoreHiddenPoint;let S,w,E=0;for(S=0;S<P;S++)w=z[S],!w.isValid()||L&&!w.visible||(E+=w.y);for(this.total=E,S=0;S<P;S++)w=z[S],w.percentage=0<E&&(w.visible||!L)?w.y/E*100:0,w.total=E}}return A.defaultOptions=y(f.defaultOptions,u),k(A.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:r.prototype.drawTracker,getCenter:n.getCenter,getSymbol:s,isCartesian:!1,noSharedTooltip:!0,pointAttribs:r.prototype.pointAttribs,pointClass:c,requireSorting:!1,searchPoint:s,trackerGroups:["group","dataLabelsGroup"]}),p.registerSeriesType("pie",A),A}),o(i,"Series/Pie/PieDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(n,r,s,c,u){const{noop:f}=r,{distribute:p}=s,{series:d}=c,{arrayMax:v,clamp:x,defined:g,merge:k,pick:M,relativeLength:y}=u;var T;return function(I){function A(){const S=this,w=S.data,E=S.chart,m=S.options.dataLabels||{},C=m.connectorPadding,a=E.plotWidth,l=E.plotHeight,h=E.plotLeft,b=Math.round(E.chartWidth/3),B=S.center,F=B[2]/2,O=B[1],W=[[],[]],X=[0,0,0,0],Q=S.dataLabelPositioners;let ee,Y,D,N,V,j,K,_,$,H,q,Z;S.visible&&(m.enabled||S._hasPointLabels)&&(w.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),d.prototype.drawDataLabels.apply(S),w.forEach(function(J){J.dataLabel&&(J.visible?(W[J.half].push(J),J.dataLabel._pos=null,!g(m.style.width)&&!g(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)&&J.dataLabel.getBBox().width>b&&(J.dataLabel.css({width:Math.round(.7*b)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),W.forEach((J,te)=>{const se=J.length,ce=[];let ne,oe=0;if(se){if(S.sortByAngle(J,te-.5),0<S.maxLabelDistance){var U=Math.max(0,O-F-S.maxLabelDistance);ne=Math.min(O+F+S.maxLabelDistance,E.plotHeight),J.forEach(function(G){0<G.labelDistance&&G.dataLabel&&(G.top=Math.max(0,O-F-G.labelDistance),G.bottom=Math.min(O+F+G.labelDistance,E.plotHeight),oe=G.dataLabel.getBBox().height||21,G.distributeBox={target:G.labelPosition.natural.y-G.top+oe/2,size:oe,rank:G.y},ce.push(G.distributeBox))}),U=ne+oe-U,p(ce,U,U/5)}for(q=0;q<se;q++){if(ee=J[q],j=ee.labelPosition,N=ee.dataLabel,H=ee.visible===!1?"hidden":"inherit",$=U=j.natural.y,ce&&g(ee.distributeBox)&&(typeof ee.distributeBox.pos>"u"?H="hidden":(K=ee.distributeBox.size,$=Q.radialDistributionY(ee))),delete ee.positionIndex,m.justify)_=Q.justify(ee,F,B);else switch(m.alignTo){case"connectors":_=Q.alignToConnectors(J,te,a,h);break;case"plotEdges":_=Q.alignToPlotEdges(N,te,a,h);break;default:_=Q.radialDistributionX(S,ee,$,U)}N._attr={visibility:H,align:j.alignment},Z=ee.options.dataLabels||{},N._pos={x:_+M(Z.x,m.x)+({left:C,right:-C}[j.alignment]||0),y:$+M(Z.y,m.y)-N.getBBox().height/2},j&&(j.computed.x=_,j.computed.y=$),M(m.crop,!0)&&(V=N.getBBox().width,U=null,_-V<C&&te===1?(U=Math.round(V-_+C),X[3]=Math.max(U,X[3])):_+V>a-C&&te===0&&(U=Math.round(_+V-a+C),X[1]=Math.max(U,X[1])),0>$-K/2?X[0]=Math.max(Math.round(-$+K/2),X[0]):$+K/2>l&&(X[2]=Math.max(Math.round($+K/2-l),X[2])),N.sideOverflow=U)}}}),v(X)===0||this.verifyDataLabelOverflow(X))&&(this.placeDataLabels(),this.points.forEach(function(J){if(Z=k(m,J.options.dataLabels),Y=M(Z.connectorWidth,1)){let te;D=J.connector,(N=J.dataLabel)&&N._pos&&J.visible&&0<J.labelDistance?(H=N._attr.visibility,(te=!D)&&(J.connector=D=E.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(S.dataLabelsGroup),E.styledMode||D.attr({"stroke-width":Y,stroke:Z.connectorColor||J.color||"#666666"})),D[te?"attr":"animate"]({d:J.getConnectorPath()}),D.attr("visibility",H)):D&&(J.connector=D.destroy())}}))}function R(){this.points.forEach(function(S){let w=S.dataLabel,E;w&&S.visible&&((E=w._pos)?(w.sideOverflow&&(w._attr.width=Math.max(w.getBBox().width-w.sideOverflow,0),w.css({width:w._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),w.shortened=!0),w.attr(w._attr),w[w.moved?"animate":"attr"](E),w.moved=!0):w&&w.attr({y:-9999})),delete S.distributeBox},this)}function z(S){let w=this.center,E=this.options,m=E.center,C=E.minSize||80,a,l=E.size!==null;return l||(m[0]!==null?a=Math.max(w[2]-Math.max(S[1],S[3]),C):(a=Math.max(w[2]-S[1]-S[3],C),w[0]+=(S[3]-S[1])/2),m[1]!==null?a=x(a,C,w[2]-Math.max(S[0],S[2])):(a=x(a,C,w[2]-S[0]-S[2]),w[1]+=(S[0]-S[2])/2),a<w[2]?(w[2]=a,w[3]=Math.min(E.thickness?Math.max(0,a-2*E.thickness):Math.max(0,y(E.innerSize||0,a)),a),this.translate(w),this.drawDataLabels&&this.drawDataLabels()):l=!0),l}const P=[],L={radialDistributionY:function(S){return S.top+S.distributeBox.pos},radialDistributionX:function(S,w,E,m){return S.getX(E<w.top+2||E>w.bottom-2?m:E,w.half,w)},justify:function(S,w,E){return E[0]+(S.half?-1:1)*(w+S.labelDistance)},alignToPlotEdges:function(S,w,E,m){return S=S.getBBox().width,w?S+m:E-S-m},alignToConnectors:function(S,w,E,m){let C=0,a;return S.forEach(function(l){a=l.dataLabel.getBBox().width,a>C&&(C=a)}),w?C+m:E-C-m}};I.compose=function(S){n.compose(d),u.pushUnique(P,S)&&(S=S.prototype,S.dataLabelPositioners=L,S.alignDataLabel=f,S.drawDataLabels=A,S.placeDataLabels=R,S.verifyDataLabelOverflow=z)}}(T||(T={})),T}),o(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(n,r){function s(x,g){let k,M=!1;return x&&(k=x.newOpacity,x.oldOpacity!==k&&(x.alignAttr&&x.placed?(x[k?"removeClass":"addClass"]("highcharts-data-label-hidden"),M=!0,x.alignAttr.opacity=k,x[x.isOld?"animate":"attr"](x.alignAttr,null,function(){g.styledMode||x.css({pointerEvents:k?"auto":"none"})}),u(g,"afterHideOverlappingLabel")):x.attr({opacity:k})),x.isOld=!0),M}const{addEvent:c,fireEvent:u,isArray:f,isNumber:p,objectEach:d,pick:v}=r;c(n,"render",function(){let x=this,g=[];(this.labelCollectors||[]).forEach(function(k){g=g.concat(k())}),(this.yAxis||[]).forEach(function(k){k.stacking&&k.options.stackLabels&&!k.options.stackLabels.allowOverlap&&d(k.stacking.stacks,function(M){d(M,function(y){y.label&&g.push(y.label)})})}),(this.series||[]).forEach(function(k){var M=k.options.dataLabels;k.visible&&(M.enabled!==!1||k._hasPointLabels)&&(M=y=>y.forEach(T=>{T.visible&&(f(T.dataLabels)?T.dataLabels:T.dataLabel?[T.dataLabel]:[]).forEach(function(I){const A=I.options;I.labelrank=v(A.labelrank,T.labelrank,T.shapeArgs&&T.shapeArgs.height),A.allowOverlap?(I.oldOpacity=I.opacity,I.newOpacity=1,s(I,x)):g.push(I)})}),M(k.nodes||[]),M(k.points))}),this.hideOverlappingLabels(g)}),n.prototype.hideOverlappingLabels=function(x){let g=this,k=x.length,M=g.renderer;var y;let T,I,A,R,z=!1;var P=function(L){let S,w;var E;let m=L.box?0:L.padding||0,C=E=0,a,l;if(L&&(!L.alignAttr||L.placed))return S=L.alignAttr||{x:L.attr("x"),y:L.attr("y")},w=L.parentGroup,L.width||(E=L.getBBox(),L.width=E.width,L.height=E.height,E=M.fontMetrics(L.element).h),a=L.width-2*m,(l={left:"0",center:"0.5",right:"1"}[L.alignValue])?C=+l*a:p(L.x)&&Math.round(L.x)!==L.translateX&&(C=L.x-L.translateX),{x:S.x+(w.translateX||0)+m-(C||0),y:S.y+(w.translateY||0)+m-E,width:L.width-2*m,height:L.height-2*m}};for(T=0;T<k;T++)(y=x[T])&&(y.oldOpacity=y.opacity,y.newOpacity=1,y.absoluteBox=P(y));for(x.sort(function(L,S){return(S.labelrank||0)-(L.labelrank||0)}),T=0;T<k;T++)for(A=(P=x[T])&&P.absoluteBox,y=T+1;y<k;++y)R=(I=x[y])&&I.absoluteBox,!A||!R||P===I||P.newOpacity===0||I.newOpacity===0||P.visibility==="hidden"||I.visibility==="hidden"||R.x>=A.x+A.width||R.x+R.width<=A.x||R.y>=A.y+A.height||R.y+R.height<=A.y||((P.labelrank<I.labelrank?P:I).newOpacity=0);x.forEach(function(L){s(L,g)&&(z=!0)}),z&&u(g,"afterHideAllOverlappingLabels")}}),o(i,"Extensions/BorderRadius.js",[i["Core/Defaults.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(n,r,s,c,u,f){const{defaultOptions:p}=n;({seriesTypes:n}=s);const{addEvent:d,extend:v,isObject:x,merge:g,relativeLength:k}=f,M={radius:0,scope:"stack",where:void 0},y=(T,I)=>(x(T)||(T={radius:T||0}),g(M,I,T));if(c.symbolCustomAttribs.indexOf("borderRadius")===-1){c.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const T=u.prototype.symbols.arc;u.prototype.symbols.arc=function(A,R,z,P,L={}){A=T(A,R,z,P,L);const{innerR:S=0,r:w=z,start:E=0,end:m=0}=L;if(L.open||!L.borderRadius)return A;for(z=m-E,R=Math.sin(z/2),L=Math.max(Math.min(k(L.borderRadius||0,w-S),(w-S)/2,w*R/(1+R)),0),z=Math.min(L,z/Math.PI*2*S),R=A.length-1;R--;){let F,O,W;P=A;var C=R,a=1<R?z:L,l=P[C],h=P[C+1];if(h[0]==="Z"&&(h=P[0]),l[0]!=="M"&&l[0]!=="L"||h[0]!=="A"?l[0]!=="A"||h[0]!=="M"&&h[0]!=="L"||(W=h,O=l):(W=l,O=h,F=!0),W&&O&&O.params){l=O[1];var b=O[5];h=O.params;const{start:X,end:Q,cx:ee,cy:Y}=h;var B=b?l-a:l+a;const D=B?Math.asin(a/B):0;b=b?D:-D,B*=Math.cos(D),F?(h.start=X+b,W[1]=ee+B*Math.cos(X),W[2]=Y+B*Math.sin(X),P.splice(C+1,0,["A",a,a,0,0,1,ee+l*Math.cos(h.start),Y+l*Math.sin(h.start)])):(h.end=Q-b,O[6]=ee+l*Math.cos(h.end),O[7]=Y+l*Math.sin(h.end),P.splice(C+1,0,["A",a,a,0,0,1,ee+B*Math.cos(Q),Y+B*Math.sin(Q)])),O[4]=Math.abs(h.end-h.start)<Math.PI?0:1}}return A};const I=u.prototype.symbols.roundedRect;u.prototype.symbols.roundedRect=function(A,R,z,P,L={}){const S=I(A,R,z,P,L),{r:w=0,brBoxHeight:E=P,brBoxY:m=R}=L;var C=R-m,a=m+E-(R+P);L=-.1<C-w?0:w;const l=-.1<a-w?0:w;var h=Math.max(L&&C,0);const b=Math.max(l&&a,0);a=[A+L,R],C=[A+z-L,R];const B=[A+z,R+L],F=[A+z,R+P-l],O=[A+z-l,R+P],W=[A+l,R+P],X=[A,R+P-l],Q=[A,R+L];if(h){const ee=Math.sqrt(Math.pow(L,2)-Math.pow(L-h,2));a[0]-=ee,C[0]+=ee,B[1]=Q[1]=R+L-h}return P<L-h&&(h=Math.sqrt(Math.pow(L,2)-Math.pow(L-h-P,2)),B[0]=F[0]=A+z-L+h,O[0]=Math.min(B[0],O[0]),W[0]=Math.max(F[0],W[0]),X[0]=Q[0]=A+L-h,B[1]=Q[1]=R+P),b&&(h=Math.sqrt(Math.pow(l,2)-Math.pow(l-b,2)),O[0]+=h,W[0]-=h,F[1]=X[1]=R+P-l+b),P<l-b&&(P=Math.sqrt(Math.pow(l,2)-Math.pow(l-b-P,2)),B[0]=F[0]=A+z-l+P,C[0]=Math.min(B[0],C[0]),a[0]=Math.max(F[0],a[0]),X[0]=Q[0]=A+l-P,F[1]=X[1]=R),S.length=0,S.push(["M",...a],["L",...C],["A",L,L,0,0,1,...B],["L",...F],["A",l,l,0,0,1,...O],["L",...W],["A",l,l,0,0,1,...X],["L",...Q],["A",L,L,0,0,1,...a],["Z"]),S},d(n.pie,"afterTranslate",function(){const A=y(this.options.borderRadius);for(const R of this.points){const z=R.shapeArgs;z&&(z.borderRadius=k(A.radius,(z.r||0)-(z.innerR||0)))}}),d(r,"afterColumnTranslate",function(){var A,R;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:S,yAxis:w}=this,E=S.stacking==="percent";var z=(R=(A=p.plotOptions)===null||A===void 0?void 0:A[this.type])===null||R===void 0?void 0:R.borderRadius;A=y(S.borderRadius,x(z)?z:{}),R=w.options.reversed;for(const m of this.points)if({shapeArgs:z}=m,m.shapeType==="roundedRect"&&z){const{width:C=0,height:a=0,y:l=0}=z;var P=l,L=a;A.scope==="stack"&&m.stackTotal&&(P=w.translate(E?100:m.stackTotal,!1,!0,!1,!0),L=w.translate(S.threshold||0,!1,!0,!1,!0),L=this.crispCol(0,Math.min(P,L),0,Math.abs(P-L)),P=L.y,L=L.height);const h=(m.negative?-1:1)*(R?-1:1)===-1;let b=A.where;!b&&this.is("waterfall")&&Math.abs((m.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(b="all"),b||(b="end");const B=Math.min(k(A.radius,C),C/2,b==="all"?a/2:1/0)||0;b==="end"&&(h&&(P-=B),L+=B),v(z,{brBoxHeight:L,brBoxY:P,r:B})}}},{order:9})}return r={optionsToObject:y},r}),o(i,"Core/Responsive.js",[i["Core/Utilities.js"]],function(n){const{diffObjects:r,extend:s,find:c,merge:u,pick:f,uniqueKey:p}=n;var d;return function(v){function x(M,y){const T=M.condition;(T.callback||function(){return this.chartWidth<=f(T.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=f(T.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=f(T.minWidth,0)&&this.chartHeight>=f(T.minHeight,0)}).call(this)&&y.push(M._id)}function g(M,y){const T=this.options.responsive;var I=this.currentResponsive;let A=[];!y&&T&&T.rules&&T.rules.forEach(R=>{typeof R._id>"u"&&(R._id=p()),this.matchResponsiveRule(R,A)},this),y=u(...A.map(R=>c((T||{}).rules||[],z=>z._id===R)).map(R=>R&&R.chartOptions)),y.isResponsiveOptions=!0,A=A.toString()||void 0,A!==(I&&I.ruleIds)&&(I&&this.update(I.undoOptions,M,!0),A?(I=r(y,this.options,!0,this.collectionsWithUpdate),I.isResponsiveOptions=!0,this.currentResponsive={ruleIds:A,mergedOptions:y,undoOptions:I},this.update(y,M,!0)):this.currentResponsive=void 0)}const k=[];v.compose=function(M){return n.pushUnique(k,M)&&s(M.prototype,{matchResponsiveRule:x,setResponsive:g}),M}}(d||(d={})),d}),o(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Defaults.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Templating.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Renderer/HTML/HTMLElement.js"],i["Core/Renderer/HTML/HTMLRenderer.js"],i["Core/Axis/Axis.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Axis/LogarithmicAxis.js"],i["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],i["Core/Axis/Tick.js"],i["Core/Tooltip.js"],i["Core/Series/Point.js"],i["Core/Pointer.js"],i["Core/Legend/Legend.js"],i["Core/Chart/Chart.js"],i["Core/Axis/Stacking/StackingAxis.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Series/Column/ColumnSeries.js"],i["Series/Column/ColumnDataLabel.js"],i["Series/Pie/PieSeries.js"],i["Series/Pie/PieDataLabel.js"],i["Core/Series/DataLabel.js"],i["Core/Responsive.js"],i["Core/Color/Color.js"],i["Core/Time.js"]],function(n,r,s,c,u,f,p,d,v,x,g,k,M,y,T,I,A,R,z,P,L,S,w,E,m,C,a,l,h,b,B,F,O,W){return n.animate=u.animate,n.animObject=u.animObject,n.getDeferredAnimation=u.getDeferredAnimation,n.setAnimation=u.setAnimation,n.stop=u.stop,n.timers=c.timers,n.AST=f,n.Axis=M,n.Chart=S,n.chart=S.chart,n.Fx=c,n.Legend=L,n.PlotLineOrBand=I,n.Point=z,n.Pointer=P,n.Series=m,n.StackItem=E,n.SVGElement=v,n.SVGRenderer=x,n.Templating=p,n.Tick=A,n.Time=W,n.Tooltip=R,n.Color=O,n.color=O.parse,k.compose(x),g.compose(v),P.compose(S),L.compose(S),n.defaultOptions=s.defaultOptions,n.getOptions=s.getOptions,n.time=s.defaultTime,n.setOptions=s.setOptions,n.dateFormat=p.dateFormat,n.format=p.format,n.numberFormat=p.numberFormat,n.addEvent=r.addEvent,n.arrayMax=r.arrayMax,n.arrayMin=r.arrayMin,n.attr=r.attr,n.clearTimeout=r.clearTimeout,n.correctFloat=r.correctFloat,n.createElement=r.createElement,n.css=r.css,n.defined=r.defined,n.destroyObjectProperties=r.destroyObjectProperties,n.discardElement=r.discardElement,n.distribute=d.distribute,n.erase=r.erase,n.error=r.error,n.extend=r.extend,n.extendClass=r.extendClass,n.find=r.find,n.fireEvent=r.fireEvent,n.getMagnitude=r.getMagnitude,n.getStyle=r.getStyle,n.inArray=r.inArray,n.isArray=r.isArray,n.isClass=r.isClass,n.isDOMElement=r.isDOMElement,n.isFunction=r.isFunction,n.isNumber=r.isNumber,n.isObject=r.isObject,n.isString=r.isString,n.keys=r.keys,n.merge=r.merge,n.normalizeTickInterval=r.normalizeTickInterval,n.objectEach=r.objectEach,n.offset=r.offset,n.pad=r.pad,n.pick=r.pick,n.pInt=r.pInt,n.relativeLength=r.relativeLength,n.removeEvent=r.removeEvent,n.seriesType=C.seriesType,n.splat=r.splat,n.stableSort=r.stableSort,n.syncTimeout=r.syncTimeout,n.timeUnits=r.timeUnits,n.uniqueKey=r.uniqueKey,n.useSerialIds=r.useSerialIds,n.wrap=r.wrap,l.compose(a),B.compose(m),y.compose(M),T.compose(M),b.compose(h),I.compose(M),F.compose(S),w.compose(M,S,m),R.compose(P),n}),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]})})(lx);var M5=lx.exports;const ll=or(M5);var cx={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts<"u"?Highcharts:void 0)})(function(t){function o(i,n,r,s){i.hasOwnProperty(n)||(i[n]=s.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:i[n]}})))}t=t?t._modules:{},o(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,n){const{addEvent:r,find:s,fireEvent:c,isArray:u,isNumber:f,pick:p}=n;var d;return function(v){function x(){typeof this.brokenAxis<"u"&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function g(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function k(){const P=this.brokenAxis;if(P&&P.hasBreaks){const L=this.tickPositions,S=this.tickPositions.info,w=[];for(let E=0;E<L.length;E++)P.isInAnyBreak(L[E])||w.push(L[E]);this.tickPositions=w,this.tickPositions.info=S}}function M(){this.brokenAxis||(this.brokenAxis=new z(this))}function y(){const{isDirty:P,options:{connectNulls:L},points:S,xAxis:w,yAxis:E}=this;if(P){let m=S.length;for(;m--;){const C=S[m],a=!(C.y===null&&L===!1)&&(w&&w.brokenAxis&&w.brokenAxis.isInAnyBreak(C.x,!0)||E&&E.brokenAxis&&E.brokenAxis.isInAnyBreak(C.y,!0));C.visible=a?!1:C.options.visible!==!1}}}function T(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,p(this.pointArrayMap,["y"]))}function I(P,L){const S=this,w=S.points;let E,m,C,a;if(P&&P.brokenAxis&&P.brokenAxis.hasBreaks){const l=P.brokenAxis;L.forEach(function(h){E=l&&l.breakArray||[],m=P.isXAxis?P.min:p(S.options.threshold,P.min),w.forEach(function(b){a=p(b["stack"+h.toUpperCase()],b[h]),E.forEach(function(B){f(m)&&f(a)&&(C=!1,m<B.from&&a>B.to||m>B.from&&a<B.from?C="pointBreak":(m<B.from&&a>B.from&&a<B.to||m>B.from&&a>B.to&&a<B.from)&&(C="pointInBreak"),C&&c(P,C,{point:b,brk:B}))})})})}}function A(){var P=this.currentDataGrouping,L=P&&P.gapSize;P=this.points.slice();const S=this.yAxis;let w=this.options.gapSize,E=P.length-1;var m;if(w&&0<E)for(this.options.gapUnit!=="value"&&(w*=this.basePointRange),L&&L>w&&L>=this.basePointRange&&(w=L);E--;)m&&m.visible!==!1||(m=P[E+1]),L=P[E],m.visible!==!1&&L.visible!==!1&&(m.x-L.x>w&&(m=(L.x+m.x)/2,P.splice(E+1,0,{isNull:!0,x:m}),S.stacking&&this.options.stacking&&(m=S.stacking.stacks[this.stackKey][m]=new i(S,S.options.stackLabels,!1,m,this.stack),m.total=0)),m=L);return this.getGraphPath(P)}const R=[];v.compose=function(P,L){if(n.pushUnique(R,P)&&(P.keepProps.push("brokenAxis"),r(P,"init",M),r(P,"afterInit",x),r(P,"afterSetTickPositions",k),r(P,"afterSetOptions",g)),n.pushUnique(R,L)){const S=L.prototype;S.drawBreaks=I,S.gappedPath=A,r(L,"afterGeneratePoints",y),r(L,"afterRender",T)}return P};class z{static isInBreak(L,S){const w=L.repeat||1/0,E=L.from,m=L.to-L.from;return S=S>=E?(S-E)%w:w-(E-S)%w,L.inclusive?S<=m:S<m&&S!==0}static lin2Val(L){var S=this.brokenAxis;if(S=S&&S.breakArray,!S||!f(L))return L;let w,E;for(E=0;E<S.length&&(w=S[E],!(w.from>=L));E++)(w.to<L||z.isInBreak(w,L))&&(L+=w.len);return L}static val2Lin(L){var S=this.brokenAxis;if(S=S&&S.breakArray,!S||!f(L))return L;let w=L,E,m;for(m=0;m<S.length;m++)if(E=S[m],E.to<=L)w-=E.len;else{if(E.from>=L)break;if(z.isInBreak(E,L)){w-=L-E.from;break}}return w}constructor(L){this.hasBreaks=!1,this.axis=L}findBreakAt(L,S){return s(S,function(w){return w.from<L&&L<w.to})}isInAnyBreak(L,S){const w=this.axis,E=w.options.breaks||[];let m=E.length,C,a,l;if(m&&f(L)){for(;m--;)z.isInBreak(E[m],L)&&(C=!0,a||(a=p(E[m].showPoints,!w.isXAxis)));l=C&&S?C&&!a:C}return l}setBreaks(L,S){const w=this,E=w.axis,m=u(L)&&!!L.length;E.isDirty=w.hasBreaks!==m,w.hasBreaks=m,L!==E.options.breaks&&(E.options.breaks=E.userOptions.breaks=L),E.forceRedraw=!0,E.series.forEach(function(C){C.isDirty=!0}),m||E.val2lin!==z.val2Lin||(delete E.val2lin,delete E.lin2val),m&&(E.userOptions.ordinal=!1,E.lin2val=z.lin2Val,E.val2lin=z.val2Lin,E.setExtremes=function(C,a,l,h,b){if(w.hasBreaks){const B=this.options.breaks||[];let F;for(;F=w.findBreakAt(C,B);)C=F.to;for(;F=w.findBreakAt(a,B);)a=F.from;a<C&&(a=C)}E.constructor.prototype.setExtremes.call(this,C,a,l,h,b)},E.setAxisTranslation=function(){if(E.constructor.prototype.setAxisTranslation.call(this),w.unitLength=void 0,w.hasBreaks){const C=E.options.breaks||[],a=[],l=[],h=p(E.pointRangePadding,0);let b=0,B,F,O=E.userMin||E.min,W=E.userMax||E.max,X,Q;C.forEach(function(ee){F=ee.repeat||1/0,f(O)&&f(W)&&(z.isInBreak(ee,O)&&(O+=ee.to%F-O%F),z.isInBreak(ee,W)&&(W-=W%F-ee.from%F))}),C.forEach(function(ee){if(X=ee.from,F=ee.repeat||1/0,f(O)&&f(W)){for(;X-F>O;)X-=F;for(;X<O;)X+=F;for(Q=X;Q<W;Q+=F)a.push({value:Q,move:"in"}),a.push({value:Q+ee.to-ee.from,move:"out",size:ee.breakSize})}}),a.sort(function(ee,Y){return ee.value===Y.value?(ee.move==="in"?0:1)-(Y.move==="in"?0:1):ee.value-Y.value}),B=0,X=O,a.forEach(function(ee){B+=ee.move==="in"?1:-1,B===1&&ee.move==="in"&&(X=ee.value),B===0&&f(X)&&(l.push({from:X,to:ee.value,len:ee.value-X-(ee.size||0)}),b+=ee.value-X-(ee.size||0))}),w.breakArray=l,f(O)&&f(W)&&f(E.min)&&(w.unitLength=W-O-b+h,c(E,"afterBreaks"),E.staticScale?E.transA=E.staticScale:w.unitLength&&(E.transA*=(W-E.min+h)/w.unitLength),h&&(E.minPixelPadding=E.transA*(E.minPointOffset||0)),E.min=O,E.max=W)}}),p(S,!0)&&E.chart.redraw()}}v.Additions=z}(d||(d={})),d}),o(t,"masters/modules/broken-axis.src.js",[t["Core/Globals.js"],t["Core/Axis/BrokenAxis.js"]],function(i,n){n.compose(i.Axis,i.Series)}),o(t,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),o(t,"Extensions/DataGrouping/ApproximationDefaults.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Core/Utilities.js"]],function(i,n){function r(v){const x=v.length;return v=s(v),d(v)&&x&&(v=f(v/x)),v}function s(v){let x=v.length,g;if(!x&&v.hasNulls)g=null;else if(x)for(g=0;x--;)g+=v[x];return g}const{arrayMax:c,arrayMin:u,correctFloat:f,extend:p,isNumber:d}=n;return n={average:r,averages:function(){const v=[];return[].forEach.call(arguments,function(x){v.push(r(x))}),typeof v[0]>"u"?void 0:v},close:function(v){return v.length?v[v.length-1]:v.hasNulls?null:void 0},high:function(v){return v.length?c(v):v.hasNulls?null:void 0},hlc:function(v,x,g){if(v=i.high(v),x=i.low(x),g=i.close(g),d(v)||d(x)||d(g))return[v,x,g]},low:function(v){return v.length?u(v):v.hasNulls?null:void 0},ohlc:function(v,x,g,k){if(v=i.open(v),x=i.high(x),g=i.low(g),k=i.close(k),d(v)||d(x)||d(g)||d(k))return[v,x,g,k]},open:function(v){return v.length?v[0]:v.hasNulls?null:void 0},range:function(v,x){if(v=i.low(v),x=i.high(x),d(v)||d(x))return[v,x];if(v===null&&x===null)return null},sum:s},p(i,n),n}),o(t,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %e %b, %H:%M:%S.%L","%A, %e %b, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %e %b, %H:%M:%S","%A, %e %b, %H:%M:%S","-%H:%M:%S"],minute:["%A, %e %b, %H:%M","%A, %e %b, %H:%M","-%H:%M"],hour:["%A, %e %b, %H:%M","%A, %e %b, %H:%M","-%H:%M"],day:["%A, %e %b %Y","%A, %e %b","-%A, %e %b %Y"],week:["Week from %A, %e %b %Y","%A, %e %b","-%A, %e %b %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),o(t,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Utilities.js"]],function(i,n){function r(k){const M=this,y=M.series;y.forEach(function(T){T.groupPixelWidth=void 0}),y.forEach(function(T){T.groupPixelWidth=M.getGroupPixelWidth&&M.getGroupPixelWidth(),T.groupPixelWidth&&(T.hasProcessed=!0),T.applyGrouping(!!k.hasExtremesChanged)})}function s(){const k=this.series;let M=k.length,y=0,T=!1,I,A;for(;M--;)(A=k[M].options.dataGrouping)&&(y=Math.max(y,v(A.groupPixelWidth,i.common.groupPixelWidth)),I=(k[M].processedXData||k[M].data).length,(k[M].groupPixelWidth||I>this.chart.plotSizeX/y||I&&A.forced)&&(T=!0));return T?y:0}function c(){this.series.forEach(function(k){k.hasProcessed=!1})}function u(k,M){let y;if(M=v(M,!0),k||(k={forced:!1,units:null}),this instanceof g)for(y=this.series.length;y--;)this.series[y].update({dataGrouping:k},!1);else this.chart.options.series.forEach(function(T){T.dataGrouping=typeof k=="boolean"?k:d(k,T.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),M&&this.chart.redraw()}const{addEvent:f,extend:p,merge:d,pick:v}=n,x=[];let g;return{compose:function(k){g=k,n.pushUnique(x,k)&&(f(k,"afterSetScale",c),f(k,"postProcessData",r),p(k.prototype,{applyGrouping:r,getGroupPixelWidth:s,setDataGrouping:u}))}}}),o(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u){function f(S){var w=this.chart,E=this.options.dataGrouping,m=this.allowDG!==!1&&E&&z(E.enabled,w.options.isStock),C=this.visible||!w.options.chart.ignoreHiddenSeries;const a=this.currentDataGrouping;var l=!1;if(m&&!this.requireSorting&&(this.requireSorting=l=!0),S=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!S)||!m,l&&(this.requireSorting=!1),!S){this.destroyGroupedData(),S=E.groupAll?this.xData:this.processedXData,m=E.groupAll?this.yData:this.processedYData;var h=w.plotSizeX;l=this.xAxis;var b=l.options.ordinal,B=this.groupPixelWidth,F;let D;if(B&&S&&S.length&&h){this.isDirty=D=!0,this.points=null;var O=l.getExtremes(),W=O.min;O=O.max,b=b&&l.ordinal&&l.ordinal.getGroupIntervalFactor(W,O,this)||1,h=l.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(B*(O-W)/h*b,E.units||n.units),Math.min(W,S[0]),Math.max(O,S[S.length-1]),l.options.startOfWeek,S,this.closestPointRange),B=k.groupData.apply(this,[S,m,h,E.approximation]),S=B.groupedXData,m=B.groupedYData,b=0,E&&E.smoothed&&S.length&&(E.firstAnchor="firstPoint",E.anchor="middle",E.lastAnchor="lastPoint",T(32,!1,w,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),w=S;var X=O,Q=this.options.dataGrouping;if(O=this.currentDataGrouping&&this.currentDataGrouping.gapSize,Q&&this.xData&&O&&this.groupMap){W=w.length-1;var ee=Q.anchor;const N=z(Q.firstAnchor,ee);if(Q=z(Q.lastAnchor,ee),ee&&ee!=="start"){var Y=O*{middle:.5,end:1}[ee];for(ee=w.length-1;ee--&&0<ee;)w[ee]+=Y}N&&N!=="start"&&this.xData[0]>=w[0]&&(ee=this.groupMap[0].start,Y=this.groupMap[0].length,A(ee)&&A(Y)&&(F=ee+(Y-1)),w[0]={middle:w[0]+.5*O,end:w[0]+O,firstPoint:this.xData[0],lastPoint:F&&this.xData[F]}[N]),Q&&Q!=="start"&&O&&w[W]>=X-O&&(F=this.groupMap[this.groupMap.length-1].start,w[W]={middle:w[W]+.5*O,end:w[W]+O,firstPoint:F&&this.xData[F],lastPoint:this.xData[this.xData.length-1]}[Q])}for(F=1;F<h.length;F++)h.info.segmentStarts&&h.info.segmentStarts.indexOf(F)!==-1||(b=Math.max(h[F]-h[F-1],b));O=h.info,O.gapSize=b,this.closestPointRange=h.info.totalRange,this.groupMap=B.groupMap,C&&(C=l,F=S,y(F[0])&&A(C.min)&&A(C.dataMin)&&F[0]<C.min&&((!y(C.options.min)&&C.min<=C.dataMin||C.min===C.dataMin)&&(C.min=Math.min(F[0],C.min)),C.dataMin=Math.min(F[0],C.dataMin)),y(F[F.length-1])&&A(C.max)&&A(C.dataMax)&&F[F.length-1]>C.max&&((!y(C.options.max)&&A(C.dataMax)&&C.max>=C.dataMax||C.max===C.dataMax)&&(C.max=Math.max(F[F.length-1],C.max)),C.dataMax=Math.max(F[F.length-1],C.dataMax))),E.groupAll&&(this.allGroupedData=m,E=this.cropData(S,m,l.min,l.max,1),S=E.xData,m=E.yData,this.cropStart=E.start),this.processedXData=S,this.processedYData=m}else this.groupMap=null;this.hasGroupedData=D,this.currentDataGrouping=O,this.preventGraphAnimation=(a&&a.totalRange)!==(O&&O.totalRange)}}function p(){this.groupedData&&(this.groupedData.forEach(function(S,w){S&&(this.groupedData[w]=S.destroy?S.destroy():null)},this),this.groupedData.length=0)}function d(){P.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function v(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function x(S,w,E,m){const C=this,a=C.data,l=C.options&&C.options.data,h=[],b=[],B=[],F=S.length,O=!!w,W=[],X=C.pointArrayMap,Q=X&&X.length,ee=["x"].concat(X||["y"]),Y=this.options.dataGrouping&&this.options.dataGrouping.groupAll;let D=0,N=0;if(m=typeof m=="function"?m:m&&i[m]?i[m]:i[C.getDGApproximation&&C.getDGApproximation()||"average"],Q)for(var V=X.length;V--;)W.push([]);else W.push([]);V=Q||1;for(let _=0;_<=F;_++)if(!(S[_]<E[0])){for(;typeof E[D+1]<"u"&&S[_]>=E[D+1]||_===F;){var j=E[D];C.dataGroupInfo={start:Y?N:C.cropStart+N,length:W[0].length};var K=m.apply(C,W);for(C.pointClass&&!y(C.dataGroupInfo.options)&&(C.dataGroupInfo.options=R(C.pointClass.prototype.optionsToObject.call({series:C},C.options.data[C.cropStart+N])),ee.forEach(function($){delete C.dataGroupInfo.options[$]})),typeof K<"u"&&(h.push(j),b.push(K),B.push(C.dataGroupInfo)),N=_,j=0;j<V;j++)W[j].length=0,W[j].hasNulls=!1;if(D+=1,_===F)break}if(_===F)break;if(X){j=C.options.dataGrouping&&C.options.dataGrouping.groupAll?_:C.cropStart+_,j=a&&a[j]||C.pointClass.prototype.applyOptions.apply({series:C},[l[j]]);for(let $=0;$<Q;$++)K=j[X[$]],A(K)?W[$].push(K):K===null&&(W[$].hasNulls=!0)}else j=O?w[_]:null,A(j)?W[0].push(j):j===null&&(W[0].hasNulls=!0)}return{groupedXData:h,groupedYData:b,groupMap:B}}function g(S){S=S.options;const w=this.type,E=this.chart.options.plotOptions,m=this.useCommonDataGrouping&&n.common,C=n.seriesSpecific;let a=s.defaultOptions.plotOptions[w].dataGrouping;if(E&&(C[w]||m)){const l=this.chart.rangeSelector;a||(a=R(n.common,C[w])),S.dataGrouping=R(m,a,E.series&&E.series.dataGrouping,E[w].dataGrouping,this.userOptions.dataGrouping,!S.isInternal&&l&&A(l.selected)&&l.buttonOptions[l.selected].dataGrouping)}}const{series:{prototype:k}}=c,{addEvent:M,defined:y,error:T,extend:I,isNumber:A,merge:R,pick:z}=u,P=k.generatePoints,L=[];return{compose:function(S){const w=S.prototype.pointClass;u.pushUnique(L,w)&&M(w,"update",function(){if(this.dataGroup)return T(24,!1,this.series.chart),!1}),u.pushUnique(L,S)&&(M(S,"afterSetOptions",g),M(S,"destroy",p),I(S.prototype,{applyGrouping:f,destroyGroupedData:p,generatePoints:d,getDGApproximation:v,groupData:x}))},groupData:x}}),o(t,"Extensions/DataGrouping/DataGrouping.js",[t["Extensions/DataGrouping/DataGroupingAxisComposition.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,n,r,s,c){function u(g){const k=this.chart,M=k.time,y=g.labelConfig,T=y.series;var I=T.tooltipOptions,A=T.options.dataGrouping;const R=T.xAxis;var z=I.xDateFormat;let P,L,S=I[g.isFooter?"footerFormat":"headerFormat"];R&&R.options.type==="datetime"&&A&&v(y.key)&&(L=T.currentDataGrouping,A=A.dateTimeLabelFormats||n.common.dateTimeLabelFormats,L?(I=A[L.unitName],L.count===1?z=I[0]:(z=I[1],P=I[2])):!z&&A&&R.dateTime&&(z=R.dateTime.getXDateFormat(y.x,I.dateTimeLabelFormats)),z=M.dateFormat(z,y.key),P&&(z+=M.dateFormat(P,y.key+L.totalRange-1)),T.chart.styledMode&&(S=this.styledModeFormat(S)),g.text=f(S,{point:d(y.point,{key:z}),series:T},k),g.preventDefault())}const{format:f}=s,{addEvent:p,extend:d,isNumber:v}=c,x=[];return s={compose:function(g,k,M){i.compose(g),r.compose(k),M&&c.pushUnique(x,M)&&p(M,"headerFormatter",u)},groupData:r.groupData},s}),o(t,"masters/modules/datagrouping.src.js",[t["Core/Globals.js"],t["Extensions/DataGrouping/ApproximationDefaults.js"],t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGrouping.js"]],function(i,n,r,s){i.dataGrouping={approximationDefaults:n,approximations:r},s.compose(i.Axis,i.Series,i.Tooltip)}),o(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"]],function(i){function n(){const y=this,T=v(y.options.chart.zooming.mouseWheel);T.enabled&&r(this.container,"wheel",I=>{if(I=this.pointer.normalize(I),y.isInsidePlot(I.chartX-y.plotLeft,I.chartY-y.plotTop)){const A=c(T.sensitivity,1.1);M(y,Math.pow(A,I.detail||(I.deltaY||0)/120),y.xAxis[0].toValue(I.chartX),y.yAxis[0].toValue(I.chartY),I.chartX,I.chartY,T)}I.preventDefault&&I.preventDefault()})}const{addEvent:r,isObject:s,pick:c,defined:u,merge:f}=i,p=[],d={enabled:!0,sensitivity:1.1},v=y=>s(y)?f(d,y):f(d,{enabled:u(y)?y:!0}),x=function(y,T){return y.x+y.width>T.x+T.width&&(y.width>T.width?(y.width=T.width,y.x=T.x):y.x=T.x+T.width-y.width),y.width>T.width&&(y.width=T.width),y.x<T.x&&(y.x=T.x),y.y+y.height>T.y+T.height&&(y.height>T.height?(y.height=T.height,y.y=T.y):y.y=T.y+T.height-y.height),y.height>T.height&&(y.height=T.height),y.y<T.y&&(y.y=T.y),y};let g,k;const M=function(y,T,I,A,R,z,P){const L=y.xAxis[0],S=y.yAxis[0];var w=c(P.type,y.options.chart.zooming.type,"x");if(P=/x/.test(w),w=/y/.test(w),u(L.max)&&u(L.min)&&u(S.max)&&u(S.min)&&u(L.dataMax)&&u(L.dataMin)&&u(S.dataMax)&&u(S.dataMin)){if(w){u(g)&&clearTimeout(g);const{startOnTick:b,endOnTick:B}=S.options;k||(k={startOnTick:b,endOnTick:B}),(b||B)&&S.setOptions({startOnTick:!1,endOnTick:!1}),g=setTimeout(()=>{if(k){S.setOptions(k);const{min:F,max:O}=S.getExtremes();S.forceRedraw=!0,S.setExtremes(F,O),k=void 0}},400)}if(y.inverted){var E=S.pos+S.len;I=L.toValue(z),A=S.toValue(R);var m=R;R=z,z=E-m+S.pos}R=R?(R-L.pos)/L.len:.5,(L.reversed&&!y.inverted||y.inverted&&!L.reversed)&&(R=1-R),z=1-(z?(z-S.pos)/S.len:.5),S.reversed&&(z=1-z),E=L.max-L.min,I=c(I,L.min+E/2),E*=T,m=S.max-S.min,A=c(A,S.min+m/2);const l=m*T;var C=L.dataMax-L.dataMin,a=S.dataMax-S.dataMin;m=L.dataMin-C*L.options.minPadding,C=C+C*L.options.minPadding+C*L.options.maxPadding;const h=S.dataMin-a*S.options.minPadding;a=a+a*S.options.minPadding+a*S.options.maxPadding,R=x({x:I-E*R,y:A-l*z,width:E,height:l},{x:m,y:h,width:C,height:a}),z=R.x<=m&&R.width>=C&&R.y<=h&&R.height>=a,u(T)&&!z?(P&&L.setExtremes(R.x,R.x+R.width,!1),w&&S.setExtremes(R.y,R.y+R.height,!1)):(P&&L.setExtremes(void 0,void 0,!1),w&&S.setExtremes(void 0,void 0,!1)),y.redraw(!1)}};return{compose:function(y){p.indexOf(y)===-1&&(p.push(y),r(y,"afterGetContainer",n))}}}),o(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(i,n){n.compose(i.Chart)}),o(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,n,r,s){const{prototype:{tooltipFormatter:c}}=n,{addEvent:u,arrayMax:f,arrayMin:p,correctFloat:d,defined:v,isArray:x,isNumber:g,isString:k,pick:M}=s;var y;return function(T){function I(a,l,h){this.isXAxis||(this.series.forEach(function(b){a==="compare"&&typeof l!="boolean"?b.setCompare(l,!1):a!=="cumulative"||k(l)||b.setCumulative(l,!1)}),M(h,!0)&&this.chart.redraw())}function A(a){const l=this,{numberFormatter:h}=l.series.chart,b=function(B){a=a.replace("{point."+B+"}",(0<l[B]&&B==="change"?"+":"")+h(l[B],M(l.series.tooltipOptions.changeDecimals,2)))};return v(l.change)&&b("change"),v(l.cumulativeSum)&&b("cumulativeSum"),c.apply(this,[a])}function R(){const a=this.options.compare;let l;(a==="percent"||a==="value"||this.options.cumulative)&&(l=new C(this),a==="percent"||a==="value"?l.initCompare(a):l.initCumulative()),this.dataModify=l}function z(a){a=a.dataExtremes;const l=a.activeYData;if(this.dataModify&&a){let h;this.options.compare?h=[this.dataModify.modifyValue(a.dataMin),this.dataModify.modifyValue(a.dataMax)]:this.options.cumulative&&x(l)&&2<=l.length&&(h=C.getCumulativeExtremes(l)),h&&(a.dataMin=p(h),a.dataMax=f(h))}}function P(a,l){this.options.compare=this.userOptions.compare=a,this.update({},M(l,!0)),!this.dataModify||a!=="value"&&a!=="percent"?this.points.forEach(h=>{delete h.change}):this.dataModify.initCompare(a)}function L(){if(this.xAxis&&this.processedYData&&this.dataModify){const a=this.processedXData,l=this.processedYData,h=l.length,b=this.options.compareStart===!0?0:1;let B=-1,F;for(this.pointArrayMap&&(B=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),F=0;F<h-b;F++){const O=l[F]&&-1<B?l[F][B]:l[F];if(g(O)&&O!==0&&a[F+b]>=(this.xAxis.min||0)){this.dataModify.compareValue=O;break}}}}function S(a,l){this.setModifier("compare",a,l)}function w(a,l){a=M(a,!1),this.options.cumulative=this.userOptions.cumulative=a,this.update({},M(l,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(h=>{delete h.cumulativeSum})}function E(a,l){this.setModifier("cumulative",a,l)}const m=[];T.compose=function(a,l,h){if(s.pushUnique(m,a)){const b=a.prototype;b.setCompare=P,b.setCumulative=w,u(a,"afterInit",R),u(a,"afterGetExtremes",z),u(a,"afterProcessData",L)}return s.pushUnique(m,l)&&(l=l.prototype,l.setCompare=S,l.setModifier=I,l.setCumulative=E),s.pushUnique(m,h)&&(h.prototype.tooltipFormatter=A),a};class C{constructor(l){this.series=l}modifyValue(){return 0}static getCumulativeExtremes(l){let h=1/0,b=-1/0;return l.reduce((B,F)=>(F=B+F,h=Math.min(h,F,B),b=Math.max(b,F,B),F)),[h,b]}initCompare(l){this.modifyValue=function(h,b){h===null&&(h=0);const B=this.compareValue;return typeof h<"u"&&typeof B<"u"?(h=l==="value"?h-B:h/B*100-(this.series.options.compareBase===100?0:100),typeof b<"u"&&(b=this.series.points[b])&&(b.change=h),h):0}}initCumulative(){this.modifyValue=function(l,h){if(l===null&&(l=0),l!==void 0&&h!==void 0){const b=0<h?this.series.points[h-1]:null;return b&&b.cumulativeSum&&(l=d(b.cumulativeSum+l)),(h=this.series.points[h])&&(h.cumulativeSum=l),l}return 0}}}T.Additions=C}(y||(y={})),y}),o(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,n){function r(){this.navigatorAxis||(this.navigatorAxis=new g(this))}function s(k){var M=this.chart,y=M.options,T=y.navigator;const I=this.navigatorAxis,A=M.zooming.pinchType;y=y.rangeSelector,M=M.zooming.type,this.isXAxis&&(T&&T.enabled||y&&y.enabled)&&(M==="y"?k.zoomed=!1:(!c&&M==="xy"||c&&A==="xy")&&this.options.range&&(T=I.previousZoom,p(k.newMin)?I.previousZoom=[this.min,this.max]:T&&(k.newMin=T[0],k.newMax=T[1],I.previousZoom=void 0))),typeof k.zoomed<"u"&&k.preventDefault()}const{isTouchDevice:c}=i,{addEvent:u,correctFloat:f,defined:p,isNumber:d,pick:v}=n,x=[];class g{static compose(M){n.pushUnique(x,M)&&(M.keepProps.push("navigatorAxis"),u(M,"init",r),u(M,"zoom",s))}constructor(M){this.axis=M}destroy(){this.axis=void 0}toFixedRange(M,y,T,I){const A=this.axis;var R=A.chart;M=v(T,A.translate(M,!0,!A.horiz)),y=v(I,A.translate(y,!0,!A.horiz)),R=R&&R.fixedRange;const z=(A.pointRange||0)/2;return p(T)||(M=f(M+z)),p(I)||(y=f(y-z)),R&&A.dataMin&&A.dataMax&&(y>=A.dataMax&&(M=f(A.dataMax-R)),M<=A.dataMin&&(y=f(A.dataMin+R))),d(M)&&d(y)||(M=y=void 0),{min:M,max:y}}}return g}),o(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(i,n){return{parse:i}=i,{seriesTypes:n}=n,n={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:i("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:typeof n.areaspline>"u"?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}},n}),o(t,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(i,n,r,s,c={}){return i=c.width?c.width/2:r,n=Math.round(i/3)+.5,s=c.height||s,[["M",-i-1,.5],["L",i,.5],["L",i,s+.5],["L",-i-1,s+.5],["L",-i-1,.5],["M",-n,4],["L",-n,s-3],["M",n-1,4],["L",n-1,s-3]]}}}),o(t,"Stock/Navigator/NavigatorComposition.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/Navigator/NavigatorSymbols.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u,f){function p(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function d(){var m;const C=this.legend,a=this.navigator;let l,h,b;if(a){l=C&&C.options,h=a.xAxis,b=a.yAxis;const{scrollbarHeight:B,scrollButtonSize:F}=a;this.inverted?(a.left=a.opposite?this.chartWidth-B-a.height:this.spacing[3]+B,a.top=this.plotTop+F):(a.left=S(h.left,this.plotLeft+F),a.top=a.navigatorOptions.top||this.chartHeight-a.height-B-(((m=this.scrollbar)===null||m===void 0?void 0:m.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(l&&l.verticalAlign==="bottom"&&l.layout!=="proximate"&&l.enabled&&!l.floating?C.legendHeight+S(l.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),h&&b&&(this.inverted?h.options.left=b.options.left=a.left:h.options.top=b.options.top=a.top,h.setAxisSize(),b.setAxisSize())}}function v(m){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new E(this),S(m.redraw,!0)&&this.redraw(m.animation))}function x(){const m=this.options;(m.navigator.enabled||m.scrollbar.enabled)&&(this.scroller=this.navigator=new E(this))}function g(){var m=this.options;const C=m.navigator;if(m=m.rangeSelector,(C&&C.enabled||m&&m.enabled)&&(!A&&this.zooming.type==="x"||A&&this.zooming.pinchType==="x"))return!1}function k(m){const C=m.navigator;C&&m.xAxis[0]&&(m=m.xAxis[0].getExtremes(),C.render(m.min,m.max))}function M(m){const C=m.options.navigator||{},a=m.options.scrollbar||{};this.navigator||this.scroller||!C.enabled&&!a.enabled||(L(!0,this.options.navigator,C),L(!0,this.options.scrollbar,a),delete m.options.navigator,delete m.options.scrollbar)}function y(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}const{defaultOptions:T,setOptions:I}=i,{isTouchDevice:A}=n,{getRendererType:R}=u,{addEvent:z,extend:P,merge:L,pick:S}=f,w=[];let E;return{compose:function(m,C,a,l){r.compose(m),E=a,f.pushUnique(w,C)&&(C.prototype.callbacks.push(k),z(C,"afterAddSeries",p),z(C,"afterSetChartSize",d),z(C,"afterUpdate",v),z(C,"beforeRender",x),z(C,"beforeShowResetZoom",g),z(C,"update",M)),f.pushUnique(w,l)&&z(l,"afterUpdate",y),f.pushUnique(w,R)&&P(R().prototype.symbols,c),f.pushUnique(w,I)&&P(T,{navigator:s})}}}),o(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Utilities.js"]],function(i){const{addEvent:n,defined:r,pick:s}=i,c=[];class u{static compose(p,d){if(!i.pushUnique(c,p))return p;const v=x=>{const g=s(x.options&&x.options.min,x.min),k=s(x.options&&x.options.max,x.max);return{axisMin:g,axisMax:k,scrollMin:r(x.dataMin)?Math.min(g,x.min,x.dataMin,s(x.threshold,1/0)):g,scrollMax:r(x.dataMax)?Math.max(k,x.max,x.dataMax,s(x.threshold,-1/0)):k}};return n(p,"afterInit",function(){const x=this;x.options&&x.options.scrollbar&&x.options.scrollbar.enabled&&(x.options.scrollbar.vertical=!x.horiz,x.options.startOnTick=x.options.endOnTick=!1,x.scrollbar=new d(x.chart.renderer,x.options.scrollbar,x.chart),n(x.scrollbar,"changed",function(g){let{axisMin:k,axisMax:M,scrollMin:y,scrollMax:T}=v(x);var I=T-y;let A;r(k)&&r(M)&&(x.horiz&&!x.reversed||!x.horiz&&x.reversed?(A=y+I*this.to,I=y+I*this.from):(A=y+I*(1-this.from),I=y+I*(1-this.to)),this.shouldUpdateExtremes(g.DOMType)?x.setExtremes(I,A,!0,g.DOMType==="mousemove"||g.DOMType==="touchmove"?!1:void 0,g):this.setRange(this.from,this.to))}))}),n(p,"afterRender",function(){let{scrollMin:x,scrollMax:g}=v(this),k=this.scrollbar;var M=this.axisTitleMargin+(this.titleOffset||0),y=this.chart.scrollbarsOffsets;let T=this.options.margin||0;k&&(this.horiz?(this.opposite||(y[1]+=M),k.position(this.left,this.top+this.height+2+y[1]-(this.opposite?T:0),this.width,this.height),this.opposite||(y[1]+=T),M=1):(this.opposite&&(y[0]+=M),k.position(k.options.opposite?this.left+this.width+2+y[0]-(this.opposite?0:T):this.opposite?0:T,this.top,this.width,this.height),this.opposite&&(y[0]+=T),M=0),y[M]+=k.size+(k.options.margin||0),isNaN(x)||isNaN(g)||!r(this.min)||!r(this.max)||this.min===this.max?k.setRange(0,1):(y=(this.min-x)/(g-x),M=(this.max-x)/(g-x),this.horiz&&!this.reversed||!this.horiz&&this.reversed?k.setRange(y,M):k.setRange(1-M,1-y)))}),n(p,"afterGetOffset",function(){const x=this.scrollbar;var g=x&&!x.options.opposite;g=this.horiz?2:g?3:1,x&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[g]+=x.size+(x.options.margin||0))}),p}}return u}),o(t,"Stock/Scrollbar/ScrollbarDefaults.js",[t["Core/Globals.js"]],function(i){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),o(t,"Stock/Scrollbar/Scrollbar.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],function(i,n,r,s,c){const{defaultOptions:u}=i,{addEvent:f,correctFloat:p,defined:d,destroyObjectProperties:v,fireEvent:x,merge:g,pick:k,removeEvent:M}=c;class y{static compose(I){r.compose(I,y)}static swapXY(I,A){return A&&I.forEach(R=>{const z=R.length;let P;for(let L=0;L<z;L+=2)P=R[L+1],typeof P=="number"&&(R[L+1]=R[L+2],R[L+2]=P)}),I}constructor(I,A,R){this._events=[],this.chart=void 0,this.from=this.chartY=this.chartX=0,this.scrollbar=this.renderer=this.options=this.group=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.to=this.size=this.scrollbarTop=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.y=this.x=0,this.init(I,A,R)}addEvents(){var I=this.options.inverted?[1,0]:[0,1];const A=this.scrollbarButtons,R=this.scrollbarGroup.element,z=this.track.element,P=this.mouseDownHandler.bind(this),L=this.mouseMoveHandler.bind(this),S=this.mouseUpHandler.bind(this);I=[[A[I[0]].element,"click",this.buttonToMinClick.bind(this)],[A[I[1]].element,"click",this.buttonToMaxClick.bind(this)],[z,"click",this.trackClick.bind(this)],[R,"mousedown",P],[R.ownerDocument,"mousemove",L],[R.ownerDocument,"mouseup",S]],n.hasTouch&&I.push([R,"touchstart",P],[R.ownerDocument,"touchmove",L],[R.ownerDocument,"touchend",S]),I.forEach(function(w){f.apply(null,w)}),this._events=I}buttonToMaxClick(I){const A=(this.to-this.from)*k(this.options.step,.2);this.updatePosition(this.from+A,this.to+A),x(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:I})}buttonToMinClick(I){const A=p(this.to-this.from)*k(this.options.step,.2);this.updatePosition(p(this.from-A),p(this.to-A)),x(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:I})}cursorToScrollbarPosition(I){var A=this.options;return A=A.minWidth>this.calculatedWidth?A.minWidth:0,{chartX:(I.chartX-this.x-this.xOffset)/(this.barWidth-A),chartY:(I.chartY-this.y-this.yOffset)/(this.barWidth-A)}}destroy(){const I=this,A=I.chart.scroller;I.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(R){I[R]&&I[R].destroy&&(I[R]=I[R].destroy())}),A&&I===A.scrollbar&&(A.scrollbar=null,v(A.scrollbarButtons))}drawScrollbarButton(I){const A=this.renderer,R=this.scrollbarButtons,z=this.options,P=this.size;var L=A.g().add(this.group);R.push(L),z.buttonsEnabled&&(L=A.rect().addClass("highcharts-scrollbar-button").add(L),this.chart.styledMode||L.attr({stroke:z.buttonBorderColor,"stroke-width":z.buttonBorderWidth,fill:z.buttonBackgroundColor}),L.attr(L.crisp({x:-.5,y:-.5,width:P+1,height:P+1,r:z.buttonBorderRadius},L.strokeWidth())),I=A.path(y.swapXY([["M",P/2+(I?-1:1),P/2-3],["L",P/2+(I?-1:1),P/2+3],["L",P/2+(I?2:-2),P/2]],z.vertical)).addClass("highcharts-scrollbar-arrow").add(R[I]),this.chart.styledMode||I.attr({fill:z.buttonArrowColor}))}init(I,A,R){this.scrollbarButtons=[],this.renderer=I,this.userOptions=A,this.options=g(s,u.scrollbar,A),this.options.margin=k(this.options.margin,10),this.chart=R,this.size=k(this.options.size,this.options.height),A.enabled&&(this.render(),this.addEvents())}mouseDownHandler(I){I=this.chart.pointer.normalize(I),I=this.cursorToScrollbarPosition(I),this.chartX=I.chartX,this.chartY=I.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(I){var A=this.chart.pointer.normalize(I),R=this.options.vertical?"chartY":"chartX";const z=this.initPositions||[];!this.grabbedCenter||I.touches&&I.touches[0][R]===0||(A=this.cursorToScrollbarPosition(A)[R],R=this[R],R=A-R,this.hasDragged=!0,this.updatePosition(z[0]+R,z[1]+R),this.hasDragged&&x(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:I.type,DOMEvent:I}))}mouseUpHandler(I){this.hasDragged&&x(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:I.type,DOMEvent:I}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(I,A,R,z){const{buttonsEnabled:P,margin:L=0,vertical:S}=this.options,w=this.rendered?"animate":"attr";let E=z,m=0;this.group.show(),this.x=I,this.y=A+this.trackBorderWidth,this.width=R,this.height=z,this.xOffset=E,this.yOffset=m,S?(this.width=this.yOffset=R=this.size,this.xOffset=E=0,this.yOffset=m=P?this.size:0,this.barWidth=z-(P?2*R:0),this.x=I+=L):(this.height=z=this.size,this.xOffset=E=P?this.size:0,this.barWidth=R-(P?2*z:0),this.y+=L),this.group[w]({translateX:I,translateY:this.y}),this.track[w]({width:R,height:z}),this.scrollbarButtons[1][w]({translateX:S?0:R-E,translateY:S?z-m:0})}removeEvents(){this._events.forEach(function(I){M.apply(null,I)}),this._events.length=0}render(){const I=this.renderer,A=this.options,R=this.size,z=this.chart.styledMode,P=I.g("scrollbar").attr({zIndex:A.zIndex}).hide().add();this.group=P,this.track=I.rect().addClass("highcharts-scrollbar-track").attr({r:A.trackBorderRadius||0,height:R,width:R}).add(P),z||this.track.attr({fill:A.trackBackgroundColor,stroke:A.trackBorderColor,"stroke-width":A.trackBorderWidth});const L=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-L%2/2,y:-L%2/2}),this.scrollbarGroup=I.g().add(P),this.scrollbar=I.rect().addClass("highcharts-scrollbar-thumb").attr({height:R-L,width:R-L,r:A.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=I.path(y.swapXY([["M",-3,R/4],["L",-3,2*R/3],["M",0,R/4],["L",0,2*R/3],["M",3,R/4],["L",3,2*R/3]],A.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),z||(this.scrollbar.attr({fill:A.barBackgroundColor,stroke:A.barBorderColor,"stroke-width":A.barBorderWidth}),this.scrollbarRifles.attr({stroke:A.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(I,A){const R=this.options,z=R.vertical;var P=R.minWidth,L=this.barWidth;const S=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(d(L)){var w=L*Math.min(A,1);I=Math.max(I,0);var E=Math.ceil(L*I);this.calculatedWidth=w=p(w-E),w<P&&(E=(L-P+w)*I,w=P),P=Math.floor(E+this.xOffset+this.yOffset),L=w/2-.5,this.from=I,this.to=A,z?(this.scrollbarGroup[S]({translateY:P}),this.scrollbar[S]({height:w}),this.scrollbarRifles[S]({translateY:L}),this.scrollbarTop=P,this.scrollbarLeft=0):(this.scrollbarGroup[S]({translateX:P}),this.scrollbar[S]({width:w}),this.scrollbarRifles[S]({translateX:L}),this.scrollbarLeft=P,this.scrollbarTop=0),12>=w?this.scrollbarRifles.hide():this.scrollbarRifles.show(),R.showFull===!1&&(0>=I&&1<=A?this.group.hide():this.group.show()),this.rendered=!0}}shouldUpdateExtremes(I){return k(this.options.liveRedraw,n.svg&&!n.isTouchDevice&&!this.chart.boosted)||I==="mouseup"||I==="touchend"||!d(I)}trackClick(I){const A=this.chart.pointer.normalize(I),R=this.to-this.from,z=this.y+this.scrollbarTop,P=this.x+this.scrollbarLeft;this.options.vertical&&A.chartY>z||!this.options.vertical&&A.chartX>P?this.updatePosition(this.from+R,this.to+R):this.updatePosition(this.from-R,this.to-R),x(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:I})}update(I){this.destroy(),this.init(this.chart.renderer,g(!0,this.options,I),this.chart)}updatePosition(I,A){1<A&&(I=p(1-p(A-I)),A=1),0>I&&(A=p(A-I),I=0),this.from=I,this.to=A}}return y.defaultOptions=s,u.scrollbar=g(!0,y.defaultOptions,u.scrollbar),y}),o(t,"Stock/Navigator/Navigator.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorComposition.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u,f){function p(C,...a){if(a=[].filter.call(a,P),a.length)return Math[C].apply(0,a)}const{defaultOptions:d}=n,{hasTouch:v,isTouchDevice:x}=r,{addEvent:g,clamp:k,correctFloat:M,defined:y,destroyObjectProperties:T,erase:I,extend:A,find:R,isArray:z,isNumber:P,merge:L,pick:S,removeEvent:w,splat:E}=f;class m{static compose(a,l,h){c.compose(a,l,m,h)}constructor(a){this.rendered=this.range=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0,this.scrollbarHeight=0,this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.scrollButtonSize=void 0,this.init(a)}drawHandle(a,l,h,b){const B=this.navigatorOptions.handles.height;this.handles[l][b](h?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-B)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-B/2-1)})}drawOutline(a,l,h,b){const B=this.navigatorOptions.maskInside;var F=this.outline.strokeWidth();const O=F/2;var W=F%2/2;const X=this.scrollButtonSize,Q=this.size,ee=this.top;F=this.height;const Y=ee-O,D=ee+F;let N=this.left;h?(h=ee+l+W,l=ee+a+W,W=[["M",N+F,ee-X-W],["L",N+F,h],["L",N,h],["M",N,l],["L",N+F,l],["L",N+F,ee+Q+X]],B&&W.push(["M",N+F,h-O],["L",N+F,l+O])):(N-=X,a+=N+X-W,l+=N+X-W,W=[["M",N,Y],["L",a,Y],["L",a,D],["M",l,D],["L",l,Y],["L",N+Q+2*X,ee+O]],B&&W.push(["M",a-O,Y],["L",l+O,Y])),this.outline[b]({d:W})}drawMasks(a,l,h,b){const B=this.left,F=this.top,O=this.height;let W,X,Q,ee;h?(Q=[B,B,B],ee=[F,F+a,F+l],X=[O,O,O],W=[a,l-a,this.size-l]):(Q=[B,B+a,B+l],ee=[F,F,F],X=[a,l-a,this.size-l],W=[O,O,O]),this.shades.forEach((Y,D)=>{Y[b]({x:Q[D],y:ee[D],width:X[D],height:W[D]})})}renderElements(){const a=this,l=a.navigatorOptions,h=l.maskInside,b=a.chart,B=b.renderer,F={cursor:b.inverted?"ns-resize":"ew-resize"},O=a.navigatorGroup=B.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!h,h,!h].forEach((W,X)=>{const Q=B.rect().addClass("highcharts-navigator-mask"+(X===1?"-inside":"-outside")).add(O);b.styledMode||(Q.attr({fill:W?l.maskFill:"rgba(0,0,0,0)"}),X===1&&Q.css(F)),a.shades[X]=Q}),a.outline=B.path().addClass("highcharts-navigator-outline").add(O),b.styledMode||a.outline.attr({"stroke-width":l.outlineWidth,stroke:l.outlineColor}),l.handles&&l.handles.enabled){const W=l.handles,{height:X,width:Q}=W;[0,1].forEach(ee=>{a.handles[ee]=B.symbol(W.symbols[ee],-Q/2-1,0,Q,X,W),b.inverted&&a.handles[ee].attr({rotation:90,rotationOriginX:Math.floor(-Q/2),rotationOriginY:(X+Q)/2}),a.handles[ee].attr({zIndex:7-ee}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][ee]).add(O),b.styledMode||a.handles[ee].attr({fill:W.backgroundColor,stroke:W.borderColor,"stroke-width":W.lineWidth}).css(F)})}}update(a){(this.series||[]).forEach(l=>{l.baseSeries&&delete l.baseSeries.navigatorSeries}),this.destroy(),L(!0,this.chart.options.navigator,a),this.init(this.chart)}render(a,l,h,b){var B=this.chart;const F=this.xAxis,O=F.pointRange||0;var W=F.navigatorAxis.fake?B.xAxis[0]:F;const X=this.navigatorEnabled;var Q=this.rendered,ee=B.inverted;const Y=B.xAxis[0].minRange,D=B.xAxis[0].options.maxRange,N=this.scrollButtonSize;let V=this.scrollbarHeight,j;if(!this.hasDragged||y(h)){if(a=M(a-O/2),l=M(l+O/2),!P(a)||!P(l))if(Q)h=0,b=S(F.width,W.width);else return;this.left=S(F.left,B.plotLeft+N+(ee?B.plotWidth:0));var K=this.size=j=S(F.len,(ee?B.plotHeight:B.plotWidth)-2*N);B=ee?V:j+2*N,h=S(h,F.toPixels(a,!0)),b=S(b,F.toPixels(l,!0)),P(h)&&Math.abs(h)!==1/0||(h=0,b=B),a=F.toValue(h,!0),l=F.toValue(b,!0);var _=Math.abs(M(l-a));_<Y?this.grabbedLeft?h=F.toPixels(l-Y-O,!0):this.grabbedRight&&(b=F.toPixels(a+Y+O,!0)):y(D)&&M(_-O)>D&&(this.grabbedLeft?h=F.toPixels(l-D-O,!0):this.grabbedRight&&(b=F.toPixels(a+D+O,!0))),this.zoomedMax=k(Math.max(h,b),0,K),this.zoomedMin=k(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(h,b),0,K),this.range=this.zoomedMax-this.zoomedMin,K=Math.round(this.zoomedMax),h=Math.round(this.zoomedMin),X&&(this.navigatorGroup.attr({visibility:"inherit"}),Q=Q&&!this.hasDragged?"animate":"attr",this.drawMasks(h,K,ee,Q),this.drawOutline(h,K,ee,Q),this.navigatorOptions.handles.enabled&&(this.drawHandle(h,0,ee,Q),this.drawHandle(K,1,ee,Q))),this.scrollbar&&(ee?(ee=this.top-N,W=this.left-V+(X||!W.opposite?0:(W.titleOffset||0)+W.axisTitleMargin),V=j+2*N):(ee=this.top+(X?this.height:-V),W=this.left-N),this.scrollbar.position(W,ee,B,V),this.scrollbar.setRange(this.zoomedMin/(j||1),this.zoomedMax/(j||1))),this.rendered=!0}}addMouseEvents(){const a=this,l=a.chart,h=l.container;let b=[],B,F;a.mouseMoveHandler=B=function(O){a.onMouseMove(O)},a.mouseUpHandler=F=function(O){a.onMouseUp(O)},b=a.getPartsEvents("mousedown"),b.push(g(l.renderTo,"mousemove",B),g(h.ownerDocument,"mouseup",F)),v&&(b.push(g(l.renderTo,"touchmove",B),g(h.ownerDocument,"touchend",F)),b.concat(a.getPartsEvents("touchstart"))),a.eventsToUnbind=b,a.series&&a.series[0]&&b.push(g(a.series[0].xAxis,"foundExtremes",function(){l.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(a){const l=this,h=[];return["shades","handles"].forEach(function(b){l[b].forEach(function(B,F){h.push(g(B.element,a,function(O){l[b+"Mousedown"](O,F)}))})}),h}shadesMousedown(a,l){a=this.chart.pointer.normalize(a);const h=this.chart,b=this.xAxis,B=this.zoomedMin,F=this.size,O=this.range;let W=this.left,X=a.chartX,Q,ee;h.inverted&&(X=a.chartY,W=this.top),l===1?(this.grabbedCenter=X,this.fixedWidth=O,this.dragOffset=X-B):(a=X-W-O/2,l===0?a=Math.max(0,a):l===2&&a+O>=F&&(a=F-O,this.reversedExtremes?(a-=O,ee=this.getUnionExtremes().dataMin):Q=this.getUnionExtremes().dataMax),a!==B&&(this.fixedWidth=O,l=b.navigatorAxis.toFixedRange(a,a+O,ee,Q),y(l.min)&&h.xAxis[0].setExtremes(Math.min(l.min,l.max),Math.max(l.min,l.max),!0,null,{trigger:"navigator"})))}handlesMousedown(a,l){this.chart.pointer.normalize(a),a=this.chart;const h=a.xAxis[0],b=this.reversedExtremes;l===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=b?h.min:h.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=b?h.max:h.min),a.fixedRange=null}onMouseMove(a){const l=this;var h=l.chart;const b=l.navigatorSize,B=l.range,F=l.dragOffset,O=h.inverted;let W=l.left;a.touches&&a.touches[0].pageX===0||(a=h.pointer.normalize(a),h=a.chartX,O&&(W=l.top,h=a.chartY),l.grabbedLeft?(l.hasDragged=!0,l.render(0,0,h-W,l.otherHandlePos)):l.grabbedRight?(l.hasDragged=!0,l.render(0,0,l.otherHandlePos,h-W)):l.grabbedCenter&&(l.hasDragged=!0,h<F?h=F:h>b+F-B&&(h=b+F-B),l.render(0,0,h-F,h-F+B)),l.hasDragged&&l.scrollbar&&S(l.scrollbar.options.liveRedraw,!x&&!this.chart.boosted)&&(a.DOMType=a.type,setTimeout(function(){l.onMouseUp(a)},0)))}onMouseUp(a){var l=this.chart,h=this.xAxis,b=this.scrollbar;const B=a.DOMEvent||a,F=l.inverted,O=this.rendered&&!this.hasDragged?"animate":"attr";let W,X;(!this.hasDragged||b&&b.hasDragged)&&a.trigger!=="scrollbar"||(b=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?W=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(X=this.fixedExtreme),this.zoomedMax===this.size&&(X=this.reversedExtremes?b.dataMin:b.dataMax),this.zoomedMin===0&&(W=this.reversedExtremes?b.dataMax:b.dataMin),h=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,W,X),y(h.min)&&l.xAxis[0].setExtremes(Math.min(h.min,h.max),Math.max(h.min,h.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:B})),a.DOMType!=="mousemove"&&a.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&P(this.zoomedMin)&&P(this.zoomedMax)&&(l=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(l,a,F,O),this.outline&&this.drawOutline(l,a,F,O),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(l,0,F,O),this.drawHandle(a,1,F,O)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){const a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&a.forEach(function(l){w(l,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&w(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(a){var l=a.options,h=l.navigator||{},b=h.enabled,B=l.scrollbar||{},F=B.enabled;l=b&&h.height||0;var O=F&&B.height||0;const W=B.buttonsEnabled&&O||0;this.handles=[],this.shades=[],this.chart=a,this.setBaseSeries(),this.height=l,this.scrollbarHeight=O,this.scrollButtonSize=W,this.scrollbarEnabled=F,this.navigatorEnabled=b,this.navigatorOptions=h,this.scrollbarOptions=B,this.opposite=S(h.opposite,!(b||!a.inverted));const X=this;b=X.baseSeries,B=a.xAxis.length,F=a.yAxis.length,O=b&&b[0]&&b[0].xAxis||a.xAxis[0]||{options:{}},a.isDirtyBox=!0,X.navigatorEnabled?(X.xAxis=new i(a,L({breaks:O.options.breaks,ordinal:O.options.ordinal},h.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",type:"datetime",index:B,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[W,0,-W,0],width:l}:{offsets:[0,-W,0,W],height:l}),"xAxis"),X.yAxis=new i(a,L(h.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:F,isInternal:!0,reversed:S(h.yAxis&&h.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:l}:{height:l}),"yAxis"),b||h.series.data?X.updateNavigatorSeries(!1):a.series.length===0&&(X.unbindRedraw=g(a,"beforeRedraw",function(){0<a.series.length&&!X.series&&(X.setBaseSeries(),X.unbindRedraw())})),X.reversedExtremes=a.inverted&&!X.xAxis.reversed||!a.inverted&&X.xAxis.reversed,X.renderElements(),X.addMouseEvents()):(X.xAxis={chart:a,navigatorAxis:{fake:!0},translate:function(Q,ee){var Y=a.xAxis[0];const D=Y.getExtremes(),N=Y.len-2*W,V=p("min",Y.options.min,D.dataMin);return Y=p("max",Y.options.max,D.dataMax)-V,ee?Q*Y/N+V:N*(Q-V)/Y},toPixels:function(Q){return this.translate(Q)},toValue:function(Q){return this.translate(Q,!0)}},X.xAxis.navigatorAxis.axis=X.xAxis,X.xAxis.navigatorAxis.toFixedRange=s.prototype.toFixedRange.bind(X.xAxis.navigatorAxis)),a.options.scrollbar.enabled&&(h=L(a.options.scrollbar,{vertical:a.inverted}),!P(h.margin)&&X.navigatorEnabled&&(h.margin=a.inverted?-3:3),a.scrollbar=X.scrollbar=new u(a.renderer,h,a),g(X.scrollbar,"changed",function(Q){var ee=X.size;const Y=ee*this.to;ee*=this.from,X.hasDragged=X.scrollbar.hasDragged,X.render(0,0,ee,Y),this.shouldUpdateExtremes(Q.DOMType)&&setTimeout(function(){X.onMouseUp(Q)})})),X.addBaseSeriesEvents(),X.addChartEvents()}getUnionExtremes(a){const l=this.chart.xAxis[0],h=this.xAxis,b=h.options,B=l.options;let F;return a&&l.dataMin===null||(F={dataMin:S(b&&b.min,p("min",B.min,l.dataMin,h.dataMin,h.min)),dataMax:S(b&&b.max,p("max",B.max,l.dataMax,h.dataMax,h.max))}),F}setBaseSeries(a,l){const h=this.chart,b=this.baseSeries=[];a=a||h.options&&h.options.navigator.baseSeries||(h.series.length?R(h.series,B=>!B.options.isInternal).index:0),(h.series||[]).forEach((B,F)=>{B.options.isInternal||!B.options.showInNavigator&&(F!==a&&B.options.id!==a||B.options.showInNavigator===!1)||b.push(B)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,l)}updateNavigatorSeries(a,l){const h=this,b=h.chart,B=h.baseSeries,F={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},O=h.series=(h.series||[]).filter(Y=>{const D=Y.baseSeries;return 0>B.indexOf(D)?(D&&(w(D,"updatedData",h.updatedDataHandler),delete D.navigatorSeries),Y.chart&&Y.destroy(),!1):!0});let W,X,Q=h.navigatorOptions.series,ee;B&&B.length&&B.forEach(Y=>{const D=Y.navigatorSeries;var N=A({color:Y.color,visible:Y.visible},z(Q)?d.navigator.series:Q);D&&h.navigatorOptions.adaptToUpdatedData===!1||(F.name="Navigator "+B.length,W=Y.options||{},ee=W.navigatorOptions||{},N.dataLabels=E(N.dataLabels),X=L(W,F,N,ee),X.pointRange=S(N.pointRange,ee.pointRange,d.plotOptions[X.type||"line"].pointRange),N=ee.data||N.data,h.hasNavigatorData=h.hasNavigatorData||!!N,X.data=N||W.data&&W.data.slice(0),D&&D.options?D.update(X,l):(Y.navigatorSeries=b.initSeries(X),Y.navigatorSeries.baseSeries=Y,O.push(Y.navigatorSeries)))}),(Q.data&&(!B||!B.length)||z(Q))&&(h.hasNavigatorData=!1,Q=E(Q),Q.forEach((Y,D)=>{F.name="Navigator "+(O.length+1),X=L(d.navigator.series,{color:b.series[D]&&!b.series[D].options.isInternal&&b.series[D].color||b.options.colors[D]||b.options.colors[0]},F,Y),X.data=Y.data,X.data&&(h.hasNavigatorData=!0,O.push(b.initSeries(X)))})),a&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){const a=this,l=a.baseSeries||[];l[0]&&l[0].xAxis&&l[0].eventsToUnbind.push(g(l[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),l.forEach(h=>{h.eventsToUnbind.push(g(h,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),h.eventsToUnbind.push(g(h,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&h.xAxis&&h.eventsToUnbind.push(g(h,"updatedData",this.updatedDataHandler)),h.eventsToUnbind.push(g(h,"remove",function(){this.navigatorSeries&&(I(a.series,this.navigatorSeries),y(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(a){return this.baseSeries.reduce(function(l,h){return Math.min(l,h.xData&&h.xData.length?h.xData[0]:l)},a)}modifyNavigatorAxisExtremes(){const a=this.xAxis;if(typeof a.getExtremes<"u"){const l=this.getUnionExtremes(!0);!l||l.dataMin===a.min&&l.dataMax===a.max||(a.min=l.dataMin,a.max=l.dataMax)}}modifyBaseAxisExtremes(){const a=this.chart.navigator;var l=this.getExtremes();const h=l.dataMin,b=l.dataMax;l=l.max-l.min;const B=a.stickToMin,F=a.stickToMax,O=S(this.options.overscroll,0),W=a.series&&a.series[0],X=!!this.setExtremes;let Q,ee;this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton"||(B&&(ee=h,Q=ee+l),F&&(Q=b+O,B||(ee=Math.max(h,Q-l,a.getBaseSeriesMin(W&&W.xData?W.xData[0]:-Number.MAX_VALUE)))),X&&(B||F)&&P(ee)&&(this.min=this.userMin=ee,this.max=this.userMax=Q)),a.stickToMin=a.stickToMax=null}updatedDataHandler(){const a=this.chart.navigator,l=this.navigatorSeries;a.stickToMax=S(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,a.reversedExtremes?Math.round(a.zoomedMin)===0:Math.round(a.zoomedMax)>=Math.round(a.size)),a.stickToMin=a.shouldStickToMin(this,a),l&&!a.hasNavigatorData&&(l.options.pointStart=this.xData[0],l.setData(this.options.data,!1,null,!1))}shouldStickToMin(a,l){l=l.getBaseSeriesMin(a.xData[0]);var h=a.xAxis;a=h.max;const b=h.min;return h=h.options.range,P(a)&&P(b)?h&&0<a-l?a-l<h:b<=l:!1}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(g(this.chart,"redraw",function(){const a=this.navigator,l=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);l&&a.render(l.min,l.max)}),g(this.chart,"getMargins",function(){let a=this.navigator,l=a.opposite?"plotTop":"marginBottom";this.inverted&&(l=a.opposite?"marginRight":"plotLeft"),this[l]=(this[l]||0)+(a.navigatorEnabled||!this.inverted?a.height+a.scrollbarHeight:0)+a.navigatorOptions.margin}))}destroy(){this.removeEvents(),this.xAxis&&(I(this.chart.xAxis,this.xAxis),I(this.chart.axes,this.xAxis)),this.yAxis&&(I(this.chart.yAxis,this.yAxis),I(this.chart.axes,this.yAxis)),(this.series||[]).forEach(a=>{a.destroy&&a.destroy()}),"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(a=>{this[a]&&this[a].destroy&&this[a].destroy(),this[a]=null}),[this.handles].forEach(a=>{T(a)})}}return m}),o(t,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%e %b %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}}}),o(t,"Stock/RangeSelector/RangeSelectorComposition.js",[t["Core/Defaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Core/Utilities.js"]],function(i,n,r){function s(){const w=this.range,E=w.type,m=this.max,C=this.chart.time,a=function(B,F){const O=E==="year"?"FullYear":"Month",W=new C.Date(B),X=C.get(O,W);return C.set(O,W,X+F),X===C.get(O,W)&&C.set("Date",W,0),W.getTime()-B};let l,h;A(w)?(l=m-w,h=w):w&&(l=m+a(m,-(w.count||1)),this.chart&&(this.chart.fixedRange=m-l));const b=z(this.dataMin,Number.MIN_VALUE);return A(l)||(l=b),l<=b&&(l=b,typeof h>"u"&&(h=a(l,w.count)),this.newMax=Math.min(l+h,z(this.dataMax,Number.MAX_VALUE))),A(m)?!A(w)&&w&&w._offsetMin&&(l+=w._offsetMin):l=void 0,l}function c(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new S(this))}function u(){var w=this.axes;const E=this.rangeSelector;E&&(A(E.deferredYTDClick)&&(E.clickButton(E.deferredYTDClick),delete E.deferredYTDClick),w.forEach(m=>{m.updateNames(),m.setScale()}),this.getAxisMargins(),E.render(),w=E.options.verticalAlign,E.options.floating||(w==="bottom"?this.extraBottomMargin=!0:w!=="middle"&&(this.extraTopMargin=!0)))}function f(w){let E,m,C,a;const l=w.rangeSelector,h=()=>{l&&(E=w.xAxis[0].getExtremes(),m=w.legend,a=l&&l.options.verticalAlign,A(E.min)&&l.render(E.min,E.max),m.display&&a==="top"&&a===m.options.verticalAlign&&(C=R(w.spacingBox),C.y=m.options.layout==="vertical"?w.plotTop:C.y+l.getHeight(),m.group.placed=!1,m.align(C)))};l&&(I(P,b=>b[0]===w)||P.push([w,[M(w.xAxis[0],"afterSetExtremes",function(b){l&&l.render(b.min,b.max)}),M(w,"redraw",h)]]),h())}function p(){for(let w=0,E=P.length;w<E;++w){const m=P[w];if(m[0]===this){m[1].forEach(C=>C()),P.splice(w,1);break}}}function d(){var w=this.rangeSelector;w&&(w=w.getHeight(),this.extraTopMargin&&(this.plotTop+=w),this.extraBottomMargin&&(this.marginBottom+=w))}function v(){var w=this.rangeSelector;w&&!w.options.floating&&(w.render(),w=w.options.verticalAlign,w==="bottom"?this.extraBottomMargin=!0:w!=="middle"&&(this.extraTopMargin=!0))}function x(w){var E=w.options.rangeSelector;w=this.extraBottomMargin;const m=this.extraTopMargin;let C=this.rangeSelector;E&&E.enabled&&!y(C)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=C=new S(this)),this.extraTopMargin=this.extraBottomMargin=!1,C&&(f(this),E=E&&E.verticalAlign||C.options&&C.options.verticalAlign,C.options.floating||(E==="bottom"?this.extraBottomMargin=!0:E!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin!==w||this.extraTopMargin!==m)&&(this.isDirtyBox=!0)}const{defaultOptions:g,setOptions:k}=i,{addEvent:M,defined:y,extend:T,find:I,isNumber:A,merge:R,pick:z}=r,P=[],L=[];let S;return{compose:function(w,E,m){S=m,r.pushUnique(L,w)&&(w.prototype.minFromRange=s),r.pushUnique(L,E)&&(M(E,"afterGetContainer",c),M(E,"beforeRender",u),M(E,"destroy",p),M(E,"getMargins",d),M(E,"render",v),M(E,"update",x),E.prototype.callbacks.push(f)),r.pushUnique(L,k)&&(T(g,{rangeSelector:n.rangeSelector}),T(g.lang,n.lang))}}}),o(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u){function f(E){if(E.indexOf("%L")!==-1)return"text";const m="aAdewbBmoyY".split("").some(a=>E.indexOf("%"+a)!==-1),C="HkIlMS".split("").some(a=>E.indexOf("%"+a)!==-1);return m&&C?"datetime-local":m?"date":C?"time":"text"}const{defaultOptions:p}=n,{addEvent:d,createElement:v,css:x,defined:g,destroyObjectProperties:k,discardElement:M,extend:y,fireEvent:T,isNumber:I,merge:A,objectEach:R,pad:z,pick:P,pInt:L,splat:S}=u;class w{static compose(m,C){s.compose(m,C,w)}constructor(m){this.buttons=void 0,this.buttonOptions=w.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=m,this.init(m)}clickButton(m,C){const a=this.chart,l=this.buttonOptions[m],h=a.xAxis[0];var b=a.scroller&&a.scroller.getUnionExtremes()||h||{},B=l.type;const F=l.dataGrouping;let O=b.dataMin,W=b.dataMax,X,Q=h&&Math.round(Math.min(h.max,P(W,h.max))),ee;b=l._range;let Y,D,N,V=!0;if(O!==null&&W!==null){if(a.fixedRange=b,this.setSelected(m),F&&(this.forcedDataGrouping=!0,i.prototype.setDataGrouping.call(h||{chart:this.chart},F,!1),this.frozenStates=l.preserveDataGrouping),B==="month"||B==="year")h?(B={range:l,max:Q,chart:a,dataMin:O,dataMax:W},X=h.minFromRange.call(B),I(B.newMax)&&(Q=B.newMax),V=!1):b=l;else if(b)X=Math.max(Q-b,O),Q=Math.min(X+b,W),V=!1;else if(B==="ytd")if(h)(typeof W>"u"||typeof O>"u")&&(O=Number.MAX_VALUE,W=Number.MIN_VALUE,a.series.forEach(j=>{(j=j.xData)&&(O=Math.min(j[0],O),W=Math.max(j[j.length-1],W))}),C=!1),B=this.getYTDExtremes(W,O,a.time.useUTC),X=Y=B.min,Q=B.max;else{this.deferredYTDClick=m;return}else B==="all"&&h&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),X=O,Q=W);V&&l._offsetMin&&g(X)&&(X+=l._offsetMin),l._offsetMax&&g(Q)&&(Q+=l._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=m+1),h?h.setExtremes(X,Q,P(C,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:l}):(ee=S(a.options.xAxis)[0],N=ee.range,ee.range=b,D=ee.min,ee.min=Y,d(a,"load",function(){ee.range=N,ee.min=D})),T(this,"afterBtnClick")}}setSelected(m){this.selected=this.options.selected=m}init(m){const C=this,a=m.options.rangeSelector,l=a.buttons||C.defaultButtons.slice(),h=a.selected,b=function(){const B=C.minInput,F=C.maxInput;B&&B.blur&&T(B,"blur"),F&&F.blur&&T(F,"blur")};C.chart=m,C.options=a,C.buttons=[],C.buttonOptions=l,this.eventsToUnbind=[],this.eventsToUnbind.push(d(m.container,"mousedown",b)),this.eventsToUnbind.push(d(m,"resize",b)),l.forEach(C.computeButtonRange),typeof h<"u"&&l[h]&&this.clickButton(h,!1),this.eventsToUnbind.push(d(m,"load",function(){m.xAxis&&m.xAxis[0]&&d(m.xAxis[0],"setExtremes",function(B){this.max-this.min!==m.fixedRange&&B.trigger!=="rangeSelectorButton"&&B.trigger!=="updatedData"&&C.forcedDataGrouping&&!C.frozenStates&&this.setDataGrouping(!1,!1)})}))}updateButtonStates(){const m=this;var C=this.chart;const a=this.dropdown,l=C.xAxis[0],h=Math.round(l.max-l.min),b=!l.hasVisibleSeries,B=C.scroller&&C.scroller.getUnionExtremes()||l,F=B.dataMin,O=B.dataMax;C=m.getYTDExtremes(O,F,C.time.useUTC);const W=C.min,X=C.max,Q=m.selected,ee=m.options.allButtonsEnabled,Y=m.buttons;let D=I(Q);m.buttonOptions.forEach((N,V)=>{var j=N._range,K=N.type,_=N.count||1;const $=Y[V],H=N._offsetMax-N._offsetMin,q=V===Q,Z=j>O-F,J=j<l.minRange;N=0;let te=!1,se=!1;j=j===h,(K==="month"||K==="year")&&h+36e5>=864e5*{month:28,year:365}[K]*_-H&&h-36e5<=864e5*{month:31,year:366}[K]*_+H?j=!0:K==="ytd"?(j=X-W+H===h,te=!q):K==="all"&&(j=l.max-l.min>=O-F,se=!q&&D&&j),K=!ee&&(Z||J||se||b),_=q&&j||j&&!D&&!te||q&&m.frozenStates,K?N=3:_&&(D=!0,N=2),$.state!==N&&($.setState(N),a&&(a.options[V+1].disabled=K,N===2&&(a.selectedIndex=V+1)),N===0&&Q===V&&m.setSelected())})}computeButtonRange(m){const C=m.type,a=m.count||1,l={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};l[C]?m._range=l[C]*a:(C==="month"||C==="year")&&(m._range=864e5*{month:30,year:365}[C]*a),m._offsetMin=P(m.offsetMin,0),m._offsetMax=P(m.offsetMax,0),m._range+=m._offsetMax-m._offsetMin}getInputValue(m){m=m==="min"?this.minInput:this.maxInput;const C=this.chart.options.rangeSelector,a=this.chart.time;return m?(m.type==="text"&&C.inputDateParser||this.defaultInputDateParser)(m.value,a.useUTC,a):0}setInputValue(m,C){const a=this.options,l=this.chart.time,h=m==="min"?this.minInput:this.maxInput;if(m=m==="min"?this.minDateBox:this.maxDateBox,h){var b=h.getAttribute("data-hc-time");b=g(b)?Number(b):void 0,g(C)&&(g(b)&&h.setAttribute("data-hc-time-previous",b),h.setAttribute("data-hc-time",C),b=C),h.value=l.dateFormat(this.inputTypeFormats[h.type]||a.inputEditDateFormat,b),m&&m.attr({text:l.dateFormat(a.inputDateFormat,b)})}}setInputExtremes(m,C,a){if(m=m==="min"?this.minInput:this.maxInput){const l=this.inputTypeFormats[m.type],h=this.chart.time;l&&(C=h.dateFormat(l,C),m.min!==C&&(m.min=C),a=h.dateFormat(l,a),m.max!==a&&(m.max=a))}}showInput(m){const C=m==="min"?this.minDateBox:this.maxDateBox;if((m=m==="min"?this.minInput:this.maxInput)&&C&&this.inputGroup){const a=m.type==="text",{translateX:l,translateY:h}=this.inputGroup,{inputBoxWidth:b}=this.options;x(m,{width:a?C.width+(b?-2:20)+"px":"auto",height:C.height-2+"px",border:"2px solid silver"}),a&&b?x(m,{left:l+C.x+"px",top:h+"px"}):x(m,{left:Math.min(Math.round(C.x+l-(m.offsetWidth-C.width)/2),this.chart.chartWidth-m.offsetWidth)+"px",top:h-(m.offsetHeight-C.height)/2+"px"})}}hideInput(m){(m=m==="min"?this.minInput:this.maxInput)&&x(m,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(m,C,a){var l=m.split("/").join("-").split(" ").join("T");if(l.indexOf("T")===-1&&(l+="T00:00"),C)l+="Z";else{var h;(h=r.isSafari)&&(h=l,h=!(6<h.length&&(h.lastIndexOf("-")===h.length-6||h.lastIndexOf("+")===h.length-6))),h&&(h=new Date(l).getTimezoneOffset()/60,l+=0>=h?`+${z(-h)}:00`:`-${z(h)}:00`)}return l=Date.parse(l),I(l)||(m=m.split("-"),l=Date.UTC(L(m[0]),L(m[1])-1,L(m[2]))),a&&C&&I(l)&&(l+=a.getTimezoneOffset(l)),l}drawInput(m){function C(){const{maxInput:Y,minInput:D}=b,N=a.xAxis[0];var V=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:N;const j=V.dataMin;V=V.dataMax;let K=b.getInputValue(m);K!==Number(Q.getAttribute("data-hc-time-previous"))&&I(K)&&(Q.setAttribute("data-hc-time-previous",K),W&&Y&&I(j)?K>Number(Y.getAttribute("data-hc-time"))?K=void 0:K<j&&(K=j):D&&I(V)&&(K<Number(D.getAttribute("data-hc-time"))?K=void 0:K>V&&(K=V)),typeof K<"u"&&N.setExtremes(W?K:N.min,W?N.max:K,void 0,void 0,{trigger:"rangeSelectorInput"}))}const{chart:a,div:l,inputGroup:h}=this,b=this,B=a.renderer.style||{};var F=a.renderer;const O=a.options.rangeSelector,W=m==="min";var X=p.lang[W?"rangeSelectorFrom":"rangeSelectorTo"]||"";X=F.label(X,0).addClass("highcharts-range-label").attr({padding:X?2:0,height:X?O.inputBoxHeight:0}).add(h),F=F.label("",0).addClass("highcharts-range-input").attr({padding:2,width:O.inputBoxWidth,height:O.inputBoxHeight,"text-align":"center"}).on("click",function(){b.showInput(m),b[m+"Input"].focus()}),a.styledMode||F.attr({stroke:O.inputBoxBorderColor,"stroke-width":1}),F.add(h);const Q=v("input",{name:m,className:"highcharts-range-selector"},void 0,l);Q.setAttribute("type",f(O.inputDateFormat||"%e %b %Y")),a.styledMode||(X.css(A(B,O.labelStyle)),F.css(A({color:"#333333"},B,O.inputStyle)),x(Q,y({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:B.fontSize,fontFamily:B.fontFamily,top:"-9999em"},O.inputStyle))),Q.onfocus=()=>{b.showInput(m)},Q.onblur=()=>{Q===r.doc.activeElement&&C(),b.hideInput(m),b.setInputValue(m),Q.blur()};let ee=!1;return Q.onchange=()=>{ee||(C(),b.hideInput(m),Q.blur())},Q.onkeypress=Y=>{Y.keyCode===13&&C()},Q.onkeydown=Y=>{ee=!0,Y.keyCode!==38&&Y.keyCode!==40||C()},Q.onkeyup=()=>{ee=!1},{dateBox:F,input:Q,label:X}}getPosition(){var m=this.chart;const C=m.options.rangeSelector;return m=C.verticalAlign==="top"?m.plotTop-m.axisOffset[0]:0,{buttonTop:m+C.buttonPosition.y,inputTop:m+C.inputPosition.y-10}}getYTDExtremes(m,C,a){const l=this.chart.time;var h=new l.Date(m);const b=l.get("FullYear",h);return a=a?l.Date.UTC(b,0,1):+new l.Date(b,0,1),C=Math.max(C,a),h=h.getTime(),{max:Math.min(m||h,h),min:C}}render(m,C){var a=this.chart,l=a.renderer;const h=a.container;var b=a.options;const B=b.rangeSelector,F=P(b.chart.style&&b.chart.style.zIndex,0)+1;if(b=B.inputEnabled,B.enabled!==!1){if(this.rendered||(this.group=l.g("range-selector-group").attr({zIndex:7}).add(),this.div=v("div",void 0,{position:"relative",height:0,zIndex:F}),this.buttonOptions.length&&this.renderButtons(),h.parentNode&&h.parentNode.insertBefore(this.div,h),b&&(this.inputGroup=l.g("input-group").add(this.group),l=this.drawInput("min"),this.minDateBox=l.dateBox,this.minLabel=l.label,this.minInput=l.input,l=this.drawInput("max"),this.maxDateBox=l.dateBox,this.maxLabel=l.label,this.maxInput=l.input)),b&&(this.setInputValue("min",m),this.setInputValue("max",C),m=a.scroller&&a.scroller.getUnionExtremes()||a.xAxis[0]||{},g(m.dataMin)&&g(m.dataMax)&&(a=a.xAxis[0].minRange||0,this.setInputExtremes("min",m.dataMin,Math.min(m.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(m.dataMin,this.getInputValue("min"))+a,m.dataMax)),this.inputGroup)){let O=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(W=>{if(W){const{width:X}=W.getBBox();X&&(W.attr({x:O}),O+=X+B.inputSpacing)}})}this.alignElements(),this.rendered=!0}}renderButtons(){const{buttons:m,chart:C,options:a}=this,l=p.lang,h=C.renderer,b=A(a.buttonTheme),B=b&&b.states,F=b.width||28;delete b.width,delete b.states,this.buttonGroup=h.g("range-selector-buttons").add(this.group);const O=this.dropdown=v("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);d(O,"touchstart",()=>{O.style.fontSize="16px"}),[[r.isMS?"mouseover":"mouseenter"],[r.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(([W,X])=>{d(O,W,()=>{const Q=m[this.currentButtonIndex()];Q&&T(Q.element,X||W)})}),this.zoomText=h.label(l&&l.rangeSelectorZoom||"",0).attr({padding:a.buttonTheme.padding,height:a.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(a.labelStyle),b["stroke-width"]=P(b["stroke-width"],0)),v("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,O),this.buttonOptions.forEach((W,X)=>{v("option",{textContent:W.title||W.text},void 0,O),m[X]=h.button(W.text,0,0,Q=>{const ee=W.events&&W.events.click;let Y;ee&&(Y=ee.call(W,Q)),Y!==!1&&this.clickButton(X),this.isActive=!0},b,B&&B.hover,B&&B.select,B&&B.disabled).attr({"text-align":"center",width:F}).add(this.buttonGroup),W.title&&m[X].attr("title",W.title)})}alignElements(){const{buttonGroup:m,buttons:C,chart:a,group:l,inputGroup:h,options:b,zoomText:B}=this;var F=a.options;const O=F.exporting&&F.exporting.enabled!==!1&&F.navigation&&F.navigation.buttonOptions,{buttonPosition:W,inputPosition:X,verticalAlign:Q}=b;F=(N,V)=>O&&this.titleCollision(a)&&Q==="top"&&V.align==="right"&&V.y-N.getBBox().height-12<(O.y||0)+(O.height||0)+a.spacing[0]?-40:0;var ee=a.plotLeft;if(l&&W&&X){var Y=W.x-a.spacing[3];if(m){if(this.positionButtons(),!this.initialButtonGroupWidth){let K=0;B&&(K+=B.getBBox().width+5),C.forEach((_,$)=>{K+=_.width,$!==C.length-1&&(K+=b.buttonSpacing)}),this.initialButtonGroupWidth=K}ee-=a.spacing[3],this.updateButtonStates();var D=F(m,W);this.alignButtonGroup(D),l.placed=m.placed=a.hasLoaded}D=0,h&&(D=F(h,X),X.align==="left"?Y=ee:X.align==="right"&&(Y=-Math.max(a.axisOffset[1],-D)),h.align({y:X.y,width:h.getBBox().width,align:X.align,x:X.x+Y-2},!0,a.spacingBox),h.placed=a.hasLoaded),this.handleCollision(D),l.align({verticalAlign:Q},!0,a.spacingBox),F=l.alignAttr.translateY,ee=l.getBBox().height+20,Y=0,Q==="bottom"&&(Y=(Y=a.legend&&a.legend.options)&&Y.verticalAlign==="bottom"&&Y.enabled&&!Y.floating?a.legend.legendHeight+P(Y.margin,10):0,ee=ee+Y-20,Y=F-ee-(b.floating?0:b.y)-(a.titleOffset?a.titleOffset[2]:0)-10),Q==="top"?(b.floating&&(Y=0),a.titleOffset&&a.titleOffset[0]&&(Y=a.titleOffset[0]),Y+=a.margin[0]-a.spacing[0]||0):Q==="middle"&&(X.y===W.y?Y=F:(X.y||W.y)&&(Y=0>X.y||0>W.y?Y-Math.min(X.y,W.y):F-ee)),l.translate(b.x,b.y+Math.floor(Y));const{minInput:N,maxInput:V,dropdown:j}=this;b.inputEnabled&&N&&V&&(N.style.marginTop=l.translateY+"px",V.style.marginTop=l.translateY+"px"),j&&(j.style.marginTop=l.translateY+"px")}}alignButtonGroup(m,C){const{chart:a,options:l,buttonGroup:h}=this,{buttonPosition:b}=l,B=a.plotLeft-a.spacing[3];let F=b.x-a.spacing[3];b.align==="right"?F+=m-B:b.align==="center"&&(F-=B/2),h&&h.align({y:b.y,width:P(C,this.initialButtonGroupWidth),align:b.align,x:F},!0,a.spacingBox)}positionButtons(){const{buttons:m,chart:C,options:a,zoomText:l}=this,h=C.hasLoaded?"animate":"attr",{buttonPosition:b}=a,B=C.plotLeft;let F=B;l&&l.visibility!=="hidden"&&(l[h]({x:P(B+b.x,B)}),F+=b.x+l.getBBox().width+5);for(let O=0,W=this.buttonOptions.length;O<W;++O)m[O].visibility!=="hidden"?(m[O][h]({x:F}),F+=m[O].width+a.buttonSpacing):m[O][h]({x:B})}handleCollision(m){const{chart:C,buttonGroup:a,inputGroup:l}=this,{buttonPosition:h,dropdown:b,inputPosition:B}=this.options,F=()=>{let X=0;return this.buttons.forEach(Q=>{Q=Q.getBBox(),Q.width>X&&(X=Q.width)}),X},O=X=>{if(l&&a){const Q=l.alignAttr.translateX+l.alignOptions.x-m+l.getBBox().x+2,ee=l.alignOptions.width,Y=a.alignAttr.translateX+a.getBBox().x;return Y+X>Q&&Q+ee>Y&&h.y<B.y+l.getBBox().height}return!1},W=()=>{l&&a&&l.attr({translateX:l.alignAttr.translateX+(C.axisOffset[1]>=-m?0:-m),translateY:l.alignAttr.translateY+a.getBBox().height+10})};if(a){if(b==="always"){this.collapseButtons(m),O(F())&&W();return}b==="never"&&this.expandButtons()}l&&a?B.align===h.align||O(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(m),O(F())&&W()):W():b==="responsive"&&this.expandButtons():a&&b==="responsive"&&(this.initialButtonGroupWidth>C.plotWidth?this.collapseButtons(m):this.expandButtons())}collapseButtons(m){const{buttons:C,buttonOptions:a,chart:l,dropdown:h,options:b,zoomText:B}=this,F=l.userOptions.rangeSelector&&l.userOptions.rangeSelector.buttonTheme||{},O=Q=>({text:Q?`${Q} ▾`:"▾",width:"auto",paddingLeft:P(b.buttonTheme.paddingLeft,F.padding,8),paddingRight:P(b.buttonTheme.paddingRight,F.padding,8)});B&&B.hide();let W=!1;a.forEach((Q,ee)=>{ee=C[ee],ee.state!==2?ee.hide():(ee.show(),ee.attr(O(Q.text)),W=!0)}),W||(h&&(h.selectedIndex=0),C[0].show(),C[0].attr(O(this.zoomText&&this.zoomText.textStr)));const{align:X}=b.buttonPosition;this.positionButtons(),X!=="right"&&X!=="center"||this.alignButtonGroup(m,C[this.currentButtonIndex()].getBBox().width),this.showDropdown()}expandButtons(){const{buttons:m,buttonOptions:C,options:a,zoomText:l}=this;this.hideDropdown(),l&&l.show(),C.forEach((h,b)=>{b=m[b],b.show(),b.attr({text:h.text,width:a.buttonTheme.width||28,paddingLeft:P(a.buttonTheme.paddingLeft,"unset"),paddingRight:P(a.buttonTheme.paddingRight,"unset")}),2>b.state&&b.setState(0)}),this.positionButtons()}currentButtonIndex(){const{dropdown:m}=this;return m&&0<m.selectedIndex?m.selectedIndex-1:0}showDropdown(){const{buttonGroup:m,buttons:C,chart:a,dropdown:l}=this;if(m&&l){const{translateX:h,translateY:b}=m,B=C[this.currentButtonIndex()].getBBox();x(l,{left:a.plotLeft+h+"px",top:b+.5+"px",width:B.width+"px",height:B.height+"px"}),this.hasVisibleDropdown=!0}}hideDropdown(){const{dropdown:m}=this;m&&(x(m,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){var m=this.options,C=this.group;const a=m.y,l=m.buttonPosition.y,h=m.inputPosition.y;return m.height?m.height:(this.alignElements(),m=C?C.getBBox(!0).height+13+a:0,C=Math.min(h,l),(0>h&&0>l||0<h&&0<l)&&(m+=Math.abs(C)),m)}titleCollision(m){return!(m.options.title.text||m.options.subtitle.text)}update(m){const C=this.chart;A(!0,C.options.rangeSelector,m),this.destroy(),this.init(C),this.render()}destroy(){const m=this,C=m.minInput,a=m.maxInput;m.eventsToUnbind&&(m.eventsToUnbind.forEach(l=>l()),m.eventsToUnbind=void 0),k(m.buttons),C&&(C.onfocus=C.onblur=C.onchange=null),a&&(a.onfocus=a.onblur=a.onchange=null),R(m,function(l,h){l&&h!=="chart"&&(l instanceof c?l.destroy():l instanceof window.HTMLElement&&M(l)),l!==w.prototype[h]&&(m[h]=null)},this)}}return y(w.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),w}),o(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,n,r,s){const{addEvent:c,correctFloat:u,css:f,defined:p,error:d,pick:v,timeUnits:x}=s,g=[];var k;return function(M){function y(C,a,l,h,b=[],B=0,F){const O={},W=this.options.tickPixelInterval;var X=this.chart.time,Q=[],ee;let Y,D;var N=0;let V=[],j=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!b||3>b.length||typeof a>"u")return X.getTimeTicks.apply(X,arguments);const K=b.length;for(ee=0;ee<K;ee++){if(D=ee&&b[ee-1]>l,b[ee]<a&&(N=ee),ee===K-1||b[ee+1]-b[ee]>5*B||D){if(b[ee]>j){for(Y=X.getTimeTicks(C,b[N],b[ee],h);Y.length&&Y[0]<=j;)Y.shift();Y.length&&(j=Y[Y.length-1]),Q.push(V.length),V=V.concat(Y)}N=ee+1}if(D)break}if(Y){if(b=Y.info,F&&b.unitRange<=x.hour){for(ee=V.length-1,N=1;N<ee;N++)if(X.dateFormat("%d",V[N])!==X.dateFormat("%d",V[N-1])){O[V[N]]="day";var _=!0}_&&(O[V[0]]="day"),b.higherRanks=O}b.segmentStarts=Q,V.info=b}else d(12,!1,this.chart);if(F&&p(W)){N=V.length,X=[],_=[];let $;for(ee=N;ee--;)Q=this.translate(V[ee]),$&&(_[ee]=$-Q),X[ee]=$=Q;for(_.sort(),_=_[Math.floor(_.length/2)],_<.6*W&&(_=null),ee=V[N-1]>l?N-1:N,$=void 0;ee--;)Q=X[ee],N=Math.abs($-Q),$&&N<.8*W&&(_===null||N<.8*_)?(O[V[ee]]&&!O[V[ee+1]]?(N=ee+1,$=Q):N=ee,V.splice(N,1)):$=Q}return V}function T(C){const a=this.ordinal.positions;if(!a)return C;let l=a.length-1,h;return 0>C?C=a[0]:C>l?C=a[l]:(l=Math.floor(C),h=C-l),typeof h<"u"&&typeof a[l]<"u"?a[l]+(h?h*(a[l+1]-a[l]):0):C}function I(C){var a=this.ordinal,l=a.positions;if(!l)return C;var h=u((C-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding);if(C>=l[0]&&C<=l[l.length-1]||(a.extendedOrdinalPositions||(a.extendedOrdinalPositions=a.getExtendedPositions()),l=a.extendedOrdinalPositions),l&&l.length){if(C=l.indexOf(C),a=C!==-1?C:u(a.getIndexOfPoint(h,l)),h=u(a%1),0<=a&&a<=l.length-1)return l[Math.floor(a)]+h*(l[Math.ceil(a)]-l[Math.floor(a)]);h=l.length,C=l[0],l=l[h-1];const b=(l-C)/(h-1);return 0>a?C+b*a:l+b*(a-h)}return C}function A(C,a){const l=M.Additions.findIndexOf(C,a,!0);return C[l]===a?l:l+(a-C[l])/(C[l+1]-C[l])}function R(){this.ordinal||(this.ordinal=new M.Additions(this))}function z(){this.isXAxis&&p(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&this.eventArgs.trigger!=="navigator")&&(this.max+=this.options.overscroll,!this.isInternal&&p(this.userMin)&&(this.min+=this.options.overscroll))}function P(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function L(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function S(C){const a=this.xAxis[0],l=a.options.overscroll,h=C.originalEvent.chartX,b=this.options.chart.panning;let B=!1;if(b&&b.type!=="y"&&a.options.ordinal&&a.series.length){var F=this.mouseDownX;const Q=a.getExtremes(),ee=Q.dataMax,Y=Q.min,D=Q.max;var O=this.hoverPoints,W=a.closestPointRange||a.ordinal&&a.ordinal.overscrollPointsRange;F=Math.round((F-h)/(a.translationSlope*(a.ordinal.slope||W))),W=a.ordinal.getExtendedPositions();var X={ordinal:{positions:W,extendedOrdinalPositions:W}};W=a.index2val;const N=a.val2lin;let V;X.ordinal.positions?1<Math.abs(F)&&(O&&O.forEach(function(j){j.setState()}),0>F?(O=X,V=a.ordinal.positions?a:X):(O=a.ordinal.positions?a:X,V=X),X=V.ordinal.positions,ee>X[X.length-1]&&X.push(ee),this.fixedRange=D-Y,F=a.navigatorAxis.toFixedRange(void 0,void 0,W.apply(O,[N.apply(O,[Y,!0])+F]),W.apply(V,[N.apply(V,[D,!0])+F])),F.min>=Math.min(Q.dataMin,Y)&&F.max<=Math.max(ee,D)+l&&a.setExtremes(F.min,F.max,!0,!1,{trigger:"pan"}),this.mouseDownX=h,f(this.container,{cursor:"move"})):B=!0}else B=!0;B||b&&/y/.test(b.type)?l&&(a.max=a.dataMax+l):C.preventDefault()}function w(){const C=this.xAxis;C&&C.options.ordinal&&(delete C.ordinal.index,delete C.ordinal.extendedOrdinalPositions)}function E(C,a){const l=this.ordinal;var h=l.positions;let b=l.slope,B=l.extendedOrdinalPositions;if(!h)return C;var F=h.length;if(h[0]<=C&&h[F-1]>=C)C=A(h,C);else{if(B||(B=l.getExtendedPositions&&l.getExtendedPositions(),l.extendedOrdinalPositions=B),!B||!B.length)return C;F=B.length,b||(b=(B[F-1]-B[0])/F),h=A(B,h[0]),C=C>=B[0]&&C<=B[F-1]?A(B,C)-h:C<B[0]?-h-(B[0]-C)/b:(C-B[F-1])/b+F-h}return a?C:b*(C||0)+l.offset}M.compose=function(C,a,l){if(s.pushUnique(g,C)){const h=C.prototype;h.getTimeTicks=y,h.index2val=T,h.lin2val=I,h.val2lin=E,h.ordinal2lin=h.val2lin,c(C,"afterInit",R),c(C,"foundExtremes",z),c(C,"afterSetScale",P),c(C,"initialAxisTranslation",L)}return s.pushUnique(g,l)&&c(l,"pan",S),s.pushUnique(g,a)&&c(a,"updatedData",w),C};class m{constructor(a){this.index={},this.axis=a}beforeSetTickPositions(){const a=this.axis,l=a.ordinal;var h=a.getExtremes();const b=h.min;var B=h.max;const F=a.isXAxis&&!!a.options.breaks;h=a.options.ordinal;const O=a.chart.options.chart.ignoreHiddenSeries;let W,X;var Q;let ee=[],Y=Number.MAX_VALUE,D=!1,N=!1,V=!1;if(h||F){let K=0;if(a.series.forEach(function(_,$){if(X=[],0<$&&_.options.id!=="highcharts-navigator-series"&&1<_.processedXData.length&&(N=K!==_.processedXData[1]-_.processedXData[0]),K=_.processedXData[1]-_.processedXData[0],_.boosted&&(V=_.boosted),!(O&&_.visible===!1||_.takeOrdinalPosition===!1&&!F)&&(ee=ee.concat(_.processedXData),W=ee.length,ee.sort(function(H,q){return H-q}),Y=Math.min(Y,v(_.closestPointRange,Y)),W)){for($=0;$<W-1;)ee[$]!==ee[$+1]&&X.push(ee[$+1]),$++;X[0]!==ee[0]&&X.unshift(ee[0]),ee=X}}),N&&V&&(ee.pop(),ee.shift()),W=ee.length,2<W){var j=ee[1]-ee[0];for(Q=W-1;Q--&&!D;)ee[Q+1]-ee[Q]!==j&&(D=!0);!a.options.keepOrdinalPadding&&(ee[0]-b>j||B-ee[ee.length-1]>j)&&(D=!0)}else a.options.overscroll&&(W===2?Y=ee[1]-ee[0]:W===1?(Y=a.options.overscroll,ee=[ee[0],ee[0]+Y]):Y=l.overscrollPointsRange);D||a.forceOrdinal?(a.options.overscroll&&(l.overscrollPointsRange=Y,ee=ee.concat(l.getOverscrollPositions())),l.positions=ee,j=a.ordinal2lin(Math.max(b,ee[0]),!0),Q=Math.max(a.ordinal2lin(Math.min(B,ee[ee.length-1]),!0),1),l.slope=B=(B-b)/(Q-j),l.offset=b-j*B):(l.overscrollPointsRange=v(a.closestPointRange,l.overscrollPointsRange),l.positions=a.ordinal.slope=l.offset=void 0)}a.isOrdinal=h&&D,l.groupIntervalFactor=null}static findIndexOf(a,l,h){let b=0,B=a.length-1,F;for(;b<B;)F=Math.ceil((b+B)/2),a[F]<=l?b=F:B=F-1;return a[b]===l||h?b:-1}getExtendedPositions(){const a=this,l=a.axis,h=l.constructor.prototype,b=l.chart,B=l.series[0].currentDataGrouping,F=B?B.count+B.unitName:"raw",O=l.options.overscroll,W=l.getExtremes();let X,Q,ee=a.index;return ee||(ee=a.index={}),ee[F]||(X={series:[],chart:b,forceOrdinal:!1,getExtremes:function(){return{min:W.dataMin,max:W.dataMax+O}},getGroupPixelWidth:h.getGroupPixelWidth,getTimeTicks:h.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:h.ordinal2lin,getIndexOfPoint:h.getIndexOfPoint,val2lin:h.val2lin},X.ordinal.axis=X,l.series.forEach(function(Y){Q={xAxis:X,xData:Y.xData.slice(),chart:b,destroyGroupedData:n.noop,getProcessedData:r.prototype.getProcessedData,applyGrouping:r.prototype.applyGrouping},Q.xData=Q.xData.concat(a.getOverscrollPositions()),Q.options={dataGrouping:B?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[B.unitName,[B.count]]]}:{enabled:!1}},X.series.push(Q),Y.processData.apply(Q)}),Q.closestPointRange!==Q.basePointRange&&Q.currentDataGrouping&&(X.forceOrdinal=!0),l.ordinal.beforeSetTickPositions.apply({axis:X}),ee[F]=X.ordinal.positions),ee[F]}getGroupIntervalFactor(a,l,h){h=h.processedXData;const b=h.length;var B=[],F=this.groupIntervalFactor;if(!F){for(F=0;F<b-1;F++)B[F]=h[F+1]-h[F];B.sort(function(O,W){return O-W}),B=B[Math.floor(b/2)],a=Math.max(a,h[0]),l=Math.min(l,h[b-1]),this.groupIntervalFactor=F=b*B/(l-a)}return F}getIndexOfPoint(a,l){const h=this.axis,b=this.positions?this.positions[0]:0,B=function(O){return O.points.some(W=>!!W.isInside)};let F;return h.series.forEach(O=>{var W;const X=(W=O.points)===null||W===void 0?void 0:W[0];p(X==null?void 0:X.plotX)&&(X.plotX<F||!p(F))&&B(O)&&(F=X.plotX)}),F??(F=h.minPixelPadding),a=u((a-F)/(h.translationSlope*(this.slope||h.closestPointRange||this.overscrollPointsRange))),m.findIndexOf(l,b,!0)+a}getOverscrollPositions(){const a=this.axis,l=a.options.overscroll,h=this.overscrollPointsRange,b=[];let B=a.dataMax;if(p(h))for(;B<=a.dataMax+l;)B+=h,b.push(B);return b}postProcessTickInterval(a){const l=this.axis,h=this.slope;return h?l.options.breaks?l.closestPointRange||a:a/(h/l.closestPointRange):a}}M.Additions=m}(k||(k={})),k}),o(t,"Series/HLC/HLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){({column:{prototype:{pointClass:i}}}=i.seriesTypes);class n extends i{constructor(){super(...arguments),this.series=this.plotClose=this.options=this.low=this.high=this.close=void 0}}return n}),o(t,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),o(t,"Series/HLC/HLCSeries.js",[t["Series/HLC/HLCPoint.js"],t["Series/HLC/HLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,n,r,s){const{column:c}=r.seriesTypes,{extend:u,merge:f}=s;class p extends c{constructor(){super(...arguments),this.yData=this.points=this.options=this.data=void 0}extendStem(v,x,g){const k=v[0];v=v[1],typeof k[2]=="number"&&(k[2]=Math.max(g+x,k[2])),typeof v[2]=="number"&&(v[2]=Math.min(g-x,v[2]))}getPointPath(v,x){x=x.strokeWidth();const g=v.series,k=x%2/2,M=Math.round(v.plotX)-k,y=Math.round(v.shapeArgs.width/2),T=[["M",M,Math.round(v.yBottom)],["L",M,Math.round(v.plotHigh)]];return v.close!==null&&(v=Math.round(v.plotClose)+k,T.push(["M",M,v],["L",M+y,v]),g.extendStem(T,x/2,v)),T}drawSinglePoint(v){var x=v.series;const g=x.chart;let k=v.graphic;typeof v.plotY<"u"&&(k||(v.graphic=k=g.renderer.path().add(x.group)),g.styledMode||k.attr(x.pointAttribs(v,v.selected&&"select")),x=x.getPointPath(v,k),k[k?"animate":"attr"]({d:x}).addClass(v.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(v,x){return v=super.pointAttribs.call(this,v,x),delete v.fill,v}toYData(v){return[v.high,v.low,v.close]}translate(){const v=this,x=v.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],k=g.map(M=>`plot${M.charAt(0).toUpperCase()+M.slice(1)}`);k.push("yBottom"),g.push("low"),super.translate.apply(v),v.points.forEach(function(M){g.forEach(function(y,T){y=M[y],y!==null&&(v.dataModify&&(y=v.dataModify.modifyValue(y)),M[k[T]]=x.toPixels(y,!0))}),M.tooltipPos[1]=M.plotHigh+x.pos-v.chart.plotTop})}}return p.defaultOptions=f(c.defaultOptions,n),u(p.prototype,{pointClass:i,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),r.registerSeriesType("hlc",p),p}),o(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){({seriesTypes:{hlc:i}}=i);class n extends i.prototype.pointClass{constructor(){super(...arguments),this.series=this.plotOpen=this.options=this.open=void 0}getClassName(){return super.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}resolveUpColor(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)}resolveColor(){super.resolveColor(),this.resolveUpColor()}getZone(){const s=super.getZone();return this.resolveUpColor(),s}applyOptions(){return super.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this}}return n}),o(t,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),o(t,"Series/OHLC/OHLCSeries.js",[t["Series/OHLC/OHLCPoint.js"],t["Series/OHLC/OHLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,n,r,s){function c(k){k=k.options;const M=k.dataGrouping;M&&k.useOhlcData&&k.id!=="highcharts-navigator-series"&&(M.approximation="ohlc")}function u(k){k=k.options,k.useOhlcData&&k.id!=="highcharts-navigator-series"&&d(this,{pointValKey:g.prototype.pointValKey,pointArrayMap:g.prototype.pointArrayMap,toYData:g.prototype.toYData})}const{seriesTypes:{hlc:f}}=r,{addEvent:p,extend:d,merge:v}=s,x=[];class g extends f{constructor(){super(...arguments),this.points=this.options=this.data=void 0}static compose(M,...y){s.pushUnique(x,M)&&(p(M,"afterSetOptions",c),p(M,"init",u))}getPointPath(M,y){const T=super.getPointPath(M,y);y=y.strokeWidth();const I=y%2/2,A=Math.round(M.plotX)-I,R=Math.round(M.shapeArgs.width/2);return M.open!==null&&(M=Math.round(M.plotOpen)+I,T.push(["M",A,M],["L",A-R,M]),super.extendStem(T,y/2,M)),T}pointAttribs(M,y){y=super.pointAttribs.call(this,M,y);const T=this.options;return delete y.fill,!M.options.color&&T.upColor&&M.open<M.close&&(y.stroke=T.upColor),y}toYData(M){return[M.open,M.high,M.low,M.close]}}return g.defaultOptions=v(f.defaultOptions,n),d(g.prototype,{pointClass:i,pointArrayMap:["open","high","low","close"]}),r.registerSeriesType("ohlc",g),g}),o(t,"Series/Candlestick/CandlestickSeriesDefaults.js",[t["Core/Defaults.js"],t["Core/Utilities.js"]],function(i,n){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),o(t,"Series/Candlestick/CandlestickSeries.js",[t["Series/Candlestick/CandlestickSeriesDefaults.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,n,r,s){({defaultOptions:n}=n);const{column:c,ohlc:u}=r.seriesTypes;({merge:s}=s);class f extends u{constructor(){super(...arguments),this.points=this.options=this.data=void 0}pointAttribs(d,v){const x=c.prototype.pointAttribs.call(this,d,v),g=this.options,k=d.open<d.close,M=g.lineColor||this.color,y=d.color||this.color;return x["stroke-width"]=g.lineWidth,x.fill=d.options.color||k&&g.upColor||y,x.stroke=d.options.lineColor||k&&g.upLineColor||M,v&&(d=g.states[v],x.fill=d.color||x.fill,x.stroke=d.lineColor||x.stroke,x["stroke-width"]=d.lineWidth||x["stroke-width"]),x}drawPoints(){var d=this.points;const v=this.chart,x=this.yAxis.reversed;for(const y of d){d=y.graphic;var g=void 0,k=void 0;let T,I;var M=void 0;let A,R;const z=!d;typeof y.plotY<"u"&&(d||(y.graphic=d=v.renderer.path().add(this.group)),this.chart.styledMode||d.attr(this.pointAttribs(y,y.selected&&"select")).shadow(this.options.shadow),M=d.strokeWidth()%2/2,A=Math.round(y.plotX)-M,g=y.plotOpen,k=y.plotClose,T=Math.min(g,k),g=Math.max(g,k),R=Math.round(y.shapeArgs.width/2),k=x?g!==y.yBottom:Math.round(T)!==Math.round(y.plotHigh),I=x?Math.round(T)!==Math.round(y.plotHigh):g!==y.yBottom,T=Math.round(T)+M,g=Math.round(g)+M,M=[],M.push(["M",A-R,g],["L",A-R,T],["L",A+R,T],["L",A+R,g],["Z"],["M",A,T],["L",A,k?Math.round(x?y.yBottom:y.plotHigh):T],["M",A,g],["L",A,I?Math.round(x?y.plotHigh:y.yBottom):g]),d[z?"attr":"animate"]({d:M}).addClass(y.getClassName(),!0))}}}return f.defaultOptions=s(u.defaultOptions,n.plotOptions,{tooltip:u.defaultOptions.tooltip},i),r.registerSeriesType("candlestick",f),f}),o(t,"Series/Flags/FlagsPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,n){({column:{prototype:{pointClass:i}}}=i.seriesTypes);const{isNumber:r}=n;class s extends i{constructor(){super(...arguments),this.series=this.options=void 0,this.ttBelow=!1}isValid(){return r(this.y)||typeof this.y>"u"}hasNewShapeType(){const u=this.options.shape||this.series.options.shape;return this.graphic&&u&&u!==this.graphic.symbolKey}}return s}),o(t,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd3ff"}},style:{fontSize:"0.7em",fontWeight:"bold"}}}),o(t,"Series/Flags/FlagsSymbols.js",[t["Core/Renderer/RendererRegistry.js"]],function(i){var n;return function(r){function s(f,p,d,v,x){const g=x&&x.anchorX||f;x=x&&x.anchorY||p;const k=this.circle(g-1,x-1,2,2);return k.push(["M",g,x],["L",f,p+v],["L",f,p],["L",f+d,p],["L",f+d,p+v],["L",f,p+v],["Z"]),k}function c(f,p){f[p+"pin"]=function(d,v,x,g,k){const M=k&&k.anchorX;k=k&&k.anchorY;let y;if(p==="circle"&&g>x&&(d-=Math.round((g-x)/2),x=g),y=f[p](d,v,x,g),M&&k){let T=M;p==="circle"?T=d+x/2:(d=y[0],x=y[1],d[0]==="M"&&x[0]==="L"&&(T=(d[1]+x[1])/2)),y.push(["M",T,v>k?v:v+g],["L",M,k]),y=y.concat(f.circle(M-1,k-1,2,2))}return y}}const u=[];r.compose=function(f){u.indexOf(f)===-1&&(u.push(f),f=f.prototype.symbols,f.flag=s,c(f,"circle"),c(f,"square")),f=i.getRendererType(),u.indexOf(f)&&u.push(f)}}(n||(n={})),n}),o(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,n,r){const{prototype:s}=i,{prototype:c}=n,{defined:u,stableSort:f}=r;var p;return function(d){function v(k){return c.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,k)}function x(){s.translate.apply(this);const k=this;var M=k.options,y=k.chart;const T=k.points;var I=M.onSeries;const A=(I=I&&y.get(I))&&I.options.step,R=I&&I.points,z=y.inverted,P=k.xAxis,L=k.yAxis;y=T.length-1;let S;M=M.onKey||"y";let w=R&&R.length,E=0,m,C,a,l;if(I&&I.visible&&w){E=(I.pointXOffset||0)+(I.barW||0)/2;var h=I.currentDataGrouping;for(C=R[w-1].x+(h?h.totalRange:0),f(T,(b,B)=>b.x-B.x),M="plot"+M[0].toUpperCase()+M.substr(1);w--&&T[y]&&(m=R[w],h=T[y],h.y=m.y,!(m.x<=h.x&&typeof m[M]<"u"&&(h.x<=C&&(h.plotY=m[M],m.x<h.x&&!A&&(a=R[w+1])&&typeof a[M]<"u"&&(l=(h.x-m.x)/(a.x-m.x),h.plotY+=l*(a[M]-m[M]),h.y+=l*(a.y-m.y))),y--,w++,0>y))););}T.forEach((b,B)=>{let F;b.plotX+=E,(typeof b.plotY>"u"||z)&&(0<=b.plotX&&b.plotX<=P.len?z?(b.plotY=P.translate(b.x,0,1,0,1),b.plotX=u(b.y)?L.translate(b.y,0,0,0,1):0):b.plotY=(P.opposite?0:k.yAxis.len)+P.offset:b.shapeArgs={}),(S=T[B-1])&&S.plotX===b.plotX&&(typeof S.stackIndex>"u"&&(S.stackIndex=0),F=S.stackIndex+1),b.stackIndex=F}),this.onSeries=I}const g=[];d.compose=function(k){if(r.pushUnique(g,k)){const M=k.prototype;M.getPlotBox=v,M.translate=x}return k},d.getPlotBox=v,d.translate=x}(p||(p={})),p}),o(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u,f,p,d){({noop:s}=s);const{distribute:v}=u,{series:x,seriesTypes:{column:g}}=f,{addEvent:k,defined:M,extend:y,merge:T,objectEach:I,wrap:A}=d;class R extends g{constructor(){super(...arguments),this.points=this.options=this.data=void 0}animate(P){P&&this.setClip()}drawPoints(){var P=this.points,L=this.chart;const S=L.renderer,w=L.inverted,E=this.options,m=E.y,C=this.yAxis,a={},l=[];let h,b,B,F,O,W,X;for(B=P.length;B--;){F=P[B],W=(w?F.plotY:F.plotX)>this.xAxis.len,h=F.plotX;var Q=F.stackIndex,ee=F.options.shape||E.shape;b=F.plotY,typeof b<"u"&&(b=F.plotY+m-(typeof Q<"u"&&Q*E.stackDistance)),F.anchorX=Q?void 0:F.plotX,O=Q?void 0:F.plotY,X=ee!=="flag",Q=F.graphic,typeof b<"u"&&0<=h&&!W?(Q&&F.hasNewShapeType()&&(Q=Q.destroy()),Q||(Q=F.graphic=S.label("",null,null,ee,null,null,E.useHTML).addClass("highcharts-point").add(this.markerGroup),F.graphic.div&&(F.graphic.div.point=F),Q.isNew=!0),Q.attr({align:X?"center":"left",width:E.width,height:E.height,"text-align":E.textAlign}),L.styledMode||Q.attr(this.pointAttribs(F)).css(T(E.style,F.style)).shadow(E.shadow),0<h&&(h-=Q.strokeWidth()%2),ee={y:b,anchorY:O},E.allowOverlapX&&(ee.x=h,ee.anchorX=F.anchorX),Q.attr({text:F.options.title||E.title||"A"})[Q.isNew?"attr":"animate"](ee),E.allowOverlapX||(a[F.plotX]?a[F.plotX].size=Math.max(a[F.plotX].size,Q.width):a[F.plotX]={align:X?.5:0,size:Q.width,target:h,anchorX:h}),F.tooltipPos=[h,b+C.pos-L.plotTop]):Q&&(F.graphic=Q.destroy())}if(!E.allowOverlapX){let Y=100;I(a,function(D){D.plotX=D.anchorX,l.push(D),Y=Math.max(D.size,Y)}),v(l,w?C.len:this.xAxis.len,Y);for(const D of P)L=D.plotX,(L=(P=D.graphic)&&a[L])&&P&&(M(L.pos)?P[P.isNew?"attr":"animate"]({x:L.pos+(L.align||0)*L.size,anchorX:D.anchorX}).show().isNew=!1:P.hide().isNew=!0)}E.useHTML&&this.markerGroup&&A(this.markerGroup,"on",function(Y){return p.prototype.on.apply(Y.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){const P=this.points;super.drawTracker();for(const L of P){const S=L.graphic;S&&(L.unbindMouseOver&&L.unbindMouseOver(),L.unbindMouseOver=k(S.element,"mouseover",function(){0<L.stackIndex&&!L.raised&&(L._y=S.y,S.attr({y:L._y-8}),L.raised=!0);for(const w of P)w!==L&&w.raised&&w.graphic&&(w.graphic.attr({y:w._y}),w.raised=!1)}))}}pointAttribs(P,L){const S=this.options,w=P&&P.color||this.color;let E=S.lineColor,m=P&&P.lineWidth;return P=P&&P.fillColor||S.fillColor,L&&(P=S.states[L].fillColor,E=S.states[L].lineColor,m=S.states[L].lineWidth),{fill:P||w,stroke:E||w,"stroke-width":m||S.lineWidth||0}}setClip(){x.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return R.compose=r.compose,R.defaultOptions=T(g.defaultOptions,n),c.compose(R),y(R.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:i,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:s,init:x.prototype.init}),f.registerSeriesType("flags",R),R}),o(t,"Core/Chart/StockChart.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Templating.js"],t["Core/Defaults.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Series/Series.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u,f,p,d,v){function x(m,C){return m==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:m==="yAxis"?{labels:{y:-2},opposite:S(C.opposite,!0),showLastLabel:!(!C.categories&&C.type!=="category"),title:{text:null}}:{}}function g(m,C){return m==="xAxis"?(m={type:"datetime",categories:void 0},S(C.navigator&&C.navigator.enabled,c.enabled,!0)&&(m.startOnTick=!1,m.endOnTick=!1),m):{}}const{format:k}=r,{getOptions:M}=s,{addEvent:y,clamp:T,defined:I,extend:A,find:R,isNumber:z,isString:P,merge:L,pick:S,splat:w}=v;class E extends n{init(C,a){const l=M(),h=C.xAxis,b=C.yAxis;var B=S(C.navigator&&C.navigator.enabled,c.enabled,!0);C.xAxis=C.yAxis=void 0,B=L({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:B},scrollbar:{enabled:S(f.enabled,!0)},rangeSelector:{enabled:S(u.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:S(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},C,{isStock:!0}),C.xAxis=h,C.yAxis=b,B.xAxis=w(C.xAxis||{}).map(function(F,O){return L(x("xAxis",F),l.xAxis,l.xAxis&&l.xAxis[O],F,g("xAxis",C))}),B.yAxis=w(C.yAxis||{}).map(function(F,O){return L(x("yAxis",F),l.yAxis,l.yAxis&&l.yAxis[O],F)}),super.init(B,a)}createAxis(C,a){return a.axis=L(x(C,a.axis),a.axis,g(C,this.userOptions)),super.createAxis(C,a)}}return function(m){m.stockChart=function(C,a,l){return new m(C,a,l)}}(E||(E={})),y(p,"setOptions",function(m){let C;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?C={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(C={marker:{enabled:!1,radius:2}}),C&&(m.plotOptions[this.type]=L(m.plotOptions[this.type],C)))}),y(i,"autoLabelAlign",function(m){const{chart:C,options:a}=this,l=C._labelPanes=C._labelPanes||{},h=a.labels;if(C.options.isStock&&this.coll==="yAxis"){const b=a.top+","+a.height;!l[b]&&h.enabled&&(h.distance===15&&this.side===1&&(h.distance=0),typeof h.align>"u"&&(h.align="right"),l[b]=this,m.align="right",m.preventDefault())}}),y(i,"destroy",function(){const m=this.chart,C=this.options&&this.options.top+","+this.options.height;C&&m._labelPanes&&m._labelPanes[C]===this&&delete m._labelPanes[C]}),y(i,"getPlotLinePath",function(m){function C($){const H=$==="xAxis"?"yAxis":"xAxis";return $=a.options[H],z($)?[h[H][$]]:P($)?[h.get($)]:l.map(function(q){return q[H]})}let a=this,l=this.isLinked&&!this.series?this.linkedParent.series:this.series,h=a.chart,b=h.renderer,B=a.left,F=a.top,O,W,X,Q,ee=[],Y=[],D,N,V=m.translatedValue,j=m.value,K=m.force,_;(h.options.isStock&&m.acrossPanes!==!1&&a.coll==="xAxis"||a.coll==="yAxis")&&(m.preventDefault(),Y=C(a.coll),D=a.isXAxis?h.yAxis:h.xAxis,D.forEach(function($){if(!I($.options.id)||$.options.id.indexOf("navigator")===-1){var H=$.isXAxis?"yAxis":"xAxis";H=I($.options[H])?h[H][$.options[H]]:h[H][0],a===H&&Y.push($)}}),N=Y.length?[]:[a.isXAxis?h.yAxis[0]:h.xAxis[0]],Y.forEach(function($){N.indexOf($)!==-1||R(N,function(H){return H.pos===$.pos&&H.len===$.len})||N.push($)}),_=S(V,a.translate(j,void 0,void 0,m.old)),z(_)&&(a.horiz?N.forEach(function($){let H;W=$.pos,Q=W+$.len,O=X=Math.round(_+a.transB),K!=="pass"&&(O<B||O>B+a.width)&&(K?O=X=T(O,B,B+a.width):H=!0),H||ee.push(["M",O,W],["L",X,Q])}):N.forEach(function($){let H;O=$.pos,X=O+$.len,W=Q=Math.round(F+a.height-_),K!=="pass"&&(W<F||W>F+a.height)&&(K?W=Q=T(W,F,F+a.height):H=!0),H||ee.push(["M",O,W],["L",X,Q])})),m.path=0<ee.length?b.crispPolyLine(ee,m.lineWidth||1):null)}),d.prototype.crispPolyLine=function(m,C){for(let a=0;a<m.length;a+=2){const l=m[a],h=m[a+1];l[1]===h[1]&&(l[1]=h[1]=Math.round(l[1])-C%2/2),l[2]===h[2]&&(l[2]=h[2]=Math.round(l[2])+C%2/2)}return m},y(i,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),y(i,"afterDrawCrosshair",function(m){var C,a;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&z(this.min)&&z(this.max)){var l=this.chart,h=this.logarithmic,b=this.crosshair.label,B=this.horiz,F=this.opposite,O=this.left,W=this.top,X=this.width,Q=this.crossLabel,ee=b.format,Y="",D=this.options.tickPosition==="inside",N=this.crosshair.snap!==!1,V=0,j=m.e||this.cross&&this.cross.e;m=m.point;var K=this.min,_=this.max;h&&(K=h.lin2log(K),_=h.lin2log(_)),h=B?"center":F?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",Q||(Q=this.crossLabel=l.renderer.label("",0,void 0,b.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(m&&m.series?m.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:b.align||h,padding:S(b.padding,8),r:S(b.borderRadius,3),zIndex:2}).add(this.labelGroup),l.styledMode||Q.attr({fill:b.backgroundColor||m&&m.series&&m.series.color||"#666666",stroke:b.borderColor||"","stroke-width":b.borderWidth||0}).css(A({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},b.style||{}))),B?(X=N?(m.plotX||0)+O:j.chartX,W+=F?0:this.height):(X=O+this.offset+(F?X:0),W=N?(m.plotY||0)+W:j.chartY),ee||b.formatter||(this.dateTime&&(Y="%b %d, %Y"),ee="{value"+(Y?":"+Y:"")+"}"),Y=N?this.isXAxis?m.x:m.y:this.toValue(B?j.chartX:j.chartY),N=m&&m.series?m.series.isPointInside(m):z(Y)&&Y>K&&Y<_,j="",ee?j=k(ee,{value:Y},l):b.formatter&&z(Y)&&(j=b.formatter.call(this,Y)),Q.attr({text:j,x:X,y:W,visibility:N?"inherit":"hidden"}),b=Q.getBBox(),!z(Q.x)||B||F||(X=Q.x-b.width/2),z(Q.y)&&(B?(D&&!F||!D&&F)&&(W=Q.y-b.height):W=Q.y-b.height/2),B?(C=O-b.x,a=O+this.width-b.x):(C=this.labelAlign==="left"?O:0,a=this.labelAlign==="right"?O+this.width:l.chartWidth),Q.translateX<C&&(V=C-Q.translateX),Q.translateX+b.width>=a&&(V=-(Q.translateX+b.width-a)),Q.attr({x:X+V,y:W,anchorX:B?X:this.opposite?0:l.chartWidth,anchorY:B?this.opposite?l.chartHeight:0:W+b.height/2})}}),p.prototype.forceCropping=function(){const m=this.chart,C=this.options.dataGrouping;return this.allowDG!==!1&&C&&S(C.enabled,m.options.isStock)},y(n,"update",function(m){m=m.options,"scrollbar"in m&&this.navigator&&(L(!0,this.options.scrollbar,m.scrollbar),this.navigator.update({}),delete m.scrollbar)}),E}),o(t,"masters/modules/stock.src.js",[t["Core/Globals.js"],t["Series/DataModifyComposition.js"],t["Stock/Navigator/Navigator.js"],t["Stock/RangeSelector/RangeSelector.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Axis/OrdinalAxis.js"],t["Series/OHLC/OHLCSeries.js"],t["Series/Flags/FlagsSeries.js"],t["Core/Chart/StockChart.js"]],function(i,n,r,s,c,u,f,p,d){i.Navigator=r,i.RangeSelector=s,i.Scrollbar=c,i.StockChart=i.stockChart=d.stockChart,n.compose(i.Series,i.Axis,i.Point),p.compose(i.Renderer),r.compose(i.Axis,i.Chart,i.Series),f.compose(i.Series),u.compose(i.Axis,i.Series,i.Chart),s.compose(i.Axis,i.Chart),c.compose(i.Axis)})})})(cx);var E5=cx.exports;const O5=or(E5);var dx={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts<"u"?Highcharts:void 0)})(function(t){function o(i,n,r,s){i.hasOwnProperty(n)||(i[n]=s.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:i[n]}})))}t=t?t._modules:{},o(t,"Extensions/Boost/Boostables.js",[],function(){return"area areaspline arearange column columnrange bar line scatter heatmap bubble treemap".split(" ")}),o(t,"Extensions/Boost/BoostableMap.js",[t["Extensions/Boost/Boostables.js"]],function(i){const n={};return i.forEach(r=>{n[r]=!0}),n}),o(t,"Extensions/Boost/BoostChart.js",[t["Extensions/Boost/BoostableMap.js"],t["Core/Utilities.js"]],function(i,n){function r(d){const v=d.series,x=d.boost=d.boost||{};var g=d.options.boost||{},k=f(g.seriesThreshold,50);if(v.length>=k)return!0;if(v.length===1)return!1;if(g=g.allowForce,typeof g>"u"){g=!0;for(var M of d.xAxis)if(f(M.min,-1/0)>f(M.dataMin,-1/0)||f(M.max,1/0)<f(M.dataMax,1/0)){g=!1;break}}if(typeof x.forceChartBoost<"u"){if(g)return x.forceChartBoost;x.forceChartBoost=void 0}M=d=0;for(const y of v)k=y.options,k.boostThreshold!==0&&y.visible!==!1&&y.type!=="heatmap"&&(i[y.type]&&++d,c(y.processedXData,k.data,y.points)>=(k.boostThreshold||Number.MAX_VALUE)&&++M);return x.forceChartBoost=g&&(d===v.length&&0<M||5<M),x.forceChartBoost}function s(d){u(d,"predraw",function(){d.boost=d.boost||{},d.boost.forceChartBoost=void 0,d.boosted=!1,d.boost.clear&&d.boost.clear(),d.boost.canvas&&d.boost.wgl&&r(d)&&d.boost.wgl.allocateBuffer(d),d.boost.markerGroup&&d.xAxis&&0<d.xAxis.length&&d.yAxis&&0<d.yAxis.length&&d.boost.markerGroup.translate(d.xAxis[0].pos,d.yAxis[0].pos)}),u(d,"render",function(){d.boost&&d.boost.wgl&&r(d)&&d.boost.wgl.render(d)});let v=-1,x=-1;u(d.pointer,"afterGetHoverData",()=>{var g=d.hoverSeries;if(d.boost=d.boost||{},d.boost.markerGroup&&g){const k=d.inverted?g.yAxis:g.xAxis;g=d.inverted?g.xAxis:g.yAxis,(k&&k.pos!==v||g&&g.pos!==x)&&(d.boost.markerGroup.translate(k.pos,g.pos),v=k.pos,x=g.pos)}})}function c(...d){let v=-Number.MAX_VALUE;return d.forEach(function(x){if(typeof x<"u"&&x!==null&&typeof x.length<"u"&&0<x.length)return v=x.length,!0}),v}const{addEvent:u,pick:f}=n,p=[];return{compose:function(d,v){return v&&n.pushUnique(p,d)&&d.prototype.callbacks.push(s),d},getBoostClipRect:function(d,v){const x={x:d.plotLeft,y:d.plotTop,width:d.plotWidth,height:d.plotHeight};return v===d&&(v=d.inverted?d.xAxis:d.yAxis,1>=v.length?(x.y=Math.min(v[0].pos,x.y),x.height=v[0].pos-d.plotTop+v[0].len):x.height=d.plotHeight),x},isChartSeriesBoosting:r}}),o(t,"Extensions/Boost/WGLDrawMode.js",[],function(){return{area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"}}),o(t,"Extensions/Boost/WGLShader.js",[t["Core/Utilities.js"]],function(i){const{clamp:n,error:r,pick:s}=i;class c{constructor(f){this.errors=[],this.uLocations={},(this.gl=f)&&this.createShader()}bind(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)}createShader(){const f=this.stringToProgram(`#version 100
  1775. #define LN10 2.302585092994046
  1776. precision highp float;
  1777. attribute vec4 aVertexPosition;
  1778. attribute vec4 aColor;
  1779. varying highp vec2 position;
  1780. varying highp vec4 vColor;
  1781. uniform mat4 uPMatrix;
  1782. uniform float pSize;
  1783. uniform float translatedThreshold;
  1784. uniform bool hasThreshold;
  1785. uniform bool skipTranslation;
  1786. uniform float xAxisTrans;
  1787. uniform float xAxisMin;
  1788. uniform float xAxisMinPad;
  1789. uniform float xAxisPointRange;
  1790. uniform float xAxisLen;
  1791. uniform bool xAxisPostTranslate;
  1792. uniform float xAxisOrdinalSlope;
  1793. uniform float xAxisOrdinalOffset;
  1794. uniform float xAxisPos;
  1795. uniform bool xAxisCVSCoord;
  1796. uniform bool xAxisIsLog;
  1797. uniform bool xAxisReversed;
  1798. uniform float yAxisTrans;
  1799. uniform float yAxisMin;
  1800. uniform float yAxisMinPad;
  1801. uniform float yAxisPointRange;
  1802. uniform float yAxisLen;
  1803. uniform bool yAxisPostTranslate;
  1804. uniform float yAxisOrdinalSlope;
  1805. uniform float yAxisOrdinalOffset;
  1806. uniform float yAxisPos;
  1807. uniform bool yAxisCVSCoord;
  1808. uniform bool yAxisIsLog;
  1809. uniform bool yAxisReversed;
  1810. uniform bool isBubble;
  1811. uniform bool bubbleSizeByArea;
  1812. uniform float bubbleZMin;
  1813. uniform float bubbleZMax;
  1814. uniform float bubbleZThreshold;
  1815. uniform float bubbleMinSize;
  1816. uniform float bubbleMaxSize;
  1817. uniform bool bubbleSizeAbs;
  1818. uniform bool isInverted;
  1819. float bubbleRadius(){
  1820. float value = aVertexPosition.w;
  1821. float zMax = bubbleZMax;
  1822. float zMin = bubbleZMin;
  1823. float radius = 0.0;
  1824. float pos = 0.0;
  1825. float zRange = zMax - zMin;
  1826. if (bubbleSizeAbs){
  1827. value = value - bubbleZThreshold;
  1828. zMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);
  1829. zMin = 0.0;
  1830. }
  1831. if (value < zMin){
  1832. radius = bubbleZMin / 2.0 - 1.0;
  1833. } else {
  1834. pos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;
  1835. if (bubbleSizeByArea && pos > 0.0){
  1836. pos = sqrt(pos);
  1837. }
  1838. radius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;
  1839. }
  1840. return radius * 2.0;
  1841. }
  1842. float translate(float val,
  1843. float pointPlacement,
  1844. float localA,
  1845. float localMin,
  1846. float minPixelPadding,
  1847. float pointRange,
  1848. float len,
  1849. bool cvsCoord,
  1850. bool isLog,
  1851. bool reversed
  1852. ){
  1853. float sign = 1.0;
  1854. float cvsOffset = 0.0;
  1855. if (cvsCoord) {
  1856. sign *= -1.0;
  1857. cvsOffset = len;
  1858. }
  1859. if (isLog) {
  1860. val = log(val) / LN10;
  1861. }
  1862. if (reversed) {
  1863. sign *= -1.0;
  1864. cvsOffset -= sign * len;
  1865. }
  1866. return sign * (val - localMin) * localA + cvsOffset +
  1867. (sign * minPixelPadding);
  1868. }
  1869. float xToPixels(float value) {
  1870. if (skipTranslation){
  1871. return value;// + xAxisPos;
  1872. }
  1873. return translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;
  1874. }
  1875. float yToPixels(float value, float checkTreshold) {
  1876. float v;
  1877. if (skipTranslation){
  1878. v = value;// + yAxisPos;
  1879. } else {
  1880. v = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;
  1881. if (v > yAxisLen) {
  1882. v = yAxisLen;
  1883. }
  1884. }
  1885. if (checkTreshold > 0.0 && hasThreshold) {
  1886. v = min(v, translatedThreshold);
  1887. }
  1888. return v;
  1889. }
  1890. void main(void) {
  1891. if (isBubble){
  1892. gl_PointSize = bubbleRadius();
  1893. } else {
  1894. gl_PointSize = pSize;
  1895. }
  1896. vColor = aColor;
  1897. if (skipTranslation && isInverted) {
  1898. gl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);
  1899. } else if (isInverted) {
  1900. gl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);
  1901. } else {
  1902. gl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);
  1903. }
  1904. }`,"vertex"),p=this.stringToProgram(`precision highp float;
  1905. uniform vec4 fillColor;
  1906. varying highp vec2 position;
  1907. varying highp vec4 vColor;
  1908. uniform sampler2D uSampler;
  1909. uniform bool isCircle;
  1910. uniform bool hasColor;
  1911. void main(void) {
  1912. vec4 col = fillColor;
  1913. vec4 tcol = texture2D(uSampler, gl_PointCoord.st);
  1914. if (hasColor) {
  1915. col = vColor;
  1916. }
  1917. if (isCircle) {
  1918. col *= tcol;
  1919. if (tcol.r < 0.0) {
  1920. discard;
  1921. } else {
  1922. gl_FragColor = col;
  1923. }
  1924. } else {
  1925. gl_FragColor = col;
  1926. }
  1927. }`,"fragment"),d=v=>this.gl.getUniformLocation(this.shaderProgram,v);return!f||!p?(this.shaderProgram=!1,this.handleErrors(),!1):(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,f),this.gl.attachShader(this.shaderProgram,p),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS)?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=d("uPMatrix"),this.psUniform=d("pSize"),this.fcUniform=d("fillColor"),this.isBubbleUniform=d("isBubble"),this.bubbleSizeAbsUniform=d("bubbleSizeAbs"),this.bubbleSizeAreaUniform=d("bubbleSizeByArea"),this.uSamplerUniform=d("uSampler"),this.skipTranslationUniform=d("skipTranslation"),this.isCircleUniform=d("isCircle"),this.isInverted=d("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1))}handleErrors(){this.errors.length&&r("[highcharts boost] shader error - "+this.errors.join(`
  1928. `))}stringToProgram(f,p){const d=this.gl.createShader(p==="vertex"?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return this.gl.shaderSource(d,f),this.gl.compileShader(d),this.gl.getShaderParameter(d,this.gl.COMPILE_STATUS)?d:(this.errors.push("when compiling "+p+` shader:
  1929. `+this.gl.getShaderInfoLog(d)),!1)}destroy(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)}fillColorUniform(){return this.fcUniform}getProgram(){return this.shaderProgram}pointSizeUniform(){return this.psUniform}perspectiveUniform(){return this.pUniform}reset(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))}setBubbleUniforms(f,p,d,v=1){const x=f.options;let g=Number.MAX_VALUE,k=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&f.is("bubble")){const M=f.getPxExtremes();g=s(x.zMin,n(p,x.displayNegative===!1?x.zThreshold:-Number.MAX_VALUE,g)),k=s(x.zMax,Math.max(k,d)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,f.options.sizeBy!=="width"),this.gl.uniform1i(this.bubbleSizeAbsUniform,f.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",M.minPxSize*v),this.setUniform("bubbleMaxSize",M.maxPxSize*v),this.setUniform("bubbleZMin",g),this.setUniform("bubbleZMax",k),this.setUniform("bubbleZThreshold",f.options.zThreshold)}}setColor(f){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,f[0]/255,f[1]/255,f[2]/255,f[3])}setDrawAsCircle(f){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,f?1:0)}setInverted(f){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,f)}setPMatrix(f){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,f)}setPointSize(f){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,f)}setSkipTranslation(f){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,f===!0?1:0)}setTexture(f){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,f)}setUniform(f,p){this.gl&&this.shaderProgram&&(f=this.uLocations[f]=this.uLocations[f]||this.gl.getUniformLocation(this.shaderProgram,f),this.gl.uniform1f(f,p))}}return c}),o(t,"Extensions/Boost/WGLVertexBuffer.js",[],function(){class i{constructor(r,s,c){this.buffer=!1,this.iterator=0,this.vertAttribute=this.preAllocated=!1,this.components=c||2,this.dataComponents=c,this.gl=r,this.shader=s}allocate(r){this.iterator=-1,this.preAllocated=new Float32Array(4*r)}bind(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}build(r,s,c){let u;return this.data=r||[],this.data&&this.data.length!==0||this.preAllocated?(this.components=c||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(u=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||u,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),s),this.gl.enableVertexAttribArray(this.vertAttribute),!0):(this.destroy(),!1)}destroy(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.vertAttribute=this.buffer=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]}push(r,s,c,u){this.preAllocated&&(this.preAllocated[++this.iterator]=r,this.preAllocated[++this.iterator]=s,this.preAllocated[++this.iterator]=c,this.preAllocated[++this.iterator]=u)}render(r,s,c){const u=this.preAllocated?this.preAllocated.length:this.data.length;return!this.buffer||!u||((!r||r>u||0>r)&&(r=0),(!s||s>u)&&(s=u),r>=s)?!1:(this.gl.drawArrays(this.gl[c||"POINTS"],r/this.components,(s-r)/this.components),!0)}}return i}),o(t,"Extensions/Boost/WGLRenderer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Extensions/Boost/WGLDrawMode.js"],t["Extensions/Boost/WGLShader.js"],t["Extensions/Boost/WGLVertexBuffer.js"]],function(i,n,r,s,c,u){const{parse:f}=i,{doc:p,win:d}=n,{isNumber:v,isObject:x,merge:g,objectEach:k,pick:M}=r,y={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},T={scatter:!0,bubble:!0},I=["webgl","experimental-webgl","moz-webgl","webkit-3d"];class A{static orthoMatrix(z,P){return[2/z,0,0,0,0,-(2/P),0,0,0,0,-2,0,-1,1,-1,1]}static seriesPointCount(z){let P;if(z.boosted){var L=!!z.options.stacking;return P=z.xData||z.options.xData||z.processedXData,L=(L?z.data:P||z.options.data).length,z.type==="treemap"?L*=12:z.type==="heatmap"?L*=6:y[z.type]&&(L*=2),L}return 0}constructor(z){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=z,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}getPixelRatio(){return this.settings.pixelRatio||d.devicePixelRatio||1}setOptions(z){"pixelRatio"in z||(z.pixelRatio=1),g(!0,this.settings,z)}allocateBuffer(z){const P=this.vbuffer;let L=0;this.settings.usePreallocated&&(z.series.forEach(S=>{S.boosted&&(L+=A.seriesPointCount(S))}),P&&P.allocate(L))}allocateBufferForSingleSeries(z){const P=this.vbuffer;let L=0;this.settings.usePreallocated&&(z.boosted&&(L=A.seriesPointCount(z)),P&&P.allocate(L))}clear(){const z=this.gl;z&&z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT)}pushSeriesData(z,P){const L=this.data,S=this.settings,w=this.vbuffer;var E=z.pointArrayMap&&z.pointArrayMap.join(",")==="low,high";const m=z.chart,C=z.options,a=!!C.stacking,l=C.data;var h=z.xAxis.getExtremes();const b=h.min;h=h.max;var B=z.yAxis.getExtremes();const F=B.min,O=B.max;var W=z.xData||C.xData||z.processedXData;const X=z.yData||C.yData||z.processedYData,Q=z.zData||C.zData||z.processedZData,ee=z.yAxis,Y=z.xAxis,D=!W||W.length===0;B=C.connectNulls;var N=z.points||!1;const V=a?z.data:W||l;W={x:Number.MAX_VALUE,y:0};const j={x:-Number.MAX_VALUE,y:0},K=typeof m.index>"u",_=y[z.type],$=C.zoneAxis||"y",H=C.zones||!1,q=C.threshold,Z=this.getPixelRatio();let J=z.chart.plotWidth,te=!1,se=!1,ce,ne=0;var oe=!1;let U,G,re,ie=-1,ae=!1,ue=!1,he,me=!1,ve=!1,pe=!1,Se=!1,Le=!0,Te=!0,Pe,de=!1,fe=!1,we=0;if(!(C.boostData&&0<C.boostData.length)){if(C.gapSize&&(fe=C.gapUnit!=="value"?C.gapSize*z.closestPointRange:C.gapSize),H&&(Pe=[],H.forEach((_e,Ue)=>{if(_e.color){const Ye=f(_e.color).rgba;Ye[0]/=255,Ye[1]/=255,Ye[2]/=255,Pe[Ue]=Ye,de||typeof _e.value<"u"||(de=Ye)}}),!de)){var Ie=z.pointAttribs&&z.pointAttribs().fill||z.color;de=f(Ie).rgba,de[0]/=255,de[1]/=255,de[2]/=255}m.inverted&&(J=z.chart.plotHeight),z.closestPointRangePx=Number.MAX_VALUE;var Ae=_e=>{_e&&(P.colorData.push(_e[0]),P.colorData.push(_e[1]),P.colorData.push(_e[2]),P.colorData.push(_e[3]))},ye=(_e,Ue,Ye,tt=1,Ke)=>{Ae(Ke),Z===1||S.useGPUTranslations&&!P.skipTranslation||(_e*=Z,Ue*=Z,tt*=Z),S.usePreallocated&&w?(w.push(_e,Ue,Ye?1:0,tt),we+=4):(L.push(_e),L.push(Ue),L.push(Ye?Z:0),L.push(tt))},Be=()=>{P.segments.length&&(P.segments[P.segments.length-1].to=L.length||we)};Ie=()=>{P.segments.length&&P.segments[P.segments.length-1].from===(L.length||we)||(Be(),P.segments.push({from:L.length||we}))};var Fe=(_e,Ue,Ye,tt,Ke)=>{Ae(Ke),ye(_e+Ye,Ue),Ae(Ke),ye(_e,Ue),Ae(Ke),ye(_e,Ue+tt),Ae(Ke),ye(_e,Ue+tt),Ae(Ke),ye(_e+Ye,Ue+tt),Ae(Ke),ye(_e+Ye,Ue)};if(Ie(),N&&0<N.length)P.skipTranslation=!0,P.drawMode="TRIANGLES",N[0].node&&N[0].node.levelDynamic&&N.sort((_e,Ue)=>{if(_e.node){if(_e.node.levelDynamic>Ue.node.levelDynamic)return 1;if(_e.node.levelDynamic<Ue.node.levelDynamic)return-1}return 0}),N.forEach(_e=>{var Ue=_e.plotY;if(typeof Ue<"u"&&!isNaN(Ue)&&_e.y!==null&&_e.shapeArgs){let{x:Ye=0,y:tt=0,width:Ke=0,height:Ct=0}=_e.shapeArgs;Ue=m.styledMode?_e.series.colorAttribs(_e):Ue=_e.series.pointAttribs(_e),_e=Ue["stroke-width"]||0,pe=f(Ue.fill).rgba,pe[0]/=255,pe[1]/=255,pe[2]/=255,z.is("treemap")&&(_e=_e||1,ce=f(Ue.stroke).rgba,ce[0]/=255,ce[1]/=255,ce[2]/=255,Fe(Ye,tt,Ke,Ct,ce),_e/=2),z.is("heatmap")&&m.inverted&&(Ye=Y.len-Ye,tt=ee.len-tt,Ke=-Ke,Ct=-Ct),Fe(Ye+_e,tt+_e,Ke-2*_e,Ct-2*_e,pe)}});else{for(;ie<V.length-1;){if(N=V[++ie],typeof N>"u")continue;if(K)break;const _e=l&&l[ie];if(!D&&x(_e,!0)&&_e.color&&(pe=f(_e.color).rgba,pe[0]/=255,pe[1]/=255,pe[2]/=255),D?(U=N[0],G=N[1],V[ie+1]&&(ue=V[ie+1][0]),V[ie-1]&&(ae=V[ie-1][0]),3<=N.length&&(re=N[2],N[2]>P.zMax&&(P.zMax=N[2]),N[2]<P.zMin&&(P.zMin=N[2]))):(U=N,G=X[ie],V[ie+1]&&(ue=V[ie+1]),V[ie-1]&&(ae=V[ie-1]),Q&&Q.length&&(re=Q[ie],Q[ie]>P.zMax&&(P.zMax=Q[ie]),Q[ie]<P.zMin&&(P.zMin=Q[ie]))),B||U!==null&&G!==null){if(ue&&ue>=b&&ue<=h&&(me=!0),ae&&ae>=b&&ae<=h&&(ve=!0),E?(D&&(G=N.slice(1,3)),he=G[0],G=G[1]):a&&(U=N.x,G=N.stackY,he=G-N.y),F!==null&&typeof F<"u"&&O!==null&&typeof O<"u"&&(Le=G>=F&&G<=O),U>h&&j.x<h&&(j.x=U,j.y=G),U<b&&W.x>b&&(W.x=U,W.y=G),G!==null||!B)if(G!==null&&(Le||me||ve)){if((ue>=b||U>=b)&&(ae<=h||U<=h)&&(Se=!0),Se||me||ve){if(fe&&U-ae>fe&&Ie(),H){let Ue;H.some((Ye,tt)=>{const Ke=H[tt-1];return $==="x"?typeof Ye.value<"u"&&U<=Ye.value?(Pe[tt]&&(!Ke||U>=Ke.value)&&(Ue=Pe[tt]),!0):!1:typeof Ye.value<"u"&&G<=Ye.value?(Pe[tt]&&(!Ke||G>=Ke.value)&&(Ue=Pe[tt]),!0):!1}),pe=Ue||de||pe}if(!S.useGPUTranslations&&(P.skipTranslation=!0,U=Y.toPixels(U,!0),G=ee.toPixels(G,!0),U>J&&P.drawMode==="POINTS"))continue;P.hasMarkers&&Se&&te!==!1&&(z.closestPointRangePx=Math.min(z.closestPointRangePx,Math.abs(U-te))),!S.useGPUTranslations&&!S.usePreallocated&&te&&1>Math.abs(U-te)&&se&&1>Math.abs(G-se)?S.debug.showSkipSummary&&++ne:(_&&(oe=he,(he===!1||typeof he>"u")&&(oe=0>G?G:0),E||a||(oe=Math.max(q===null?F:q,F)),S.useGPUTranslations||(oe=ee.toPixels(oe,!0)),ye(U,oe,0,0,pe)),C.step&&!Te&&ye(U,se,0,2,pe),ye(U,G,0,z.type==="bubble"?re||1:2,pe),te=U,se=G,oe=!0,Te=!1)}}else Ie()}else Ie()}S.debug.showSkipSummary&&console.log("skipped points:",ne),E=(_e,Ue)=>{S.useGPUTranslations||(P.skipTranslation=!0,_e.x=Y.toPixels(_e.x,!0),_e.y=ee.toPixels(_e.y,!0)),Ue?this.data=[_e.x,_e.y,0,2].concat(this.data):ye(_e.x,_e.y,0,2)},oe||B===!1||z.drawMode!=="line_strip"||(W.x<Number.MAX_VALUE&&E(W,!0),j.x>-Number.MAX_VALUE&&E(j))}Be()}}pushSeries(z){var P=this.markerData;const L=this.series,S=this.settings;0<L.length&&L[L.length-1].hasMarkers&&(L[L.length-1].markerTo=P.length),S.debug.timeSeriesProcessing&&console.time("building "+z.type+" series"),P={segments:[],markerFrom:P.length,colorData:[],series:z,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:z.options.marker?z.options.marker.enabled!==!1:!1,showMarkers:!0,drawMode:s[z.type]||"LINE_STRIP"},z.index>=L.length?L.push(P):L[z.index]=P,this.pushSeriesData(z,P),S.debug.timeSeriesProcessing&&console.timeEnd("building "+z.type+" series")}flush(){const z=this.vbuffer;this.data=[],this.markerData=[],this.series=[],z&&z.destroy()}setXAxis(z){const P=this.shader;if(P){var L=this.getPixelRatio();P.setUniform("xAxisTrans",z.transA*L),P.setUniform("xAxisMin",z.min),P.setUniform("xAxisMinPad",z.minPixelPadding*L),P.setUniform("xAxisPointRange",z.pointRange),P.setUniform("xAxisLen",z.len*L),P.setUniform("xAxisPos",z.pos*L),P.setUniform("xAxisCVSCoord",!z.horiz),P.setUniform("xAxisIsLog",!!z.logarithmic),P.setUniform("xAxisReversed",!!z.reversed)}}setYAxis(z){const P=this.shader;if(P){var L=this.getPixelRatio();P.setUniform("yAxisTrans",z.transA*L),P.setUniform("yAxisMin",z.min),P.setUniform("yAxisMinPad",z.minPixelPadding*L),P.setUniform("yAxisPointRange",z.pointRange),P.setUniform("yAxisLen",z.len*L),P.setUniform("yAxisPos",z.pos*L),P.setUniform("yAxisCVSCoord",!z.horiz),P.setUniform("yAxisIsLog",!!z.logarithmic),P.setUniform("yAxisReversed",!!z.reversed)}}setThreshold(z,P){const L=this.shader;L&&(L.setUniform("hasThreshold",z),L.setUniform("translatedThreshold",P))}renderChart(z){const P=this.gl,L=this.settings,S=this.shader,w=this.vbuffer,E=this.getPixelRatio();if(z)this.width=z.chartWidth*E,this.height=z.chartHeight*E;else return!1;const m=this.height,C=this.width;if(!(P&&S&&C&&m))return!1;L.debug.timeRendering&&console.time("gl rendering"),P.canvas.width=C,P.canvas.height=m,S.bind(),P.viewport(0,0,C,m),S.setPMatrix(A.orthoMatrix(C,m)),1<L.lineWidth&&!n.isMS&&P.lineWidth(L.lineWidth),w&&(w.build(this.data,"aVertexPosition",4),w.bind()),S.setInverted(z.inverted),this.series.forEach((a,l)=>{const h=a.series.options;var b=h.marker,B=typeof h.lineWidth<"u"?h.lineWidth:1,F=h.threshold;const O=v(F),W=a.series.yAxis.getThreshold(F);if(F=M(h.marker?h.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((h.marker?h.marker.radius:10)||10)),b=this.textureHandles[b&&b.symbol||a.series.symbol]||this.textureHandles.circle,a.segments.length!==0&&a.segments[0].from!==a.segments[0].to&&(b.isReady&&(P.bindTexture(P.TEXTURE_2D,b.handle),S.setTexture(b.handle)),z.styledMode?b=a.series.markerGroup&&a.series.markerGroup.getStyle("fill"):(b=a.drawMode==="POINTS"&&a.series.pointAttribs&&a.series.pointAttribs().fill||a.series.color,h.colorByPoint&&(b=a.series.chart.options.colors[l])),a.series.fillOpacity&&h.fillOpacity&&(b=new i(b).setOpacity(M(h.fillOpacity,1)).get()),b=f(b).rgba,L.useAlpha||(b[3]=1),a.drawMode==="LINES"&&L.useAlpha&&1>b[3]&&(b[3]/=10),h.boostBlending==="add"?(P.blendFunc(P.SRC_ALPHA,P.ONE),P.blendEquation(P.FUNC_ADD)):h.boostBlending==="mult"||h.boostBlending==="multiply"?P.blendFunc(P.DST_COLOR,P.ZERO):h.boostBlending==="darken"?(P.blendFunc(P.ONE,P.ONE),P.blendEquation(P.FUNC_MIN)):P.blendFuncSeparate(P.SRC_ALPHA,P.ONE_MINUS_SRC_ALPHA,P.ONE,P.ONE_MINUS_SRC_ALPHA),S.reset(),0<a.colorData.length?(S.setUniform("hasColor",1),l=new u(P,S),l.build(a.colorData,"aColor",4),l.bind()):P.disableVertexAttribArray(P.getAttribLocation(S.getProgram(),"aColor")),S.setColor(b),this.setXAxis(a.series.xAxis),this.setYAxis(a.series.yAxis),this.setThreshold(O,W),a.drawMode==="POINTS"&&S.setPointSize(2*M(h.marker&&h.marker.radius,.5)*E),S.setSkipTranslation(a.skipTranslation),a.series.type==="bubble"&&S.setBubbleUniforms(a.series,a.zMin,a.zMax,E),S.setDrawAsCircle(T[a.series.type]||!1),w)){if(0<B||a.drawMode!=="LINE_STRIP")for(B=0;B<a.segments.length;B++)w.render(a.segments[B].from,a.segments[B].to,a.drawMode);if(a.hasMarkers&&F)for(S.setPointSize(2*M(h.marker&&h.marker.radius,5)*E),S.setDrawAsCircle(!0),B=0;B<a.segments.length;B++)w.render(a.segments[B].from,a.segments[B].to,"POINTS")}}),L.debug.timeRendering&&console.timeEnd("gl rendering"),this.postRenderCallback&&this.postRenderCallback(this),this.flush()}render(z){if(this.clear(),z.renderer.forExport)return this.renderChart(z);this.isInited?this.renderChart(z):setTimeout(()=>{this.render(z)},1)}setSize(z,P){const L=this.shader;!L||this.width===z&&this.height===P||(this.width=z,this.height=P,L.bind(),L.setPMatrix(A.orthoMatrix(z,P)))}init(z,P){const L=this.settings;if(this.isInited=!1,!z)return!1;L.debug.timeSetup&&console.time("gl setup");for(let w=0;w<I.length&&!(this.gl=z.getContext(I[w],{}));++w);const S=this.gl;if(S)P||this.flush();else return!1;return S.enable(S.BLEND),S.blendFunc(S.SRC_ALPHA,S.ONE_MINUS_SRC_ALPHA),S.disable(S.DEPTH_TEST),S.depthFunc(S.LESS),z=this.shader=new c(S),z?(this.vbuffer=new u(S,z),z=(w,E)=>{const m={isReady:!1,texture:p.createElement("canvas"),handle:S.createTexture()},C=m.texture.getContext("2d");this.textureHandles[w]=m,m.texture.width=512,m.texture.height=512,C.mozImageSmoothingEnabled=!1,C.webkitImageSmoothingEnabled=!1,C.msImageSmoothingEnabled=!1,C.imageSmoothingEnabled=!1,C.strokeStyle="rgba(255, 255, 255, 0)",C.fillStyle="#FFF",E(C);try{S.activeTexture(S.TEXTURE0),S.bindTexture(S.TEXTURE_2D,m.handle),S.texImage2D(S.TEXTURE_2D,0,S.RGBA,S.RGBA,S.UNSIGNED_BYTE,m.texture),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_WRAP_S,S.CLAMP_TO_EDGE),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_WRAP_T,S.CLAMP_TO_EDGE),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MAG_FILTER,S.LINEAR),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MIN_FILTER,S.LINEAR),S.bindTexture(S.TEXTURE_2D,null),m.isReady=!0}catch{}},z("circle",w=>{w.beginPath(),w.arc(256,256,256,0,2*Math.PI),w.stroke(),w.fill()}),z("square",w=>{w.fillRect(0,0,512,512)}),z("diamond",w=>{w.beginPath(),w.moveTo(256,0),w.lineTo(512,256),w.lineTo(256,512),w.lineTo(0,256),w.lineTo(256,0),w.fill()}),z("triangle",w=>{w.beginPath(),w.moveTo(0,512),w.lineTo(256,0),w.lineTo(512,512),w.lineTo(0,512),w.fill()}),z("triangle-down",w=>{w.beginPath(),w.moveTo(0,0),w.lineTo(256,512),w.lineTo(512,0),w.lineTo(0,0),w.fill()}),this.isInited=!0,L.debug.timeSetup&&console.timeEnd("gl setup"),!0):!1}destroy(){const z=this.gl,P=this.shader,L=this.vbuffer;this.flush(),L&&L.destroy(),P&&P.destroy(),z&&(k(this.textureHandles,S=>{S.handle&&z.deleteTexture(S.handle)}),z.canvas.width=1,z.canvas.height=1)}}return A}),o(t,"Extensions/Boost/BoostSeries.js",[t["Extensions/Boost/BoostableMap.js"],t["Extensions/Boost/Boostables.js"],t["Extensions/Boost/BoostChart.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Extensions/Boost/WGLRenderer.js"]],function(i,n,r,s,c,u,f){function p(j,K){const _=K.boost;j&&_&&_.target&&_.canvas&&!C(K.chart)&&j.allocateBufferForSingleSeries(K)}function d(j){return ee(j&&j.options&&j.options.boost&&j.options.boost.enabled,!0)}function v(j,K){const _=j.constructor,$=j.seriesGroup||K.group;let H=j.chartWidth,q=j.chartHeight,Z=j,J=typeof SVGForeignObjectElement<"u";Z=C(j)?j:K;const te=Z.boost=Z.boost||{};return J=!1,V||(V=l.createElement("canvas")),te.target||(te.canvas=V,j.renderer.forExport||!J?(Z.renderTarget=te.target=j.renderer.image("",0,0,H,q).addClass("highcharts-boost-canvas").add($),te.clear=function(){te.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},te.copy=function(){te.resize(),te.target.attr({href:te.canvas.toDataURL("image/png")})}):(te.targetFo=j.renderer.createElement("foreignObject").add($),Z.renderTarget=te.target=l.createElement("canvas"),te.targetCtx=te.target.getContext("2d"),te.targetFo.element.appendChild(te.target),te.clear=function(){te.target.width=te.canvas.width,te.target.height=te.canvas.height},te.copy=function(){te.target.width=te.canvas.width,te.target.height=te.canvas.height,te.targetCtx.drawImage(te.canvas,0,0)}),te.resize=function(){H=j.chartWidth,q=j.chartHeight,(te.targetFo||te.target).attr({x:0,y:0,width:H,height:q}).css({pointerEvents:"none",mixedBlendMode:"normal",opacity:1}),Z instanceof _&&Z.boost.markerGroup.translate(j.plotLeft,j.plotTop)},te.clipRect=j.renderer.clipRect(),(te.targetFo||te.target).clip(te.clipRect),Z instanceof _&&(Z.boost.markerGroup=Z.renderer.g().add($).translate(K.xAxis.pos,K.yAxis.pos))),te.canvas.width=H,te.canvas.height=q,te.clipRect&&te.clipRect.attr(m(j,Z)),te.resize(),te.clear(),te.wgl||(te.wgl=new f(se=>{se.settings.debug.timeBufferCopy&&console.time("buffer copy"),te.copy(),se.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),te.wgl.init(te.canvas)||F("[highcharts boost] - unable to init WebGL renderer"),te.wgl.setOptions(j.options.boost||{}),Z instanceof _&&te.wgl.allocateBuffer(j)),te.wgl.setSize(H,q),te.wgl}function x(j){const K=j.points;if(K){let _,$;for($=0;$<K.length;$+=1)(_=K[$])&&_.destroyElements&&_.destroyElements()}["graph","area","tracker"].forEach(_=>{const $=j[_];$&&(j[_]=$.destroy())}),j.getZonesGraphs&&j.getZonesGraphs([["graph","highcharts-graph"]]).forEach(_=>{const $=j[_[0]];$&&(j[_[0]]=$.destroy())})}function g(j,K,_,$,H,q){H=H||0,$=$||3e3;const Z=H+$;let J=!0;for(;J&&H<Z&&H<j.length;)J=K(j[H],H),++H;J&&(H<j.length?q?g(j,K,_,$,H,q):b.requestAnimationFrame?b.requestAnimationFrame(function(){g(j,K,_,$,H)}):setTimeout(g,0,j,K,_,$,H):_&&_())}function k(j){j.boost=j.boost||{getPoint:_=>R(j,_)};const K=j.boost.altered=[];["allowDG","directTouch","stickyTracking"].forEach(_=>{K.push({prop:_,val:j[_],own:Object.hasOwnProperty.call(j,_)})}),j.allowDG=!1,j.directTouch=!1,j.stickyTracking=!0,j.finishedAnimating=!0,j.labelBySeries&&(j.labelBySeries=j.labelBySeries.destroy())}function M(j){const K=j.boost;K&&((K.altered||[]).forEach(_=>{_.own?j[_.prop]=_.val:delete j[_.prop]}),K.clear&&K.clear())}function y(j,K){const _=j.options,$=j.xAxis&&j.xAxis.options,H=j.yAxis&&j.yAxis.options;return j=j.colorAxis&&j.colorAxis.options,_.data.length>(_.boostThreshold||Number.MAX_VALUE)&&Q(H.min)&&Q(H.max)&&(!K||Q($.min)&&Q($.max))&&(!j||Q(j.min)&&Q(j.max))}function T(){const j=this,K=j.chart;K.boost&&K.boost.markerGroup===j.markerGroup&&(j.markerGroup=null),K.hoverPoints&&(K.hoverPoints=K.hoverPoints.filter(function(_){return _.series===j})),K.hoverPoint&&K.hoverPoint.series===j&&(K.hoverPoint=null)}function I(){const j=this.boost;j&&j.canvas&&j.target&&(j.wgl&&j.wgl.clear(),j.clear&&j.clear())}function A(j){const K=j.boost;K&&K.canvas&&K.target&&K.wgl&&!C(j.chart)&&K.wgl.render(j.chart)}function R(j,K){var _=j.options;const $=j.xAxis;var H=j.pointClass;return K instanceof H?K:(_=j.xData||_.xData||j.processedXData||!1,H=new H().init(j,j.options.data[K.i],_?_[K.i]:void 0),H.category=ee($.categories?$.categories[H.x]:H.x,H.x),H.dist=K.dist,H.distX=K.distX,H.plotX=K.plotX,H.plotY=K.plotY,H.index=K.i,H.percentage=K.percentage,H.isInside=j.isPointInside(H),H)}function z(){function j(ye,Be){const Fe=typeof _.index>"u";let _e,Ue,Ye=!1,tt=!0;if(typeof ye>"u")return!0;if(!Fe){if(me){_e=ye[0];var Ke=ye[1]}else _e=ye,Ke=Z[Be];ie?(me&&(Ke=ye.slice(1,3)),Ye=Ke[0],Ke=Ke[1]):ae&&(_e=ye.x,Ke=ye.stackY,Ye=Ke-ye.y,Ue=ye.percentage),he||(tt=(Ke||0)>=ne&&Ke<=oe),_e>=se&&_e<=ce&&tt&&(ye=$.toPixels(_e,!0),G?((typeof de>"u"||ye===Se)&&(ie||(Ye=Ke),(typeof fe>"u"||Ke>Pe)&&(Pe=Ke,fe=Be),(typeof de>"u"||Ye<Te)&&(Te=Ye,de=Be)),ve&&ye===Se||(typeof de<"u"&&(Ke=H.toPixels(Pe,!0),Le=H.toPixels(Te,!0),Ie(ye,Ke,fe,Ue),Le!==Ke&&Ie(ye,Le,de,Ue)),de=fe=void 0,Se=ye)):(Ke=Math.ceil(H.toPixels(Ke,!0)),Ie(ye,Ke,Be,Ue)))}return!Fe}var K=this.options||{};const _=this.chart,$=this.xAxis,H=this.yAxis,q=K.xData||this.processedXData,Z=K.yData||this.processedYData,J=K.data;var te=$.getExtremes();const se=te.min,ce=te.max;te=H.getExtremes();const ne=te.min,oe=te.max,U={},G=!!this.sampling,re=K.enableMouseTracking;te=K.threshold;const ie=this.pointArrayMap&&this.pointArrayMap.join(",")==="low,high",ae=!!K.stacking,ue=this.cropStart||0,he=this.requireSorting,me=!q,ve=K.findNearestPointBy==="x",pe=this.xData||this.options.xData||this.processedXData||!1;K=!1;let Se,Le=H.getThreshold(te),Te,Pe,de,fe;if(K=v(_,this),_.boosted=!0,this.visible){(this.points||this.graph)&&x(this),C(_)?(this.markerGroup&&this.markerGroup!==_.boost.markerGroup&&this.markerGroup.destroy(),this.markerGroup=_.boost.markerGroup,this.boost&&this.boost.target&&(this.renderTarget=this.boost.target=this.boost.target.destroy())):(_.boost&&this.markerGroup===_.boost.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers",!0,1,_.seriesGroup));var we=this.points=[],Ie=(ye,Be,Fe,_e)=>{const Ue=pe?pe[ue+Fe]:!1,Ye=tt=>{_.inverted&&(tt=$.len-tt,Be=H.len-Be),we.push({destroy:h,x:Ue,clientX:tt,plotX:tt,plotY:Be,i:ue+Fe,percentage:_e})};ye=Math.ceil(ye),N=ve?ye:ye+","+Be,re&&(U[N]?Ue===pe[pe.length-1]&&(we.length--,Ye(ye)):(U[N]=!0,Ye(ye)))};this.buildKDTree=h,K&&(p(K,this),K.pushSeries(this),A(this));var Ae=K.settings;K=()=>{W(this,"renderedCanvas"),delete this.buildKDTree,this.buildKDTree(),Ae.debug.timeKDTree&&console.timeEnd("kd tree building")},_.renderer.forExport||(Ae.debug.timeKDTree&&console.time("kd tree building"),g(ae?this.data:q||J,j,K))}}function P(j){let K=!0;if(this.chart.options&&this.chart.options.boost&&(K=typeof this.chart.options.boost.enabled>"u"?!0:this.chart.options.boost.enabled),!K||!this.boosted)return j.call(this);this.chart.boosted=!0,(j=v(this.chart,this))&&(p(j,this),j.pushSeries(this)),A(this)}function L(j,K,_){function $(H){const q=this.options.stacking&&(_==="translate"||_==="generatePoints");this.boosted&&!q&&d(this.chart)&&this.type!=="heatmap"&&this.type!=="treemap"&&i[this.type]&&this.options.boostThreshold!==0?_==="render"&&this.renderCanvas&&this.renderCanvas():H.call(this)}Y(j,_,$),_==="translate"&&["column","arearange","columnrange","heatmap","treemap"].forEach(function(H){K[H]&&Y(K[H].prototype,_,$)})}function S(j){return this.boosted&&y(this)?{}:j.apply(this,[].slice.call(arguments,1))}function w(j){var K=this.options.data;const _=$=>this.forceCrop?!1:C(this.chart)||($?$.length:0)>=(this.options.boostThreshold||Number.MAX_VALUE);d(this.chart)&&i[this.type]?(_(K)&&this.type!=="heatmap"&&this.type!=="treemap"&&!this.options.stacking&&y(this,!0)||(j.apply(this,[].slice.call(arguments,1)),K=this.processedXData),(this.boosted=_(K))?(this.options.data&&this.options.data.length&&(K=this.getFirstValidPoint(this.options.data),Q(K)||X(K)||F(12,!1,this.chart)),k(this)):M(this)):j.apply(this,[].slice.call(arguments,1))}function E(j){const K=j.apply(this,[].slice.call(arguments,1));return this.boost&&K?this.boost.getPoint(K):K}const{getBoostClipRect:m,isChartSeriesBoosting:C}=r,{getOptions:a}=s,{doc:l,noop:h,win:b}=c,{addEvent:B,error:F,extend:O,fireEvent:W,isArray:X,isNumber:Q,pick:ee,wrap:Y}=u,D=[];let N,V;return{compose:function(j,K,_){if(u.pushUnique(D,j)){B(j,"destroy",T),B(j,"hide",I);const $=j.prototype;_&&($.renderCanvas=z),Y($,"getExtremes",S),Y($,"processData",w),Y($,"searchPoint",E),["translate","generatePoints","drawTracker","drawPoints","render"].forEach(H=>L($,K,H))}if(u.pushUnique(D,a)){const $=a().plotOptions;n.forEach(H=>{const q=$[H];q&&(q.boostThreshold=5e3,q.boostData=[],K[H].prototype.fillOpacity=!0)})}if(_){const{area:$,areaspline:H,bubble:q,column:Z,heatmap:J,scatter:te,treemap:se}=K;$&&u.pushUnique(D,$)&&O($.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),H&&u.pushUnique(D,H)&&O(H.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),q&&u.pushUnique(D,q)&&(_=q.prototype,delete _.buildKDTree,Y(_,"markerAttribs",function(ce){return this.boosted?!1:ce.apply(this,[].slice.call(arguments,1))})),Z&&u.pushUnique(D,Z)&&O(Z.prototype,{fill:!0,sampling:!0}),te&&u.pushUnique(D,te)&&(te.prototype.fill=!0),[J,se].forEach(ce=>{ce&&u.pushUnique(D,ce)&&Y(ce.prototype,"drawPoints",P)})}return j},destroyGraphics:x,eachAsync:g,getPoint:R}}),o(t,"Extensions/BoostCanvas.js",[t["Extensions/Boost/BoostChart.js"],t["Extensions/Boost/BoostSeries.js"],t["Core/Chart/Chart.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u,f,p){const{getBoostClipRect:d,isChartSeriesBoosting:v}=i,{destroyGraphics:x}=n,{parse:g}=s,{doc:k,noop:M}=c,{seriesTypes:y}=f,{addEvent:T,extend:I,fireEvent:A,isNumber:R,merge:z,pick:P,wrap:L}=p;let S;return function(){c.seriesTypes.heatmap&&L(c.seriesTypes.heatmap.prototype,"drawPoints",function(){const w=this.chart,E=this.getContext(),m=this.chart.inverted,C=this.xAxis,a=this.yAxis;E?(this.points.forEach(function(l){let h=l.plotY;if(typeof h<"u"&&!isNaN(h)&&l.y!==null&&E){const{x:b=0,y:B=0,width:F=0,height:O=0}=l.shapeArgs||{};l=w.styledMode?l.series.colorAttribs(l):l.series.pointAttribs(l),E.fillStyle=l.fill,m?E.fillRect(a.len-B+C.left,C.len-b+a.top,-O,-F):E.fillRect(b+C.left,B+a.top,F,O)}}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser")}),I(u.prototype,{getContext:function(){const w=this.chart,E=v(w)?w:this,m=E===w?w.seriesGroup:w.seriesGroup||this.group;let C=w.chartWidth,a=w.chartHeight,l,h=function(B,F,O,W,X,Q,ee){B.call(this,O,F,W,X,Q,ee)};const b=E.boost=E.boost||{};return l=b.targetCtx,b.canvas||(b.canvas=k.createElement("canvas"),b.target=w.renderer.image("",0,0,C,a).addClass("highcharts-boost-canvas").add(m),l=b.targetCtx=b.canvas.getContext("2d"),w.inverted&&["moveTo","lineTo","rect","arc"].forEach(B=>{L(l,B,h)}),b.copy=function(){b.target.attr({href:b.canvas.toDataURL("image/png")})},b.clear=function(){l.clearRect(0,0,b.canvas.width,b.canvas.height),E===b.target&&b.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},b.clipRect=w.renderer.clipRect(),b.target.clip(b.clipRect)),b.canvas.width!==C&&(b.canvas.width=C),b.canvas.height!==a&&(b.canvas.height=a),b.target.attr({x:0,y:0,width:C,height:a,style:"pointer-events: none",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}),b.clipRect&&b.clipRect.attr(d(w,E)),l},canvasToSVG:function(){v(this.chart)?this.boost&&this.boost.clear&&this.boost.clear():this.boost&&this.boost.copy?this.boost.copy():this.chart.boost&&this.chart.boost.copy&&this.chart.boost.copy()},cvsLineTo:function(w,E,m){w.lineTo(E,m)},renderCanvas:function(){let w=this,E=w.options,m=w.chart,C=this.xAxis,a=this.yAxis;var l=(m.options.boost||{}).timeRendering||!1;let h,b=0;var B=w.processedXData;let F=w.processedYData,O=E.data;var W=C.getExtremes();let X=W.min,Q=W.max;W=a.getExtremes();let ee=W.min,Y=W.max,D={},N,V=!!w.sampling,j,K=E.marker&&E.marker.radius,_=this.cvsDrawPoint,$=E.lineWidth?this.cvsLineTo:void 0,H=K&&1>=K?this.cvsMarkerSquare:this.cvsMarkerCircle,q=this.cvsStrokeBatch||1e3,Z=E.enableMouseTracking,J;W=E.threshold;let te=a.getThreshold(W),se=R(W),ce=te,ne=this.fill,oe=w.pointArrayMap&&w.pointArrayMap.join(",")==="low,high",U=!!E.stacking,G=w.cropStart||0;W=m.options.loading;let re=w.requireSorting,ie,ae=E.connectNulls,ue=!B,he,me,ve,pe,Se,Le=U?w.data:B||O,Te=w.fillOpacity?s.parse(w.color).setOpacity(P(E.fillOpacity,.75)).get():w.color,Pe=function(){ne?(h.fillStyle=Te,h.fill()):(h.strokeStyle=w.color,h.lineWidth=E.lineWidth,h.stroke())},de=function(Ae,ye,Be,Fe){b===0&&(h.beginPath(),$&&(h.lineJoin="round")),m.scroller&&w.options.className==="highcharts-navigator-series"?(ye+=m.scroller.top,Be&&(Be+=m.scroller.top)):ye+=m.plotTop,Ae+=m.plotLeft,ie?h.moveTo(Ae,ye):_?_(h,Ae,ye,Be,J):$?$(h,Ae,ye):H&&H.call(w,h,Ae,ye,K,Fe),b+=1,b===q&&(Pe(),b=0),J={clientX:Ae,plotY:ye,yBottom:Be}},fe=E.findNearestPointBy==="x",we=this.xData||this.options.xData||this.processedXData||!1,Ie=function(Ae,ye,Be){Se=fe?Ae:Ae+","+ye,Z&&!D[Se]&&(D[Se]=!0,m.inverted&&(Ae=C.len-Ae,ye=a.len-ye),j.push({x:we?we[G+Be]:!1,clientX:Ae,plotX:Ae,plotY:ye,i:G+Be}))};B=this.boost||{},B.target&&B.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}),(this.points||this.graph)&&x(this),w.plotGroup("group","series",w.visible?"visible":"hidden",E.zIndex,m.seriesGroup),w.markerGroup=w.group,T(w,"destroy",function(){w.markerGroup=null}),j=this.points=[],h=this.getContext(),w.buildKDTree=M,B.clear&&B.clear(),this.visible&&(99999<O.length&&(m.options.loading=z(W,{labelStyle:{backgroundColor:g("#ffffff").setOpacity(.75).get(),padding:"1em",borderRadius:"0.5em"},style:{backgroundColor:"none",opacity:1}}),p.clearTimeout(S),m.showLoading("Drawing..."),m.options.loading=W),l&&console.time("canvas rendering"),n.eachAsync(Le,function(Ae,ye){let Be,Fe=!1,_e=!1,Ue=!1,Ye=!1,tt=typeof m.index>"u",Ke=!0;if(!tt){if(ue){var Ct=Ae[0],pt=Ae[1];Le[ye+1]&&(Ue=Le[ye+1][0]),Le[ye-1]&&(Ye=Le[ye-1][0])}else Ct=Ae,pt=F[ye],Le[ye+1]&&(Ue=Le[ye+1]),Le[ye-1]&&(Ye=Le[ye-1]);Ue&&Ue>=X&&Ue<=Q&&(Fe=!0),Ye&&Ye>=X&&Ye<=Q&&(_e=!0),oe?(ue&&(pt=Ae.slice(1,3)),Be=pt[0],pt=pt[1]):U&&(Ct=Ae.x,pt=Ae.stackY,Be=pt-Ae.y),Ae=pt===null,re||(Ke=pt>=ee&&pt<=Y),!Ae&&(Ct>=X&&Ct<=Q&&Ke||Fe||_e)&&(Ct=Math.round(C.toPixels(Ct,!0)),V?((typeof ve>"u"||Ct===N)&&(oe||(Be=pt),(typeof pe>"u"||pt>me)&&(me=pt,pe=ye),(typeof ve>"u"||Be<he)&&(he=Be,ve=ye)),Ct!==N&&(typeof ve<"u"&&(pt=a.toPixels(me,!0),te=a.toPixels(he,!0),de(Ct,se?Math.min(pt,ce):pt,se?Math.max(te,ce):te,ye),Ie(Ct,pt,pe),te!==pt&&Ie(Ct,te,ve)),ve=pe=void 0,N=Ct)):(pt=Math.round(a.toPixels(pt,!0)),de(Ct,pt,te,ye),Ie(Ct,pt,ye))),ie=Ae&&!ae,ye%5e4===0&&(w.boost&&w.boost.copy?w.boost.copy():w.chart.boost&&w.chart.boost.copy&&w.chart.boost.copy())}return!tt},function(){const Ae=m.loadingDiv,ye=m.loadingShown;Pe(),w.canvasToSVG(),l&&console.timeEnd("canvas rendering"),A(w,"renderedCanvas"),ye&&(I(Ae.style,{transition:"opacity 250ms",opacity:0}),m.loadingShown=!1,S=setTimeout(function(){Ae.parentNode&&Ae.parentNode.removeChild(Ae),m.loadingDiv=m.loadingSpan=null},250)),delete w.buildKDTree,w.buildKDTree()},m.renderer.forExport?Number.MAX_VALUE:void 0))}}),y.scatter.prototype.cvsMarkerCircle=function(w,E,m,C){w.moveTo(E,m),w.arc(E,m,C,0,2*Math.PI,!1)},y.scatter.prototype.cvsMarkerSquare=function(w,E,m,C){w.rect(E-C,m-C,2*C,2*C)},y.scatter.prototype.fill=!0,y.bubble&&(y.bubble.prototype.cvsMarkerCircle=function(w,E,m,C,a){w.moveTo(E,m),w.arc(E,m,this.radii&&this.radii[a],0,2*Math.PI,!1)},y.bubble.prototype.cvsStrokeBatch=1),I(y.area.prototype,{cvsDrawPoint:function(w,E,m,C,a){a&&E!==a.clientX&&(w.moveTo(a.clientX,a.yBottom),w.lineTo(a.clientX,a.plotY),w.lineTo(E,m),w.lineTo(E,C))},fill:!0,fillOpacity:!0,sampling:!0}),I(y.column.prototype,{cvsDrawPoint:function(w,E,m,C){w.rect(E-1,m,1,C-m)},fill:!0,sampling:!0}),r.prototype.callbacks.push(function(w){T(w,"predraw",function(){const E=this.boost||{};E.target&&E.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}),E.canvas&&E.canvas.getContext("2d").clearRect(0,0,E.canvas.width,E.canvas.height)}),T(w,"render",function(){w.boost&&w.boost.copy&&w.boost.copy()})})}}),o(t,"Extensions/Boost/NamedColors.js",[],function(){return{defaultHTMLColorMap:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}}),o(t,"Extensions/Boost/Boost.js",[t["Extensions/Boost/BoostChart.js"],t["Extensions/Boost/BoostSeries.js"],t["Core/Globals.js"],t["Extensions/BoostCanvas.js"],t["Extensions/Boost/NamedColors.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u){function f(){let k,M=!1;if(typeof p.WebGLRenderingContext<"u"){k=d.createElement("canvas");for(let y=0;y<g.length;++y)try{if(M=k.getContext(g[y]),typeof M<"u"&&M!==null)return!0}catch{}}return!1}const{win:p,doc:d}=r,{error:v}=u,x=[],g=["webgl","experimental-webgl","moz-webgl","webkit-3d"];return r={compose:function(k,M,y,T){const I=f();I||(typeof s<"u"?s():v(26)),T&&u.pushUnique(x,T)&&(T.names=Object.assign(Object.assign({},T.names),c.defaultHTMLColorMap)),i.compose(k,I),n.compose(M,y,I)},hasWebGLSupport:f},r}),o(t,"masters/modules/boost.src.js",[t["Core/Globals.js"],t["Extensions/Boost/Boost.js"]],function(i,n){i.hasWebGLSupport=n.hasWebGLSupport,n.compose(i.Chart,i.Series,i.seriesTypes,i.Color)})})})(dx);var R5=dx.exports;const L5=or(R5);var hx={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts<"u"?Highcharts:void 0)})(function(t){function o(i,n,r,s){i.hasOwnProperty(n)||(i[n]=s.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:i[n]}})))}t=t?t._modules:{},o(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var i;return function(n){n.compose=function(s){return s.navigation||(s.navigation=new r(s)),s};class r{constructor(c){this.updates=[],this.chart=c}addUpdate(c){this.chart.navigation.updates.push(c)}update(c,u){this.updates.forEach(f=>{f.call(this.chart,c,u)})}}n.Additions=r}(i||(i={})),i}),o(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],function(i){return{isTouchDevice:i}=i,{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:3,height:28,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:i?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),o(t,"Extensions/Exporting/ExportingSymbols.js",[],function(){var i;return function(n){function r(u,f,p,d){return[["M",u,f+2.5],["L",u+p,f+2.5],["M",u,f+d/2+.5],["L",u+p,f+d/2+.5],["M",u,f+d-1.5],["L",u+p,f+d-1.5]]}function s(u,f,p,d){return u=d/3-2,d=[],d=d.concat(this.circle(p-u,f,u,u),this.circle(p-u,f+u+4,u,u),this.circle(p-u,f+2*(u+4),u,u))}const c=[];n.compose=function(u){c.indexOf(u)===-1&&(c.push(u),u=u.prototype.symbols,u.menu=r,u.menuball=s.bind(u))}}(i||(i={})),i}),o(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Utilities.js"]],function(i,n){function r(){this.fullscreen=new f(this)}const{addEvent:s,fireEvent:c}=n,u=[];class f{static compose(d){n.pushUnique(u,d)&&s(d,"beforeRender",r)}constructor(d){this.chart=d,this.isOpen=!1,d=d.renderTo,this.browserProps||(typeof d.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:d.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:d.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:d.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){const d=this,v=d.chart,x=v.options.chart;c(v,"fullscreenClose",null,function(){d.isOpen&&d.browserProps&&v.container.ownerDocument instanceof Document&&v.container.ownerDocument[d.browserProps.exitFullscreen](),d.unbindFullscreenEvent&&(d.unbindFullscreenEvent=d.unbindFullscreenEvent()),v.setSize(d.origWidth,d.origHeight,!1),d.origWidth=void 0,d.origHeight=void 0,x.width=d.origWidthOption,x.height=d.origHeightOption,d.origWidthOption=void 0,d.origHeightOption=void 0,d.isOpen=!1,d.setButtonText()})}open(){const d=this,v=d.chart,x=v.options.chart;c(v,"fullscreenOpen",null,function(){if(x&&(d.origWidthOption=x.width,d.origHeightOption=x.height),d.origWidth=v.chartWidth,d.origHeight=v.chartHeight,d.browserProps){const g=s(v.container.ownerDocument,d.browserProps.fullscreenChange,function(){d.isOpen?(d.isOpen=!1,d.close()):(v.setSize(null,null,!1),d.isOpen=!0,d.setButtonText())}),k=s(v,"destroy",g);d.unbindFullscreenEvent=()=>{g(),k()};const M=v.renderTo[d.browserProps.requestFullscreen]();M&&M.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){var d=this.chart,v=d.exportDivElements;const x=d.options.exporting,g=x&&x.buttons&&x.buttons.contextButton.menuItems;d=d.options.lang,x&&x.menuItemDefinitions&&d&&d.exitFullscreen&&d.viewFullscreen&&g&&v&&(v=v[g.indexOf("viewFullscreen")])&&i.setElementHTML(v,this.isOpen?d.exitFullscreen:x.menuItemDefinitions.viewFullscreen.text||d.viewFullscreen)}toggle(){this.isOpen?this.close():this.open()}}return f}),o(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,n){const{doc:r}=i,{createElement:s,discardElement:c,merge:u,objectEach:f}=n,p={ajax:function(d){const v={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},x=new XMLHttpRequest;if(!d.url)return!1;x.open((d.type||"get").toUpperCase(),d.url,!0),d.headers&&d.headers["Content-Type"]||x.setRequestHeader("Content-Type",v[d.dataType||"json"]||v.text),f(d.headers,function(g,k){x.setRequestHeader(k,g)}),d.responseType&&(x.responseType=d.responseType),x.onreadystatechange=function(){let g;if(x.readyState===4){if(x.status===200){if(d.responseType!=="blob"&&(g=x.responseText,d.dataType==="json"))try{g=JSON.parse(g)}catch(k){if(k instanceof Error){d.error&&d.error(x,k);return}}return d.success&&d.success(g,x)}d.error&&d.error(x,x.responseText)}},d.data&&typeof d.data!="string"&&(d.data=JSON.stringify(d.data)),x.send(d.data)},getJSON:function(d,v){p.ajax({url:d,success:v,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(d,v,x){const g=s("form",u({method:"post",action:d,enctype:"multipart/form-data"},x),{display:"none"},r.body);f(v,function(k,M){s("input",{type:"hidden",name:M,value:k},void 0,g)}),g.submit(),c(g)}};return p}),o(t,"Extensions/Exporting/Exporting.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Chart/Chart.js"],t["Core/Chart/ChartNavigationComposition.js"],t["Core/Defaults.js"],t["Extensions/Exporting/ExportingDefaults.js"],t["Extensions/Exporting/ExportingSymbols.js"],t["Extensions/Exporting/Fullscreen.js"],t["Core/Globals.js"],t["Core/HttpUtilities.js"],t["Core/Utilities.js"]],function(i,n,r,s,c,u,f,p,d,v){const{defaultOptions:x,setOptions:g}=s,{doc:k,SVG_NS:M,win:y}=p,{addEvent:T,css:I,createElement:A,discardElement:R,extend:z,find:P,fireEvent:L,isObject:S,merge:w,objectEach:E,pick:m,removeEvent:C,uniqueKey:a}=v;var l;return function(h){function b(ne){const oe=this,U=oe.renderer,G=w(oe.options.navigation.buttonOptions,ne),re=G.onclick,ie=G.menuItems,ae=G.symbolSize||12;let ue;if(oe.btnCount||(oe.btnCount=0),oe.exportDivElements||(oe.exportDivElements=[],oe.exportSVGElements=[]),G.enabled!==!1&&G.theme){var he=G.theme,me;oe.styledMode||(he.fill=m(he.fill,"#ffffff"),he.stroke=m(he.stroke,"none")),re?me=function(pe){pe&&pe.stopPropagation(),re.call(oe,pe)}:ie&&(me=function(pe){pe&&pe.stopPropagation(),oe.contextMenu(ve.menuClassName,ie,ve.translateX,ve.translateY,ve.width,ve.height,ve),ve.setState(2)}),G.text&&G.symbol?he.paddingLeft=m(he.paddingLeft,30):G.text||z(he,{width:G.width,height:G.height,padding:0}),oe.styledMode||(he["stroke-linecap"]="round",he.fill=m(he.fill,"#ffffff"),he.stroke=m(he.stroke,"none"));var ve=U.button(G.text,0,0,me,he,void 0,void 0,void 0,void 0,G.useHTML).addClass(ne.className).attr({title:m(oe.options.lang[G._titleKey||G.titleKey],"")});ve.menuClassName=ne.menuClassName||"highcharts-menu-"+oe.btnCount++,G.symbol&&(ue=U.symbol(G.symbol,G.symbolX-ae/2,G.symbolY-ae/2,ae,ae,{width:ae,height:ae}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(ve),oe.styledMode||ue.attr({stroke:G.symbolStroke,fill:G.symbolFill,"stroke-width":G.symbolStrokeWidth||1})),ve.add(oe.exportingGroup).align(z(G,{width:ve.width,x:m(G.x,oe.buttonOffset)}),!0,"spacingBox"),oe.buttonOffset+=(ve.width+G.buttonSpacing)*(G.align==="right"?-1:1),oe.exportSVGElements.push(ve,ue)}}function B(){if(this.printReverseInfo){var{childNodes:ne,origDisplay:oe,resetParams:U}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call(ne,function(G,re){G.nodeType===1&&(G.style.display=oe[re]||"")}),this.isPrinting=!1,U&&this.setSize.apply(this,U),delete this.printReverseInfo,ce=void 0,L(this,"afterPrint")}}function F(){const ne=k.body,oe=this.options.exporting.printMaxWidth,U={childNodes:ne.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer.reset(null,0),L(this,"beforePrint"),oe&&this.chartWidth>oe&&(U.resetParams=[this.options.chart.width,void 0,!1],this.setSize(oe,void 0,!1)),[].forEach.call(U.childNodes,function(G,re){G.nodeType===1&&(U.origDisplay[re]=G.style.display,G.style.display="none")}),this.moveContainers(ne),this.printReverseInfo=U}function O(ne){ne.renderExporting(),T(ne,"redraw",ne.renderExporting),T(ne,"destroy",ne.destroyExport)}function W(ne,oe,U,G,re,ie,ae){const ue=this,he=ue.options.navigation,me=ue.chartWidth,ve=ue.chartHeight,pe="cache-"+ne,Se=Math.max(re,ie);let Le,Te=ue[pe];Te||(ue.exportContextMenu=ue[pe]=Te=A("div",{className:ne},{position:"absolute",zIndex:1e3,padding:Se+"px",pointerEvents:"auto"},ue.fixedDiv||ue.container),Le=A("ul",{className:"highcharts-menu"},ue.styledMode?{}:{listStyle:"none",margin:0,padding:0},Te),ue.styledMode||I(Le,z({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},he.menuStyle)),Te.hideMenu=function(){I(Te,{display:"none"}),ae&&ae.setState(0),ue.openMenu=!1,I(ue.renderTo,{overflow:"hidden"}),I(ue.container,{overflow:"hidden"}),v.clearTimeout(Te.hideTimer),L(ue,"exportMenuHidden")},ue.exportEvents.push(T(Te,"mouseleave",function(){Te.hideTimer=y.setTimeout(Te.hideMenu,500)}),T(Te,"mouseenter",function(){v.clearTimeout(Te.hideTimer)}),T(k,"mouseup",function(Pe){ue.pointer.inClass(Pe.target,ne)||Te.hideMenu()}),T(Te,"click",function(){ue.openMenu&&Te.hideMenu()})),oe.forEach(function(Pe){if(typeof Pe=="string"&&(Pe=ue.options.exporting.menuItemDefinitions[Pe]),S(Pe,!0)){let de;Pe.separator?de=A("hr",void 0,void 0,Le):(Pe.textKey==="viewData"&&ue.isDataTableVisible&&(Pe.textKey="hideData"),de=A("li",{className:"highcharts-menu-item",onclick:function(fe){fe&&fe.stopPropagation(),Te.hideMenu(),Pe.onclick&&Pe.onclick.apply(ue,arguments)}},void 0,Le),i.setElementHTML(de,Pe.text||ue.options.lang[Pe.textKey]),ue.styledMode||(de.onmouseover=function(){I(this,he.menuItemHoverStyle)},de.onmouseout=function(){I(this,he.menuItemStyle)},I(de,z({cursor:"pointer"},he.menuItemStyle||{})))),ue.exportDivElements.push(de)}}),ue.exportDivElements.push(Le,Te),ue.exportMenuWidth=Te.offsetWidth,ue.exportMenuHeight=Te.offsetHeight),oe={display:"block"},U+ue.exportMenuWidth>me?oe.right=me-U-re-Se+"px":oe.left=U-Se+"px",G+ie+ue.exportMenuHeight>ve&&ae.alignOptions.verticalAlign!=="top"?oe.bottom=ve-G-Se+"px":oe.top=G+ie-Se+"px",I(Te,oe),I(ue.renderTo,{overflow:""}),I(ue.container,{overflow:""}),ue.openMenu=!0,L(ue,"exportMenuShown")}function X(ne){const oe=ne?ne.target:this,U=oe.exportSVGElements,G=oe.exportDivElements;ne=oe.exportEvents;let re;U&&(U.forEach((ie,ae)=>{ie&&(ie.onclick=ie.ontouchstart=null,re="cache-"+ie.menuClassName,oe[re]&&delete oe[re],U[ae]=ie.destroy())}),U.length=0),oe.exportingGroup&&(oe.exportingGroup.destroy(),delete oe.exportingGroup),G&&(G.forEach(function(ie,ae){ie&&(v.clearTimeout(ie.hideTimer),C(ie,"mouseleave"),G[ae]=ie.onmouseout=ie.onmouseover=ie.ontouchstart=ie.onclick=null,R(ie))}),G.length=0),ne&&(ne.forEach(function(ie){ie()}),ne.length=0)}function Q(ne,oe){oe=this.getSVGForExport(ne,oe),ne=w(this.options.exporting,ne),d.post(ne.url,{filename:ne.filename?ne.filename.replace(/\//g,"-"):this.getFilename(),type:ne.type,width:ne.width,scale:ne.scale,svg:oe},ne.formAttributes)}function ee(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function Y(){const ne=this.userOptions.title&&this.userOptions.title.text;let oe=this.options.exporting.filename;return oe?oe.replace(/\//g,"-"):(typeof ne=="string"&&(oe=ne.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!oe||5>oe.length)&&(oe="chart"),oe)}function D(ne){let oe,U=w(this.options,ne);U.plotOptions=w(this.userOptions.plotOptions,ne&&ne.plotOptions),U.time=w(this.userOptions.time,ne&&ne.time);const G=A("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},k.body);var re=this.renderTo.style.width,ie=this.renderTo.style.height;re=U.exporting.sourceWidth||U.chart.width||/px$/.test(re)&&parseInt(re,10)||(U.isGantt?800:600),ie=U.exporting.sourceHeight||U.chart.height||/px$/.test(ie)&&parseInt(ie,10)||400,z(U.chart,{animation:!1,renderTo:G,forExport:!0,renderer:"SVGRenderer",width:re,height:ie}),U.exporting.enabled=!1,delete U.data,U.series=[],this.series.forEach(function(he){oe=w(he.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:he.visible}),oe.isInternal||U.series.push(oe)});const ae={};this.axes.forEach(function(he){he.userOptions.internalKey||(he.userOptions.internalKey=a()),he.options.isInternal||(ae[he.coll]||(ae[he.coll]=!0,U[he.coll]=[]),U[he.coll].push(w(he.userOptions,{visible:he.visible})))});const ue=new this.constructor(U,this.callback);return ne&&["xAxis","yAxis","series"].forEach(function(he){const me={};ne[he]&&(me[he]=ne[he],ue.update(me))}),this.axes.forEach(function(he){const me=P(ue.axes,function(Se){return Se.options.internalKey===he.userOptions.internalKey});var ve=he.getExtremes();const pe=ve.userMin;ve=ve.userMax,me&&(typeof pe<"u"&&pe!==me.min||typeof ve<"u"&&ve!==me.max)&&me.setExtremes(pe,ve,!0,!1)}),ie=ue.getChartHTML(),L(this,"getSVG",{chartCopy:ue}),ie=this.sanitizeSVG(ie,U),U=null,ue.destroy(),R(G),ie}function N(ne,oe){const U=this.options.exporting;return this.getSVG(w({chart:{borderRadius:0}},U.chartOptions,oe,{exporting:{sourceWidth:ne&&ne.sourceWidth||U.sourceWidth,sourceHeight:ne&&ne.sourceHeight||U.sourceHeight}}))}function V(ne){return ne.replace(/([A-Z])/g,function(oe,U){return"-"+U.toLowerCase()})}function j(){function ne(ue){const he={};let me,ve;if(ae&&ue.nodeType===1&&se.indexOf(ue.nodeName)===-1){if(me=y.getComputedStyle(ue,null),ve=ue.nodeName==="svg"?{}:y.getComputedStyle(ue.parentNode,null),!G[ue.nodeName]){re=ae.getElementsByTagName("svg")[0];var pe=ae.createElementNS(ue.namespaceURI,ue.nodeName);re.appendChild(pe);var Se=y.getComputedStyle(pe,null),Le={};for(var Te in Se)typeof Se[Te]!="string"||/^[0-9]+$/.test(Te)||(Le[Te]=Se[Te]);G[ue.nodeName]=Le,ue.nodeName==="text"&&delete G.text.fill,re.removeChild(pe)}for(const de in me)if(p.isFirefox||p.isMS||p.isSafari||Object.hasOwnProperty.call(me,de)){Te=me[de];var Pe=de;if(pe=Se=!1,U.length){for(Le=U.length;Le--&&!Se;)Se=U[Le].test(Pe);pe=!Se}for(Pe==="transform"&&Te==="none"&&(pe=!0),Le=oe.length;Le--&&!pe;)pe=oe[Le].test(Pe)||typeof Te=="function";pe||ve[Pe]===Te&&ue.nodeName!=="svg"||G[ue.nodeName][Pe]===Te||(te&&te.indexOf(Pe)===-1?he[Pe]=Te:Te&&ue.setAttribute(V(Pe),Te))}I(ue,he),ue.nodeName==="svg"&&ue.setAttribute("stroke-width","1px"),ue.nodeName!=="text"&&[].forEach.call(ue.children||ue.childNodes,ne)}}const oe=J,U=h.inlineAllowlist,G={};let re;const ie=k.createElement("iframe");I(ie,{width:"1px",height:"1px",visibility:"hidden"}),k.body.appendChild(ie);const ae=ie.contentWindow&&ie.contentWindow.document;ae&&ae.body.appendChild(ae.createElementNS(M,"svg")),ne(this.container.querySelector("svg")),re.parentNode.removeChild(re),ie.parentNode.removeChild(ie)}function K(ne){(this.fixedDiv?[this.fixedDiv,this.scrollingContainer]:[this.container]).forEach(function(oe){ne.appendChild(oe)})}function _(){const ne=this;ne.exporting={update:function(oe,U){ne.isDirtyExporting=!0,w(!0,ne.options.exporting,oe),m(U,!0)&&ne.redraw()}},r.compose(ne).navigation.addUpdate((oe,U)=>{ne.isDirtyExporting=!0,w(!0,ne.options.navigation,oe),m(U,!0)&&ne.redraw()})}function $(){const ne=this;ne.isPrinting||(ce=ne,p.isSafari||ne.beforePrint(),setTimeout(()=>{y.focus(),y.print(),p.isSafari||setTimeout(()=>{ne.afterPrint()},1e3)},1))}function H(){const ne=this,oe=ne.options.exporting,U=oe.buttons,G=ne.isDirtyExporting||!ne.exportSVGElements;ne.buttonOffset=0,ne.isDirtyExporting&&ne.destroyExport(),G&&oe.enabled!==!1&&(ne.exportEvents=[],ne.exportingGroup=ne.exportingGroup||ne.renderer.g("exporting-group").attr({zIndex:3}).add(),E(U,function(re){ne.addButton(re)}),ne.isDirtyExporting=!1)}function q(ne,oe){const U=ne.indexOf("</svg>")+6;let G=ne.substr(U);return ne=ne.substr(0,U),oe&&oe.exporting&&oe.exporting.allowHTML&&G&&(G='<foreignObject x="0" y="0" width="'+oe.chart.width+'" height="'+oe.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+G.replace(/(<(?:img|br).*?(?=>))>/g,"$1 />")+"</body></foreignObject>",ne=ne.replace("</svg>",G+"</svg>")),ne=ne.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;);?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+:)href=/g," xlink:href=").replace(/\n/," ").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g," ").replace(/&shy;/g,"­")}const Z=[],J=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^[0-9]+$/],te="fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");h.inlineAllowlist=[];const se=["clipPath","defs","desc"];let ce;h.compose=function(ne,oe){u.compose(oe),f.compose(ne),v.pushUnique(Z,ne)&&(oe=ne.prototype,oe.afterPrint=B,oe.exportChart=Q,oe.inlineStyles=j,oe.print=$,oe.sanitizeSVG=q,oe.getChartHTML=ee,oe.getSVG=D,oe.getSVGForExport=N,oe.getFilename=Y,oe.moveContainers=K,oe.beforePrint=F,oe.contextMenu=W,oe.addButton=b,oe.destroyExport=X,oe.renderExporting=H,oe.callbacks.push(O),T(ne,"init",_),p.isSafari&&p.win.matchMedia("print").addListener(function(U){ce&&(U.matches?ce.beforePrint():ce.afterPrint())})),v.pushUnique(Z,g)&&(x.exporting=w(c.exporting,x.exporting),x.lang=w(c.lang,x.lang),x.navigation=w(c.navigation,x.navigation))}}(l||(l={})),l}),o(t,"masters/modules/exporting.src.js",[t["Core/Globals.js"],t["Extensions/Exporting/Exporting.js"],t["Core/HttpUtilities.js"]],function(i,n,r){i.HttpUtilities=r,i.ajax=r.ajax,i.getJSON=r.getJSON,i.post=r.post,n.compose(i.Chart,i.Renderer)})})})(hx);var D5=hx.exports;const I5=or(D5);var ux={exports:{}};(function(e){var t=t||{};t.scope={},t.ASSUME_ES5=!1,t.ASSUME_NO_NATIVE_MAP=!1,t.ASSUME_NO_NATIVE_SET=!1,t.SIMPLE_FROUND_POLYFILL=!1,t.ISOLATE_POLYFILLS=!1,t.defineProperty=t.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(o,i,n){return o==Array.prototype||o==Object.prototype||(o[i]=n.value),o},t.getGlobal=function(o){o=[typeof globalThis=="object"&&globalThis,o,typeof window=="object"&&window,typeof self=="object"&&self,typeof Vs=="object"&&Vs];for(var i=0;i<o.length;++i){var n=o[i];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},t.global=t.getGlobal(Vs),t.polyfills={},t.propertyToPolyfillSymbol={},t.POLYFILL_PREFIX="$jscp$",t.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",t.polyfill=function(o,i,n,r){i&&(t.ISOLATE_POLYFILLS?t.polyfillIsolated(o,i,n,r):t.polyfillUnisolated(o,i,n,r))},t.polyfillUnisolated=function(o,i,n,r){for(n=t.global,o=o.split("."),r=0;r<o.length-1;r++){var s=o[r];s in n||(n[s]={}),n=n[s]}o=o[o.length-1],r=n[o],i=i(r),i!=r&&i!=null&&t.defineProperty(n,o,{configurable:!0,writable:!0,value:i})},t.polyfillIsolated=function(o,i,n,r){var s=o.split(".");o=s.length===1,r=s[0],r=!o&&r in t.polyfills?t.polyfills:t.global;for(var c=0;c<s.length-1;c++){var u=s[c];u in r||(r[u]={}),r=r[u]}s=s[s.length-1],n=t.IS_SYMBOL_NATIVE&&n==="es6"?r[s]:null,i=i(n),i!=null&&(o?t.defineProperty(t.polyfills,s,{configurable:!0,writable:!0,value:i}):i!==n&&(t.propertyToPolyfillSymbol[s]=t.IS_SYMBOL_NATIVE?t.global.Symbol(s):t.POLYFILL_PREFIX+s,s=t.propertyToPolyfillSymbol[s],t.defineProperty(r,s,{configurable:!0,writable:!0,value:i})))},t.polyfill("Array.prototype.includes",function(o){return o||function(i,n){var r=this;r instanceof String&&(r=String(r));var s=r.length;for(n=n||0,0>n&&(n=Math.max(n+s,0));n<s;n++){var c=r[n];if(c===i||Object.is(c,i))return!0}return!1}},"es7","es3"),function(o){e.exports?(o.default=o,e.exports=o):o(typeof Highcharts<"u"?Highcharts:void 0)}(function(o){function i(n,r,s,c){n.hasOwnProperty(r)||(n[r]=c.apply(null,s),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:r,module:n[r]}})))}o=o?o._modules:{},i(o,"Extensions/ExportData/ExportDataDefaults.js",[],function(){return{exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:`
  1930. `},showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",hideData:"Hide data table"}}}),i(o,"Extensions/DownloadURL.js",[o["Core/Globals.js"]],function(n){const{isSafari:r}=n,s=n.win,c=s.document,u=s.URL||s.webkitURL||s,f=n.dataURLtoBlob=function(p){if((p=p.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/))&&3<p.length&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&s.Blob&&u.createObjectURL){const v=s.atob(p[3]);var d=new s.ArrayBuffer(v.length);d=new s.Uint8Array(d);for(let x=0;x<d.length;++x)d[x]=v.charCodeAt(x);return p=new s.Blob([d],{type:p[1]}),u.createObjectURL(p)}};return n=n.downloadURL=function(p,d){var v=s.navigator;const x=c.createElement("a");if(typeof p=="string"||p instanceof String||!v.msSaveOrOpenBlob){if(p=`${p}`,v=/Edge\/\d+/.test(v.userAgent),(r&&typeof p=="string"&&p.indexOf("data:application/pdf")===0||v||2e6<p.length)&&(p=f(p)||"",!p))throw Error("Failed to convert to blob");if(typeof x.download<"u")x.href=p,x.download=d,c.body.appendChild(x),x.click(),c.body.removeChild(x);else try{const g=s.open(p,"chart");if(typeof g>"u"||g===null)throw Error("Failed to open window")}catch{s.location.href=p}}else v.msSaveOrOpenBlob(p,d)},{dataURLtoBlob:f,downloadURL:n}}),i(o,"Extensions/ExportData/ExportData.js",[o["Core/Renderer/HTML/AST.js"],o["Extensions/ExportData/ExportDataDefaults.js"],o["Core/Globals.js"],o["Core/Defaults.js"],o["Extensions/DownloadURL.js"],o["Core/Series/SeriesRegistry.js"],o["Core/Utilities.js"]],function(n,r,s,c,u,f,p){function d(){const D=this.getCSV(!0);E(A(D,"text/csv")||"data:text/csv,\uFEFF"+encodeURIComponent(D),this.getFilename()+".csv")}function v(){const D='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>'+this.getTable(!0)+"</body></html>";E(A(D,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+L.btoa(unescape(encodeURIComponent(D))),this.getFilename()+".xls")}function x(D){let N="";const V=this.getDataRows(),j=this.options.exporting.csv,K=ee(j.decimalPoint,j.itemDelimiter!==","&&D?1.1.toLocaleString()[1]:"."),_=ee(j.itemDelimiter,K===","?";":","),$=j.lineDelimiter;return V.forEach((H,q)=>{let Z,J=H.length;for(;J--;)Z=H[J],typeof Z=="string"&&(Z='"'+Z+'"'),typeof Z=="number"&&K!=="."&&(Z=Z.toString().replace(".",K)),H[J]=Z;H.length=V.length?V[0].length:0,N+=H.join(_),q<V.length-1&&(N+=$)}),N}function g(D){const N=this.hasParallelCoordinates,V=this.time,j=this.options.exporting&&this.options.exporting.csv||{},K=this.xAxis,_={},$=[],H=[],q=[];var Z=this.options.lang.exportData;const J=Z.categoryHeader,te=Z.categoryDatetimeHeader,se=function(he,me,ve){if(j.columnHeaderFormatter){const pe=j.columnHeaderFormatter(he,me,ve);if(pe!==!1)return pe}return he?he instanceof m?D?{columnTitle:1<ve?me:he.name,topLevelColumnTitle:he.name}:he.name+(1<ve?" ("+me+")":""):he.options.title&&he.options.title.text||(he.dateTime?te:J):J},ce=function(he,me,ve){const pe={},Se={};return me.forEach(function(Le){var Te=(he.keyToAxis&&he.keyToAxis[Le]||Le)+"Axis";Te=Q(ve)?he.chart[Te][ve]:he[Te],pe[Le]=Te&&Te.categories||[],Se[Le]=Te&&Te.dateTime}),{categoryMap:pe,dateTimeValueAxisMap:Se}},ne=function(he,me){return he.data.filter(ve=>typeof ve.y<"u"&&ve.name).length&&me&&!me.categories&&!he.keyToAxis?he.pointArrayMap&&he.pointArrayMap.filter(ve=>ve==="x").length?(he.pointArrayMap.unshift("x"),he.pointArrayMap):["x","y"]:he.pointArrayMap||["y"]},oe=[];let U,G,re=0;this.series.forEach(function(he){const me=he.xAxis,ve=he.options.keys||ne(he,me),pe=ve.length,Se=!he.requireSorting&&{},Le=K.indexOf(me);let Te=ce(he,ve),Pe,de;if(he.options.includeInDataExport!==!1&&!he.options.isInternal&&he.visible!==!1){for(W(oe,function(fe){return fe[0]===Le})||oe.push([Le,re]),de=0;de<pe;)G=se(he,ve[de],ve.length),q.push(G.columnTitle||G),D&&H.push(G.topLevelColumnTitle||G),de++;Pe={chart:he.chart,autoIncrement:he.autoIncrement,options:he.options,pointArrayMap:he.pointArrayMap,index:he.index},he.options.data.forEach(function(fe,we){const Ie={series:Pe};let Ae;for(N&&(Te=ce(he,ve,we)),he.pointClass.prototype.applyOptions.apply(Ie,[fe]),Ae=Ie.x,F(_[Ae])&&_[Ae].seriesIndices.includes(Pe.index)&&(fe=Object.keys(_).filter(ye=>_[ye].seriesIndices.includes(Pe.index)&&Ae).filter(ye=>ye.indexOf(String(Ae))===0),Ae=Ae.toString()+","+fe.length),fe=he.data[we]&&he.data[we].name,de=0,(!me||he.exportKey==="name"||!N&&me&&me.hasNames&&fe)&&(Ae=fe),Se&&(Se[Ae]&&(Ae+="|"+we),Se[Ae]=!0),_[Ae]||(_[Ae]=[],_[Ae].xValues=[]),_[Ae].x=Ie.x,_[Ae].name=fe,_[Ae].xValues[Le]=Ie.x,F(_[Ae].seriesIndices)||(_[Ae].seriesIndices=[]),_[Ae].seriesIndices=[..._[Ae].seriesIndices,Pe.index];de<pe;)we=ve[de],fe=Ie[we],_[Ae][re+de]=ee(Te.categoryMap[we][fe],Te.dateTimeValueAxisMap[we]?V.dateFormat(j.dateFormat,fe):null,fe),de++}),re+=de}});for(ue in _)Object.hasOwnProperty.call(_,ue)&&$.push(_[ue]);let ie,ae;for(Z=D?[H,q]:[q],re=oe.length;re--;){ie=oe[re][0],ae=oe[re][1],U=K[ie],$.sort(function(he,me){return he.xValues[ie]-me.xValues[ie]});var ue=se(U);Z[0].splice(ae,0,ue),D&&Z[1]&&Z[1].splice(ae,0,ue),$.forEach(function(he){let me=he.name;U&&!F(me)&&(U.dateTime?(he.x instanceof Date&&(he.x=he.x.getTime()),me=V.dateFormat(j.dateFormat,he.x)):me=U.categories?ee(U.names[he.x],U.categories[he.x],he.x):he.x),he.splice(ae,0,me)})}return Z=Z.concat($),X(this,"exportData",{dataRows:Z}),Z}function k(D){const N=V=>{if(!V.tagName||V.tagName==="#text")return V.textContent||"";const j=V.attributes;let K=`<${V.tagName}`;return j&&Object.keys(j).forEach(_=>{K+=` ${_}="${j[_]}"`}),K+=">",K+=V.textContent||"",(V.children||[]).forEach(_=>{K+=N(_)}),K+=`</${V.tagName}>`};return D=this.getTableAST(D),N(D)}function M(D){let N=0;var V=[];const j=this.options,K=D?1.1.toLocaleString()[1]:".",_=ee(j.exporting.useMultiLevelHeaders,!0);D=this.getDataRows(_);const $=_?D.shift():null,H=D.shift(),q=function(J,te,se,ce){let ne=ee(ce,"");return te="highcharts-text"+(te?" "+te:""),typeof ne=="number"?(ne=ne.toString(),K===","&&(ne=ne.replace(".",K)),te="highcharts-number"):ce||(te="highcharts-empty"),se=O({class:te},se),{tagName:J,attributes:se,textContent:ne}};j.exporting.tableCaption!==!1&&V.push({tagName:"caption",attributes:{class:"highcharts-table-caption"},textContent:ee(j.exporting.tableCaption,j.title.text?j.title.text:"Chart")});for(let J=0,te=D.length;J<te;++J)D[J].length>N&&(N=D[J].length);V.push(function(J,te,se){const ce=[];let ne=0;se=se||te&&te.length;let oe=0;var U;if(U=_&&J&&te){e:if(U=J.length,te.length===U){for(;U--;)if(J[U]!==te[U]){U=!1;break e}U=!0}else U=!1;U=!U}if(U){for(U=[];ne<se;++ne){var G=J[ne],re=J[ne+1];G===re?++oe:oe?(U.push(q("th","highcharts-table-topheading",{scope:"col",colspan:oe+1},G)),oe=0):(G===te[ne]?j.exporting.useRowspanHeaders?(re=2,delete te[ne]):(re=1,te[ne]=""):re=1,G=q("th","highcharts-table-topheading",{scope:"col"},G),1<re&&G.attributes&&(G.attributes.valign="top",G.attributes.rowspan=re),U.push(G))}ce.push({tagName:"tr",children:U})}if(te){for(J=[],ne=0,se=te.length;ne<se;++ne)typeof te[ne]<"u"&&J.push(q("th",null,{scope:"col"},te[ne]));ce.push({tagName:"tr",children:J})}return{tagName:"thead",children:ce}}($,H,Math.max(N,H.length)));const Z=[];return D.forEach(function(J){const te=[];for(let se=0;se<N;se++)te.push(q(se?"td":"th",null,se?{}:{scope:"row"},J[se]));Z.push({tagName:"tr",children:te})}),V.push({tagName:"tbody",children:Z}),V={tree:{tagName:"table",id:`highcharts-data-table-${this.index}`,children:V}},X(this,"aftergetTableAST",V),V.tree}function y(){this.toggleDataTable(!1)}function T(D){var N=(D=ee(D,!this.isDataTableVisible))&&!this.dataTableDiv;if(N&&(this.dataTableDiv=P.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling)),this.dataTableDiv){var V=this.dataTableDiv.style,j=V.display;V.display=D?"block":"none",D&&(this.dataTableDiv.innerHTML=n.emptyHTML,new n([this.getTableAST()]).addToDOM(this.dataTableDiv),X(this,"afterViewData",{element:this.dataTableDiv,wasHidden:N||j!==V.display}))}this.isDataTableVisible=D,N=this.exportDivElements,j=(V=this.options.exporting)&&V.buttons&&V.buttons.contextButton.menuItems,D=this.options.lang,V&&V.menuItemDefinitions&&D&&D.viewData&&D.hideData&&j&&N&&(N=N[j.indexOf("viewData")])&&n.setElementHTML(N,this.isDataTableVisible?D.hideData:D.viewData)}function I(){this.toggleDataTable(!0)}function A(D,N){const V=L.navigator,j=-1<V.userAgent.indexOf("WebKit")&&0>V.userAgent.indexOf("Chrome"),K=L.URL||L.webkitURL||L;try{if(V.msSaveOrOpenBlob&&L.MSBlobBuilder){const _=new L.MSBlobBuilder;return _.append(D),_.getBlob("image/svg+xml")}if(!j)return K.createObjectURL(new L.Blob(["\uFEFF"+D],{type:N}))}catch{}}function R(){const D=this,N=D.dataTableDiv,V=(j,K)=>(_,$)=>{var H=(K?_:$).children[j].textContent;return _=(K?$:_).children[j].textContent,H===""||_===""||isNaN(H)||isNaN(_)?H.toString().localeCompare(_):H-_};if(N&&D.options.exporting&&D.options.exporting.allowTableSorting){const j=N.querySelector("thead tr");j&&j.childNodes.forEach(K=>{const _=K.closest("table");K.addEventListener("click",function(){const $=[...N.querySelectorAll("tr:not(thead tr)")],H=[...K.parentNode.children];$.sort(V(H.indexOf(K),D.ascendingOrderInTable=!D.ascendingOrderInTable)).forEach(q=>{_.appendChild(q)}),H.forEach(q=>{["highcharts-sort-ascending","highcharts-sort-descending"].forEach(Z=>{q.classList.contains(Z)&&q.classList.remove(Z)})}),K.classList.add(D.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending")})})}}function z(){this.options&&this.options.exporting&&this.options.exporting.showTable&&!this.options.chart.forExport&&this.viewData()}const{doc:P,win:L}=s,{getOptions:S,setOptions:w}=c,{downloadURL:E}=u,{series:m,seriesTypes:{arearange:C,gantt:a,map:l,mapbubble:h,treemap:b}}=f,{addEvent:B,defined:F,extend:O,find:W,fireEvent:X,isNumber:Q,pick:ee}=p,Y=[];return{compose:function(D){p.pushUnique(Y,D)&&(B(D,"afterViewData",R),B(D,"render",z),D=D.prototype,D.downloadCSV=d,D.downloadXLS=v,D.getCSV=x,D.getDataRows=g,D.getTable=k,D.getTableAST=M,D.hideData=y,D.toggleDataTable=T,D.viewData=I),p.pushUnique(Y,w)&&((D=S().exporting)&&(O(D.menuItemDefinitions,{downloadCSV:{textKey:"downloadCSV",onclick:function(){this.downloadCSV()}},downloadXLS:{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},viewData:{textKey:"viewData",onclick:function(){this.toggleDataTable()}}}),D.buttons&&D.buttons.contextButton.menuItems&&D.buttons.contextButton.menuItems.push("separator","downloadCSV","downloadXLS","viewData")),w(r)),C&&p.pushUnique(Y,C)&&(C.prototype.keyToAxis={low:"y",high:"y"}),a&&p.pushUnique(Y,a)&&(a.prototype.keyToAxis={start:"x",end:"x"}),l&&p.pushUnique(Y,l)&&(l.prototype.exportKey="name"),h&&p.pushUnique(Y,h)&&(h.prototype.exportKey="name"),b&&p.pushUnique(Y,b)&&(b.prototype.exportKey="name")}}}),i(o,"masters/modules/export-data.src.js",[o["Core/Globals.js"],o["Extensions/ExportData/ExportData.js"]],function(n,r){r.compose(n.Chart)})})})(ux);var B5=ux.exports;const _5=or(B5);O5(ll);L5(ll);I5(ll);_5(ll);/*!
  1931. * vuex v4.1.0
  1932. * (c) 2022 Evan You
  1933. * @license MIT
  1934. */var fx="store";function EF(e){return e===void 0&&(e=null),Xe(e!==null?e:fx)}function nr(e,t){Object.keys(e).forEach(function(o){return t(e[o],o)})}function z5(e){return e!==null&&typeof e=="object"}function $5(e){return e&&typeof e.then=="function"}function F5(e,t){return function(){return e(t)}}function px(e,t,o){return t.indexOf(e)<0&&(o&&o.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function gx(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;cl(e,o,[],e._modules.root,!0),bh(e,o,t)}function bh(e,t,o){var i=e._state,n=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,s={},c={},u=vp(!0);u.run(function(){nr(r,function(f,p){s[p]=F5(f,e),c[p]=be(function(){return s[p]()}),Object.defineProperty(e.getters,p,{get:function(){return c[p].value},enumerable:!0})})}),e._state=Oo({data:t}),e._scope=u,e.strict&&U5(e),i&&o&&e._withCommit(function(){i.data=null}),n&&n.stop()}function cl(e,t,o,i,n){var r=!o.length,s=e._modules.getNamespace(o);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!r&&!n){var c=yh(t,o.slice(0,-1)),u=o[o.length-1];e._withCommit(function(){c[u]=i.state})}var f=i.context=H5(e,s,o);i.forEachMutation(function(p,d){var v=s+d;j5(e,v,p,f)}),i.forEachAction(function(p,d){var v=p.root?d:s+d,x=p.handler||p;N5(e,v,x,f)}),i.forEachGetter(function(p,d){var v=s+d;W5(e,v,p,f)}),i.forEachChild(function(p,d){cl(e,t,o.concat(d),p,n)})}function H5(e,t,o){var i=t==="",n={dispatch:i?e.dispatch:function(r,s,c){var u=wa(r,s,c),f=u.payload,p=u.options,d=u.type;return(!p||!p.root)&&(d=t+d),e.dispatch(d,f)},commit:i?e.commit:function(r,s,c){var u=wa(r,s,c),f=u.payload,p=u.options,d=u.type;(!p||!p.root)&&(d=t+d),e.commit(d,f,p)}};return Object.defineProperties(n,{getters:{get:i?function(){return e.getters}:function(){return mx(e,t)}},state:{get:function(){return yh(e.state,o)}}}),n}function mx(e,t){if(!e._makeLocalGettersCache[t]){var o={},i=t.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,i)===t){var r=n.slice(i);Object.defineProperty(o,r,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[t]=o}return e._makeLocalGettersCache[t]}function j5(e,t,o,i){var n=e._mutations[t]||(e._mutations[t]=[]);n.push(function(s){o.call(e,i.state,s)})}function N5(e,t,o,i){var n=e._actions[t]||(e._actions[t]=[]);n.push(function(s){var c=o.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},s);return $5(c)||(c=Promise.resolve(c)),e._devtoolHook?c.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):c})}function W5(e,t,o,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return o(i.state,i.getters,r.state,r.getters)})}function U5(e){lt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function yh(e,t){return t.reduce(function(o,i){return o[i]},e)}function wa(e,t,o){return z5(e)&&e.type&&(o=t,t=e,e=e.type),{type:e,payload:t,options:o}}var G5="vuex bindings",dp="vuex:mutations",Kl="vuex:actions",mn="vuex",V5=0;function X5(e,t){eC({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[G5]},function(o){o.addTimelineLayer({id:dp,label:"Vuex Mutations",color:hp}),o.addTimelineLayer({id:Kl,label:"Vuex Actions",color:hp}),o.addInspector({id:mn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(i){if(i.app===e&&i.inspectorId===mn)if(i.filter){var n=[];yx(n,t._modules.root,i.filter,""),i.rootNodes=n}else i.rootNodes=[bx(t._modules.root,"")]}),o.on.getInspectorState(function(i){if(i.app===e&&i.inspectorId===mn){var n=i.nodeId;mx(t,n),i.state=K5(J5(t._modules,n),n==="root"?t.getters:t._makeLocalGettersCache,n)}}),o.on.editInspectorState(function(i){if(i.app===e&&i.inspectorId===mn){var n=i.nodeId,r=i.path;n!=="root"&&(r=n.split("/").filter(Boolean).concat(r)),t._withCommit(function(){i.set(t._state.data,r,i.state.value)})}}),t.subscribe(function(i,n){var r={};i.payload&&(r.payload=i.payload),r.state=n,o.notifyComponentUpdate(),o.sendInspectorTree(mn),o.sendInspectorState(mn),o.addTimelineEvent({layerId:dp,event:{time:Date.now(),title:i.type,data:r}})}),t.subscribeAction({before:function(i,n){var r={};i.payload&&(r.payload=i.payload),i._id=V5++,i._time=Date.now(),r.state=n,o.addTimelineEvent({layerId:Kl,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:r}})},after:function(i,n){var r={},s=Date.now()-i._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},i.payload&&(r.payload=i.payload),r.state=n,o.addTimelineEvent({layerId:Kl,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:r}})}})})}var hp=8702998,q5=6710886,Y5=16777215,vx={label:"namespaced",textColor:Y5,backgroundColor:q5};function xx(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function bx(e,t){return{id:t||"root",label:xx(t),tags:e.namespaced?[vx]:[],children:Object.keys(e._children).map(function(o){return bx(e._children[o],t+o+"/")})}}function yx(e,t,o,i){i.includes(o)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[vx]:[]}),Object.keys(t._children).forEach(function(n){yx(e,t._children[n],o,i+n+"/")})}function K5(e,t,o){t=o==="root"?t:t[o];var i=Object.keys(t),n={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(i.length){var r=Z5(t);n.getters=Object.keys(r).map(function(s){return{key:s.endsWith("/")?xx(s):s,editable:!1,value:Qc(function(){return r[s]})}})}return n}function Z5(e){var t={};return Object.keys(e).forEach(function(o){var i=o.split("/");if(i.length>1){var n=t,r=i.pop();i.forEach(function(s){n[s]||(n[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),n=n[s]._custom.value}),n[r]=Qc(function(){return e[o]})}else t[o]=Qc(function(){return e[o]})}),t}function J5(e,t){var o=t.split("/").filter(function(i){return i});return o.reduce(function(i,n,r){var s=i[n];if(!s)throw new Error('Missing module "'+n+'" for path "'+t+'".');return r===o.length-1?s:s._children},t==="root"?e:e.root._children)}function Qc(e){try{return e()}catch(t){return t}}var yo=function(t,o){this.runtime=o,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=(typeof i=="function"?i():i)||{}},Cx={namespaced:{configurable:!0}};Cx.namespaced.get=function(){return!!this._rawModule.namespaced};yo.prototype.addChild=function(t,o){this._children[t]=o};yo.prototype.removeChild=function(t){delete this._children[t]};yo.prototype.getChild=function(t){return this._children[t]};yo.prototype.hasChild=function(t){return t in this._children};yo.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};yo.prototype.forEachChild=function(t){nr(this._children,t)};yo.prototype.forEachGetter=function(t){this._rawModule.getters&&nr(this._rawModule.getters,t)};yo.prototype.forEachAction=function(t){this._rawModule.actions&&nr(this._rawModule.actions,t)};yo.prototype.forEachMutation=function(t){this._rawModule.mutations&&nr(this._rawModule.mutations,t)};Object.defineProperties(yo.prototype,Cx);var ln=function(t){this.register([],t,!1)};ln.prototype.get=function(t){return t.reduce(function(o,i){return o.getChild(i)},this.root)};ln.prototype.getNamespace=function(t){var o=this.root;return t.reduce(function(i,n){return o=o.getChild(n),i+(o.namespaced?n+"/":"")},"")};ln.prototype.update=function(t){wx([],this.root,t)};ln.prototype.register=function(t,o,i){var n=this;i===void 0&&(i=!0);var r=new yo(o,i);if(t.length===0)this.root=r;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],r)}o.modules&&nr(o.modules,function(c,u){n.register(t.concat(u),c,i)})};ln.prototype.unregister=function(t){var o=this.get(t.slice(0,-1)),i=t[t.length-1],n=o.getChild(i);n&&n.runtime&&o.removeChild(i)};ln.prototype.isRegistered=function(t){var o=this.get(t.slice(0,-1)),i=t[t.length-1];return o?o.hasChild(i):!1};function wx(e,t,o){if(t.update(o),o.modules)for(var i in o.modules){if(!t.getChild(i))return;wx(e.concat(i),t.getChild(i),o.modules[i])}}function Q5(e){return new to(e)}var to=function(t){var o=this;t===void 0&&(t={});var i=t.plugins;i===void 0&&(i=[]);var n=t.strict;n===void 0&&(n=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ln(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var s=this,c=this,u=c.dispatch,f=c.commit;this.dispatch=function(v,x){return u.call(s,v,x)},this.commit=function(v,x,g){return f.call(s,v,x,g)},this.strict=n;var p=this._modules.root.state;cl(this,p,[],this._modules.root),bh(this,p),i.forEach(function(d){return d(o)})},Ch={state:{configurable:!0}};to.prototype.install=function(t,o){t.provide(o||fx,this),t.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&X5(t,this)};Ch.state.get=function(){return this._state.data};Ch.state.set=function(e){};to.prototype.commit=function(t,o,i){var n=this,r=wa(t,o,i),s=r.type,c=r.payload,u={type:s,payload:c},f=this._mutations[s];f&&(this._withCommit(function(){f.forEach(function(d){d(c)})}),this._subscribers.slice().forEach(function(p){return p(u,n.state)}))};to.prototype.dispatch=function(t,o){var i=this,n=wa(t,o),r=n.type,s=n.payload,c={type:r,payload:s},u=this._actions[r];if(u){try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(c,i.state)})}catch{}var f=u.length>1?Promise.all(u.map(function(p){return p(s)})):u[0](s);return new Promise(function(p,d){f.then(function(v){try{i._actionSubscribers.filter(function(x){return x.after}).forEach(function(x){return x.after(c,i.state)})}catch{}p(v)},function(v){try{i._actionSubscribers.filter(function(x){return x.error}).forEach(function(x){return x.error(c,i.state,v)})}catch{}d(v)})})}};to.prototype.subscribe=function(t,o){return px(t,this._subscribers,o)};to.prototype.subscribeAction=function(t,o){var i=typeof t=="function"?{before:t}:t;return px(i,this._actionSubscribers,o)};to.prototype.watch=function(t,o,i){var n=this;return lt(function(){return t(n.state,n.getters)},o,Object.assign({},i))};to.prototype.replaceState=function(t){var o=this;this._withCommit(function(){o._state.data=t})};to.prototype.registerModule=function(t,o,i){i===void 0&&(i={}),typeof t=="string"&&(t=[t]),this._modules.register(t,o),cl(this,this.state,t,this._modules.get(t),i.preserveState),bh(this,this.state)};to.prototype.unregisterModule=function(t){var o=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var i=yh(o.state,t.slice(0,-1));delete i[t[t.length-1]]}),gx(this)};to.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};to.prototype.hotUpdate=function(t){this._modules.update(t),gx(this,!0)};to.prototype._withCommit=function(t){var o=this._committing;this._committing=!0,t(),this._committing=o};Object.defineProperties(to.prototype,Ch);const e3=Q5({state:{TaskId:"",plotLineList:{tBottom:null,tTop:null,hBottom:null,hTop:null},focuDatas:null,setcopyData:{T_copy_task_id:"",T_paste_task_id:""}},getters:{},mutations:{setfocuFun(e,t){e.focuDatas=t},setplotData(e,t){console.log("存储",t),e.plotLineList=t},setcopy(e,t){console.log("复制",t),e.setcopyData=t},setTaskId(e,t){e.TaskId=t}},actions:{}}),dl=Eg(R_);dl.use(e3);dl.use(xh);dl.use(oC());dl.mount("#app");export{Je as $,Ha as A,EF as B,be as C,Ft as D,Vo as E,ut as F,Bn as G,nt as H,nx as I,j3 as J,Fz as K,lt as L,P0 as M,$l as N,zt as O,N3 as P,f3 as Q,p3 as R,Kn as S,Me as T,Ce as U,xe as V,Rt as W,Qn as X,_t as Y,Oe as Z,EO as _,Vn as a,Od as a$,pF as a0,jt as a1,Qe as a2,De as a3,Wi as a4,ze as a5,lF as a6,an as a7,Ka as a8,Kd as a9,Qo as aA,sO as aB,Ym as aC,L1 as aD,aO as aE,We as aF,uO as aG,Tn as aH,Xn as aI,ss as aJ,Zd as aK,Qd as aL,va as aM,Jd as aN,ih as aO,yc as aP,ca as aQ,Jt as aR,uC as aS,D2 as aT,Xe as aU,aF as aV,Go as aW,Ur as aX,Gw as aY,ct as aZ,Ed as a_,Bd as aa,et as ab,da as ac,Kt as ad,on as ae,Xo as af,Tt as ag,Et as ah,mi as ai,Eo as aj,cF as ak,ot as al,SF as am,fs as an,PF as ao,p5 as ap,AF as aq,M5 as ar,Vs as as,or as at,$R as au,gd as av,ix as aw,jg as ax,BC as ay,CF as az,S0 as b,u3 as b$,Md as b0,gm as b1,as as b2,th as b3,Zn as b4,gF as b5,Vw as b6,Rd as b7,im as b8,FC as b9,wi as bA,Kr as bB,kF as bC,Fa as bD,bF as bE,Td as bF,W2 as bG,ui as bH,Ji as bI,Ld as bJ,_d as bK,Pi as bL,Ro as bM,vF as bN,Dt as bO,WC as bP,wF as bQ,Sy as bR,Up as bS,Ht as bT,mp as bU,b3 as bV,Ea as bW,kn as bX,m3 as bY,Vi as bZ,kd as b_,is as ba,TF as bb,MF as bc,Pd as bd,rF as be,Ts as bf,qi as bg,so as bh,$n as bi,mF as bj,o0 as bk,Vr as bl,Dg as bm,xc as bn,xo as bo,yF as bp,qg as bq,qa as br,Mm as bs,er as bt,VR as bu,bt as bv,zn as bw,VI as bx,PE as by,Xa as bz,Cd as c,q3 as c$,ho as c0,pi as c1,ro as c2,Ta as c3,Y3 as c4,Eg as c5,Xy as c6,z3 as c7,Vy as c8,tF as c9,U3 as cA,oa as cB,bi as cC,Dr as cD,B3 as cE,_3 as cF,Aa as cG,t3 as cH,ud as cI,Zi as cJ,Py as cK,fd as cL,Oy as cM,Ey as cN,My as cO,i3 as cP,Ay as cQ,pd as cR,Dp as cS,zp as cT,Uo as cU,W3 as cV,au as cW,Yp as cX,Xp as cY,C3 as cZ,y3 as c_,S3 as ca,c3 as cb,x3 as cc,P1 as cd,P3 as ce,A3 as cf,O3 as cg,M3 as ch,T3 as ci,K3 as cj,E3 as ck,sr as cl,n3 as cm,vp as cn,yb as co,hd as cp,Qy as cq,Gn as cr,F3 as cs,G1 as ct,G3 as cu,oF as cv,a1 as cw,Rp as cx,Cn as cy,On as cz,Ne as d,a2 as d$,Fr as d0,Uh as d1,ly as d2,Rn as d3,Yb as d4,s3 as d5,Kb as d6,r1 as d7,X3 as d8,r3 as d9,V3 as dA,Q3 as dB,g3 as dC,uF as dD,fF as dE,Yd as dF,iM as dG,nM as dH,Bc as dI,vf as dJ,sM as dK,CE as dL,DE as dM,vL as dN,qo as dO,em as dP,tm as dQ,nm as dR,$C as dS,la as dT,_n as dU,Nw as dV,hF as dW,tD as dX,iF as dY,mc as dZ,DR as d_,js as da,k3 as db,d3 as dc,l3 as dd,H3 as de,a3 as df,D3 as dg,Z3 as dh,J3 as di,I3 as dj,s1 as dk,L3 as dl,Wp as dm,wg as dn,F1 as dp,Sg as dq,$1 as dr,pc as ds,l1 as dt,h3 as du,yy as dv,v3 as dw,$3 as dx,R3 as dy,eF as dz,$z as e,R2 as e0,vO as e1,Sl as e2,jR as e3,YR as e4,$2 as e5,T2 as e6,oL as e7,EE as e8,Xd as e9,Yr as ea,nF as eb,y2 as ec,dF as ed,Ug as ee,vR as ef,QR as eg,xF as eh,ke as f,Pt as g,Ot as h,Ze as i,St as j,le as k,Ln as l,$c as m,G2 as n,Ti as o,sh as p,pL as q,Oo as r,jL as s,w3 as t,GL as u,o3 as v,At as w,Pa as x,JD as y,pD as z};