178 lines
1.3 MiB
178 lines
1.3 MiB
var FZ=Object.defineProperty;var OD=e=>{throw TypeError(e)};var $Z=(e,t,n)=>t in e?FZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nx=(e,t,n)=>$Z(e,typeof t!="symbol"?t+"":t,n),DD=(e,t,n)=>t.has(e)||OD("Cannot "+n);var as=(e,t,n)=>(DD(e,t,"read from private field"),n?n.call(e):t.get(e)),jy=(e,t,n)=>t.has(e)?OD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ys=(e,t,n,r)=>(DD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var kx=(e,t,n,r)=>({set _(i){Ys(e,t,i,n)},get _(){return as(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Xy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vb(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var S_={exports:{}},BZ=S_.exports,LD;function jI(){return LD||(LD=1,function(e,t){(function(n,r){e.exports=r()})(BZ,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var W=["th","st","nd","rd"],N=$%100;return"["+$+(W[(N-20)%10]||W[N]||W[0])+"]"}},b=function($,W,N){var K=String($);return!K||K.length>=W?$:""+Array(W+1-K.length).join(N)+$},w={s:b,z:function($){var W=-$.utcOffset(),N=Math.abs(W),K=Math.floor(N/60),X=N%60;return(W<=0?"+":"-")+b(K,2,"0")+":"+b(X,2,"0")},m:function $(W,N){if(W.date()<N.date())return-$(N,W);var K=12*(N.year()-W.year())+(N.month()-W.month()),X=W.clone().add(K,f),ae=N-X<0,ge=W.clone().add(K+(ae?-1:1),f);return+(-(K+(N-X)/(ae?X-ge:ge-X))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:a,ms:o,Q:d}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},T="en",C={};C[T]=S;var E="$isDayjsObject",R=function($){return $ instanceof D||!(!$||!$[E])},I=function $(W,N,K){var X;if(!W)return T;if(typeof W=="string"){var ae=W.toLowerCase();C[ae]&&(X=ae),N&&(C[ae]=N,X=ae);var ge=W.split("-");if(!X&&ge.length>1)return $(ge[0])}else{var ye=W.name;C[ye]=W,X=ye}return!K&&X&&(T=X),X||!K&&T},M=function($,W){if(R($))return $.clone();var N=typeof W=="object"?W:{};return N.date=$,N.args=arguments,new D(N)},P=w;P.l=I,P.i=R,P.w=function($,W){return M($,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var D=function(){function $(N){this.$L=I(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[E]=!0}var W=$.prototype;return W.parse=function(N){this.$d=function(K){var X=K.date,ae=K.utc;if(X===null)return new Date(NaN);if(P.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var ge=X.match(_);if(ge){var ye=ge[2]-1||0,Me=(ge[7]||"0").substring(0,3);return ae?new Date(Date.UTC(ge[1],ye,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Me)):new Date(ge[1],ye,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Me)}}return new Date(X)}(N),this.init()},W.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},W.$utils=function(){return P},W.isValid=function(){return this.$d.toString()!==m},W.isSame=function(N,K){var X=M(N);return this.startOf(K)<=X&&X<=this.endOf(K)},W.isAfter=function(N,K){return M(N)<this.startOf(K)},W.isBefore=function(N,K){return this.endOf(K)<M(N)},W.$g=function(N,K,X){return P.u(N)?this[K]:this.set(X,N)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(N,K){var X=this,ae=!!P.u(K)||K,ge=P.p(N),ye=function(Se,Te){var Ne=P.w(X.$u?Date.UTC(X.$y,Te,Se):new Date(X.$y,Te,Se),X);return ae?Ne:Ne.endOf(u)},Me=function(Se,Te){return P.w(X.toDate()[Se].apply(X.toDate("s"),(ae?[0,0,0,0]:[23,59,59,999]).slice(Te)),X)},ke=this.$W,Ue=this.$M,Le=this.$D,je="set"+(this.$u?"UTC":"");switch(ge){case h:return ae?ye(1,0):ye(31,11);case f:return ae?ye(1,Ue):ye(0,Ue+1);case c:var fe=this.$locale().weekStart||0,Ae=(ke<fe?ke+7:ke)-fe;return ye(ae?Le-Ae:Le+(6-Ae),Ue);case u:case v:return Me(je+"Hours",0);case l:return Me(je+"Minutes",1);case s:return Me(je+"Seconds",2);case a:return Me(je+"Milliseconds",3);default:return this.clone()}},W.endOf=function(N){return this.startOf(N,!1)},W.$set=function(N,K){var X,ae=P.p(N),ge="set"+(this.$u?"UTC":""),ye=(X={},X[u]=ge+"Date",X[v]=ge+"Date",X[f]=ge+"Month",X[h]=ge+"FullYear",X[l]=ge+"Hours",X[s]=ge+"Minutes",X[a]=ge+"Seconds",X[o]=ge+"Milliseconds",X)[ae],Me=ae===u?this.$D+(K-this.$W):K;if(ae===f||ae===h){var ke=this.clone().set(v,1);ke.$d[ye](Me),ke.init(),this.$d=ke.set(v,Math.min(this.$D,ke.daysInMonth())).$d}else ye&&this.$d[ye](Me);return this.init(),this},W.set=function(N,K){return this.clone().$set(N,K)},W.get=function(N){return this[P.p(N)]()},W.add=function(N,K){var X,ae=this;N=Number(N);var ge=P.p(K),ye=function(Ue){var Le=M(ae);return P.w(Le.date(Le.date()+Math.round(Ue*N)),ae)};if(ge===f)return this.set(f,this.$M+N);if(ge===h)return this.set(h,this.$y+N);if(ge===u)return ye(1);if(ge===c)return ye(7);var Me=(X={},X[s]=r,X[l]=i,X[a]=n,X)[ge]||1,ke=this.$d.getTime()+N*Me;return P.w(ke,this)},W.subtract=function(N,K){return this.add(-1*N,K)},W.format=function(N){var K=this,X=this.$locale();if(!this.isValid())return X.invalidDate||m;var ae=N||"YYYY-MM-DDTHH:mm:ssZ",ge=P.z(this),ye=this.$H,Me=this.$m,ke=this.$M,Ue=X.weekdays,Le=X.months,je=X.meridiem,fe=function(Te,Ne,Be,H){return Te&&(Te[Ne]||Te(K,ae))||Be[Ne].slice(0,H)},Ae=function(Te){return P.s(ye%12||12,Te,"0")},Se=je||function(Te,Ne,Be){var H=Te<12?"AM":"PM";return Be?H.toLowerCase():H};return ae.replace(y,function(Te,Ne){return Ne||function(Be){switch(Be){case"YY":return String(K.$y).slice(-2);case"YYYY":return P.s(K.$y,4,"0");case"M":return ke+1;case"MM":return P.s(ke+1,2,"0");case"MMM":return fe(X.monthsShort,ke,Le,3);case"MMMM":return fe(Le,ke);case"D":return K.$D;case"DD":return P.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return fe(X.weekdaysMin,K.$W,Ue,2);case"ddd":return fe(X.weekdaysShort,K.$W,Ue,3);case"dddd":return Ue[K.$W];case"H":return String(ye);case"HH":return P.s(ye,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return Se(ye,Me,!0);case"A":return Se(ye,Me,!1);case"m":return String(Me);case"mm":return P.s(Me,2,"0");case"s":return String(K.$s);case"ss":return P.s(K.$s,2,"0");case"SSS":return P.s(K.$ms,3,"0");case"Z":return ge}return null}(Te)||ge.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(N,K,X){var ae,ge=this,ye=P.p(K),Me=M(N),ke=(Me.utcOffset()-this.utcOffset())*r,Ue=this-Me,Le=function(){return P.m(ge,Me)};switch(ye){case h:ae=Le()/12;break;case f:ae=Le();break;case d:ae=Le()/3;break;case c:ae=(Ue-ke)/6048e5;break;case u:ae=(Ue-ke)/864e5;break;case l:ae=Ue/i;break;case s:ae=Ue/r;break;case a:ae=Ue/n;break;default:ae=Ue}return X?ae:P.a(ae)},W.daysInMonth=function(){return this.endOf(f).$D},W.$locale=function(){return C[this.$L]},W.locale=function(N,K){if(!N)return this.$L;var X=this.clone(),ae=I(N,K,!0);return ae&&(X.$L=ae),X},W.clone=function(){return P.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},$}(),k=D.prototype;return M.prototype=k,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function($){k[$[1]]=function(W){return this.$g(W,$[0],$[1])}}),M.extend=function($,W){return $.$i||($(W,D,M),$.$i=!0),M},M.locale=I,M.isDayjs=R,M.unix=function($){return M(1e3*$)},M.en=C[T],M.Ls=C,M.p={},M})}(S_)),S_.exports}var VZ=jI();const po=bm(VZ);var w_={exports:{}},UZ=w_.exports,ND;function HZ(){return ND||(ND=1,function(e,t){(function(n,r){e.exports=r(jI())})(UZ,function(n){function r(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var i=r(n),o="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),s="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),l="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),u=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function c(v,m,_){var y,S;return _==="m"?m?"минута":"минуту":v+" "+(y=+v,S={mm:m?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[_].split("_"),y%10==1&&y%100!=11?S[0]:y%10>=2&&y%10<=4&&(y%100<10||y%100>=20)?S[1]:S[2])}var f=function(v,m){return u.test(m)?o[v.month()]:a[v.month()]};f.s=a,f.f=o;var d=function(v,m){return u.test(m)?s[v.month()]:l[v.month()]};d.s=l,d.f=s;var h={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:d,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:c,mm:c,h:"час",hh:c,d:"день",dd:c,M:"месяц",MM:c,y:"год",yy:c},ordinal:function(v){return v},meridiem:function(v){return v<4?"ночи":v<12?"утра":v<17?"дня":"вечера"}};return i.default.locale(h,null,!0),h})}(w_)),w_.exports}HZ();var x_={exports:{}},zZ=x_.exports,kD;function GZ(){return kD||(kD=1,function(e,t){(function(n,r){e.exports=r(jI())})(zZ,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})}(x_)),x_.exports}GZ();var C_={exports:{}},WZ=C_.exports,FD;function jZ(){return FD||(FD=1,function(e,t){(function(n,r){e.exports=r()})(WZ,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,c,f,d){return o.fromToBase(u,c,f,d)}i.en.relativeTime=a,o.fromToBase=function(u,c,f,d,h){for(var v,m,_,y=f.$locale().relativeTime||a,S=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=S.length,w=0;w<b;w+=1){var T=S[w];T.d&&(v=d?i(u).diff(f,T.d,!0):f.diff(u,T.d,!0));var C=(n.rounding||Math.round)(Math.abs(v));if(_=v>0,C<=T.r||!T.r){C<=1&&w>0&&(T=S[w-1]);var E=y[T.l];h&&(C=h(""+C)),m=typeof E=="string"?E.replace("%d",C):E(C,c,T.l,_);break}}if(c)return m;var R=_?y.future:y.past;return typeof R=="function"?R(m):R.replace("%s",m)},o.to=function(u,c){return s(u,c,this,!0)},o.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};o.toNow=function(u){return this.to(l(this),u)},o.fromNow=function(u){return this.from(l(this),u)}}})}(C_)),C_.exports}var XZ=jZ();const YZ=bm(XZ);var T_={exports:{}},KZ=T_.exports,$D;function ZZ(){return $D||($D=1,function(e,t){(function(n,r){e.exports=r()})(KZ,function(){return function(n,r,i){i.updateLocale=function(o,a){var s=i.Ls[o];if(s)return(a?Object.keys(a):[]).forEach(function(l){s[l]=a[l]}),s}}})}(T_)),T_.exports}var qZ=ZZ();const JZ=bm(qZ);/**
|
||
* @vue/shared v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function Ur(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Qt={},hf=[],Vr=()=>{},Qd=()=>!1,Zu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ub=e=>e.startsWith("onUpdate:"),tn=Object.assign,Hb=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},QZ=Object.prototype.hasOwnProperty,dn=(e,t)=>QZ.call(e,t),Qe=Array.isArray,pf=e=>qf(e)==="[object Map]",qu=e=>qf(e)==="[object Set]",lE=e=>qf(e)==="[object Date]",X4=e=>qf(e)==="[object RegExp]",Ct=e=>typeof e=="function",Mt=e=>typeof e=="string",Vi=e=>typeof e=="symbol",mn=e=>e!==null&&typeof e=="object",zb=e=>(mn(e)||Ct(e))&&Ct(e.then)&&Ct(e.catch),XI=Object.prototype.toString,qf=e=>XI.call(e),Y4=e=>qf(e).slice(8,-1),Sm=e=>qf(e)==="[object Object]",Gb=e=>Mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gl=Ur(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),K4=Ur("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Wb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},eq=/-(\w)/g,Vn=Wb(e=>e.replace(eq,(t,n)=>n?n.toUpperCase():"")),tq=/\B([A-Z])/g,pi=Wb(e=>e.replace(tq,"-$1").toLowerCase()),Ju=Wb(e=>e.charAt(0).toUpperCase()+e.slice(1)),vf=Wb(e=>e?`on${Ju(e)}`:""),fi=(e,t)=>!Object.is(e,t),gf=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},YI=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ag=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ig=e=>{const t=Mt(e)?Number(e):NaN;return isNaN(t)?e:t};let BD;const wm=()=>BD||(BD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),nq=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function rq(e){return nq.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function iq(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const oq={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},aq={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},sq={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},lq={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},uq={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},cq="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,Error,Symbol",KI=Ur(cq),fq=KI,VD=2;function Z4(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((s,l)=>l%2===1);r=r.filter((s,l)=>l%2===0);let o=0;const a=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+(i[s]&&i[s].length||0),o>=t){for(let l=s-VD;l<=s+VD||n>o;l++){if(l<0||l>=r.length)continue;const u=l+1;a.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const c=r[l].length,f=i[l]&&i[l].length||0;if(l===s){const d=t-(o-(c+f)),h=Math.max(1,n>o?c-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(l>s){if(n>o){const d=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(d))}o+=c+f}}break}return a.join(`
|
||
`)}function pr(e){if(Qe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Mt(r)?ZI(r):pr(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(Mt(e)||mn(e))return e}const dq=/;(?![^(]*\))/g,hq=/:([^]+)/,pq=/\/\*[^]*?\*\//g;function ZI(e){const t={};return e.replace(pq,"").split(dq).forEach(n=>{if(n){const r=n.split(hq);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function vq(e){if(!e)return"";if(Mt(e))return e;let t="";for(const n in e){const r=e[n];if(Mt(r)||typeof r=="number"){const i=n.startsWith("--")?n:pi(n);t+=`${i}:${r};`}}return t}function gt(e){let t="";if(Mt(e))t=e;else if(Qe(e))for(let n=0;n<e.length;n++){const r=gt(e[n]);r&&(t+=r+" ")}else if(mn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function q4(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Mt(t)&&(e.class=gt(t)),n&&(e.style=pr(n)),e}const gq="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",mq="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",yq="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",_q="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",J4=Ur(gq),Q4=Ur(mq),e$=Ur(yq),t$=Ur(_q),n$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",r$=Ur(n$),bq=Ur(n$+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function qI(e){return!!e||e===""}const Sq=/[>/="'\u0009\u000a\u000c\u0020]/,Fx={};function wq(e){if(Fx.hasOwnProperty(e))return Fx[e];const t=Sq.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Fx[e]=!t}const xq={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Cq=Ur("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Tq=Ur("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),Eq=Ur("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function Aq(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const Iq=/["'&<>]/;function Rq(e){const t=""+e,n=Iq.exec(t);if(!n)return t;let r="",i,o,a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}a!==o&&(r+=t.slice(a,o)),a=o+1,r+=i}return a!==o?r+t.slice(a,o):r}const Pq=/^-?>|<!--|-->|--!>|<!-$/g;function Mq(e){return e.replace(Pq,"")}const i$=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Oq(e,t){return e.replace(i$,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function Dq(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=El(e[r],t[r]);return n}function El(e,t){if(e===t)return!0;let n=lE(e),r=lE(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Vi(e),r=Vi(t),n||r)return e===t;if(n=Qe(e),r=Qe(t),n||r)return n&&r?Dq(e,t):!1;if(n=mn(e),r=mn(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!El(e[a],t[a]))return!1}}return String(e)===String(t)}function xm(e,t){return e.findIndex(n=>El(n,t))}const o$=e=>!!(e&&e.__v_isRef===!0),ie=e=>Mt(e)?e:e==null?"":Qe(e)||mn(e)&&(e.toString===XI||!Ct(e.toString))?o$(e)?ie(e.value):JSON.stringify(e,a$,2):String(e),a$=(e,t)=>o$(t)?a$(e,t.value):pf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[$x(r,o)+" =>"]=i,n),{})}:qu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$x(n))}:Vi(t)?$x(t):mn(t)&&!Qe(t)&&!Sm(t)?String(t):t,$x=(e,t="")=>{var n;return Vi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},Lq=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:hf,EMPTY_OBJ:Qt,NO:Qd,NOOP:Vr,PatchFlagNames:aq,PatchFlags:oq,ShapeFlags:sq,SlotFlags:lq,camelize:Vn,capitalize:Ju,cssVarNameEscapeSymbolsRE:i$,def:YI,escapeHtml:Rq,escapeHtmlComment:Mq,extend:tn,genCacheKey:iq,genPropsAccessExp:rq,generateCodeFrame:Z4,getEscapedCssVarName:Oq,getGlobalThis:wm,hasChanged:fi,hasOwn:dn,hyphenate:pi,includeBooleanAttr:qI,invokeArrayFns:gf,isArray:Qe,isBooleanAttr:bq,isBuiltInDirective:K4,isDate:lE,isFunction:Ct,isGloballyAllowed:KI,isGloballyWhitelisted:fq,isHTMLTag:J4,isIntegerKey:Gb,isKnownHtmlAttr:Cq,isKnownMathMLAttr:Eq,isKnownSvgAttr:Tq,isMap:pf,isMathMLTag:e$,isModelListener:Ub,isObject:mn,isOn:Zu,isPlainObject:Sm,isPromise:zb,isRegExp:X4,isRenderableAttrValue:Aq,isReservedProp:gl,isSSRSafeAttrName:wq,isSVGTag:Q4,isSet:qu,isSpecialBooleanAttr:r$,isString:Mt,isSymbol:Vi,isVoidTag:t$,looseEqual:El,looseIndexOf:xm,looseToNumber:Ag,makeMap:Ur,normalizeClass:gt,normalizeProps:q4,normalizeStyle:pr,objectToString:XI,parseStringStyle:ZI,propsToAttrMap:xq,remove:Hb,slotFlagsText:uq,stringifyStyle:vq,toDisplayString:ie,toHandlerKey:vf,toNumber:Ig,toRawType:Y4,toTypeString:qf},Symbol.toStringTag,{value:"Module"}));/**
|
||
* @vue/reactivity v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Pi;class JI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Pi,!t&&Pi&&(this.index=(Pi.scopes||(Pi.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Pi;try{return Pi=this,t()}finally{Pi=n}}}on(){Pi=this}off(){Pi=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function s$(e){return new JI(e)}function jb(){return Pi}function QI(e,t=!1){Pi&&Pi.cleanups.push(e)}let $n;const Bx=new WeakSet;class Rg{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Pi&&Pi.active&&Pi.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bx.has(this)&&(Bx.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||u$(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,UD(this),c$(this);const t=$n,n=Ka;$n=this,Ka=!0;try{return this.fn()}finally{f$(this),$n=t,Ka=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)n2(t);this.deps=this.depsTail=void 0,UD(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bx.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){uE(this)&&this.run()}get dirty(){return uE(this)}}let l$=0,$v,Bv;function u$(e,t=!1){if(e.flags|=8,t){e.next=Bv,Bv=e;return}e.next=$v,$v=e}function e2(){l$++}function t2(){if(--l$>0)return;if(Bv){let t=Bv;for(Bv=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$v;){let t=$v;for($v=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function c$(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function f$(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),n2(r),Nq(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function uE(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(d$(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function d$(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pg))return;e.globalVersion=Pg;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!uE(e)){e.flags&=-3;return}const n=$n,r=Ka;$n=e,Ka=!0;try{c$(e);const i=e.fn(e._value);(t.version===0||fi(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{$n=n,Ka=r,f$(e),e.flags&=-3}}function n2(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)n2(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Nq(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function kq(e,t){e.effect instanceof Rg&&(e=e.effect.fn);const n=new Rg(e);t&&tn(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function Fq(e){e.effect.stop()}let Ka=!0;const h$=[];function Qu(){h$.push(Ka),Ka=!1}function ec(){const e=h$.pop();Ka=e===void 0?!0:e}function UD(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$n;$n=void 0;try{t()}finally{$n=n}}}let Pg=0;class $q{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xb{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!$n||!Ka||$n===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$n)n=this.activeLink=new $q($n,this),$n.deps?(n.prevDep=$n.depsTail,$n.depsTail.nextDep=n,$n.depsTail=n):$n.deps=$n.depsTail=n,p$(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$n.depsTail,n.nextDep=void 0,$n.depsTail.nextDep=n,$n.depsTail=n,$n.deps===n&&($n.deps=r)}return n}trigger(t){this.version++,Pg++,this.notify(t)}notify(t){e2();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{t2()}}}function p$(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)p$(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const A1=new WeakMap,mf=Symbol(""),cE=Symbol(""),Mg=Symbol("");function di(e,t,n){if(Ka&&$n){let r=A1.get(e);r||A1.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Xb),i.map=r,i.key=n),i.track()}}function al(e,t,n,r,i,o){const a=A1.get(e);if(!a){Pg++;return}const s=l=>{l&&l.trigger()};if(e2(),t==="clear")a.forEach(s);else{const l=Qe(e),u=l&&Gb(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===Mg||!Vi(d)&&d>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(Mg)),t){case"add":l?u&&s(a.get("length")):(s(a.get(mf)),pf(e)&&s(a.get(cE)));break;case"delete":l||(s(a.get(mf)),pf(e)&&s(a.get(cE)));break;case"set":pf(e)&&s(a.get(mf));break}}t2()}function Bq(e,t){const n=A1.get(e);return n&&n.get(t)}function _d(e){const t=un(e);return t===e?t:(di(t,"iterate",Mg),Do(e)?t:t.map(hi))}function Yb(e){return di(e=un(e),"iterate",Mg),e}const Vq={__proto__:null,[Symbol.iterator](){return Vx(this,Symbol.iterator,hi)},concat(...e){return _d(this).concat(...e.map(t=>Qe(t)?_d(t):t))},entries(){return Vx(this,"entries",e=>(e[1]=hi(e[1]),e))},every(e,t){return Ks(this,"every",e,t,void 0,arguments)},filter(e,t){return Ks(this,"filter",e,t,n=>n.map(hi),arguments)},find(e,t){return Ks(this,"find",e,t,hi,arguments)},findIndex(e,t){return Ks(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ks(this,"findLast",e,t,hi,arguments)},findLastIndex(e,t){return Ks(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ks(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ux(this,"includes",e)},indexOf(...e){return Ux(this,"indexOf",e)},join(e){return _d(this).join(e)},lastIndexOf(...e){return Ux(this,"lastIndexOf",e)},map(e,t){return Ks(this,"map",e,t,void 0,arguments)},pop(){return Np(this,"pop")},push(...e){return Np(this,"push",e)},reduce(e,...t){return HD(this,"reduce",e,t)},reduceRight(e,...t){return HD(this,"reduceRight",e,t)},shift(){return Np(this,"shift")},some(e,t){return Ks(this,"some",e,t,void 0,arguments)},splice(...e){return Np(this,"splice",e)},toReversed(){return _d(this).toReversed()},toSorted(e){return _d(this).toSorted(e)},toSpliced(...e){return _d(this).toSpliced(...e)},unshift(...e){return Np(this,"unshift",e)},values(){return Vx(this,"values",hi)}};function Vx(e,t,n){const r=Yb(e),i=r[t]();return r!==e&&!Do(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const Uq=Array.prototype;function Ks(e,t,n,r,i,o){const a=Yb(e),s=a!==e&&!Do(e),l=a[t];if(l!==Uq[t]){const f=l.apply(e,o);return s?hi(f):f}let u=n;a!==e&&(s?u=function(f,d){return n.call(this,hi(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function HD(e,t,n,r){const i=Yb(e);let o=n;return i!==e&&(Do(e)?n.length>3&&(o=function(a,s,l){return n.call(this,a,s,l,e)}):o=function(a,s,l){return n.call(this,a,hi(s),l,e)}),i[t](o,...r)}function Ux(e,t,n){const r=un(e);di(r,"iterate",Mg);const i=r[t](...n);return(i===-1||i===!1)&&qb(n[0])?(n[0]=un(n[0]),r[t](...n)):i}function Np(e,t,n=[]){Qu(),e2();const r=un(e)[t].apply(e,n);return t2(),ec(),r}const Hq=Ur("__proto__,__v_isRef,__isVue"),v$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vi));function zq(e){Vi(e)||(e=String(e));const t=un(this);return di(t,"has",e),t.hasOwnProperty(e)}class g${constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?w$:S$:o?b$:_$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Qe(t);if(!i){let l;if(a&&(l=Vq[n]))return l;if(n==="hasOwnProperty")return zq}const s=Reflect.get(t,n,ht(t)?t:r);return(Vi(n)?v$.has(n):Hq(n))||(i||di(t,"get",n),o)?s:ht(s)?a&&Gb(n)?s:s.value:mn(s)?i?Cm(s):qa(s):s}}class m$ extends g${constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=Vu(o);if(!Do(r)&&!Vu(r)&&(o=un(o),r=un(r)),!Qe(t)&&ht(o)&&!ht(r))return l?!1:(o.value=r,!0)}const a=Qe(t)&&Gb(n)?Number(n)<t.length:dn(t,n),s=Reflect.set(t,n,r,ht(t)?t:i);return t===un(i)&&(a?fi(r,o)&&al(t,"set",n,r):al(t,"add",n,r)),s}deleteProperty(t,n){const r=dn(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&al(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Vi(n)||!v$.has(n))&&di(t,"has",n),r}ownKeys(t){return di(t,"iterate",Qe(t)?"length":mf),Reflect.ownKeys(t)}}class y$ extends g${constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Gq=new m$,Wq=new y$,jq=new m$(!0),Xq=new y$(!0),fE=e=>e,Yy=e=>Reflect.getPrototypeOf(e);function Yq(e,t,n){return function(...r){const i=this.__v_raw,o=un(i),a=pf(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?fE:t?dE:hi;return!t&&di(o,"iterate",l?cE:mf),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ky(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Kq(e,t){const n={get(i){const o=this.__v_raw,a=un(o),s=un(i);e||(fi(i,s)&&di(a,"get",i),di(a,"get",s));const{has:l}=Yy(a),u=t?fE:e?dE:hi;if(l.call(a,i))return u(o.get(i));if(l.call(a,s))return u(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&di(un(i),"iterate",mf),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=un(o),s=un(i);return e||(fi(i,s)&&di(a,"has",i),di(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=un(s),u=t?fE:e?dE:hi;return!e&&di(l,"iterate",mf),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return tn(n,e?{add:Ky("add"),set:Ky("set"),delete:Ky("delete"),clear:Ky("clear")}:{add(i){!t&&!Do(i)&&!Vu(i)&&(i=un(i));const o=un(this);return Yy(o).has.call(o,i)||(o.add(i),al(o,"add",i,i)),this},set(i,o){!t&&!Do(o)&&!Vu(o)&&(o=un(o));const a=un(this),{has:s,get:l}=Yy(a);let u=s.call(a,i);u||(i=un(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?fi(o,c)&&al(a,"set",i,o):al(a,"add",i,o),this},delete(i){const o=un(this),{has:a,get:s}=Yy(o);let l=a.call(o,i);l||(i=un(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&al(o,"delete",i,void 0),u},clear(){const i=un(this),o=i.size!==0,a=i.clear();return o&&al(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Yq(i,e,t)}),n}function Kb(e,t){const n=Kq(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(dn(n,i)&&i in r?n:r,i,o)}const Zq={get:Kb(!1,!1)},qq={get:Kb(!1,!0)},Jq={get:Kb(!0,!1)},Qq={get:Kb(!0,!0)},_$=new WeakMap,b$=new WeakMap,S$=new WeakMap,w$=new WeakMap;function eJ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tJ(e){return e.__v_skip||!Object.isExtensible(e)?0:eJ(Y4(e))}function qa(e){return Vu(e)?e:Zb(e,!1,Gq,Zq,_$)}function r2(e){return Zb(e,!1,jq,qq,b$)}function Cm(e){return Zb(e,!0,Wq,Jq,S$)}function nJ(e){return Zb(e,!0,Xq,Qq,w$)}function Zb(e,t,n,r,i){if(!mn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=tJ(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Ou(e){return Vu(e)?Ou(e.__v_raw):!!(e&&e.__v_isReactive)}function Vu(e){return!!(e&&e.__v_isReadonly)}function Do(e){return!!(e&&e.__v_isShallow)}function qb(e){return e?!!e.__v_raw:!1}function un(e){const t=e&&e.__v_raw;return t?un(t):e}function x$(e){return!dn(e,"__v_skip")&&Object.isExtensible(e)&&YI(e,"__v_skip",!0),e}const hi=e=>mn(e)?qa(e):e,dE=e=>mn(e)?Cm(e):e;function ht(e){return e?e.__v_isRef===!0:!1}function De(e){return C$(e,!1)}function bi(e){return C$(e,!0)}function C$(e,t){return ht(e)?e:new rJ(e,t)}class rJ{constructor(t,n){this.dep=new Xb,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:un(t),this._value=n?t:hi(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Do(t)||Vu(t);t=r?t:un(t),fi(t,n)&&(this._rawValue=t,this._value=r?t:hi(t),this.dep.trigger())}}function hE(e){e.dep&&e.dep.trigger()}function B(e){return ht(e)?e.value:e}function ha(e){return Ct(e)?e():B(e)}const iJ={get:(e,t,n)=>t==="__v_raw"?e:B(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ht(i)&&!ht(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function i2(e){return Ou(e)?e:new Proxy(e,iJ)}class oJ{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Xb,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function o2(e){return new oJ(e)}function aJ(e){const t=Qe(e)?new Array(e.length):{};for(const n in e)t[n]=E$(e,n);return t}class sJ{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Bq(un(this._object),this._key)}}class lJ{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function T$(e,t,n){return ht(e)?e:Ct(e)?new lJ(e):mn(e)&&arguments.length>1?E$(e,t,n):De(e)}function E$(e,t,n){const r=e[t];return ht(r)?r:new sJ(e,t,n)}class uJ{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xb(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$n!==this)return u$(this,!0),!0}get value(){const t=this.dep.track();return d$(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cJ(e,t,n=!1){let r,i;return Ct(e)?r=e:(r=e.get,i=e.set),new uJ(r,i,n)}const fJ={GET:"get",HAS:"has",ITERATE:"iterate"},dJ={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Zy={},I1=new WeakMap;let cu;function hJ(){return cu}function A$(e,t=!1,n=cu){if(n){let r=I1.get(n);r||I1.set(n,r=[]),r.push(e)}}function pJ(e,t,n=Qt){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=w=>i?w:Do(w)||i===!1||i===0?sl(w,1):sl(w);let c,f,d,h,v=!1,m=!1;if(ht(e)?(f=()=>e.value,v=Do(e)):Ou(e)?(f=()=>u(e),v=!0):Qe(e)?(m=!0,v=e.some(w=>Ou(w)||Do(w)),f=()=>e.map(w=>{if(ht(w))return w.value;if(Ou(w))return u(w);if(Ct(w))return l?l(w,2):w()})):Ct(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Qu();try{d()}finally{ec()}}const w=cu;cu=c;try{return l?l(e,3,[h]):e(h)}finally{cu=w}}:f=Vr,t&&i){const w=f,T=i===!0?1/0:i;f=()=>sl(w(),T)}const _=jb(),y=()=>{c.stop(),_&&_.active&&Hb(_.effects,c)};if(o&&t){const w=t;t=(...T)=>{w(...T),y()}}let S=m?new Array(e.length).fill(Zy):Zy;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const T=c.run();if(i||v||(m?T.some((C,E)=>fi(C,S[E])):fi(T,S))){d&&d();const C=cu;cu=c;try{const E=[T,S===Zy?void 0:m&&S[0]===Zy?[]:S,h];l?l(t,3,E):t(...E),S=T}finally{cu=C}}}else c.run()};return s&&s(b),c=new Rg(f),c.scheduler=a?()=>a(b,!1):b,h=w=>A$(w,!1,c),d=c.onStop=()=>{const w=I1.get(c);if(w){if(l)l(w,4);else for(const T of w)T();I1.delete(c)}},t?r?b(!0):S=c.run():a?a(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function sl(e,t=1/0,n){if(t<=0||!mn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ht(e))sl(e.value,t,n);else if(Qe(e))for(let r=0;r<e.length;r++)sl(e[r],t,n);else if(qu(e)||pf(e))e.forEach(r=>{sl(r,t,n)});else if(Sm(e)){for(const r in e)sl(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&sl(e[r],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const I$=[];function vJ(e){I$.push(e)}function gJ(){I$.pop()}function mJ(e,t){}const yJ={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},_J={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ep(e,t,n,r){try{return r?e(...r):e()}catch(i){Jf(i,t,n)}}function ya(e,t,n,r){if(Ct(e)){const i=ep(e,t,n,r);return i&&zb(i)&&i.catch(o=>{Jf(o,t,n)}),i}if(Qe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(ya(e[o],t,n,r));return i}}function Jf(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Qt;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}s=s.parent}if(o){Qu(),ep(o,null,10,[e,l,u]),ec();return}}bJ(e,n,i,r,a)}function bJ(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Di=[];let ps=-1;const sh=[];let fu=null,Gd=0;const R$=Promise.resolve();let R1=null;function Qa(e){const t=R1||R$;return e?t.then(this?e.bind(this):e):t}function SJ(e){let t=ps+1,n=Di.length;for(;t<n;){const r=t+n>>>1,i=Di[r],o=Dg(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function a2(e){if(!(e.flags&1)){const t=Dg(e),n=Di[Di.length-1];!n||!(e.flags&2)&&t>=Dg(n)?Di.push(e):Di.splice(SJ(t),0,e),e.flags|=1,P$()}}function P$(){R1||(R1=R$.then(M$))}function Og(e){Qe(e)?sh.push(...e):fu&&e.id===-1?fu.splice(Gd+1,0,e):e.flags&1||(sh.push(e),e.flags|=1),P$()}function zD(e,t,n=ps+1){for(;n<Di.length;n++){const r=Di[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Di.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function P1(e){if(sh.length){const t=[...new Set(sh)].sort((n,r)=>Dg(n)-Dg(r));if(sh.length=0,fu){fu.push(...t);return}for(fu=t,Gd=0;Gd<fu.length;Gd++){const n=fu[Gd];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}fu=null,Gd=0}}const Dg=e=>e.id==null?e.flags&2?-1:1/0:e.id;function M$(e){try{for(ps=0;ps<Di.length;ps++){const t=Di[ps];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ep(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ps<Di.length;ps++){const t=Di[ps];t&&(t.flags&=-2)}ps=-1,Di.length=0,P1(),R1=null,(Di.length||sh.length)&&M$()}}let Wd,qy=[];function O$(e,t){var n,r;Wd=e,Wd?(Wd.enabled=!0,qy.forEach(({event:i,args:o})=>Wd.emit(i,...o)),qy=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{O$(o,t)}),setTimeout(()=>{Wd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qy=[])},3e3)):qy=[]}let Pr=null,Jb=null;function Lg(e){const t=Pr;return Pr=e,Jb=e&&e.type.__scopeId||null,t}function wJ(e){Jb=e}function xJ(){Jb=null}const CJ=e=>qn;function qn(e,t=Pr,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&SE(-1);const o=Lg(t);let a;try{a=e(...i)}finally{Lg(o),r._d&&SE(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function St(e,t){if(Pr===null)return e;const n=Am(Pr),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=Qt]=t[i];o&&(Ct(o)&&(o={mounted:o,updated:o}),o.deep&&sl(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function vs(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(Qu(),ya(l,n,8,[e.el,s,e,t]),ec())}}const D$=Symbol("_vte"),L$=e=>e.__isTeleport,Vv=e=>e&&(e.disabled||e.disabled===""),GD=e=>e&&(e.defer||e.defer===""),WD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,jD=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,pE=(e,t)=>{const n=e&&e.to;return Mt(n)?t?t(n):null:n},N$={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:m,createComment:_}}=u,y=Vv(t.props);let{shapeFlag:S,children:b,dynamicChildren:w}=t;if(e==null){const T=t.el=m(""),C=t.anchor=m("");h(T,n,r),h(C,n,r);const E=(I,M)=>{S&16&&(i&&i.isCE&&(i.ce._teleportTarget=I),c(b,I,M,i,o,a,s,l))},R=()=>{const I=t.target=pE(t.props,v),M=k$(I,t,m,h);I&&(a!=="svg"&&WD(I)?a="svg":a!=="mathml"&&jD(I)&&(a="mathml"),y||(E(I,M),E_(t,!1)))};y&&(E(n,C),E_(t,!0)),GD(t.props)?Ir(()=>{R(),t.el.__isMounted=!0},o):R()}else{if(GD(t.props)&&!e.el.__isMounted){Ir(()=>{N$.process(e,t,n,r,i,o,a,s,l,u),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,C=t.target=e.target,E=t.targetAnchor=e.targetAnchor,R=Vv(e.props),I=R?n:C,M=R?T:E;if(a==="svg"||WD(C)?a="svg":(a==="mathml"||jD(C))&&(a="mathml"),w?(d(e.dynamicChildren,w,I,i,o,a,s),m2(e,t,!0)):l||f(e,t,I,M,i,o,a,s,!1),y)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jy(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=pE(t.props,v);P&&Jy(t,P,null,u,0)}else R&&Jy(t,C,E,u,1);E_(t,y)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const h=o||!Vv(d);for(let v=0;v<s.length;v++){const m=s[v];r(m,t,n,h,!!m.dynamicChildren)}}},move:Jy,hydrate:TJ};function Jy(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(a,t,n),(!f||Vv(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,n,2);f&&r(s,t,n)}function TJ(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},f){const d=t.target=pE(t.props,l);if(d){const h=Vv(t.props),v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(a(e),t,s(e),n,r,i,o),t.targetStart=v,t.targetAnchor=v&&a(v);else{t.anchor=a(e);let m=v;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}}m=a(m)}t.targetAnchor||k$(d,t,c,u),f(v&&a(v),t,d,n,r,i,o)}E_(t,h)}return t.anchor&&a(t.anchor)}const EJ=N$;function E_(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function k$(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[D$]=o,e&&(r(i,e),r(o,e)),o}const du=Symbol("_leaveCb"),Qy=Symbol("_enterCb");function s2(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vo(()=>{e.isMounted=!0}),nS(()=>{e.isUnmounting=!0}),e}const Zo=[Function,Array],l2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zo,onEnter:Zo,onAfterEnter:Zo,onEnterCancelled:Zo,onBeforeLeave:Zo,onLeave:Zo,onAfterLeave:Zo,onLeaveCancelled:Zo,onBeforeAppear:Zo,onAppear:Zo,onAfterAppear:Zo,onAppearCancelled:Zo},F$=e=>{const t=e.subTree;return t.component?F$(t.component):t},AJ={name:"BaseTransition",props:l2,setup(e,{slots:t}){const n=Tr(),r=s2();return()=>{const i=t.default&&Qb(t.default(),!0);if(!i||!i.length)return;const o=$$(i),a=un(e),{mode:s}=a;if(r.isLeaving)return Hx(o);const l=XD(o);if(!l)return Hx(o);let u=xh(l,a,r,n,f=>u=f);l.type!==Sr&&Al(l,u);let c=n.subTree&&XD(n.subTree);if(c&&c.type!==Sr&&!Ga(l,c)&&F$(n).type!==Sr){let f=xh(c,a,r,n);if(Al(c,f),s==="out-in"&&l.type!==Sr)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Hx(o);s==="in-out"&&l.type!==Sr?f.delayLeave=(d,h,v)=>{const m=V$(r,c);m[String(c.key)]=c,d[du]=()=>{h(),d[du]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function $$(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Sr){t=n;break}}return t}const B$=AJ;function V$(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function xh(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:_,onAppear:y,onAfterAppear:S,onAppearCancelled:b}=t,w=String(e.key),T=V$(n,e),C=(I,M)=>{I&&ya(I,r,9,M)},E=(I,M)=>{const P=M[1];C(I,M),Qe(I)?I.every(D=>D.length<=1)&&P():I.length<=1&&P()},R={mode:a,persisted:s,beforeEnter(I){let M=l;if(!n.isMounted)if(o)M=_||l;else return;I[du]&&I[du](!0);const P=T[w];P&&Ga(e,P)&&P.el[du]&&P.el[du](),C(M,[I])},enter(I){let M=u,P=c,D=f;if(!n.isMounted)if(o)M=y||u,P=S||c,D=b||f;else return;let k=!1;const $=I[Qy]=W=>{k||(k=!0,W?C(D,[I]):C(P,[I]),R.delayedLeave&&R.delayedLeave(),I[Qy]=void 0)};M?E(M,[I,$]):$()},leave(I,M){const P=String(e.key);if(I[Qy]&&I[Qy](!0),n.isUnmounting)return M();C(d,[I]);let D=!1;const k=I[du]=$=>{D||(D=!0,M(),$?C(m,[I]):C(v,[I]),I[du]=void 0,T[P]===e&&delete T[P])};T[P]=e,h?E(h,[I,k]):k()},clone(I){const M=xh(I,t,n,r,i);return i&&i(M),M}};return R}function Hx(e){if(Tm(e))return e=Is(e),e.children=null,e}function XD(e){if(!Tm(e))return L$(e.type)&&e.children?$$(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ct(n.default))return n.default()}}function Al(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Al(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 Qb(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===Ye?(a.patchFlag&128&&i++,r=r.concat(Qb(a.children,t,s))):(t||a.type!==Sr)&&r.push(s!=null?Is(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function nt(e,t){return Ct(e)?tn({name:e.name},t,{setup:e}):e}function IJ(){const e=Tr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function u2(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function RJ(e){const t=Tr(),n=bi(null);if(t){const i=t.refs===Qt?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Ng(e,t,n,r,i=!1){if(Qe(e)){e.forEach((v,m)=>Ng(v,t&&(Qe(t)?t[m]:t),n,r,i));return}if(Du(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ng(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Am(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Qt?s.refs={}:s.refs,f=s.setupState,d=un(f),h=f===Qt?()=>!1:v=>dn(d,v);if(u!=null&&u!==l&&(Mt(u)?(c[u]=null,h(u)&&(f[u]=null)):ht(u)&&(u.value=null)),Ct(l))ep(l,s,12,[a,c]);else{const v=Mt(l),m=ht(l);if(v||m){const _=()=>{if(e.f){const y=v?h(l)?f[l]:c[l]:l.value;i?Qe(y)&&Hb(y,o):Qe(y)?y.includes(o)||y.push(o):v?(c[l]=[o],h(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=a,h(l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(_.id=-1,Ir(_,n)):_()}}}let YD=!1;const bd=()=>{YD||(console.error("Hydration completed but contains mismatches."),YD=!0)},PJ=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",MJ=e=>e.namespaceURI.includes("MathML"),e0=e=>{if(e.nodeType===1){if(PJ(e))return"svg";if(MJ(e))return"mathml"}},eh=e=>e.nodeType===8;function OJ(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(b,w)=>{if(!w.hasChildNodes()){n(null,b,w),P1(),w._vnode=b;return}f(w.firstChild,b,null,null,null),P1(),w._vnode=b},f=(b,w,T,C,E,R=!1)=>{R=R||!!w.dynamicChildren;const I=eh(b)&&b.data==="[",M=()=>m(b,w,T,C,E,I),{type:P,ref:D,shapeFlag:k,patchFlag:$}=w;let W=b.nodeType;w.el=b,$===-2&&(R=!1,w.dynamicChildren=null);let N=null;switch(P){case yl:W!==3?w.children===""?(l(w.el=i(""),a(b),b),N=b):N=M():(b.data!==w.children&&(bd(),b.data=w.children),N=o(b));break;case Sr:S(b)?(N=o(b),y(w.el=b.content.firstChild,b,T)):W!==8||I?N=M():N=o(b);break;case bf:if(I&&(b=o(b),W=b.nodeType),W===1||W===3){N=b;const K=!w.children.length;for(let X=0;X<w.staticCount;X++)K&&(w.children+=N.nodeType===1?N.outerHTML:N.data),X===w.staticCount-1&&(w.anchor=N),N=o(N);return I?o(N):N}else M();break;case Ye:I?N=v(b,w,T,C,E,R):N=M();break;default:if(k&1)(W!==1||w.type.toLowerCase()!==b.tagName.toLowerCase())&&!S(b)?N=M():N=d(b,w,T,C,E,R);else if(k&6){w.slotScopeIds=E;const K=a(b);if(I?N=_(b):eh(b)&&b.data==="teleport start"?N=_(b,b.data,"teleport end"):N=o(b),t(w,K,null,T,C,e0(K),R),Du(w)&&!w.type.__asyncResolved){let X;I?(X=G(Ye),X.anchor=N?N.previousSibling:K.lastChild):X=b.nodeType===3?rt(""):G("div"),X.el=b,w.component.subTree=X}}else k&64?W!==8?N=M():N=w.type.hydrate(b,w,T,C,E,R,e,h):k&128&&(N=w.type.hydrate(b,w,T,C,e0(a(b)),E,R,e,f))}return D!=null&&Ng(D,null,C,w),N},d=(b,w,T,C,E,R)=>{R=R||!!w.dynamicChildren;const{type:I,props:M,patchFlag:P,shapeFlag:D,dirs:k,transition:$}=w,W=I==="input"||I==="option";if(W||P!==-1){k&&vs(w,null,T,"created");let N=!1;if(S(b)){N=fB(null,$)&&T&&T.vnode.props&&T.vnode.props.appear;const X=b.content.firstChild;N&&$.beforeEnter(X),y(X,b,T),w.el=b=X}if(D&16&&!(M&&(M.innerHTML||M.textContent))){let X=h(b.firstChild,w,b,T,C,E,R);for(;X;){t0(b,1)||bd();const ae=X;X=X.nextSibling,s(ae)}}else if(D&8){let X=w.children;X[0]===`
|
||
`&&(b.tagName==="PRE"||b.tagName==="TEXTAREA")&&(X=X.slice(1)),b.textContent!==X&&(t0(b,0)||bd(),b.textContent=w.children)}if(M){if(W||!R||P&48){const X=b.tagName.includes("-");for(const ae in M)(W&&(ae.endsWith("value")||ae==="indeterminate")||Zu(ae)&&!gl(ae)||ae[0]==="."||X)&&r(b,ae,null,M[ae],void 0,T)}else if(M.onClick)r(b,"onClick",null,M.onClick,void 0,T);else if(P&4&&Ou(M.style))for(const X in M.style)M.style[X]}let K;(K=M&&M.onVnodeBeforeMount)&&Qi(K,T,w),k&&vs(w,null,T,"beforeMount"),((K=M&&M.onVnodeMounted)||k||N)&&bB(()=>{K&&Qi(K,T,w),N&&$.enter(b),k&&vs(w,null,T,"mounted")},C)}return b.nextSibling},h=(b,w,T,C,E,R,I)=>{I=I||!!w.dynamicChildren;const M=w.children,P=M.length;for(let D=0;D<P;D++){const k=I?M[D]:M[D]=no(M[D]),$=k.type===yl;b?($&&!I&&D+1<P&&no(M[D+1]).type===yl&&(l(i(b.data.slice(k.children.length)),T,o(b)),b.data=k.children),b=f(b,k,C,E,R,I)):$&&!k.children?l(k.el=i(""),T):(t0(T,1)||bd(),n(null,k,T,null,C,E,e0(T),R))}return b},v=(b,w,T,C,E,R)=>{const{slotScopeIds:I}=w;I&&(E=E?E.concat(I):I);const M=a(b),P=h(o(b),w,M,T,C,E,R);return P&&eh(P)&&P.data==="]"?o(w.anchor=P):(bd(),l(w.anchor=u("]"),M,P),P)},m=(b,w,T,C,E,R)=>{if(t0(b.parentElement,1)||bd(),w.el=null,R){const P=_(b);for(;;){const D=o(b);if(D&&D!==P)s(D);else break}}const I=o(b),M=a(b);return s(b),n(null,w,M,I,T,C,e0(M),E),T&&(T.vnode.el=w.el,oS(T,w.el)),I},_=(b,w="[",T="]")=>{let C=0;for(;b;)if(b=o(b),b&&eh(b)&&(b.data===w&&C++,b.data===T)){if(C===0)return o(b);C--}return b},y=(b,w,T)=>{const C=w.parentNode;C&&C.replaceChild(b,w);let E=T;for(;E;)E.vnode.el===w&&(E.vnode.el=E.subTree.el=b),E=E.parent},S=b=>b.nodeType===1&&b.tagName==="TEMPLATE";return[c,f]}const KD="data-allow-mismatch",DJ={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function t0(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(KD);)e=e.parentElement;const n=e&&e.getAttribute(KD);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(DJ[t])}}const LJ=wm().requestIdleCallback||(e=>setTimeout(e,1)),NJ=wm().cancelIdleCallback||(e=>clearTimeout(e)),kJ=(e=1e4)=>t=>{const n=LJ(t,{timeout:e});return()=>NJ(n)};function FJ(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<a||i>0&&i<a)}const $J=e=>(t,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(FJ(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},BJ=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},VJ=(e=[])=>(t,n)=>{Mt(e)&&(e=[e]);let r=!1;const i=a=>{r||(r=!0,o(),t(),a.target.dispatchEvent(new a.constructor(a.type,a)))},o=()=>{n(a=>{for(const s of e)a.removeEventListener(s,i)})};return n(a=>{for(const s of e)a.addEventListener(s,i,{once:!0})}),o};function UJ(e,t){if(eh(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(eh(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Du=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function HJ(e){Ct(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let v;return u||(v=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((_,y)=>{l(m,()=>_(d()),()=>y(m),f+1)});throw m}).then(m=>v!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return nt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,m,_){const y=o?()=>{const S=o(_,b=>UJ(v,b));S&&(m.bum||(m.bum=[])).push(S)}:_;c?y():h().then(()=>!m.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const v=Rr;if(u2(v),c)return()=>zx(c,v);const m=b=>{u=null,Jf(b,v,13,!r)};if(s&&v.suspense||Ch)return h().then(b=>()=>zx(b,v)).catch(b=>(m(b),()=>r?G(r,{error:b}):null));const _=De(!1),y=De(),S=De(!!i);return i&&setTimeout(()=>{S.value=!1},i),a!=null&&setTimeout(()=>{if(!_.value&&!y.value){const b=new Error(`Async component timed out after ${a}ms.`);m(b),y.value=b}},a),h().then(()=>{_.value=!0,v.parent&&Tm(v.parent.vnode)&&v.parent.update()}).catch(b=>{m(b),y.value=b}),()=>{if(_.value&&c)return zx(c,v);if(y.value&&r)return G(r,{error:y.value});if(n&&!S.value)return G(n)}}})}function zx(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=G(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const Tm=e=>e.type.__isKeepAlive,zJ={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Tr(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(S,b,w,T,C)=>{const E=S.component;u(S,b,w,0,s),l(E.vnode,S,b,w,E,s,T,S.slotScopeIds,C),Ir(()=>{E.isDeactivated=!1,E.a&&gf(E.a);const R=S.props&&S.props.onVnodeMounted;R&&Qi(R,E.parent,S)},s)},r.deactivate=S=>{const b=S.component;D1(b.m),D1(b.a),u(S,d,null,1,s),Ir(()=>{b.da&&gf(b.da);const w=S.props&&S.props.onVnodeUnmounted;w&&Qi(w,b.parent,S),b.isDeactivated=!0},s)};function h(S){Gx(S),c(S,n,s,!0)}function v(S){i.forEach((b,w)=>{const T=EE(b.type);T&&!S(T)&&m(w)})}function m(S){const b=i.get(S);b&&(!a||!Ga(b,a))?h(b):a&&Gx(a),i.delete(S),o.delete(S)}Bt(()=>[e.include,e.exclude],([S,b])=>{S&&v(w=>yv(S,w)),b&&v(w=>!yv(b,w))},{flush:"post",deep:!0});let _=null;const y=()=>{_!=null&&(L1(n.subTree.type)?Ir(()=>{i.set(_,n0(n.subTree))},n.subTree.suspense):i.set(_,n0(n.subTree)))};return Vo(y),tS(y),nS(()=>{i.forEach(S=>{const{subTree:b,suspense:w}=n,T=n0(b);if(S.type===T.type&&S.key===T.key){Gx(T);const C=T.component.da;C&&Ir(C,w);return}h(S)})}),()=>{if(_=null,!t.default)return a=null;const S=t.default(),b=S[0];if(S.length>1)return a=null,S;if(!Il(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return a=null,b;let w=n0(b);if(w.type===Sr)return a=null,w;const T=w.type,C=EE(Du(w)?w.type.__asyncResolved||{}:T),{include:E,exclude:R,max:I}=e;if(E&&(!C||!yv(E,C))||R&&C&&yv(R,C))return w.shapeFlag&=-257,a=w,b;const M=w.key==null?T:w.key,P=i.get(M);return w.el&&(w=Is(w),b.shapeFlag&128&&(b.ssContent=w)),_=M,P?(w.el=P.el,w.component=P.component,w.transition&&Al(w,w.transition),w.shapeFlag|=512,o.delete(M),o.add(M)):(o.add(M),I&&o.size>parseInt(I,10)&&m(o.values().next().value)),w.shapeFlag|=256,a=w,L1(b.type)?b:w}}},GJ=zJ;function yv(e,t){return Qe(e)?e.some(n=>yv(n,t)):Mt(e)?e.split(",").includes(t):X4(e)?(e.lastIndex=0,e.test(t)):!1}function U$(e,t){z$(e,"a",t)}function H$(e,t){z$(e,"da",t)}function z$(e,t,n=Rr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(eS(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Tm(i.parent.vnode)&&WJ(r,t,n,i),i=i.parent}}function WJ(e,t,n,r){const i=eS(t,e,r,!0);Qf(()=>{Hb(r[t],i)},n)}function Gx(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function n0(e){return e.shapeFlag&128?e.ssContent:e}function eS(e,t,n=Rr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Qu();const s=Lf(n),l=ya(t,n,e,a);return s(),ec(),l});return r?i.unshift(o):i.push(o),o}}const Dl=e=>(t,n=Rr)=>{(!Ch||e==="sp")&&eS(e,(...r)=>t(...r),n)},G$=Dl("bm"),Vo=Dl("m"),c2=Dl("bu"),tS=Dl("u"),nS=Dl("bum"),Qf=Dl("um"),W$=Dl("sp"),j$=Dl("rtg"),X$=Dl("rtc");function Y$(e,t=Rr){eS("ec",e,t)}const f2="components",jJ="directives";function XJ(e,t){return d2(f2,e,!0,t)||e}const K$=Symbol.for("v-ndc");function ml(e){return Mt(e)?d2(f2,e,!1)||e:e||K$}function YJ(e){return d2(jJ,e)}function d2(e,t,n=!0,r=!1){const i=Pr||Rr;if(i){const o=i.type;if(e===f2){const s=EE(o,!1);if(s&&(s===t||s===Vn(t)||s===Ju(Vn(t))))return o}const a=ZD(i[e]||o[e],t)||ZD(i.appContext[e],t);return!a&&r?o:a}}function ZD(e,t){return e&&(e[t]||e[Vn(t)]||e[Ju(Vn(t))])}function fn(e,t,n,r){let i;const o=n&&n[r],a=Qe(e);if(a||Mt(e)){const s=a&&Ou(e);let l=!1;s&&(l=!Do(e),e=Yb(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?hi(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(mn(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=t(e[c],c,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function KJ(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Qe(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function yf(e,t,n={},r,i){if(Pr.ce||Pr.parent&&Du(Pr.parent)&&Pr.parent.ce)return t!=="default"&&(n.name=t),Y(),yt(Ye,null,[G("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),Y();const a=o&&h2(o(n)),s=n.key||a&&a.key,l=yt(Ye,{key:(s&&!Vi(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function h2(e){return e.some(t=>Il(t)?!(t.type===Sr||t.type===Ye&&!h2(t.children)):!0)?e:null}function ZJ(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:vf(r)]=e[r];return n}const vE=e=>e?AB(e)?Am(e):vE(e.parent):null,Uv=tn(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=>vE(e.parent),$root:e=>vE(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>p2(e),$forceUpdate:e=>e.f||(e.f=()=>{a2(e.update)}),$nextTick:e=>e.n||(e.n=Qa.bind(e.proxy)),$watch:e=>TQ.bind(e)}),Wx=(e,t)=>e!==Qt&&!e.__isScriptSetup&&dn(e,t),gE={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Wx(r,t))return a[t]=1,r[t];if(i!==Qt&&dn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&dn(u,t))return a[t]=3,o[t];if(n!==Qt&&dn(n,t))return a[t]=4,n[t];mE&&(a[t]=0)}}const c=Uv[t];let f,d;if(c)return t==="$attrs"&&di(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Qt&&dn(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,dn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Wx(i,t)?(i[t]=n,!0):r!==Qt&&dn(r,t)?(r[t]=n,!0):dn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==Qt&&dn(e,a)||Wx(t,a)||(s=o[0])&&dn(s,a)||dn(r,a)||dn(Uv,a)||dn(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:dn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qJ=tn({},gE,{get(e,t){if(t!==Symbol.unscopables)return gE.get(e,t,e)},has(e,t){return t[0]!=="_"&&!KI(t)}});function JJ(){return null}function QJ(){return null}function eQ(e){}function tQ(e){}function nQ(){return null}function rQ(){}function iQ(e,t){return null}function oQ(){return Z$().slots}function aQ(){return Z$().attrs}function Z$(){const e=Tr();return e.setupContext||(e.setupContext=PB(e))}function kg(e){return Qe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function sQ(e,t){const n=kg(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Qe(i)||Ct(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function M1(e,t){return!e||!t?e||t:Qe(e)&&Qe(t)?e.concat(t):tn({},kg(e),kg(t))}function lQ(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function uQ(e){const t=Tr();let n=e();return xE(),zb(n)&&(n=n.catch(r=>{throw Lf(t),r})),[n,()=>Lf(t)]}let mE=!0;function cQ(e){const t=p2(e),n=e.proxy,r=e.ctx;mE=!1,t.beforeCreate&&qD(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:m,deactivated:_,beforeDestroy:y,beforeUnmount:S,destroyed:b,unmounted:w,render:T,renderTracked:C,renderTriggered:E,errorCaptured:R,serverPrefetch:I,expose:M,inheritAttrs:P,components:D,directives:k,filters:$}=t;if(u&&fQ(u,r,null),a)for(const K in a){const X=a[K];Ct(X)&&(r[K]=X.bind(n))}if(i){const K=i.call(n,n);mn(K)&&(e.data=qa(K))}if(mE=!0,o)for(const K in o){const X=o[K],ae=Ct(X)?X.bind(n,n):Ct(X.get)?X.get.bind(n,n):Vr,ge=!Ct(X)&&Ct(X.set)?X.set.bind(n):Vr,ye=Ce({get:ae,set:ge});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>ye.value,set:Me=>ye.value=Me})}if(s)for(const K in s)q$(s[K],r,n,K);if(l){const K=Ct(l)?l.call(n):l;Reflect.ownKeys(K).forEach(X=>{Hv(X,K[X])})}c&&qD(c,e,"c");function N(K,X){Qe(X)?X.forEach(ae=>K(ae.bind(n))):X&&K(X.bind(n))}if(N(G$,f),N(Vo,d),N(c2,h),N(tS,v),N(U$,m),N(H$,_),N(Y$,R),N(X$,C),N(j$,E),N(nS,S),N(Qf,w),N(W$,I),Qe(M))if(M.length){const K=e.exposed||(e.exposed={});M.forEach(X=>{Object.defineProperty(K,X,{get:()=>n[X],set:ae=>n[X]=ae})})}else e.exposed||(e.exposed={});T&&e.render===Vr&&(e.render=T),P!=null&&(e.inheritAttrs=P),D&&(e.components=D),k&&(e.directives=k),I&&u2(e)}function fQ(e,t,n=Vr){Qe(e)&&(e=yE(e));for(const r in e){const i=e[r];let o;mn(i)?"default"in i?o=lo(i.from||r,i.default,!0):o=lo(i.from||r):o=lo(i),ht(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function qD(e,t,n){ya(Qe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function q$(e,t,n,r){let i=r.includes(".")?gB(n,r):()=>n[r];if(Mt(e)){const o=t[e];Ct(o)&&Bt(i,o)}else if(Ct(e))Bt(i,e.bind(n));else if(mn(e))if(Qe(e))e.forEach(o=>q$(o,t,n,r));else{const o=Ct(e.handler)?e.handler.bind(n):t[e.handler];Ct(o)&&Bt(i,o,e)}}function p2(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>O1(l,u,a,!0)),O1(l,t,a)),mn(t)&&o.set(t,l),l}function O1(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&O1(e,o,n,!0),i&&i.forEach(a=>O1(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=dQ[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const dQ={data:JD,props:QD,emits:QD,methods:_v,computed:_v,beforeCreate:Ai,created:Ai,beforeMount:Ai,mounted:Ai,beforeUpdate:Ai,updated:Ai,beforeDestroy:Ai,beforeUnmount:Ai,destroyed:Ai,unmounted:Ai,activated:Ai,deactivated:Ai,errorCaptured:Ai,serverPrefetch:Ai,components:_v,directives:_v,watch:pQ,provide:JD,inject:hQ};function JD(e,t){return t?e?function(){return tn(Ct(e)?e.call(this,this):e,Ct(t)?t.call(this,this):t)}:t:e}function hQ(e,t){return _v(yE(e),yE(t))}function yE(e){if(Qe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ai(e,t){return e?[...new Set([].concat(e,t))]:t}function _v(e,t){return e?tn(Object.create(null),e,t):t}function QD(e,t){return e?Qe(e)&&Qe(t)?[...new Set([...e,...t])]:tn(Object.create(null),kg(e),kg(t??{})):t}function pQ(e,t){if(!e)return t;if(!t)return e;const n=tn(Object.create(null),e);for(const r in t)n[r]=Ai(e[r],t[r]);return n}function J$(){return{app:null,config:{isNativeTag:Qd,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 vQ=0;function gQ(e,t){return function(r,i=null){Ct(r)||(r=tn({},r)),i!=null&&!mn(i)&&(i=null);const o=J$(),a=new WeakSet,s=[];let l=!1;const u=o.app={_uid:vQ++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:OB,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&Ct(c.install)?(a.add(c),c.install(u,...f)):Ct(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||G(r,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,Am(h.component)}},onUnmount(c){s.push(c)},unmount(){l&&(ya(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=_f;_f=u;try{return c()}finally{_f=f}}};return u}}let _f=null;function Hv(e,t){if(Rr){let n=Rr.provides;const r=Rr.parent&&Rr.parent.provides;r===n&&(n=Rr.provides=Object.create(r)),n[e]=t}}function lo(e,t,n=!1){const r=Rr||Pr;if(r||_f){const i=_f?_f._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ct(t)?t.call(r&&r.proxy):t}}function v2(){return!!(Rr||Pr||_f)}const Q$={},eB=()=>Object.create(Q$),tB=e=>Object.getPrototypeOf(e)===Q$;function mQ(e,t,n,r=!1){const i={},o=eB();e.propsDefaults=Object.create(null),nB(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:r2(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function yQ(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=un(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(iS(e.emitsOptions,d))continue;const h=t[d];if(l)if(dn(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const v=Vn(d);i[v]=_E(l,s,v,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{nB(e,t,i,o)&&(u=!0);let c;for(const f in s)(!t||!dn(t,f)&&((c=pi(f))===f||!dn(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=_E(l,s,f,void 0,e,!0)):delete i[f]);if(o!==s)for(const f in o)(!t||!dn(t,f))&&(delete o[f],u=!0)}u&&al(e.attrs,"set","")}function nB(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(gl(l))continue;const u=t[l];let c;i&&dn(i,c=Vn(l))?!o||!o.includes(c)?n[c]=u:(s||(s={}))[c]=u:iS(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=un(n),u=s||Qt;for(let c=0;c<o.length;c++){const f=o[c];n[f]=_E(i,l,f,u[f],e,!dn(u,f))}}return a}function _E(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=dn(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ct(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=Lf(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===pi(n))&&(r=!0))}return r}const _Q=new WeakMap;function rB(e,t,n=!1){const r=n?_Q:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!Ct(e)){const c=f=>{l=!0;const[d,h]=rB(f,t,!0);tn(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return mn(e)&&r.set(e,hf),hf;if(Qe(o))for(let c=0;c<o.length;c++){const f=Vn(o[c]);eL(f)&&(a[f]=Qt)}else if(o)for(const c in o){const f=Vn(c);if(eL(f)){const d=o[c],h=a[f]=Qe(d)||Ct(d)?{type:d}:tn({},d),v=h.type;let m=!1,_=!0;if(Qe(v))for(let y=0;y<v.length;++y){const S=v[y],b=Ct(S)&&S.name;if(b==="Boolean"){m=!0;break}else b==="String"&&(_=!1)}else m=Ct(v)&&v.name==="Boolean";h[0]=m,h[1]=_,(m||dn(h,"default"))&&s.push(f)}}const u=[a,s];return mn(e)&&r.set(e,u),u}function eL(e){return e[0]!=="$"&&!gl(e)}const iB=e=>e[0]==="_"||e==="$stable",g2=e=>Qe(e)?e.map(no):[no(e)],bQ=(e,t,n)=>{if(t._n)return t;const r=qn((...i)=>g2(t(...i)),n);return r._c=!1,r},oB=(e,t,n)=>{const r=e._ctx;for(const i in e){if(iB(i))continue;const o=e[i];if(Ct(o))t[i]=bQ(i,o,r);else if(o!=null){const a=g2(o);t[i]=()=>a}}},aB=(e,t)=>{const n=g2(t);e.slots.default=()=>n},sB=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},SQ=(e,t,n)=>{const r=e.slots=eB();if(e.vnode.shapeFlag&32){const i=t._;i?(sB(r,t,n),n&&YI(r,"_",i,!0)):oB(t,r)}else t&&aB(e,t)},wQ=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=Qt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:sB(i,t,n):(o=!t.$stable,oB(t,i)),a=t}else t&&(aB(e,t),a={default:1});if(o)for(const s in i)!iB(s)&&a[s]==null&&delete i[s]},Ir=bB;function lB(e){return cB(e)}function uB(e){return cB(e,OJ)}function cB(e,t){const n=wm();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Vr,insertStaticContent:v}=e,m=(H,z,ue,we=null,ve=null,U=null,j=void 0,J=null,de=!!z.dynamicChildren)=>{if(H===z)return;H&&!Ga(H,z)&&(we=fe(H),Me(H,ve,U,!0),H=null),z.patchFlag===-2&&(de=!1,z.dynamicChildren=null);const{type:_e,ref:Oe,shapeFlag:q}=z;switch(_e){case yl:_(H,z,ue,we);break;case Sr:y(H,z,ue,we);break;case bf:H==null&&S(z,ue,we,j);break;case Ye:D(H,z,ue,we,ve,U,j,J,de);break;default:q&1?T(H,z,ue,we,ve,U,j,J,de):q&6?k(H,z,ue,we,ve,U,j,J,de):(q&64||q&128)&&_e.process(H,z,ue,we,ve,U,j,J,de,Te)}Oe!=null&&ve&&Ng(Oe,H&&H.ref,U,z||H,!z)},_=(H,z,ue,we)=>{if(H==null)r(z.el=s(z.children),ue,we);else{const ve=z.el=H.el;z.children!==H.children&&u(ve,z.children)}},y=(H,z,ue,we)=>{H==null?r(z.el=l(z.children||""),ue,we):z.el=H.el},S=(H,z,ue,we)=>{[H.el,H.anchor]=v(H.children,z,ue,we,H.el,H.anchor)},b=({el:H,anchor:z},ue,we)=>{let ve;for(;H&&H!==z;)ve=d(H),r(H,ue,we),H=ve;r(z,ue,we)},w=({el:H,anchor:z})=>{let ue;for(;H&&H!==z;)ue=d(H),i(H),H=ue;i(z)},T=(H,z,ue,we,ve,U,j,J,de)=>{z.type==="svg"?j="svg":z.type==="math"&&(j="mathml"),H==null?C(z,ue,we,ve,U,j,J,de):I(H,z,ve,U,j,J,de)},C=(H,z,ue,we,ve,U,j,J)=>{let de,_e;const{props:Oe,shapeFlag:q,transition:he,dirs:Ve}=H;if(de=H.el=a(H.type,U,Oe&&Oe.is,Oe),q&8?c(de,H.children):q&16&&R(H.children,de,null,we,ve,jx(H,U),j,J),Ve&&vs(H,null,we,"created"),E(de,H,H.scopeId,j,we),Oe){for(const bt in Oe)bt!=="value"&&!gl(bt)&&o(de,bt,null,Oe[bt],U,we);"value"in Oe&&o(de,"value",null,Oe.value,U),(_e=Oe.onVnodeBeforeMount)&&Qi(_e,we,H)}Ve&&vs(H,null,we,"beforeMount");const Ze=fB(ve,he);Ze&&he.beforeEnter(de),r(de,z,ue),((_e=Oe&&Oe.onVnodeMounted)||Ze||Ve)&&Ir(()=>{_e&&Qi(_e,we,H),Ze&&he.enter(de),Ve&&vs(H,null,we,"mounted")},ve)},E=(H,z,ue,we,ve)=>{if(ue&&h(H,ue),we)for(let U=0;U<we.length;U++)h(H,we[U]);if(ve){let U=ve.subTree;if(z===U||L1(U.type)&&(U.ssContent===z||U.ssFallback===z)){const j=ve.vnode;E(H,j,j.scopeId,j.slotScopeIds,ve.parent)}}},R=(H,z,ue,we,ve,U,j,J,de=0)=>{for(let _e=de;_e<H.length;_e++){const Oe=H[_e]=J?hu(H[_e]):no(H[_e]);m(null,Oe,z,ue,we,ve,U,j,J)}},I=(H,z,ue,we,ve,U,j)=>{const J=z.el=H.el;let{patchFlag:de,dynamicChildren:_e,dirs:Oe}=z;de|=H.patchFlag&16;const q=H.props||Qt,he=z.props||Qt;let Ve;if(ue&&gc(ue,!1),(Ve=he.onVnodeBeforeUpdate)&&Qi(Ve,ue,z,H),Oe&&vs(z,H,ue,"beforeUpdate"),ue&&gc(ue,!0),(q.innerHTML&&he.innerHTML==null||q.textContent&&he.textContent==null)&&c(J,""),_e?M(H.dynamicChildren,_e,J,ue,we,jx(z,ve),U):j||X(H,z,J,null,ue,we,jx(z,ve),U,!1),de>0){if(de&16)P(J,q,he,ue,ve);else if(de&2&&q.class!==he.class&&o(J,"class",null,he.class,ve),de&4&&o(J,"style",q.style,he.style,ve),de&8){const Ze=z.dynamicProps;for(let bt=0;bt<Ze.length;bt++){const ne=Ze[bt],se=q[ne],pe=he[ne];(pe!==se||ne==="value")&&o(J,ne,se,pe,ve,ue)}}de&1&&H.children!==z.children&&c(J,z.children)}else!j&&_e==null&&P(J,q,he,ue,ve);((Ve=he.onVnodeUpdated)||Oe)&&Ir(()=>{Ve&&Qi(Ve,ue,z,H),Oe&&vs(z,H,ue,"updated")},we)},M=(H,z,ue,we,ve,U,j)=>{for(let J=0;J<z.length;J++){const de=H[J],_e=z[J],Oe=de.el&&(de.type===Ye||!Ga(de,_e)||de.shapeFlag&70)?f(de.el):ue;m(de,_e,Oe,null,we,ve,U,j,!0)}},P=(H,z,ue,we,ve)=>{if(z!==ue){if(z!==Qt)for(const U in z)!gl(U)&&!(U in ue)&&o(H,U,z[U],null,ve,we);for(const U in ue){if(gl(U))continue;const j=ue[U],J=z[U];j!==J&&U!=="value"&&o(H,U,J,j,ve,we)}"value"in ue&&o(H,"value",z.value,ue.value,ve)}},D=(H,z,ue,we,ve,U,j,J,de)=>{const _e=z.el=H?H.el:s(""),Oe=z.anchor=H?H.anchor:s("");let{patchFlag:q,dynamicChildren:he,slotScopeIds:Ve}=z;Ve&&(J=J?J.concat(Ve):Ve),H==null?(r(_e,ue,we),r(Oe,ue,we),R(z.children||[],ue,Oe,ve,U,j,J,de)):q>0&&q&64&&he&&H.dynamicChildren?(M(H.dynamicChildren,he,ue,ve,U,j,J),(z.key!=null||ve&&z===ve.subTree)&&m2(H,z,!0)):X(H,z,ue,Oe,ve,U,j,J,de)},k=(H,z,ue,we,ve,U,j,J,de)=>{z.slotScopeIds=J,H==null?z.shapeFlag&512?ve.ctx.activate(z,ue,we,j,de):$(z,ue,we,ve,U,j,de):W(H,z,de)},$=(H,z,ue,we,ve,U,j)=>{const J=H.component=EB(H,we,ve);if(Tm(H)&&(J.ctx.renderer=Te),IB(J,!1,j),J.asyncDep){if(ve&&ve.registerDep(J,N,j),!H.el){const de=J.subTree=G(Sr);y(null,de,z,ue)}}else N(J,H,z,ue,ve,U,j)},W=(H,z,ue)=>{const we=z.component=H.component;if(PQ(H,z,ue))if(we.asyncDep&&!we.asyncResolved){K(we,z,ue);return}else we.next=z,we.update();else z.el=H.el,we.vnode=z},N=(H,z,ue,we,ve,U,j)=>{const J=()=>{if(H.isMounted){let{next:q,bu:he,u:Ve,parent:Ze,vnode:bt}=H;{const Ge=dB(H);if(Ge){q&&(q.el=bt.el,K(H,q,j)),Ge.asyncDep.then(()=>{H.isUnmounted||J()});return}}let ne=q,se;gc(H,!1),q?(q.el=bt.el,K(H,q,j)):q=bt,he&&gf(he),(se=q.props&&q.props.onVnodeBeforeUpdate)&&Qi(se,Ze,q,bt),gc(H,!0);const pe=A_(H),Ee=H.subTree;H.subTree=pe,m(Ee,pe,f(Ee.el),fe(Ee),H,ve,U),q.el=pe.el,ne===null&&oS(H,pe.el),Ve&&Ir(Ve,ve),(se=q.props&&q.props.onVnodeUpdated)&&Ir(()=>Qi(se,Ze,q,bt),ve)}else{let q;const{el:he,props:Ve}=z,{bm:Ze,m:bt,parent:ne,root:se,type:pe}=H,Ee=Du(z);if(gc(H,!1),Ze&&gf(Ze),!Ee&&(q=Ve&&Ve.onVnodeBeforeMount)&&Qi(q,ne,z),gc(H,!0),he&&Be){const Ge=()=>{H.subTree=A_(H),Be(he,H.subTree,H,ve,null)};Ee&&pe.__asyncHydrate?pe.__asyncHydrate(he,H,Ge):Ge()}else{se.ce&&se.ce._injectChildStyle(pe);const Ge=H.subTree=A_(H);m(null,Ge,ue,we,H,ve,U),z.el=Ge.el}if(bt&&Ir(bt,ve),!Ee&&(q=Ve&&Ve.onVnodeMounted)){const Ge=z;Ir(()=>Qi(q,ne,Ge),ve)}(z.shapeFlag&256||ne&&Du(ne.vnode)&&ne.vnode.shapeFlag&256)&&H.a&&Ir(H.a,ve),H.isMounted=!0,z=ue=we=null}};H.scope.on();const de=H.effect=new Rg(J);H.scope.off();const _e=H.update=de.run.bind(de),Oe=H.job=de.runIfDirty.bind(de);Oe.i=H,Oe.id=H.uid,de.scheduler=()=>a2(Oe),gc(H,!0),_e()},K=(H,z,ue)=>{z.component=H;const we=H.vnode.props;H.vnode=z,H.next=null,yQ(H,z.props,we,ue),wQ(H,z.children,ue),Qu(),zD(H),ec()},X=(H,z,ue,we,ve,U,j,J,de=!1)=>{const _e=H&&H.children,Oe=H?H.shapeFlag:0,q=z.children,{patchFlag:he,shapeFlag:Ve}=z;if(he>0){if(he&128){ge(_e,q,ue,we,ve,U,j,J,de);return}else if(he&256){ae(_e,q,ue,we,ve,U,j,J,de);return}}Ve&8?(Oe&16&&je(_e,ve,U),q!==_e&&c(ue,q)):Oe&16?Ve&16?ge(_e,q,ue,we,ve,U,j,J,de):je(_e,ve,U,!0):(Oe&8&&c(ue,""),Ve&16&&R(q,ue,we,ve,U,j,J,de))},ae=(H,z,ue,we,ve,U,j,J,de)=>{H=H||hf,z=z||hf;const _e=H.length,Oe=z.length,q=Math.min(_e,Oe);let he;for(he=0;he<q;he++){const Ve=z[he]=de?hu(z[he]):no(z[he]);m(H[he],Ve,ue,null,ve,U,j,J,de)}_e>Oe?je(H,ve,U,!0,!1,q):R(z,ue,we,ve,U,j,J,de,q)},ge=(H,z,ue,we,ve,U,j,J,de)=>{let _e=0;const Oe=z.length;let q=H.length-1,he=Oe-1;for(;_e<=q&&_e<=he;){const Ve=H[_e],Ze=z[_e]=de?hu(z[_e]):no(z[_e]);if(Ga(Ve,Ze))m(Ve,Ze,ue,null,ve,U,j,J,de);else break;_e++}for(;_e<=q&&_e<=he;){const Ve=H[q],Ze=z[he]=de?hu(z[he]):no(z[he]);if(Ga(Ve,Ze))m(Ve,Ze,ue,null,ve,U,j,J,de);else break;q--,he--}if(_e>q){if(_e<=he){const Ve=he+1,Ze=Ve<Oe?z[Ve].el:we;for(;_e<=he;)m(null,z[_e]=de?hu(z[_e]):no(z[_e]),ue,Ze,ve,U,j,J,de),_e++}}else if(_e>he)for(;_e<=q;)Me(H[_e],ve,U,!0),_e++;else{const Ve=_e,Ze=_e,bt=new Map;for(_e=Ze;_e<=he;_e++){const $e=z[_e]=de?hu(z[_e]):no(z[_e]);$e.key!=null&&bt.set($e.key,_e)}let ne,se=0;const pe=he-Ze+1;let Ee=!1,Ge=0;const oe=new Array(pe);for(_e=0;_e<pe;_e++)oe[_e]=0;for(_e=Ve;_e<=q;_e++){const $e=H[_e];if(se>=pe){Me($e,ve,U,!0);continue}let et;if($e.key!=null)et=bt.get($e.key);else for(ne=Ze;ne<=he;ne++)if(oe[ne-Ze]===0&&Ga($e,z[ne])){et=ne;break}et===void 0?Me($e,ve,U,!0):(oe[et-Ze]=_e+1,et>=Ge?Ge=et:Ee=!0,m($e,z[et],ue,null,ve,U,j,J,de),se++)}const Ie=Ee?xQ(oe):hf;for(ne=Ie.length-1,_e=pe-1;_e>=0;_e--){const $e=Ze+_e,et=z[$e],We=$e+1<Oe?z[$e+1].el:we;oe[_e]===0?m(null,et,ue,We,ve,U,j,J,de):Ee&&(ne<0||_e!==Ie[ne]?ye(et,ue,We,2):ne--)}}},ye=(H,z,ue,we,ve=null)=>{const{el:U,type:j,transition:J,children:de,shapeFlag:_e}=H;if(_e&6){ye(H.component.subTree,z,ue,we);return}if(_e&128){H.suspense.move(z,ue,we);return}if(_e&64){j.move(H,z,ue,Te);return}if(j===Ye){r(U,z,ue);for(let q=0;q<de.length;q++)ye(de[q],z,ue,we);r(H.anchor,z,ue);return}if(j===bf){b(H,z,ue);return}if(we!==2&&_e&1&&J)if(we===0)J.beforeEnter(U),r(U,z,ue),Ir(()=>J.enter(U),ve);else{const{leave:q,delayLeave:he,afterLeave:Ve}=J,Ze=()=>r(U,z,ue),bt=()=>{q(U,()=>{Ze(),Ve&&Ve()})};he?he(U,Ze,bt):bt()}else r(U,z,ue)},Me=(H,z,ue,we=!1,ve=!1)=>{const{type:U,props:j,ref:J,children:de,dynamicChildren:_e,shapeFlag:Oe,patchFlag:q,dirs:he,cacheIndex:Ve}=H;if(q===-2&&(ve=!1),J!=null&&Ng(J,null,ue,H,!0),Ve!=null&&(z.renderCache[Ve]=void 0),Oe&256){z.ctx.deactivate(H);return}const Ze=Oe&1&&he,bt=!Du(H);let ne;if(bt&&(ne=j&&j.onVnodeBeforeUnmount)&&Qi(ne,z,H),Oe&6)Le(H.component,ue,we);else{if(Oe&128){H.suspense.unmount(ue,we);return}Ze&&vs(H,null,z,"beforeUnmount"),Oe&64?H.type.remove(H,z,ue,Te,we):_e&&!_e.hasOnce&&(U!==Ye||q>0&&q&64)?je(_e,z,ue,!1,!0):(U===Ye&&q&384||!ve&&Oe&16)&&je(de,z,ue),we&&ke(H)}(bt&&(ne=j&&j.onVnodeUnmounted)||Ze)&&Ir(()=>{ne&&Qi(ne,z,H),Ze&&vs(H,null,z,"unmounted")},ue)},ke=H=>{const{type:z,el:ue,anchor:we,transition:ve}=H;if(z===Ye){Ue(ue,we);return}if(z===bf){w(H);return}const U=()=>{i(ue),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(H.shapeFlag&1&&ve&&!ve.persisted){const{leave:j,delayLeave:J}=ve,de=()=>j(ue,U);J?J(H.el,U,de):de()}else U()},Ue=(H,z)=>{let ue;for(;H!==z;)ue=d(H),i(H),H=ue;i(z)},Le=(H,z,ue)=>{const{bum:we,scope:ve,job:U,subTree:j,um:J,m:de,a:_e}=H;D1(de),D1(_e),we&&gf(we),ve.stop(),U&&(U.flags|=8,Me(j,H,z,ue)),J&&Ir(J,z),Ir(()=>{H.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},je=(H,z,ue,we=!1,ve=!1,U=0)=>{for(let j=U;j<H.length;j++)Me(H[j],z,ue,we,ve)},fe=H=>{if(H.shapeFlag&6)return fe(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const z=d(H.anchor||H.el),ue=z&&z[D$];return ue?d(ue):z};let Ae=!1;const Se=(H,z,ue)=>{H==null?z._vnode&&Me(z._vnode,null,null,!0):m(z._vnode||null,H,z,null,null,null,ue),z._vnode=H,Ae||(Ae=!0,zD(),P1(),Ae=!1)},Te={p:m,um:Me,m:ye,r:ke,mt:$,mc:R,pc:X,pbc:M,n:fe,o:e};let Ne,Be;return t&&([Ne,Be]=t(Te)),{render:Se,hydrate:Ne,createApp:gQ(Se,Ne)}}function jx({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fB(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function m2(e,t,n=!1){const r=e.children,i=t.children;if(Qe(r)&&Qe(i))for(let o=0;o<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=hu(i[o]),s.el=a.el),!n&&s.patchFlag!==-2&&m2(a,s)),s.type===yl&&(s.el=a.el)}}function xQ(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function dB(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dB(t)}function D1(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const hB=Symbol.for("v-scx"),pB=()=>lo(hB);function rS(e,t){return Em(e,null,t)}function CQ(e,t){return Em(e,null,{flush:"post"})}function vB(e,t){return Em(e,null,{flush:"sync"})}function Bt(e,t,n){return Em(e,t,n)}function Em(e,t,n=Qt){const{immediate:r,deep:i,flush:o,once:a}=n,s=tn({},n),l=t&&r||!t&&o!=="post";let u;if(Ch){if(o==="sync"){const h=pB();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Vr,h.resume=Vr,h.pause=Vr,h}}const c=Rr;s.call=(h,v,m)=>ya(h,c,v,m);let f=!1;o==="post"?s.scheduler=h=>{Ir(h,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():a2(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=pJ(e,t,s);return Ch&&(u?u.push(d):l&&d()),d}function TQ(e,t,n){const r=this.proxy,i=Mt(e)?e.includes(".")?gB(r,e):()=>r[e]:e.bind(r,r);let o;Ct(t)?o=t:(o=t.handler,n=t);const a=Lf(this),s=Em(i,o.bind(r),n);return a(),s}function gB(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function y2(e,t,n=Qt){const r=Tr(),i=Vn(t),o=pi(t),a=mB(e,i),s=o2((l,u)=>{let c,f=Qt,d;return vB(()=>{const h=e[i];fi(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const v=n.set?n.set(h):h;if(!fi(v,c)&&!(f!==Qt&&fi(h,f)))return;const m=r.vnode.props;m&&(t in m||i in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(c=h,u()),r.emit(`update:${t}`,v),fi(h,v)&&fi(h,f)&&!fi(v,d)&&u(),f=h,d=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Qt:s,done:!1}:{done:!0}}}},s}const mB=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Vn(t)}Modifiers`]||e[`${pi(t)}Modifiers`];function EQ(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Qt;let i=n;const o=t.startsWith("update:"),a=o&&mB(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Mt(c)?c.trim():c)),a.number&&(i=n.map(Ag)));let s,l=r[s=vf(t)]||r[s=vf(Vn(t))];!l&&o&&(l=r[s=vf(pi(t))]),l&&ya(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,ya(u,e,6,i)}}function yB(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!Ct(e)){const l=u=>{const c=yB(u,t,!0);c&&(s=!0,tn(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(mn(e)&&r.set(e,null),null):(Qe(o)?o.forEach(l=>a[l]=null):tn(a,o),mn(e)&&r.set(e,a),a)}function iS(e,t){return!e||!Zu(t)?!1:(t=t.slice(2).replace(/Once$/,""),dn(e,t[0].toLowerCase()+t.slice(1))||dn(e,pi(t))||dn(e,t))}function A_(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:v,inheritAttrs:m}=e,_=Lg(e);let y,S;try{if(n.shapeFlag&4){const w=i||r,T=w;y=no(u.call(T,w,c,f,h,d,v)),S=s}else{const w=t;y=no(w.length>1?w(f,{attrs:s,slots:a,emit:l}):w(f,null)),S=t.props?s:IQ(s)}}catch(w){zv.length=0,Jf(w,e,1),y=G(Sr)}let b=y;if(S&&m!==!1){const w=Object.keys(S),{shapeFlag:T}=b;w.length&&T&7&&(o&&w.some(Ub)&&(S=RQ(S,o)),b=Is(b,S,!1,!0))}return n.dirs&&(b=Is(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Al(b,n.transition),y=b,Lg(_),y}function AQ(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(Il(i)){if(i.type!==Sr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const IQ=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zu(n))&&((t||(t={}))[n]=e[n]);return t},RQ=(e,t)=>{const n={};for(const r in e)(!Ub(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function PQ(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?tL(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(a[d]!==r[d]&&!iS(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?tL(r,a,u):!0:!!a;return!1}function tL(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!iS(n,o))return!0}return!1}function oS({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const L1=e=>e.__isSuspense;let bE=0;const MQ={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)DQ(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}LQ(e,t,n,r,i,a,s,l,u)}},hydrate:NQ,normalize:kQ},OQ=MQ;function Fg(e,t){const n=e.props&&e.props[t];Ct(n)&&n()}function DQ(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=_B(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(Fg(e,"onPending"),Fg(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),lh(d,e.ssFallback)):d.resolve(!1,!0)}function LQ(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:_,isHydrating:y}=f;if(m)f.pendingBranch=d,Ga(d,m)?(l(m,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():_&&(y||(l(v,h,n,r,i,null,o,a,s),lh(f,h)))):(f.pendingId=bE++,y?(f.isHydrating=!1,f.activeBranch=m):u(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),_?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(v,h,n,r,i,null,o,a,s),lh(f,h))):v&&Ga(d,v)?(l(v,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(v&&Ga(d,v))l(v,d,n,r,i,f,o,a,s),lh(f,d);else if(Fg(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=bE++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:S,pendingId:b}=f;S>0?setTimeout(()=>{f.pendingId===b&&f.fallback(h)},S):S===0&&f.fallback(h)}}function _B(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:m,remove:_}}=u;let y;const S=FQ(e);S&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const b=e.props?Ig(e.props.timeout):void 0,w=o,T={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:bE++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(C=!1,E=!1){const{vnode:R,activeBranch:I,pendingBranch:M,pendingId:P,effects:D,parentComponent:k,container:$}=T;let W=!1;T.isHydrating?T.isHydrating=!1:C||(W=I&&M.transition&&M.transition.mode==="out-in",W&&(I.transition.afterLeave=()=>{P===T.pendingId&&(d(M,$,o===w?v(I):o,0),Og(D))}),I&&(m(I.el)===$&&(o=v(I)),h(I,k,T,!0)),W||d(M,$,o,0)),lh(T,M),T.pendingBranch=null,T.isInFallback=!1;let N=T.parent,K=!1;for(;N;){if(N.pendingBranch){N.effects.push(...D),K=!0;break}N=N.parent}!K&&!W&&Og(D),T.effects=[],S&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Fg(R,"onResolve")},fallback(C){if(!T.pendingBranch)return;const{vnode:E,activeBranch:R,parentComponent:I,container:M,namespace:P}=T;Fg(E,"onFallback");const D=v(R),k=()=>{T.isInFallback&&(f(null,C,M,D,I,null,P,s,l),lh(T,C))},$=C.transition&&C.transition.mode==="out-in";$&&(R.transition.afterLeave=k),T.isInFallback=!0,h(R,I,null,!0),$||k()},move(C,E,R){T.activeBranch&&d(T.activeBranch,C,E,R),T.container=C},next(){return T.activeBranch&&v(T.activeBranch)},registerDep(C,E,R){const I=!!T.pendingBranch;I&&T.deps++;const M=C.vnode.el;C.asyncDep.catch(P=>{Jf(P,C,0)}).then(P=>{if(C.isUnmounted||T.isUnmounted||T.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:D}=C;CE(C,P,!1),M&&(D.el=M);const k=!M&&C.subTree.el;E(C,D,m(M||C.subTree.el),M?null:v(C.subTree),T,a,R),k&&_(k),oS(C,D.el),I&&--T.deps===0&&T.resolve()})},unmount(C,E){T.isUnmounted=!0,T.activeBranch&&h(T.activeBranch,n,C,E),T.pendingBranch&&h(T.pendingBranch,n,C,E)}};return T}function NQ(e,t,n,r,i,o,a,s,l){const u=t.suspense=_B(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function kQ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=nL(r?n.default:n),e.ssFallback=r?nL(n.fallback):G(Sr)}function nL(e){let t;if(Ct(e)){const n=Df&&e._c;n&&(e._d=!1,Y()),e=e(),n&&(e._d=!0,t=yi,SB())}return Qe(e)&&(e=AQ(e)),e=no(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function bB(e,t){t&&t.pendingBranch?Qe(e)?t.effects.push(...e):t.effects.push(e):Og(e)}function lh(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,oS(r,i))}function FQ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ye=Symbol.for("v-fgt"),yl=Symbol.for("v-txt"),Sr=Symbol.for("v-cmt"),bf=Symbol.for("v-stc"),zv=[];let yi=null;function Y(e=!1){zv.push(yi=e?null:[])}function SB(){zv.pop(),yi=zv[zv.length-1]||null}let Df=1;function SE(e,t=!1){Df+=e,e<0&&yi&&t&&(yi.hasOnce=!0)}function wB(e){return e.dynamicChildren=Df>0?yi||hf:null,SB(),Df>0&&yi&&yi.push(e),e}function te(e,t,n,r,i,o){return wB(L(e,t,n,r,i,o,!0))}function yt(e,t,n,r,i){return wB(G(e,t,n,r,i,!0))}function Il(e){return e?e.__v_isVNode===!0:!1}function Ga(e,t){return e.type===t.type&&e.key===t.key}function $Q(e){}const xB=({key:e})=>e??null,I_=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mt(e)||ht(e)||Ct(e)?{i:Pr,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===Ye?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xB(t),ref:t&&I_(t),scopeId:Jb,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pr};return s?(_2(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Mt(n)?8:16),Df>0&&!a&&yi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&yi.push(l),l}const G=BQ;function BQ(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===K$)&&(e=Sr),Il(e)){const s=Is(e,t,!0);return n&&_2(s,n),Df>0&&!o&&yi&&(s.shapeFlag&6?yi[yi.indexOf(e)]=s:yi.push(s)),s.patchFlag=-2,s}if(XQ(e)&&(e=e.__vccOpts),t){t=CB(t);let{class:s,style:l}=t;s&&!Mt(s)&&(t.class=gt(s)),mn(l)&&(qb(l)&&!Qe(l)&&(l=tn({},l)),t.style=pr(l))}const a=Mt(e)?1:L1(e)?128:L$(e)?64:mn(e)?4:Ct(e)?2:0;return L(e,t,n,r,i,a,o,!0)}function CB(e){return e?qb(e)||tB(e)?tn({},e):e:null}function Is(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?TB(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&xB(u),ref:t&&t.ref?n&&o?Qe(o)?o.concat(I_(t)):[o,I_(t)]:I_(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ye?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Is(e.ssContent),ssFallback:e.ssFallback&&Is(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Al(c,l.clone(c)),c}function rt(e=" ",t=0){return G(yl,null,e,t)}function VQ(e,t){const n=G(bf,null,e);return n.staticCount=t,n}function at(e="",t=!1){return t?(Y(),yt(Sr,null,e)):G(Sr,null,e)}function no(e){return e==null||typeof e=="boolean"?G(Sr):Qe(e)?G(Ye,null,e.slice()):Il(e)?hu(e):G(yl,null,String(e))}function hu(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Is(e)}function _2(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Qe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),_2(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!tB(t)?t._ctx=Pr:i===3&&Pr&&(Pr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ct(t)?(t={default:t,_ctx:Pr},n=32):(t=String(t),r&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function TB(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=gt([t.class,r.class]));else if(i==="style")t.style=pr([t.style,r.style]);else if(Zu(i)){const o=t[i],a=r[i];a&&o!==a&&!(Qe(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function Qi(e,t,n,r=null){ya(e,t,7,[n,r])}const UQ=J$();let HQ=0;function EB(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||UQ,o={uid:HQ++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new JI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rB(r,i),emitsOptions:yB(r,i),emit:null,emitted:null,propsDefaults:Qt,inheritAttrs:r.inheritAttrs,ctx:Qt,data:Qt,props:Qt,attrs:Qt,slots:Qt,refs:Qt,setupState:Qt,setupContext:null,suspense:n,suspenseId:n?n.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=EQ.bind(null,o),e.ce&&e.ce(o),o}let Rr=null;const Tr=()=>Rr||Pr;let N1,wE;{const e=wm(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};N1=t("__VUE_INSTANCE_SETTERS__",n=>Rr=n),wE=t("__VUE_SSR_SETTERS__",n=>Ch=n)}const Lf=e=>{const t=Rr;return N1(e),e.scope.on(),()=>{e.scope.off(),N1(t)}},xE=()=>{Rr&&Rr.scope.off(),N1(null)};function AB(e){return e.vnode.shapeFlag&4}let Ch=!1;function IB(e,t=!1,n=!1){t&&wE(t);const{props:r,children:i}=e.vnode,o=AB(e);mQ(e,r,o,t),SQ(e,i,n);const a=o?zQ(e,t):void 0;return t&&wE(!1),a}function zQ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gE);const{setup:r}=n;if(r){Qu();const i=e.setupContext=r.length>1?PB(e):null,o=Lf(e),a=ep(r,e,0,[e.props,i]),s=zb(a);if(ec(),o(),(s||e.sp)&&!Du(e)&&u2(e),s){if(a.then(xE,xE),t)return a.then(l=>{CE(e,l,t)}).catch(l=>{Jf(l,e,0)});e.asyncDep=a}else CE(e,a,t)}else RB(e,t)}function CE(e,t,n){Ct(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mn(t)&&(e.setupState=i2(t)),RB(e,n)}let k1,TE;function GQ(e){k1=e,TE=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,qJ))}}const WQ=()=>!k1;function RB(e,t,n){const r=e.type;if(!e.render){if(!t&&k1&&!r.render){const i=r.template||p2(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=tn(tn({isCustomElement:o,delimiters:s},a),l);r.render=k1(i,u)}}e.render=r.render||Vr,TE&&TE(e)}{const i=Lf(e);Qu();try{cQ(e)}finally{ec(),i()}}}const jQ={get(e,t){return di(e,"get",""),e[t]}};function PB(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,jQ),slots:e.slots,emit:e.emit,expose:t}}function Am(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(i2(x$(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Uv)return Uv[n](e)},has(t,n){return n in t||n in Uv}})):e.proxy}function EE(e,t=!0){return Ct(e)?e.displayName||e.name:e.name||t&&e.__name}function XQ(e){return Ct(e)&&"__vccOpts"in e}const Ce=(e,t)=>cJ(e,t,Ch);function ca(e,t,n){const r=arguments.length;return r===2?mn(t)&&!Qe(t)?Il(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Il(n)&&(n=[n]),G(e,t,n))}function YQ(){}function KQ(e,t,n,r){const i=n[r];if(i&&MB(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function MB(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(fi(n[r],t[r]))return!1;return Df>0&&yi&&yi.push(e),!0}const OB="3.5.13",ZQ=Vr,qQ=_J,JQ=Wd,QQ=O$,eee={createComponentInstance:EB,setupComponent:IB,renderComponentRoot:A_,setCurrentRenderingInstance:Lg,isVNode:Il,normalizeVNode:no,getComponentPublicInstance:Am,ensureValidVNode:h2,pushWarningContext:vJ,popWarningContext:gJ},tee=eee,nee=null,ree=null,iee=null;/**
|
||
* @vue/runtime-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let AE;const rL=typeof window<"u"&&window.trustedTypes;if(rL)try{AE=rL.createPolicy("vue",{createHTML:e=>e})}catch{}const DB=AE?e=>AE.createHTML(e):e=>e,oee="http://www.w3.org/2000/svg",aee="http://www.w3.org/1998/Math/MathML",nl=typeof document<"u"?document:null,iL=nl&&nl.createElement("template"),see={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?nl.createElementNS(oee,e):t==="mathml"?nl.createElementNS(aee,e):n?nl.createElement(e,{is:n}):nl.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>nl.createTextNode(e),createComment:e=>nl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{iL.innerHTML=DB(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=iL.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xl="transition",kp="animation",Th=Symbol("_vtc"),LB={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},NB=tn({},l2,LB),lee=e=>(e.displayName="Transition",e.props=NB,e),kB=lee((e,{slots:t})=>ca(B$,FB(e),t)),mc=(e,t=[])=>{Qe(e)?e.forEach(n=>n(...t)):e&&e(...t)},oL=e=>e?Qe(e)?e.some(t=>t.length>1):e.length>1:!1;function FB(e){const t={};for(const D in e)D in LB||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=uee(i),m=v&&v[0],_=v&&v[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:b,onLeave:w,onLeaveCancelled:T,onBeforeAppear:C=y,onAppear:E=S,onAppearCancelled:R=b}=t,I=(D,k,$,W)=>{D._enterCancelled=W,su(D,k?c:s),su(D,k?u:a),$&&$()},M=(D,k)=>{D._isLeaving=!1,su(D,f),su(D,h),su(D,d),k&&k()},P=D=>(k,$)=>{const W=D?E:S,N=()=>I(k,D,$);mc(W,[k,N]),aL(()=>{su(k,D?l:o),hs(k,D?c:s),oL(W)||sL(k,r,m,N)})};return tn(t,{onBeforeEnter(D){mc(y,[D]),hs(D,o),hs(D,a)},onBeforeAppear(D){mc(C,[D]),hs(D,l),hs(D,u)},onEnter:P(!1),onAppear:P(!0),onLeave(D,k){D._isLeaving=!0;const $=()=>M(D,k);hs(D,f),D._enterCancelled?(hs(D,d),IE()):(IE(),hs(D,d)),aL(()=>{D._isLeaving&&(su(D,f),hs(D,h),oL(w)||sL(D,r,_,$))}),mc(w,[D,$])},onEnterCancelled(D){I(D,!1,void 0,!0),mc(b,[D])},onAppearCancelled(D){I(D,!0,void 0,!0),mc(R,[D])},onLeaveCancelled(D){M(D),mc(T,[D])}})}function uee(e){if(e==null)return null;if(mn(e))return[Xx(e.enter),Xx(e.leave)];{const t=Xx(e);return[t,t]}}function Xx(e){return Ig(e)}function hs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Th]||(e[Th]=new Set)).add(t)}function su(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Th];n&&(n.delete(t),n.size||(e[Th]=void 0))}function aL(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let cee=0;function sL(e,t,n,r){const i=e._endId=++cee,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=$B(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function $B(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),i=r(`${Xl}Delay`),o=r(`${Xl}Duration`),a=lL(i,o),s=r(`${kp}Delay`),l=r(`${kp}Duration`),u=lL(s,l);let c=null,f=0,d=0;t===Xl?a>0&&(c=Xl,f=a,d=o.length):t===kp?u>0&&(c=kp,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?Xl:kp:null,d=c?c===Xl?o.length:l.length:0);const h=c===Xl&&/\b(transform|all)(,|$)/.test(r(`${Xl}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function lL(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>uL(n)+uL(e[r])))}function uL(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function IE(){return document.body.offsetHeight}function fee(e,t,n){const r=e[Th];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const F1=Symbol("_vod"),BB=Symbol("_vsh"),b2={beforeMount(e,{value:t},{transition:n}){e[F1]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fp(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Fp(e,!0),r.enter(e)):r.leave(e,()=>{Fp(e,!1)}):Fp(e,t))},beforeUnmount(e,{value:t}){Fp(e,t)}};function Fp(e,t){e.style.display=t?e[F1]:"none",e[BB]=!t}function dee(){b2.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const VB=Symbol("");function hee(e){const t=Tr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>$1(o,i))},r=()=>{const i=e(t.proxy);t.ce?$1(t.ce,i):RE(t.subTree,i),n(i)};c2(()=>{Og(r)}),Vo(()=>{Bt(r,Vr,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Qf(()=>i.disconnect())})}function RE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{RE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)$1(e.el,t);else if(e.type===Ye)e.children.forEach(n=>RE(n,t));else if(e.type===bf){let{el:n,anchor:r}=e;for(;n&&($1(n,t),n!==r);)n=n.nextSibling}}function $1(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t)n.setProperty(`--${i}`,t[i]),r+=`--${i}: ${t[i]};`;n[VB]=r}}const pee=/(^|;)\s*display\s*:/;function vee(e,t,n){const r=e.style,i=Mt(n);let o=!1;if(n&&!i){if(t)if(Mt(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&R_(r,s,"")}else for(const a in t)n[a]==null&&R_(r,a,"");for(const a in n)a==="display"&&(o=!0),R_(r,a,n[a])}else if(i){if(t!==n){const a=r[VB];a&&(n+=";"+a),r.cssText=n,o=pee.test(n)}}else t&&e.removeAttribute("style");F1 in e&&(e[F1]=o?r.display:"",e[BB]&&(r.display="none"))}const cL=/\s*!important$/;function R_(e,t,n){if(Qe(n))n.forEach(r=>R_(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=gee(e,t);cL.test(n)?e.setProperty(pi(r),n.replace(cL,""),"important"):e[r]=n}}const fL=["Webkit","Moz","ms"],Yx={};function gee(e,t){const n=Yx[t];if(n)return n;let r=Vn(t);if(r!=="filter"&&r in e)return Yx[t]=r;r=Ju(r);for(let i=0;i<fL.length;i++){const o=fL[i]+r;if(o in e)return Yx[t]=o}return t}const dL="http://www.w3.org/1999/xlink";function hL(e,t,n,r,i,o=r$(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(dL,t.slice(6,t.length)):e.setAttributeNS(dL,t,n):n==null||o&&!qI(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Vi(n)?String(n):n)}function pL(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?DB(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=qI(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(i||t)}function ll(e,t,n,r){e.addEventListener(t,n,r)}function mee(e,t,n,r){e.removeEventListener(t,n,r)}const vL=Symbol("_vei");function yee(e,t,n,r,i=null){const o=e[vL]||(e[vL]={}),a=o[t];if(r&&a)a.value=r;else{const[s,l]=_ee(t);if(r){const u=o[t]=wee(r,i);ll(e,s,u,l)}else a&&(mee(e,s,a,l),o[t]=void 0)}}const gL=/(?:Once|Passive|Capture)$/;function _ee(e){let t;if(gL.test(e)){t={};let r;for(;r=e.match(gL);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):pi(e.slice(2)),t]}let Kx=0;const bee=Promise.resolve(),See=()=>Kx||(bee.then(()=>Kx=0),Kx=Date.now());function wee(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ya(xee(r,n.value),t,5,[r])};return n.value=e,n.attached=See(),n}function xee(e,t){if(Qe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const mL=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cee=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?fee(e,r,a):t==="style"?vee(e,n,r):Zu(t)?Ub(t)||yee(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Tee(e,t,r,a))?(pL(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hL(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Mt(r))?pL(e,Vn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),hL(e,t,r,a))};function Tee(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&mL(t)&&Ct(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return mL(t)&&Mt(n)?!1:t in e}const yL={};/*! #__NO_SIDE_EFFECTS__ */function UB(e,t,n){const r=nt(e,t);Sm(r)&&tn(r,t);class i extends aS{constructor(a){super(r,a,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const Eee=(e,t)=>UB(e,t,JB),Aee=typeof HTMLElement<"u"?HTMLElement:class{};class aS extends Aee{constructor(t,n={},r=V1){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==V1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof aS){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Qa(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let s;if(o&&!Qe(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Ig(this._props[l])),(s||(s=Object.create(null)))[Vn(l)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)dn(this,r)||Object.defineProperty(this,r,{get:()=>B(n[r])})}_resolveProps(t){const{props:n}=t,r=Qe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(Vn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):yL;const i=Vn(t);n&&this._numberProps&&this._numberProps[i]&&(r=Ig(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(n===yL?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const o=this._ob;o&&o.disconnect(),n===!0?this.setAttribute(pi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(pi(t),n+""):n||this.removeAttribute(pi(t)),o&&o.observe(this,{attributes:!0})}}_update(){qB(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=G(this._def,tn(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,a)=>{this.dispatchEvent(new CustomEvent(o,Sm(a[0])?tn({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{i(o,a),pi(o)!==o&&i(pi(o),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[i],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const i=t[r],o=i.getAttribute("name")||"default",a=this._slots[o],s=i.parentNode;if(a)for(const l of a){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function HB(e){const t=Tr(),n=t&&t.ce;return n||null}function Iee(){const e=HB();return e&&e.shadowRoot}function Ree(e="$style"){{const t=Tr();if(!t)return Qt;const n=t.type.__cssModules;if(!n)return Qt;const r=n[e];return r||Qt}}const zB=new WeakMap,GB=new WeakMap,B1=Symbol("_moveCb"),_L=Symbol("_enterCb"),Pee=e=>(delete e.props.mode,e),Mee=Pee({name:"TransitionGroup",props:tn({},NB,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Tr(),r=s2();let i,o;return tS(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!kee(i[0].el,n.vnode.el,a))return;i.forEach(Dee),i.forEach(Lee);const s=i.filter(Nee);IE(),s.forEach(l=>{const u=l.el,c=u.style;hs(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[B1]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[B1]=null,su(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=un(e),s=FB(a);let l=a.tag||Ye;if(i=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),Al(c,xh(c,s,r,n)),zB.set(c,c.el.getBoundingClientRect()))}o=t.default?Qb(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&Al(c,xh(c,s,r,n))}return G(l,null,o)}}}),Oee=Mee;function Dee(e){const t=e.el;t[B1]&&t[B1](),t[_L]&&t[_L]()}function Lee(e){GB.set(e,e.el.getBoundingClientRect())}function Nee(e){const t=zB.get(e),n=GB.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function kee(e,t,n){const r=e.cloneNode(),i=e[Th];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=$B(r);return o.removeChild(r),a}const Uu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Qe(t)?n=>gf(t,n):t};function Fee(e){e.target.composing=!0}function bL(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pa=Symbol("_assign"),ki={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[pa]=Uu(i);const o=r||i.props&&i.props.type==="number";ll(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Ag(s)),e[pa](s)}),n&&ll(e,"change",()=>{e.value=e.value.trim()}),t||(ll(e,"compositionstart",Fee),ll(e,"compositionend",bL),ll(e,"change",bL))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[pa]=Uu(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?Ag(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},Bn={deep:!0,created(e,t,n){e[pa]=Uu(n),ll(e,"change",()=>{const r=e._modelValue,i=Eh(e),o=e.checked,a=e[pa];if(Qe(r)){const s=xm(r,i),l=s!==-1;if(o&&!l)a(r.concat(i));else if(!o&&l){const u=[...r];u.splice(s,1),a(u)}}else if(qu(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(WB(e,o))})},mounted:SL,beforeUpdate(e,t,n){e[pa]=Uu(n),SL(e,t,n)}};function SL(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Qe(t))i=xm(t,r.props.value)>-1;else if(qu(t))i=t.has(r.props.value);else{if(t===n)return;i=El(t,WB(e,!0))}e.checked!==i&&(e.checked=i)}const S2={created(e,{value:t},n){e.checked=El(t,n.props.value),e[pa]=Uu(n),ll(e,"change",()=>{e[pa](Eh(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[pa]=Uu(r),t!==n&&(e.checked=El(t,r.props.value))}},vr={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=qu(t);ll(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Ag(Eh(a)):Eh(a));e[pa](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Qa(()=>{e._assigning=!1})}),e[pa]=Uu(r)},mounted(e,{value:t}){wL(e,t)},beforeUpdate(e,t,n){e[pa]=Uu(n)},updated(e,{value:t}){e._assigning||wL(e,t)}};function wL(e,t){const n=e.multiple,r=Qe(t);if(!(n&&!r&&!qu(t))){for(let i=0,o=e.options.length;i<o;i++){const a=e.options[i],s=Eh(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=xm(t,s)>-1}else a.selected=t.has(s);else if(El(Eh(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Eh(e){return"_value"in e?e._value:e.value}function WB(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jB={created(e,t,n){r0(e,t,n,null,"created")},mounted(e,t,n){r0(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){r0(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){r0(e,t,n,r,"updated")}};function XB(e,t){switch(e){case"SELECT":return vr;case"TEXTAREA":return ki;default:switch(t){case"checkbox":return Bn;case"radio":return S2;default:return ki}}}function r0(e,t,n,r,i){const a=XB(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function $ee(){ki.getSSRProps=({value:e})=>({value:e}),S2.getSSRProps=({value:e},t)=>{if(t.props&&El(t.props.value,e))return{checked:!0}},Bn.getSSRProps=({value:e},t)=>{if(Qe(e)){if(t.props&&xm(e,t.props.value)>-1)return{checked:!0}}else if(qu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},jB.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=XB(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Bee=["ctrl","shift","alt","meta"],Vee={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)=>Bee.some(n=>e[`${n}Key`]&&!t.includes(n))},gr=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a<t.length;a++){const s=Vee[t[a]];if(s&&s(i,t))return}return e(i,...o)})},Uee={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},w2=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=pi(i.key);if(t.some(a=>a===o||Uee[a]===o))return e(i)})},YB=tn({patchProp:Cee},see);let Gv,xL=!1;function KB(){return Gv||(Gv=lB(YB))}function ZB(){return Gv=xL?Gv:uB(YB),xL=!0,Gv}const qB=(...e)=>{KB().render(...e)},Hee=(...e)=>{ZB().hydrate(...e)},V1=(...e)=>{const t=KB().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=eV(r);if(!i)return;const o=t._component;!Ct(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,QB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},JB=(...e)=>{const t=ZB().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=eV(r);if(i)return n(i,!0,QB(i))},t};function QB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eV(e){return Mt(e)?document.querySelector(e):e}let CL=!1;const zee=()=>{CL||(CL=!0,$ee(),dee())},Gee=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:B$,BaseTransitionPropsValidators:l2,Comment:Sr,DeprecationTypes:iee,EffectScope:JI,ErrorCodes:yJ,ErrorTypeStrings:qQ,Fragment:Ye,KeepAlive:GJ,ReactiveEffect:Rg,Static:bf,Suspense:OQ,Teleport:EJ,Text:yl,TrackOpTypes:fJ,Transition:kB,TransitionGroup:Oee,TriggerOpTypes:dJ,VueElement:aS,assertNumber:mJ,callWithAsyncErrorHandling:ya,callWithErrorHandling:ep,camelize:Vn,capitalize:Ju,cloneVNode:Is,compatUtils:ree,computed:Ce,createApp:V1,createBlock:yt,createCommentVNode:at,createElementBlock:te,createElementVNode:L,createHydrationRenderer:uB,createPropsRestProxy:lQ,createRenderer:lB,createSSRApp:JB,createSlots:KJ,createStaticVNode:VQ,createTextVNode:rt,createVNode:G,customRef:o2,defineAsyncComponent:HJ,defineComponent:nt,defineCustomElement:UB,defineEmits:QJ,defineExpose:eQ,defineModel:rQ,defineOptions:tQ,defineProps:JJ,defineSSRCustomElement:Eee,defineSlots:nQ,devtools:JQ,effect:kq,effectScope:s$,getCurrentInstance:Tr,getCurrentScope:jb,getCurrentWatcher:hJ,getTransitionRawChildren:Qb,guardReactiveProps:CB,h:ca,handleError:Jf,hasInjectionContext:v2,hydrate:Hee,hydrateOnIdle:kJ,hydrateOnInteraction:VJ,hydrateOnMediaQuery:BJ,hydrateOnVisible:$J,initCustomFormatter:YQ,initDirectivesForSSR:zee,inject:lo,isMemoSame:MB,isProxy:qb,isReactive:Ou,isReadonly:Vu,isRef:ht,isRuntimeOnly:WQ,isShallow:Do,isVNode:Il,markRaw:x$,mergeDefaults:sQ,mergeModels:M1,mergeProps:TB,nextTick:Qa,normalizeClass:gt,normalizeProps:q4,normalizeStyle:pr,onActivated:U$,onBeforeMount:G$,onBeforeUnmount:nS,onBeforeUpdate:c2,onDeactivated:H$,onErrorCaptured:Y$,onMounted:Vo,onRenderTracked:X$,onRenderTriggered:j$,onScopeDispose:QI,onServerPrefetch:W$,onUnmounted:Qf,onUpdated:tS,onWatcherCleanup:A$,openBlock:Y,popScopeId:xJ,provide:Hv,proxyRefs:i2,pushScopeId:wJ,queuePostFlushCb:Og,reactive:qa,readonly:Cm,ref:De,registerRuntimeCompiler:GQ,render:qB,renderList:fn,renderSlot:yf,resolveComponent:XJ,resolveDirective:YJ,resolveDynamicComponent:ml,resolveFilter:nee,resolveTransitionHooks:xh,setBlockTracking:SE,setDevtoolsHook:QQ,setTransitionHooks:Al,shallowReactive:r2,shallowReadonly:nJ,shallowRef:bi,ssrContextKey:hB,ssrUtils:tee,stop:Fq,toDisplayString:ie,toHandlerKey:vf,toHandlers:ZJ,toRaw:un,toRef:T$,toRefs:aJ,toValue:ha,transformVNodeArgs:$Q,triggerRef:hE,unref:B,useAttrs:aQ,useCssModule:Ree,useCssVars:hee,useHost:HB,useId:IJ,useModel:y2,useSSRContext:pB,useShadowRoot:Iee,useSlots:oQ,useTemplateRef:RJ,useTransitionState:s2,vModelCheckbox:Bn,vModelDynamic:jB,vModelRadio:S2,vModelSelect:vr,vModelText:ki,vShow:b2,version:OB,warn:ZQ,watch:Bt,watchEffect:rS,watchPostEffect:CQ,watchSyncEffect:vB,withAsyncContext:uQ,withCtx:qn,withDefaults:iQ,withDirectives:St,withKeys:w2,withMemo:KQ,withModifiers:gr,withScopeId:CJ},Symbol.toStringTag,{value:"Module"}));function sS(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Wee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function jee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Im(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Rl(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Rm(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Xee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function tV(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})])}function Pm(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"})])}function nV(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Yee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function rV(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function Kee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function Zee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function qee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})])}function TL(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"})])}function Jee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function x2(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function C2(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qee(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})])}function iV(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})])}function EL(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"})])}function AL(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})])}function ete(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"})])}function tte(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.25 9v6m-4.5 0V9M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function oV(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function nte(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})])}function aV(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function T2(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function E2(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function rte(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"})])}function ite(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"})])}function ote(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6Z"})])}function A2(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function lS(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"})])}function ate(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Nf(e,t){return Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}/*!
|
||
* vue-router v4.5.0
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const jd=typeof document<"u";function sV(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ste(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sV(e.default)}const bn=Object.assign;function Zx(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ja(i)?i.map(e):e(i)}return n}const Wv=()=>{},Ja=Array.isArray,lV=/#/g,lte=/&/g,ute=/\//g,cte=/=/g,fte=/\?/g,uV=/\+/g,dte=/%5B/g,hte=/%5D/g,cV=/%5E/g,pte=/%60/g,fV=/%7B/g,vte=/%7C/g,dV=/%7D/g,gte=/%20/g;function I2(e){return encodeURI(""+e).replace(vte,"|").replace(dte,"[").replace(hte,"]")}function mte(e){return I2(e).replace(fV,"{").replace(dV,"}").replace(cV,"^")}function PE(e){return I2(e).replace(uV,"%2B").replace(gte,"+").replace(lV,"%23").replace(lte,"%26").replace(pte,"`").replace(fV,"{").replace(dV,"}").replace(cV,"^")}function yte(e){return PE(e).replace(cte,"%3D")}function _te(e){return I2(e).replace(lV,"%23").replace(fte,"%3F")}function bte(e){return e==null?"":_te(e).replace(ute,"%2F")}function $g(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ste=/\/$/,wte=e=>e.replace(Ste,"");function qx(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=Ete(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:$g(a)}}function xte(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function IL(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Cte(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ah(t.matched[r],n.matched[i])&&hV(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ah(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hV(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Tte(e[n],t[n]))return!1;return!0}function Tte(e,t){return Ja(e)?RL(e,t):Ja(t)?RL(t,e):e===t}function RL(e,t){return Ja(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ete(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const Yl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bg;(function(e){e.pop="pop",e.push="push"})(Bg||(Bg={}));var jv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(jv||(jv={}));function Ate(e){if(!e)if(jd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wte(e)}const Ite=/^[^#]+#/;function Rte(e,t){return e.replace(Ite,"#")+t}function Pte(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const uS=()=>({left:window.scrollX,top:window.scrollY});function Mte(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Pte(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function PL(e,t){return(history.state?history.state.position-t:-1)+e}const ME=new Map;function Ote(e,t){ME.set(e,t)}function Dte(e){const t=ME.get(e);return ME.delete(e),t}let Lte=()=>location.protocol+"//"+location.host;function pV(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),IL(l,"")}return IL(n,e)+r+i}function Nte(e,t,n,r){let i=[],o=[],a=null;const s=({state:d})=>{const h=pV(e,location),v=n.value,m=t.value;let _=0;if(d){if(n.value=h,t.value=d,a&&a===v){a=null;return}_=m?d.position-m.position:0}else r(h);i.forEach(y=>{y(n.value,v,{delta:_,type:Bg.pop,direction:_?_>0?jv.forward:jv.back:jv.unknown})})};function l(){a=n.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return o.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(bn({},d.state,{scroll:uS()}),"")}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function ML(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?uS():null}}function kte(e){const{history:t,location:n}=window,r={value:pV(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Lte()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function a(l,u){const c=bn({},t.state,ML(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=bn({},i.value,t.state,{forward:l,scroll:uS()});o(c.current,c,!0);const f=bn({},ML(r.value,l,null),{position:c.position+1},u);o(l,f,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function Fte(e){e=Ate(e);const t=kte(e),n=Nte(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=bn({location:"",base:e,go:r,createHref:Rte.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function $te(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Fte(e)}function Bte(e){return typeof e=="string"||e&&typeof e=="object"}function vV(e){return typeof e=="string"||typeof e=="symbol"}const gV=Symbol("");var OL;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(OL||(OL={}));function Ih(e,t){return bn(new Error,{type:e,[gV]:!0},t)}function Zs(e,t){return e instanceof Error&&gV in e&&(t==null||!!(e.type&t))}const DL="[^/]+?",Vte={sensitive:!1,strict:!1,start:!0,end:!0},Ute=/[.+*?^${}()[\]/\\]/g;function Hte(e,t){const n=bn({},Vte,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(Ute,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:m,optional:_,regexp:y}=d;o.push({name:v,repeatable:m,optional:_});const S=y||DL;if(S!==DL){h+=10;try{new RegExp(`(${S})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${S}): `+w.message)}}let b=m?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;f||(b=_&&u.length<2?`(?:/${b})`:"/"+b),_&&(b+="?"),i+=b,h+=20,_&&(h+=-8),m&&(h+=-20),S===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(u){const c=u.match(a),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=o[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:m,optional:_}=h,y=v in u?u[v]:"";if(Ja(y)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const S=Ja(y)?y.join("/"):y;if(!S)if(_)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=S}}return c||"/"}return{re:a,score:r,keys:o,parse:s,stringify:l}}function zte(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function mV(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=zte(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(LL(r))return 1;if(LL(i))return-1}return i.length-r.length}function LL(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Gte={type:0,value:""},Wte=/[a-zA-Z0-9_]/;function jte(e){if(!e)return[[]];if(e==="/")return[[Gte]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function f(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:Wte.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),i}function Xte(e,t,n){const r=Hte(jte(e.path),n),i=bn(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Yte(e,t){const n=[],r=new Map;t=$L({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function o(f,d,h){const v=!h,m=kL(f);m.aliasOf=h&&h.record;const _=$L(t,f),y=[m];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of w)y.push(kL(bn({},m,{components:h?h.record.components:m.components,path:T,aliasOf:h?h.record:m})))}let S,b;for(const w of y){const{path:T}=w;if(d&&T[0]!=="/"){const C=d.record.path,E=C[C.length-1]==="/"?"":"/";w.path=d.record.path+(T&&E+T)}if(S=Xte(w,d,_),h?h.alias.push(S):(b=b||S,b!==S&&b.alias.push(S),v&&f.name&&!FL(S)&&a(f.name)),yV(S)&&l(S),m.children){const C=m.children;for(let E=0;E<C.length;E++)o(C[E],S,h&&h.children[E])}h=h||S}return b?()=>{a(b)}:Wv}function a(f){if(vV(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function s(){return n}function l(f){const d=qte(f,n);n.splice(d,0,f),f.record.name&&!FL(f)&&r.set(f.record.name,f)}function u(f,d){let h,v={},m,_;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ih(1,{location:f});_=h.record.name,v=bn(NL(d.params,h.keys.filter(b=>!b.optional).concat(h.parent?h.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&NL(f.params,h.keys.map(b=>b.name))),m=h.stringify(v)}else if(f.path!=null)m=f.path,h=n.find(b=>b.re.test(m)),h&&(v=h.parse(m),_=h.record.name);else{if(h=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!h)throw Ih(1,{location:f,currentLocation:d});_=h.record.name,v=bn({},d.params,f.params),m=h.stringify(v)}const y=[];let S=h;for(;S;)y.unshift(S.record),S=S.parent;return{name:_,path:m,params:v,matched:y,meta:Zte(y)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function NL(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function kL(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Kte(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Kte(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function FL(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zte(e){return e.reduce((t,n)=>bn(t,n.meta),{})}function $L(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function qte(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;mV(e,t[o])<0?r=o:n=o+1}const i=Jte(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Jte(e){let t=e;for(;t=t.parent;)if(yV(t)&&mV(e,t)===0)return t}function yV({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Qte(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(uV," "),a=o.indexOf("="),s=$g(a<0?o:o.slice(0,a)),l=a<0?null:$g(o.slice(a+1));if(s in t){let u=t[s];Ja(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function BL(e){let t="";for(let n in e){const r=e[n];if(n=yte(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ja(r)?r.map(o=>o&&PE(o)):[r&&PE(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function ene(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ja(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const tne=Symbol(""),VL=Symbol(""),cS=Symbol(""),R2=Symbol(""),OE=Symbol("");function $p(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function pu(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=d=>{d===!1?l(Ih(4,{from:n,to:t})):d instanceof Error?l(d):Bte(d)?l(Ih(2,{from:t,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Jx(e,t,n,r,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(sV(l)){const c=(l.__vccOpts||l)[t];c&&o.push(pu(c,n,r,a,s,i))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const f=ste(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&pu(h,n,r,a,s,i)()}))}}return o}function UL(e){const t=lo(cS),n=lo(R2),r=Ce(()=>{const l=B(e.to);return t.resolve(l)}),i=Ce(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Ah.bind(null,c));if(d>-1)return d;const h=HL(l[u-2]);return u>1&&HL(c)===h&&f[f.length-1].path!==h?f.findIndex(Ah.bind(null,l[u-2])):d}),o=Ce(()=>i.value>-1&&ane(n.params,r.value.params)),a=Ce(()=>i.value>-1&&i.value===n.matched.length-1&&hV(n.params,r.value.params));function s(l={}){if(one(l)){const u=t[B(e.replace)?"replace":"push"](B(e.to)).catch(Wv);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Ce(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function nne(e){return e.length===1?e[0]:e}const rne=nt({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:UL,setup(e,{slots:t}){const n=qa(UL(e)),{options:r}=lo(cS),i=Ce(()=>({[zL(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[zL(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&nne(t.default(n));return e.custom?o:ca("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),ine=rne;function one(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 ane(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ja(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function HL(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const zL=(e,t,n)=>e??t??n,sne=nt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=lo(OE),i=Ce(()=>e.route||r.value),o=lo(VL,0),a=Ce(()=>{let u=B(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Ce(()=>i.value.matched[a.value]);Hv(VL,Ce(()=>a.value+1)),Hv(tne,s),Hv(OE,i);const l=De();return Bt(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Ah(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return GL(n.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,_=ca(d,bn({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return GL(n.default,{Component:_,route:u})||_}}});function GL(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const P2=sne;function lne(e){const t=Yte(e.routes,e),n=e.parseQuery||Qte,r=e.stringifyQuery||BL,i=e.history,o=$p(),a=$p(),s=$p(),l=bi(Yl);let u=Yl;jd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Zx.bind(null,fe=>""+fe),f=Zx.bind(null,bte),d=Zx.bind(null,$g);function h(fe,Ae){let Se,Te;return vV(fe)?(Se=t.getRecordMatcher(fe),Te=Ae):Te=fe,t.addRoute(Te,Se)}function v(fe){const Ae=t.getRecordMatcher(fe);Ae&&t.removeRoute(Ae)}function m(){return t.getRoutes().map(fe=>fe.record)}function _(fe){return!!t.getRecordMatcher(fe)}function y(fe,Ae){if(Ae=bn({},Ae||l.value),typeof fe=="string"){const z=qx(n,fe,Ae.path),ue=t.resolve({path:z.path},Ae),we=i.createHref(z.fullPath);return bn(z,ue,{params:d(ue.params),hash:$g(z.hash),redirectedFrom:void 0,href:we})}let Se;if(fe.path!=null)Se=bn({},fe,{path:qx(n,fe.path,Ae.path).path});else{const z=bn({},fe.params);for(const ue in z)z[ue]==null&&delete z[ue];Se=bn({},fe,{params:f(z)}),Ae.params=f(Ae.params)}const Te=t.resolve(Se,Ae),Ne=fe.hash||"";Te.params=c(d(Te.params));const Be=xte(r,bn({},fe,{hash:mte(Ne),path:Te.path})),H=i.createHref(Be);return bn({fullPath:Be,hash:Ne,query:r===BL?ene(fe.query):fe.query||{}},Te,{redirectedFrom:void 0,href:H})}function S(fe){return typeof fe=="string"?qx(n,fe,l.value.path):bn({},fe)}function b(fe,Ae){if(u!==fe)return Ih(8,{from:Ae,to:fe})}function w(fe){return E(fe)}function T(fe){return w(bn(S(fe),{replace:!0}))}function C(fe){const Ae=fe.matched[fe.matched.length-1];if(Ae&&Ae.redirect){const{redirect:Se}=Ae;let Te=typeof Se=="function"?Se(fe):Se;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=S(Te):{path:Te},Te.params={}),bn({query:fe.query,hash:fe.hash,params:Te.path!=null?{}:fe.params},Te)}}function E(fe,Ae){const Se=u=y(fe),Te=l.value,Ne=fe.state,Be=fe.force,H=fe.replace===!0,z=C(Se);if(z)return E(bn(S(z),{state:typeof z=="object"?bn({},Ne,z.state):Ne,force:Be,replace:H}),Ae||Se);const ue=Se;ue.redirectedFrom=Ae;let we;return!Be&&Cte(r,Te,Se)&&(we=Ih(16,{to:ue,from:Te}),ye(Te,Te,!0,!1)),(we?Promise.resolve(we):M(ue,Te)).catch(ve=>Zs(ve)?Zs(ve,2)?ve:ge(ve):X(ve,ue,Te)).then(ve=>{if(ve){if(Zs(ve,2))return E(bn({replace:H},S(ve.to),{state:typeof ve.to=="object"?bn({},Ne,ve.to.state):Ne,force:Be}),Ae||ue)}else ve=D(ue,Te,!0,H,Ne);return P(ue,Te,ve),ve})}function R(fe,Ae){const Se=b(fe,Ae);return Se?Promise.reject(Se):Promise.resolve()}function I(fe){const Ae=Ue.values().next().value;return Ae&&typeof Ae.runWithContext=="function"?Ae.runWithContext(fe):fe()}function M(fe,Ae){let Se;const[Te,Ne,Be]=une(fe,Ae);Se=Jx(Te.reverse(),"beforeRouteLeave",fe,Ae);for(const z of Te)z.leaveGuards.forEach(ue=>{Se.push(pu(ue,fe,Ae))});const H=R.bind(null,fe,Ae);return Se.push(H),je(Se).then(()=>{Se=[];for(const z of o.list())Se.push(pu(z,fe,Ae));return Se.push(H),je(Se)}).then(()=>{Se=Jx(Ne,"beforeRouteUpdate",fe,Ae);for(const z of Ne)z.updateGuards.forEach(ue=>{Se.push(pu(ue,fe,Ae))});return Se.push(H),je(Se)}).then(()=>{Se=[];for(const z of Be)if(z.beforeEnter)if(Ja(z.beforeEnter))for(const ue of z.beforeEnter)Se.push(pu(ue,fe,Ae));else Se.push(pu(z.beforeEnter,fe,Ae));return Se.push(H),je(Se)}).then(()=>(fe.matched.forEach(z=>z.enterCallbacks={}),Se=Jx(Be,"beforeRouteEnter",fe,Ae,I),Se.push(H),je(Se))).then(()=>{Se=[];for(const z of a.list())Se.push(pu(z,fe,Ae));return Se.push(H),je(Se)}).catch(z=>Zs(z,8)?z:Promise.reject(z))}function P(fe,Ae,Se){s.list().forEach(Te=>I(()=>Te(fe,Ae,Se)))}function D(fe,Ae,Se,Te,Ne){const Be=b(fe,Ae);if(Be)return Be;const H=Ae===Yl,z=jd?history.state:{};Se&&(Te||H?i.replace(fe.fullPath,bn({scroll:H&&z&&z.scroll},Ne)):i.push(fe.fullPath,Ne)),l.value=fe,ye(fe,Ae,Se,H),ge()}let k;function $(){k||(k=i.listen((fe,Ae,Se)=>{if(!Le.listening)return;const Te=y(fe),Ne=C(Te);if(Ne){E(bn(Ne,{replace:!0,force:!0}),Te).catch(Wv);return}u=Te;const Be=l.value;jd&&Ote(PL(Be.fullPath,Se.delta),uS()),M(Te,Be).catch(H=>Zs(H,12)?H:Zs(H,2)?(E(bn(S(H.to),{force:!0}),Te).then(z=>{Zs(z,20)&&!Se.delta&&Se.type===Bg.pop&&i.go(-1,!1)}).catch(Wv),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),X(H,Te,Be))).then(H=>{H=H||D(Te,Be,!1),H&&(Se.delta&&!Zs(H,8)?i.go(-Se.delta,!1):Se.type===Bg.pop&&Zs(H,20)&&i.go(-1,!1)),P(Te,Be,H)}).catch(Wv)}))}let W=$p(),N=$p(),K;function X(fe,Ae,Se){ge(fe);const Te=N.list();return Te.length?Te.forEach(Ne=>Ne(fe,Ae,Se)):console.error(fe),Promise.reject(fe)}function ae(){return K&&l.value!==Yl?Promise.resolve():new Promise((fe,Ae)=>{W.add([fe,Ae])})}function ge(fe){return K||(K=!fe,$(),W.list().forEach(([Ae,Se])=>fe?Se(fe):Ae()),W.reset()),fe}function ye(fe,Ae,Se,Te){const{scrollBehavior:Ne}=e;if(!jd||!Ne)return Promise.resolve();const Be=!Se&&Dte(PL(fe.fullPath,0))||(Te||!Se)&&history.state&&history.state.scroll||null;return Qa().then(()=>Ne(fe,Ae,Be)).then(H=>H&&Mte(H)).catch(H=>X(H,fe,Ae))}const Me=fe=>i.go(fe);let ke;const Ue=new Set,Le={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:m,resolve:y,options:e,push:w,replace:T,go:Me,back:()=>Me(-1),forward:()=>Me(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:N.add,isReady:ae,install(fe){const Ae=this;fe.component("RouterLink",ine),fe.component("RouterView",P2),fe.config.globalProperties.$router=Ae,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>B(l)}),jd&&!ke&&l.value===Yl&&(ke=!0,w(i.location).catch(Ne=>{}));const Se={};for(const Ne in Yl)Object.defineProperty(Se,Ne,{get:()=>l.value[Ne],enumerable:!0});fe.provide(cS,Ae),fe.provide(R2,r2(Se)),fe.provide(OE,l);const Te=fe.unmount;Ue.add(fe),fe.unmount=function(){Ue.delete(fe),Ue.size<1&&(u=Yl,k&&k(),k=null,l.value=Yl,ke=!1,K=!1),Te()}}};function je(fe){return fe.reduce((Ae,Se)=>Ae.then(()=>I(Se)),Promise.resolve())}return Le}function une(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(u=>Ah(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Ah(u,l))||i.push(l))}return[n,r,i]}function _V(){return lo(cS)}function M2(e){return lo(R2)}const bV="https://www.gstatic.com/generate_204",O2="https://ipv6.google.com/generate_204",Fi=0;var _s=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(_s||{}),mu=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(mu||{}),ze=(e=>(e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.SniffHost="sniffHost",e.Destination="destination",e.DestinationType="destinationType",e.RemoteAddress="remoteAddress",e))(ze||{}),fS=(e=>(e.AUTO="auto",e.MANUAL="manual",e))(fS||{}),yu=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(yu||{}),Vg=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(Vg||{}),fl=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(fl||{}),Wa=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(Wa||{}),eo=(e=>(e.HOST="host",e.CHAINS="chains",e.RULE="rule",e.TYPE="type",e.CONNECT_TIME="connectTime",e.DOWNLOAD="download",e.DOWNLOAD_SPEED="downloadSpeed",e.UPLOAD="upload",e.UPLOAD_SPEED="uploadSpeed",e.SOURCE_IP="sourceIP",e))(eo||{}),Qc=(e=>(e.ASC="asc",e.DESC="desc",e))(Qc||{}),Mm=(e=>(e.ACTIVE="activeConnections",e.CLOSED="closedConnections",e))(Mm||{}),Oi=(e=>(e.Trace="trace",e.Debug="debug",e.Info="info",e.Warning="warning",e.Error="error",e.Fatal="fatal",e.Panic="panic",e.Silent="silent",e))(Oi||{}),jt=(e=>(e.overview="overview",e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(jt||{});const SV={overview:TL,proxies:Qee,connections:tV,rules:ite,logs:Jee,settings:Zee,setup:TL};var Ug=(e=>(e.SMALL="small",e.LARGE="large",e))(Ug||{}),Om=(e=>(e.SMALL="small",e.LARGE="large",e))(Om||{}),DE=(e=>(e[e.SMALL=130]="SMALL",e[e.LARGE=145]="LARGE",e))(DE||{}),tp=(e=>(e.NORMAL="normal",e.REVERSE="reverse",e))(tp||{}),Xr=(e=>(e.Direct="direct",e.Reject="reject",e.RejectDrop="rejectdrop",e.Compatible="compatible",e.Pass="pass",e.Dns="dns",e.Selector="selector",e.Fallback="fallback",e.URLTest="urltest",e.LoadBalance="loadbalance",e))(Xr||{}),Hg=(e=>(e.FILTERED_TOTAL="filteredTotal",e.TOTAL="total",e.ALIVE_TOTAL="aliveTotal",e))(Hg||{});const cne=[["host","connectTime"],["chains","dlSpeed","close"]],wV=[["host","connectTime"],["type","dl","ul"],["chains","dlSpeed","close"]];function dS(e){return jb()?(QI(e),!0):!1}const Qx=new WeakMap,fne=(...e)=>{var t;const n=e[0],r=(t=Tr())==null?void 0:t.proxy;if(r==null&&!v2())throw new Error("injectLocal must be called in setup");return r&&Qx.has(r)&&n in Qx.get(r)?Qx.get(r)[n]:lo(...e)},xV=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dne=e=>e!=null,hne=Object.prototype.toString,pne=e=>hne.call(e)==="[object Object]",vne=()=>{};function CV(...e){if(e.length!==1)return T$(...e);const t=e[0];return typeof t=="function"?Cm(o2(()=>({get:t,set:vne}))):De(t)}function gne(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const TV=e=>e();function mne(e=TV,t={}){const{initialState:n="active"}=t,r=CV(n==="active");function i(){r.value=!1}function o(){r.value=!0}const a=(...s)=>{r.value&&e(...s)};return{isActive:Cm(r),pause:i,resume:o,eventFilter:a}}function WL(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Xv(e){return Array.isArray(e)?e:[e]}function yne(e){return Tr()}function _ne(e,t,n={}){const{eventFilter:r=TV,...i}=n;return Bt(e,gne(r,t),i)}function bne(e,t,n={}){const{eventFilter:r,initialState:i="active",...o}=n,{eventFilter:a,pause:s,resume:l,isActive:u}=mne(r,{initialState:i});return{stop:_ne(e,t,{...o,eventFilter:a}),pause:s,resume:l,isActive:u}}function EV(e,t=!0,n){yne()?Vo(e,n):t?e():Qa(e)}function Sne(e,t,n){return Bt(e,t,{...n,immediate:!0})}const kf=xV?window:void 0,AV=xV?window.document:void 0;function bu(e){var t;const n=ha(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Sf(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,l,u,c)=>(s.addEventListener(l,u,c),()=>s.removeEventListener(l,u,c)),i=Ce(()=>{const s=Xv(ha(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),o=Sne(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>bu(u)))!=null?l:[kf].filter(u=>u!=null),Xv(ha(i.value?e[1]:e[0])),Xv(B(i.value?e[2]:e[1])),ha(i.value?e[3]:e[2])]},([s,l,u,c])=>{if(n(),!(s!=null&&s.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const f=pne(c)?{...c}:c;t.push(...s.flatMap(d=>l.flatMap(h=>u.map(v=>r(d,h,v,f)))))},{flush:"post"}),a=()=>{o(),n()};return dS(n),a}function wne(){const e=bi(!1),t=Tr();return t&&Vo(()=>{e.value=!0},t),e}function D2(e){const t=wne();return Ce(()=>(t.value,!!e()))}function xne(e,t,n={}){const{window:r=kf,...i}=n;let o;const a=D2(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ce(()=>{const d=ha(e),h=Xv(d).map(bu).filter(dne);return new Set(h)}),u=Bt(()=>l.value,d=>{s(),a.value&&d.size&&(o=new MutationObserver(t),d.forEach(h=>o.observe(h,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return dS(f),{isSupported:a,stop:f,takeRecords:c}}const Cne=Symbol("vueuse-ssr-width");function Tne(){const e=v2()?fne(Cne,null):null;return typeof e=="number"?e:void 0}function L2(e,t={}){const{window:n=kf,ssrWidth:r=Tne()}=t,i=D2(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=bi(typeof r=="number"),a=bi(),s=bi(!1),l=u=>{s.value=u.matches};return rS(()=>{if(o.value){o.value=!i.value;const u=ha(e).split(",");s.value=u.some(c=>{const f=c.includes("not all"),d=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),h=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(d||h);return d&&v&&(v=r>=WL(d[1])),h&&v&&(v=r<=WL(h[1])),f?!v:v});return}i.value&&(a.value=n.matchMedia(ha(e)),s.value=a.value.matches)}),Sf(a,"change",l,{passive:!0}),Ce(()=>s.value)}const i0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o0="__vueuse_ssr_handlers__",Ene=Ane();function Ane(){return o0 in i0||(i0[o0]=i0[o0]||{}),i0[o0]}function Ine(e,t){return Ene[e]||t}function Rne(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Pne={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},jL="vueuse-storage";function pt(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=kf,eventFilter:d,onError:h=P=>{console.error(P)},initOnMounted:v}=r,m=(c?bi:De)(typeof t=="function"?t():t),_=Ce(()=>ha(e));if(!n)try{n=Ine("getDefaultStorage",()=>{var P;return(P=kf)==null?void 0:P.localStorage})()}catch(P){h(P)}if(!n)return m;const y=ha(t),S=Rne(y),b=(i=r.serializer)!=null?i:Pne[S],{pause:w,resume:T}=bne(m,()=>E(m.value),{flush:o,deep:a,eventFilter:d});Bt(_,()=>I(),{flush:o}),f&&s&&EV(()=>{n instanceof Storage?Sf(f,"storage",I,{passive:!0}):Sf(f,jL,M),v&&I()}),v||I();function C(P,D){if(f){const k={key:_.value,oldValue:P,newValue:D,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent(jL,{detail:k}))}}function E(P){try{const D=n.getItem(_.value);if(P==null)C(D,null),n.removeItem(_.value);else{const k=b.write(P);D!==k&&(n.setItem(_.value,k),C(D,k))}}catch(D){h(D)}}function R(P){const D=P?P.newValue:n.getItem(_.value);if(D==null)return l&&y!=null&&n.setItem(_.value,b.write(y)),y;if(!P&&u){const k=b.read(D);return typeof u=="function"?u(k,y):S==="object"&&!Array.isArray(k)?{...y,...k}:k}else return typeof D!="string"?D:b.read(D)}function I(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){m.value=y;return}if(!(P&&P.key!==_.value)){w();try{(P==null?void 0:P.newValue)!==b.write(m.value)&&(m.value=R(P))}catch(D){h(D)}finally{P?Qa(T):T()}}}}function M(P){I(P.detail)}return m}function Mne(e={}){const{document:t=AV}=e;if(!t)return bi("visible");const n=bi(t.visibilityState);return Sf(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function One(e,t,n={}){const{window:r=kf,...i}=n;let o;const a=D2(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ce(()=>{const f=ha(e);return Array.isArray(f)?f.map(d=>bu(d)):[bu(f)]}),u=Bt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return dS(c),{isSupported:a,stop:c}}function N2(e,t={width:0,height:0},n={}){const{window:r=kf,box:i="content-box"}=n,o=Ce(()=>{var f,d;return(d=(f=bu(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=bi(t.width),s=bi(t.height),{stop:l}=One(e,([f])=>{const d=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const h=bu(e);if(h){const v=h.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(d){const h=Xv(d);a.value=h.reduce((v,{inlineSize:m})=>v+m,0),s.value=h.reduce((v,{blockSize:m})=>v+m,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);EV(()=>{const f=bu(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Bt(()=>bu(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:a,height:s,stop:c}}const Bp=new Map;function Dne(e){const t=jb();function n(s){var l;const u=Bp.get(e)||new Set;u.add(s),Bp.set(e,u);const c=()=>i(s);return(l=t==null?void 0:t.cleanups)==null||l.push(c),c}function r(s){function l(...u){i(l),s(...u)}return n(l)}function i(s){const l=Bp.get(e);l&&(l.delete(s),l.size||o())}function o(){Bp.delete(e)}function a(s,l){var u;(u=Bp.get(e))==null||u.forEach(c=>c(s,l))}return{on:n,once:r,off:i,emit:a,reset:o}}function Lne(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0}=t,s=qa({x:0,y:0}),l=qa({x:0,y:0}),u=Ce(()=>s.x-l.x),c=Ce(()=>s.y-l.y),{max:f,abs:d}=Math,h=Ce(()=>f(d(u.value),d(c.value))>=n),v=bi(!1),m=Ce(()=>h.value?d(u.value)>d(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),_=E=>[E.touches[0].clientX,E.touches[0].clientY],y=(E,R)=>{s.x=E,s.y=R},S=(E,R)=>{l.x=E,l.y=R},b={passive:a,capture:!a},w=E=>{v.value&&(i==null||i(E,m.value)),v.value=!1},T=[Sf(e,"touchstart",E=>{if(E.touches.length!==1)return;const[R,I]=_(E);y(R,I),S(R,I),o==null||o(E)},b),Sf(e,"touchmove",E=>{if(E.touches.length!==1)return;const[R,I]=_(E);S(R,I),b.capture&&!b.passive&&Math.abs(u.value)>Math.abs(c.value)&&E.preventDefault(),!v.value&&h.value&&(v.value=!0),v.value&&(r==null||r(E))},b),Sf(e,["touchend","touchcancel"],w,b)];return{isSwiping:v,direction:m,coordsStart:s,coordsEnd:l,lengthX:u,lengthY:c,stop:()=>T.forEach(E=>E()),isPassiveEventSupported:!0}}function Nne(e=null,t={}){var n,r,i;const{document:o=AV,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=CV((r=e??(o==null?void 0:o.title))!=null?r:null),u=!!(e&&typeof e=="function");function c(f){if(!("titleTemplate"in t))return f;const d=t.titleTemplate||"%s";return typeof d=="function"?d(f):ha(d).replace(/%s/g,f)}return Bt(l,(f,d)=>{f!==d&&o&&(o.title=c(f??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&xne((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),dS(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}const IV=L2("(prefers-color-scheme: dark)"),Hu=L2("(max-width: 768px)"),kne=L2("(max-width: 1024px)"),LE=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,k2=e=>e===Om.LARGE?DE.LARGE:DE.SMALL,RV="background-image",U1="local-image",Fne=e=>{const t=new Map,r=new Promise((f,d)=>{const h=indexedDB.open(e,1);h.onupgradeneeded=()=>{const v=h.result;v.objectStoreNames.contains(e)||v.createObjectStore(e,{keyPath:"key"})},h.onsuccess=()=>{const _=h.result.transaction(e,"readonly").objectStore(e).openCursor();_.onsuccess=y=>{const S=y.target.result;S?(t.set(S.key,S.value.value),S.continue()):f(h.result)},_.onerror=()=>d(_.error)},h.onerror=()=>d(h.error)}),i=async(f,d)=>{const h=await r;return new Promise((v,m)=>{const y=h.transaction(e,f).objectStore(e),S=d(y);S.onsuccess=()=>v(S.result),S.onerror=()=>m(S.error)})};return{put:async(f,d)=>(t.set(f,d),i("readwrite",h=>h.put({key:f,value:d}))),get:async f=>(await r,t.get(f)),del:async f=>(t.delete(f),i("readwrite",d=>d.delete(f))),getAllKeys:async()=>(await r,Array.from(t.keys())),isExists:async f=>(await r,t.has(f)),clear:async()=>(t.clear(),i("readwrite",f=>f.clear()))}},F2=Fne("base64"),$ne=e=>F2.put(RV,e),Bne=()=>F2.get(RV),Vne=()=>F2.clear();var bv={exports:{}};/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/var Une=bv.exports,XL;function Hne(){return XL||(XL=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,h=4,v=1,m=2,_=1,y=2,S=4,b=8,w=16,T=32,C=64,E=128,R=256,I=512,M=30,P="...",D=800,k=16,$=1,W=2,N=3,K=1/0,X=9007199254740991,ae=17976931348623157e292,ge=NaN,ye=4294967295,Me=ye-1,ke=ye>>>1,Ue=[["ary",E],["bind",_],["bindKey",y],["curry",b],["curryRight",w],["flip",I],["partial",T],["partialRight",C],["rearg",R]],Le="[object Arguments]",je="[object Array]",fe="[object AsyncFunction]",Ae="[object Boolean]",Se="[object Date]",Te="[object DOMException]",Ne="[object Error]",Be="[object Function]",H="[object GeneratorFunction]",z="[object Map]",ue="[object Number]",we="[object Null]",ve="[object Object]",U="[object Promise]",j="[object Proxy]",J="[object RegExp]",de="[object Set]",_e="[object String]",Oe="[object Symbol]",q="[object Undefined]",he="[object WeakMap]",Ve="[object WeakSet]",Ze="[object ArrayBuffer]",bt="[object DataView]",ne="[object Float32Array]",se="[object Float64Array]",pe="[object Int8Array]",Ee="[object Int16Array]",Ge="[object Int32Array]",oe="[object Uint8Array]",Ie="[object Uint8ClampedArray]",$e="[object Uint16Array]",et="[object Uint32Array]",We=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Nn=RegExp(Ot.source),Ta=RegExp(Lt.source),Pn=/<%-([\s\S]+?)%>/g,yr=/<%([\s\S]+?)%>/g,nd=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/,Qm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rd=/[\\^$.*+?()[\]{}|]/g,ww=RegExp(rd.source),zi=/^\s+/,id=/\s/,ey=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ty=/\{\n\/\* \[wrapped with (.+)\] \*/,gp=/,? & /,ny=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ea=/[()=,{}\[\]\/\s]/,ry=/\\(\\)?/g,iy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mp=/\w*$/,oy=/^[-+]0x[0-9a-f]+$/i,xw=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,re=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,Lr=/['\n\r\u2028\u2029\\]/g,nr="\\ud800-\\udfff",ei="\\u0300-\\u036f",Uo="\\ufe20-\\ufe2f",ac="\\u20d0-\\u20ff",Nr=ei+Uo+ac,yp="\\u2700-\\u27bf",_p="a-z\\xdf-\\xf6\\xf8-\\xff",D7="\\xac\\xb1\\xd7\\xf7",L7="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",N7="\\u2000-\\u206f",k7=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cM="A-Z\\xc0-\\xd6\\xd8-\\xde",fM="\\ufe0e\\ufe0f",dM=D7+L7+N7+k7,Cw="['’]",F7="["+nr+"]",hM="["+dM+"]",ay="["+Nr+"]",pM="\\d+",$7="["+yp+"]",vM="["+_p+"]",gM="[^"+nr+dM+pM+yp+_p+cM+"]",Tw="\\ud83c[\\udffb-\\udfff]",B7="(?:"+ay+"|"+Tw+")",mM="[^"+nr+"]",Ew="(?:\\ud83c[\\udde6-\\uddff]){2}",Aw="[\\ud800-\\udbff][\\udc00-\\udfff]",od="["+cM+"]",yM="\\u200d",_M="(?:"+vM+"|"+gM+")",V7="(?:"+od+"|"+gM+")",bM="(?:"+Cw+"(?:d|ll|m|re|s|t|ve))?",SM="(?:"+Cw+"(?:D|LL|M|RE|S|T|VE))?",wM=B7+"?",xM="["+fM+"]?",U7="(?:"+yM+"(?:"+[mM,Ew,Aw].join("|")+")"+xM+wM+")*",H7="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",z7="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",CM=xM+wM+U7,G7="(?:"+[$7,Ew,Aw].join("|")+")"+CM,W7="(?:"+[mM+ay+"?",ay,Ew,Aw,F7].join("|")+")",j7=RegExp(Cw,"g"),X7=RegExp(ay,"g"),Iw=RegExp(Tw+"(?="+Tw+")|"+W7+CM,"g"),Y7=RegExp([od+"?"+vM+"+"+bM+"(?="+[hM,od,"$"].join("|")+")",V7+"+"+SM+"(?="+[hM,od+_M,"$"].join("|")+")",od+"?"+_M+"+"+bM,od+"+"+SM,z7,H7,pM,G7].join("|"),"g"),K7=RegExp("["+yM+nr+Nr+fM+"]"),Z7=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q7=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],J7=-1,Un={};Un[ne]=Un[se]=Un[pe]=Un[Ee]=Un[Ge]=Un[oe]=Un[Ie]=Un[$e]=Un[et]=!0,Un[Le]=Un[je]=Un[Ze]=Un[Ae]=Un[bt]=Un[Se]=Un[Ne]=Un[Be]=Un[z]=Un[ue]=Un[ve]=Un[J]=Un[de]=Un[_e]=Un[he]=!1;var kn={};kn[Le]=kn[je]=kn[Ze]=kn[bt]=kn[Ae]=kn[Se]=kn[ne]=kn[se]=kn[pe]=kn[Ee]=kn[Ge]=kn[z]=kn[ue]=kn[ve]=kn[J]=kn[de]=kn[_e]=kn[Oe]=kn[oe]=kn[Ie]=kn[$e]=kn[et]=!0,kn[Ne]=kn[Be]=kn[he]=!1;var Q7={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e9={"&":"&","<":"<",">":">",'"':""","'":"'"},t9={"&":"&","<":"<",">":">",""":'"',"'":"'"},n9={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},r9=parseFloat,i9=parseInt,TM=typeof Xy=="object"&&Xy&&Xy.Object===Object&&Xy,o9=typeof self=="object"&&self&&self.Object===Object&&self,Hr=TM||o9||Function("return this")(),Rw=t&&!t.nodeType&&t,sc=Rw&&!0&&e&&!e.nodeType&&e,EM=sc&&sc.exports===Rw,Pw=EM&&TM.process,Ho=function(){try{var le=sc&&sc.require&&sc.require("util").types;return le||Pw&&Pw.binding&&Pw.binding("util")}catch{}}(),AM=Ho&&Ho.isArrayBuffer,IM=Ho&&Ho.isDate,RM=Ho&&Ho.isMap,PM=Ho&&Ho.isRegExp,MM=Ho&&Ho.isSet,OM=Ho&&Ho.isTypedArray;function bo(le,xe,me){switch(me.length){case 0:return le.call(xe);case 1:return le.call(xe,me[0]);case 2:return le.call(xe,me[0],me[1]);case 3:return le.call(xe,me[0],me[1],me[2])}return le.apply(xe,me)}function a9(le,xe,me,it){for(var kt=-1,pn=le==null?0:le.length;++kt<pn;){var Er=le[kt];xe(it,Er,me(Er),le)}return it}function zo(le,xe){for(var me=-1,it=le==null?0:le.length;++me<it&&xe(le[me],me,le)!==!1;);return le}function s9(le,xe){for(var me=le==null?0:le.length;me--&&xe(le[me],me,le)!==!1;);return le}function DM(le,xe){for(var me=-1,it=le==null?0:le.length;++me<it;)if(!xe(le[me],me,le))return!1;return!0}function $l(le,xe){for(var me=-1,it=le==null?0:le.length,kt=0,pn=[];++me<it;){var Er=le[me];xe(Er,me,le)&&(pn[kt++]=Er)}return pn}function sy(le,xe){var me=le==null?0:le.length;return!!me&&ad(le,xe,0)>-1}function Mw(le,xe,me){for(var it=-1,kt=le==null?0:le.length;++it<kt;)if(me(xe,le[it]))return!0;return!1}function jn(le,xe){for(var me=-1,it=le==null?0:le.length,kt=Array(it);++me<it;)kt[me]=xe(le[me],me,le);return kt}function Bl(le,xe){for(var me=-1,it=xe.length,kt=le.length;++me<it;)le[kt+me]=xe[me];return le}function Ow(le,xe,me,it){var kt=-1,pn=le==null?0:le.length;for(it&&pn&&(me=le[++kt]);++kt<pn;)me=xe(me,le[kt],kt,le);return me}function l9(le,xe,me,it){var kt=le==null?0:le.length;for(it&&kt&&(me=le[--kt]);kt--;)me=xe(me,le[kt],kt,le);return me}function Dw(le,xe){for(var me=-1,it=le==null?0:le.length;++me<it;)if(xe(le[me],me,le))return!0;return!1}var u9=Lw("length");function c9(le){return le.split("")}function f9(le){return le.match(ny)||[]}function LM(le,xe,me){var it;return me(le,function(kt,pn,Er){if(xe(kt,pn,Er))return it=pn,!1}),it}function ly(le,xe,me,it){for(var kt=le.length,pn=me+(it?1:-1);it?pn--:++pn<kt;)if(xe(le[pn],pn,le))return pn;return-1}function ad(le,xe,me){return xe===xe?x9(le,xe,me):ly(le,NM,me)}function d9(le,xe,me,it){for(var kt=me-1,pn=le.length;++kt<pn;)if(it(le[kt],xe))return kt;return-1}function NM(le){return le!==le}function kM(le,xe){var me=le==null?0:le.length;return me?kw(le,xe)/me:ge}function Lw(le){return function(xe){return xe==null?n:xe[le]}}function Nw(le){return function(xe){return le==null?n:le[xe]}}function FM(le,xe,me,it,kt){return kt(le,function(pn,Er,Mn){me=it?(it=!1,pn):xe(me,pn,Er,Mn)}),me}function h9(le,xe){var me=le.length;for(le.sort(xe);me--;)le[me]=le[me].value;return le}function kw(le,xe){for(var me,it=-1,kt=le.length;++it<kt;){var pn=xe(le[it]);pn!==n&&(me=me===n?pn:me+pn)}return me}function Fw(le,xe){for(var me=-1,it=Array(le);++me<le;)it[me]=xe(me);return it}function p9(le,xe){return jn(xe,function(me){return[me,le[me]]})}function $M(le){return le&&le.slice(0,HM(le)+1).replace(zi,"")}function So(le){return function(xe){return le(xe)}}function $w(le,xe){return jn(xe,function(me){return le[me]})}function bp(le,xe){return le.has(xe)}function BM(le,xe){for(var me=-1,it=le.length;++me<it&&ad(xe,le[me],0)>-1;);return me}function VM(le,xe){for(var me=le.length;me--&&ad(xe,le[me],0)>-1;);return me}function v9(le,xe){for(var me=le.length,it=0;me--;)le[me]===xe&&++it;return it}var g9=Nw(Q7),m9=Nw(e9);function y9(le){return"\\"+n9[le]}function _9(le,xe){return le==null?n:le[xe]}function sd(le){return K7.test(le)}function b9(le){return Z7.test(le)}function S9(le){for(var xe,me=[];!(xe=le.next()).done;)me.push(xe.value);return me}function Bw(le){var xe=-1,me=Array(le.size);return le.forEach(function(it,kt){me[++xe]=[kt,it]}),me}function UM(le,xe){return function(me){return le(xe(me))}}function Vl(le,xe){for(var me=-1,it=le.length,kt=0,pn=[];++me<it;){var Er=le[me];(Er===xe||Er===c)&&(le[me]=c,pn[kt++]=me)}return pn}function uy(le){var xe=-1,me=Array(le.size);return le.forEach(function(it){me[++xe]=it}),me}function w9(le){var xe=-1,me=Array(le.size);return le.forEach(function(it){me[++xe]=[it,it]}),me}function x9(le,xe,me){for(var it=me-1,kt=le.length;++it<kt;)if(le[it]===xe)return it;return-1}function C9(le,xe,me){for(var it=me+1;it--;)if(le[it]===xe)return it;return it}function ld(le){return sd(le)?E9(le):u9(le)}function Aa(le){return sd(le)?A9(le):c9(le)}function HM(le){for(var xe=le.length;xe--&&id.test(le.charAt(xe)););return xe}var T9=Nw(t9);function E9(le){for(var xe=Iw.lastIndex=0;Iw.test(le);)++xe;return xe}function A9(le){return le.match(Iw)||[]}function I9(le){return le.match(Y7)||[]}var R9=function le(xe){xe=xe==null?Hr:ud.defaults(Hr.Object(),xe,ud.pick(Hr,q7));var me=xe.Array,it=xe.Date,kt=xe.Error,pn=xe.Function,Er=xe.Math,Mn=xe.Object,Vw=xe.RegExp,P9=xe.String,Go=xe.TypeError,cy=me.prototype,M9=pn.prototype,cd=Mn.prototype,fy=xe["__core-js_shared__"],dy=M9.toString,Cn=cd.hasOwnProperty,O9=0,zM=function(){var p=/[^.]+$/.exec(fy&&fy.keys&&fy.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),hy=cd.toString,D9=dy.call(Mn),L9=Hr._,N9=Vw("^"+dy.call(Cn).replace(rd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),py=EM?xe.Buffer:n,Ul=xe.Symbol,vy=xe.Uint8Array,GM=py?py.allocUnsafe:n,gy=UM(Mn.getPrototypeOf,Mn),WM=Mn.create,jM=cd.propertyIsEnumerable,my=cy.splice,XM=Ul?Ul.isConcatSpreadable:n,Sp=Ul?Ul.iterator:n,lc=Ul?Ul.toStringTag:n,yy=function(){try{var p=hc(Mn,"defineProperty");return p({},"",{}),p}catch{}}(),k9=xe.clearTimeout!==Hr.clearTimeout&&xe.clearTimeout,F9=it&&it.now!==Hr.Date.now&&it.now,$9=xe.setTimeout!==Hr.setTimeout&&xe.setTimeout,_y=Er.ceil,by=Er.floor,Uw=Mn.getOwnPropertySymbols,B9=py?py.isBuffer:n,YM=xe.isFinite,V9=cy.join,U9=UM(Mn.keys,Mn),Ar=Er.max,ti=Er.min,H9=it.now,z9=xe.parseInt,KM=Er.random,G9=cy.reverse,Hw=hc(xe,"DataView"),wp=hc(xe,"Map"),zw=hc(xe,"Promise"),fd=hc(xe,"Set"),xp=hc(xe,"WeakMap"),Cp=hc(Mn,"create"),Sy=xp&&new xp,dd={},W9=pc(Hw),j9=pc(wp),X9=pc(zw),Y9=pc(fd),K9=pc(xp),wy=Ul?Ul.prototype:n,Tp=wy?wy.valueOf:n,ZM=wy?wy.toString:n;function F(p){if(rr(p)&&!Vt(p)&&!(p instanceof nn)){if(p instanceof Wo)return p;if(Cn.call(p,"__wrapped__"))return qO(p)}return new Wo(p)}var hd=function(){function p(){}return function(g){if(!er(g))return{};if(WM)return WM(g);p.prototype=g;var x=new p;return p.prototype=n,x}}();function xy(){}function Wo(p,g){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}F.templateSettings={escape:Pn,evaluate:yr,interpolate:nd,variable:"",imports:{_:F}},F.prototype=xy.prototype,F.prototype.constructor=F,Wo.prototype=hd(xy.prototype),Wo.prototype.constructor=Wo;function nn(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ye,this.__views__=[]}function Z9(){var p=new nn(this.__wrapped__);return p.__actions__=Gi(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=Gi(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=Gi(this.__views__),p}function q9(){if(this.__filtered__){var p=new nn(this);p.__dir__=-1,p.__filtered__=!0}else p=this.clone(),p.__dir__*=-1;return p}function J9(){var p=this.__wrapped__.value(),g=this.__dir__,x=Vt(p),A=g<0,O=x?p.length:0,V=cj(0,O,this.__views__),Z=V.start,Q=V.end,ce=Q-Z,Re=A?Q:Z-1,Pe=this.__iteratees__,Fe=Pe.length,Je=0,vt=ti(ce,this.__takeCount__);if(!x||!A&&O==ce&&vt==ce)return bO(p,this.__actions__);var Tt=[];e:for(;ce--&&Je<vt;){Re+=g;for(var Xt=-1,Et=p[Re];++Xt<Fe;){var qt=Pe[Xt],sn=qt.iteratee,Co=qt.type,Ti=sn(Et);if(Co==W)Et=Ti;else if(!Ti){if(Co==$)continue e;break e}}Tt[Je++]=Et}return Tt}nn.prototype=hd(xy.prototype),nn.prototype.constructor=nn;function uc(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var A=p[g];this.set(A[0],A[1])}}function Q9(){this.__data__=Cp?Cp(null):{},this.size=0}function eW(p){var g=this.has(p)&&delete this.__data__[p];return this.size-=g?1:0,g}function tW(p){var g=this.__data__;if(Cp){var x=g[p];return x===l?n:x}return Cn.call(g,p)?g[p]:n}function nW(p){var g=this.__data__;return Cp?g[p]!==n:Cn.call(g,p)}function rW(p,g){var x=this.__data__;return this.size+=this.has(p)?0:1,x[p]=Cp&&g===n?l:g,this}uc.prototype.clear=Q9,uc.prototype.delete=eW,uc.prototype.get=tW,uc.prototype.has=nW,uc.prototype.set=rW;function Bs(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var A=p[g];this.set(A[0],A[1])}}function iW(){this.__data__=[],this.size=0}function oW(p){var g=this.__data__,x=Cy(g,p);if(x<0)return!1;var A=g.length-1;return x==A?g.pop():my.call(g,x,1),--this.size,!0}function aW(p){var g=this.__data__,x=Cy(g,p);return x<0?n:g[x][1]}function sW(p){return Cy(this.__data__,p)>-1}function lW(p,g){var x=this.__data__,A=Cy(x,p);return A<0?(++this.size,x.push([p,g])):x[A][1]=g,this}Bs.prototype.clear=iW,Bs.prototype.delete=oW,Bs.prototype.get=aW,Bs.prototype.has=sW,Bs.prototype.set=lW;function Vs(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var A=p[g];this.set(A[0],A[1])}}function uW(){this.size=0,this.__data__={hash:new uc,map:new(wp||Bs),string:new uc}}function cW(p){var g=ky(this,p).delete(p);return this.size-=g?1:0,g}function fW(p){return ky(this,p).get(p)}function dW(p){return ky(this,p).has(p)}function hW(p,g){var x=ky(this,p),A=x.size;return x.set(p,g),this.size+=x.size==A?0:1,this}Vs.prototype.clear=uW,Vs.prototype.delete=cW,Vs.prototype.get=fW,Vs.prototype.has=dW,Vs.prototype.set=hW;function cc(p){var g=-1,x=p==null?0:p.length;for(this.__data__=new Vs;++g<x;)this.add(p[g])}function pW(p){return this.__data__.set(p,l),this}function vW(p){return this.__data__.has(p)}cc.prototype.add=cc.prototype.push=pW,cc.prototype.has=vW;function Ia(p){var g=this.__data__=new Bs(p);this.size=g.size}function gW(){this.__data__=new Bs,this.size=0}function mW(p){var g=this.__data__,x=g.delete(p);return this.size=g.size,x}function yW(p){return this.__data__.get(p)}function _W(p){return this.__data__.has(p)}function bW(p,g){var x=this.__data__;if(x instanceof Bs){var A=x.__data__;if(!wp||A.length<i-1)return A.push([p,g]),this.size=++x.size,this;x=this.__data__=new Vs(A)}return x.set(p,g),this.size=x.size,this}Ia.prototype.clear=gW,Ia.prototype.delete=mW,Ia.prototype.get=yW,Ia.prototype.has=_W,Ia.prototype.set=bW;function qM(p,g){var x=Vt(p),A=!x&&vc(p),O=!x&&!A&&jl(p),V=!x&&!A&&!O&&md(p),Z=x||A||O||V,Q=Z?Fw(p.length,P9):[],ce=Q.length;for(var Re in p)(g||Cn.call(p,Re))&&!(Z&&(Re=="length"||O&&(Re=="offset"||Re=="parent")||V&&(Re=="buffer"||Re=="byteLength"||Re=="byteOffset")||Gs(Re,ce)))&&Q.push(Re);return Q}function JM(p){var g=p.length;return g?p[ex(0,g-1)]:n}function SW(p,g){return Fy(Gi(p),fc(g,0,p.length))}function wW(p){return Fy(Gi(p))}function Gw(p,g,x){(x!==n&&!Ra(p[g],x)||x===n&&!(g in p))&&Us(p,g,x)}function Ep(p,g,x){var A=p[g];(!(Cn.call(p,g)&&Ra(A,x))||x===n&&!(g in p))&&Us(p,g,x)}function Cy(p,g){for(var x=p.length;x--;)if(Ra(p[x][0],g))return x;return-1}function xW(p,g,x,A){return Hl(p,function(O,V,Z){g(A,O,x(O),Z)}),A}function QM(p,g){return p&&is(g,kr(g),p)}function CW(p,g){return p&&is(g,ji(g),p)}function Us(p,g,x){g=="__proto__"&&yy?yy(p,g,{configurable:!0,enumerable:!0,value:x,writable:!0}):p[g]=x}function Ww(p,g){for(var x=-1,A=g.length,O=me(A),V=p==null;++x<A;)O[x]=V?n:Ex(p,g[x]);return O}function fc(p,g,x){return p===p&&(x!==n&&(p=p<=x?p:x),g!==n&&(p=p>=g?p:g)),p}function jo(p,g,x,A,O,V){var Z,Q=g&f,ce=g&d,Re=g&h;if(x&&(Z=O?x(p,A,O,V):x(p)),Z!==n)return Z;if(!er(p))return p;var Pe=Vt(p);if(Pe){if(Z=dj(p),!Q)return Gi(p,Z)}else{var Fe=ni(p),Je=Fe==Be||Fe==H;if(jl(p))return xO(p,Q);if(Fe==ve||Fe==Le||Je&&!O){if(Z=ce||Je?{}:HO(p),!Q)return ce?tj(p,CW(Z,p)):ej(p,QM(Z,p))}else{if(!kn[Fe])return O?p:{};Z=hj(p,Fe,Q)}}V||(V=new Ia);var vt=V.get(p);if(vt)return vt;V.set(p,Z),mD(p)?p.forEach(function(Et){Z.add(jo(Et,g,x,Et,p,V))}):vD(p)&&p.forEach(function(Et,qt){Z.set(qt,jo(Et,g,x,qt,p,V))});var Tt=Re?ce?fx:cx:ce?ji:kr,Xt=Pe?n:Tt(p);return zo(Xt||p,function(Et,qt){Xt&&(qt=Et,Et=p[qt]),Ep(Z,qt,jo(Et,g,x,qt,p,V))}),Z}function TW(p){var g=kr(p);return function(x){return eO(x,p,g)}}function eO(p,g,x){var A=x.length;if(p==null)return!A;for(p=Mn(p);A--;){var O=x[A],V=g[O],Z=p[O];if(Z===n&&!(O in p)||!V(Z))return!1}return!0}function tO(p,g,x){if(typeof p!="function")throw new Go(a);return Dp(function(){p.apply(n,x)},g)}function Ap(p,g,x,A){var O=-1,V=sy,Z=!0,Q=p.length,ce=[],Re=g.length;if(!Q)return ce;x&&(g=jn(g,So(x))),A?(V=Mw,Z=!1):g.length>=i&&(V=bp,Z=!1,g=new cc(g));e:for(;++O<Q;){var Pe=p[O],Fe=x==null?Pe:x(Pe);if(Pe=A||Pe!==0?Pe:0,Z&&Fe===Fe){for(var Je=Re;Je--;)if(g[Je]===Fe)continue e;ce.push(Pe)}else V(g,Fe,A)||ce.push(Pe)}return ce}var Hl=IO(rs),nO=IO(Xw,!0);function EW(p,g){var x=!0;return Hl(p,function(A,O,V){return x=!!g(A,O,V),x}),x}function Ty(p,g,x){for(var A=-1,O=p.length;++A<O;){var V=p[A],Z=g(V);if(Z!=null&&(Q===n?Z===Z&&!xo(Z):x(Z,Q)))var Q=Z,ce=V}return ce}function AW(p,g,x,A){var O=p.length;for(x=Wt(x),x<0&&(x=-x>O?0:O+x),A=A===n||A>O?O:Wt(A),A<0&&(A+=O),A=x>A?0:_D(A);x<A;)p[x++]=g;return p}function rO(p,g){var x=[];return Hl(p,function(A,O,V){g(A,O,V)&&x.push(A)}),x}function zr(p,g,x,A,O){var V=-1,Z=p.length;for(x||(x=vj),O||(O=[]);++V<Z;){var Q=p[V];g>0&&x(Q)?g>1?zr(Q,g-1,x,A,O):Bl(O,Q):A||(O[O.length]=Q)}return O}var jw=RO(),iO=RO(!0);function rs(p,g){return p&&jw(p,g,kr)}function Xw(p,g){return p&&iO(p,g,kr)}function Ey(p,g){return $l(g,function(x){return Ws(p[x])})}function dc(p,g){g=Gl(g,p);for(var x=0,A=g.length;p!=null&&x<A;)p=p[os(g[x++])];return x&&x==A?p:n}function oO(p,g,x){var A=g(p);return Vt(p)?A:Bl(A,x(p))}function xi(p){return p==null?p===n?q:we:lc&&lc in Mn(p)?uj(p):wj(p)}function Yw(p,g){return p>g}function IW(p,g){return p!=null&&Cn.call(p,g)}function RW(p,g){return p!=null&&g in Mn(p)}function PW(p,g,x){return p>=ti(g,x)&&p<Ar(g,x)}function Kw(p,g,x){for(var A=x?Mw:sy,O=p[0].length,V=p.length,Z=V,Q=me(V),ce=1/0,Re=[];Z--;){var Pe=p[Z];Z&&g&&(Pe=jn(Pe,So(g))),ce=ti(Pe.length,ce),Q[Z]=!x&&(g||O>=120&&Pe.length>=120)?new cc(Z&&Pe):n}Pe=p[0];var Fe=-1,Je=Q[0];e:for(;++Fe<O&&Re.length<ce;){var vt=Pe[Fe],Tt=g?g(vt):vt;if(vt=x||vt!==0?vt:0,!(Je?bp(Je,Tt):A(Re,Tt,x))){for(Z=V;--Z;){var Xt=Q[Z];if(!(Xt?bp(Xt,Tt):A(p[Z],Tt,x)))continue e}Je&&Je.push(Tt),Re.push(vt)}}return Re}function MW(p,g,x,A){return rs(p,function(O,V,Z){g(A,x(O),V,Z)}),A}function Ip(p,g,x){g=Gl(g,p),p=jO(p,g);var A=p==null?p:p[os(Yo(g))];return A==null?n:bo(A,p,x)}function aO(p){return rr(p)&&xi(p)==Le}function OW(p){return rr(p)&&xi(p)==Ze}function DW(p){return rr(p)&&xi(p)==Se}function Rp(p,g,x,A,O){return p===g?!0:p==null||g==null||!rr(p)&&!rr(g)?p!==p&&g!==g:LW(p,g,x,A,Rp,O)}function LW(p,g,x,A,O,V){var Z=Vt(p),Q=Vt(g),ce=Z?je:ni(p),Re=Q?je:ni(g);ce=ce==Le?ve:ce,Re=Re==Le?ve:Re;var Pe=ce==ve,Fe=Re==ve,Je=ce==Re;if(Je&&jl(p)){if(!jl(g))return!1;Z=!0,Pe=!1}if(Je&&!Pe)return V||(V=new Ia),Z||md(p)?BO(p,g,x,A,O,V):sj(p,g,ce,x,A,O,V);if(!(x&v)){var vt=Pe&&Cn.call(p,"__wrapped__"),Tt=Fe&&Cn.call(g,"__wrapped__");if(vt||Tt){var Xt=vt?p.value():p,Et=Tt?g.value():g;return V||(V=new Ia),O(Xt,Et,x,A,V)}}return Je?(V||(V=new Ia),lj(p,g,x,A,O,V)):!1}function NW(p){return rr(p)&&ni(p)==z}function Zw(p,g,x,A){var O=x.length,V=O,Z=!A;if(p==null)return!V;for(p=Mn(p);O--;){var Q=x[O];if(Z&&Q[2]?Q[1]!==p[Q[0]]:!(Q[0]in p))return!1}for(;++O<V;){Q=x[O];var ce=Q[0],Re=p[ce],Pe=Q[1];if(Z&&Q[2]){if(Re===n&&!(ce in p))return!1}else{var Fe=new Ia;if(A)var Je=A(Re,Pe,ce,p,g,Fe);if(!(Je===n?Rp(Pe,Re,v|m,A,Fe):Je))return!1}}return!0}function sO(p){if(!er(p)||mj(p))return!1;var g=Ws(p)?N9:mt;return g.test(pc(p))}function kW(p){return rr(p)&&xi(p)==J}function FW(p){return rr(p)&&ni(p)==de}function $W(p){return rr(p)&&zy(p.length)&&!!Un[xi(p)]}function lO(p){return typeof p=="function"?p:p==null?Xi:typeof p=="object"?Vt(p)?fO(p[0],p[1]):cO(p):PD(p)}function qw(p){if(!Op(p))return U9(p);var g=[];for(var x in Mn(p))Cn.call(p,x)&&x!="constructor"&&g.push(x);return g}function BW(p){if(!er(p))return Sj(p);var g=Op(p),x=[];for(var A in p)A=="constructor"&&(g||!Cn.call(p,A))||x.push(A);return x}function Jw(p,g){return p<g}function uO(p,g){var x=-1,A=Wi(p)?me(p.length):[];return Hl(p,function(O,V,Z){A[++x]=g(O,V,Z)}),A}function cO(p){var g=hx(p);return g.length==1&&g[0][2]?GO(g[0][0],g[0][1]):function(x){return x===p||Zw(x,p,g)}}function fO(p,g){return vx(p)&&zO(g)?GO(os(p),g):function(x){var A=Ex(x,p);return A===n&&A===g?Ax(x,p):Rp(g,A,v|m)}}function Ay(p,g,x,A,O){p!==g&&jw(g,function(V,Z){if(O||(O=new Ia),er(V))VW(p,g,Z,x,Ay,A,O);else{var Q=A?A(mx(p,Z),V,Z+"",p,g,O):n;Q===n&&(Q=V),Gw(p,Z,Q)}},ji)}function VW(p,g,x,A,O,V,Z){var Q=mx(p,x),ce=mx(g,x),Re=Z.get(ce);if(Re){Gw(p,x,Re);return}var Pe=V?V(Q,ce,x+"",p,g,Z):n,Fe=Pe===n;if(Fe){var Je=Vt(ce),vt=!Je&&jl(ce),Tt=!Je&&!vt&&md(ce);Pe=ce,Je||vt||Tt?Vt(Q)?Pe=Q:cr(Q)?Pe=Gi(Q):vt?(Fe=!1,Pe=xO(ce,!0)):Tt?(Fe=!1,Pe=CO(ce,!0)):Pe=[]:Lp(ce)||vc(ce)?(Pe=Q,vc(Q)?Pe=bD(Q):(!er(Q)||Ws(Q))&&(Pe=HO(ce))):Fe=!1}Fe&&(Z.set(ce,Pe),O(Pe,ce,A,V,Z),Z.delete(ce)),Gw(p,x,Pe)}function dO(p,g){var x=p.length;if(x)return g+=g<0?x:0,Gs(g,x)?p[g]:n}function hO(p,g,x){g.length?g=jn(g,function(V){return Vt(V)?function(Z){return dc(Z,V.length===1?V[0]:V)}:V}):g=[Xi];var A=-1;g=jn(g,So(xt()));var O=uO(p,function(V,Z,Q){var ce=jn(g,function(Re){return Re(V)});return{criteria:ce,index:++A,value:V}});return h9(O,function(V,Z){return QW(V,Z,x)})}function UW(p,g){return pO(p,g,function(x,A){return Ax(p,A)})}function pO(p,g,x){for(var A=-1,O=g.length,V={};++A<O;){var Z=g[A],Q=dc(p,Z);x(Q,Z)&&Pp(V,Gl(Z,p),Q)}return V}function HW(p){return function(g){return dc(g,p)}}function Qw(p,g,x,A){var O=A?d9:ad,V=-1,Z=g.length,Q=p;for(p===g&&(g=Gi(g)),x&&(Q=jn(p,So(x)));++V<Z;)for(var ce=0,Re=g[V],Pe=x?x(Re):Re;(ce=O(Q,Pe,ce,A))>-1;)Q!==p&&my.call(Q,ce,1),my.call(p,ce,1);return p}function vO(p,g){for(var x=p?g.length:0,A=x-1;x--;){var O=g[x];if(x==A||O!==V){var V=O;Gs(O)?my.call(p,O,1):rx(p,O)}}return p}function ex(p,g){return p+by(KM()*(g-p+1))}function zW(p,g,x,A){for(var O=-1,V=Ar(_y((g-p)/(x||1)),0),Z=me(V);V--;)Z[A?V:++O]=p,p+=x;return Z}function tx(p,g){var x="";if(!p||g<1||g>X)return x;do g%2&&(x+=p),g=by(g/2),g&&(p+=p);while(g);return x}function Yt(p,g){return yx(WO(p,g,Xi),p+"")}function GW(p){return JM(yd(p))}function WW(p,g){var x=yd(p);return Fy(x,fc(g,0,x.length))}function Pp(p,g,x,A){if(!er(p))return p;g=Gl(g,p);for(var O=-1,V=g.length,Z=V-1,Q=p;Q!=null&&++O<V;){var ce=os(g[O]),Re=x;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return p;if(O!=Z){var Pe=Q[ce];Re=A?A(Pe,ce,Q):n,Re===n&&(Re=er(Pe)?Pe:Gs(g[O+1])?[]:{})}Ep(Q,ce,Re),Q=Q[ce]}return p}var gO=Sy?function(p,g){return Sy.set(p,g),p}:Xi,jW=yy?function(p,g){return yy(p,"toString",{configurable:!0,enumerable:!1,value:Rx(g),writable:!0})}:Xi;function XW(p){return Fy(yd(p))}function Xo(p,g,x){var A=-1,O=p.length;g<0&&(g=-g>O?0:O+g),x=x>O?O:x,x<0&&(x+=O),O=g>x?0:x-g>>>0,g>>>=0;for(var V=me(O);++A<O;)V[A]=p[A+g];return V}function YW(p,g){var x;return Hl(p,function(A,O,V){return x=g(A,O,V),!x}),!!x}function Iy(p,g,x){var A=0,O=p==null?A:p.length;if(typeof g=="number"&&g===g&&O<=ke){for(;A<O;){var V=A+O>>>1,Z=p[V];Z!==null&&!xo(Z)&&(x?Z<=g:Z<g)?A=V+1:O=V}return O}return nx(p,g,Xi,x)}function nx(p,g,x,A){var O=0,V=p==null?0:p.length;if(V===0)return 0;g=x(g);for(var Z=g!==g,Q=g===null,ce=xo(g),Re=g===n;O<V;){var Pe=by((O+V)/2),Fe=x(p[Pe]),Je=Fe!==n,vt=Fe===null,Tt=Fe===Fe,Xt=xo(Fe);if(Z)var Et=A||Tt;else Re?Et=Tt&&(A||Je):Q?Et=Tt&&Je&&(A||!vt):ce?Et=Tt&&Je&&!vt&&(A||!Xt):vt||Xt?Et=!1:Et=A?Fe<=g:Fe<g;Et?O=Pe+1:V=Pe}return ti(V,Me)}function mO(p,g){for(var x=-1,A=p.length,O=0,V=[];++x<A;){var Z=p[x],Q=g?g(Z):Z;if(!x||!Ra(Q,ce)){var ce=Q;V[O++]=Z===0?0:Z}}return V}function yO(p){return typeof p=="number"?p:xo(p)?ge:+p}function wo(p){if(typeof p=="string")return p;if(Vt(p))return jn(p,wo)+"";if(xo(p))return ZM?ZM.call(p):"";var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}function zl(p,g,x){var A=-1,O=sy,V=p.length,Z=!0,Q=[],ce=Q;if(x)Z=!1,O=Mw;else if(V>=i){var Re=g?null:oj(p);if(Re)return uy(Re);Z=!1,O=bp,ce=new cc}else ce=g?[]:Q;e:for(;++A<V;){var Pe=p[A],Fe=g?g(Pe):Pe;if(Pe=x||Pe!==0?Pe:0,Z&&Fe===Fe){for(var Je=ce.length;Je--;)if(ce[Je]===Fe)continue e;g&&ce.push(Fe),Q.push(Pe)}else O(ce,Fe,x)||(ce!==Q&&ce.push(Fe),Q.push(Pe))}return Q}function rx(p,g){return g=Gl(g,p),p=jO(p,g),p==null||delete p[os(Yo(g))]}function _O(p,g,x,A){return Pp(p,g,x(dc(p,g)),A)}function Ry(p,g,x,A){for(var O=p.length,V=A?O:-1;(A?V--:++V<O)&&g(p[V],V,p););return x?Xo(p,A?0:V,A?V+1:O):Xo(p,A?V+1:0,A?O:V)}function bO(p,g){var x=p;return x instanceof nn&&(x=x.value()),Ow(g,function(A,O){return O.func.apply(O.thisArg,Bl([A],O.args))},x)}function ix(p,g,x){var A=p.length;if(A<2)return A?zl(p[0]):[];for(var O=-1,V=me(A);++O<A;)for(var Z=p[O],Q=-1;++Q<A;)Q!=O&&(V[O]=Ap(V[O]||Z,p[Q],g,x));return zl(zr(V,1),g,x)}function SO(p,g,x){for(var A=-1,O=p.length,V=g.length,Z={};++A<O;){var Q=A<V?g[A]:n;x(Z,p[A],Q)}return Z}function ox(p){return cr(p)?p:[]}function ax(p){return typeof p=="function"?p:Xi}function Gl(p,g){return Vt(p)?p:vx(p,g)?[p]:ZO(yn(p))}var KW=Yt;function Wl(p,g,x){var A=p.length;return x=x===n?A:x,!g&&x>=A?p:Xo(p,g,x)}var wO=k9||function(p){return Hr.clearTimeout(p)};function xO(p,g){if(g)return p.slice();var x=p.length,A=GM?GM(x):new p.constructor(x);return p.copy(A),A}function sx(p){var g=new p.constructor(p.byteLength);return new vy(g).set(new vy(p)),g}function ZW(p,g){var x=g?sx(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.byteLength)}function qW(p){var g=new p.constructor(p.source,mp.exec(p));return g.lastIndex=p.lastIndex,g}function JW(p){return Tp?Mn(Tp.call(p)):{}}function CO(p,g){var x=g?sx(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.length)}function TO(p,g){if(p!==g){var x=p!==n,A=p===null,O=p===p,V=xo(p),Z=g!==n,Q=g===null,ce=g===g,Re=xo(g);if(!Q&&!Re&&!V&&p>g||V&&Z&&ce&&!Q&&!Re||A&&Z&&ce||!x&&ce||!O)return 1;if(!A&&!V&&!Re&&p<g||Re&&x&&O&&!A&&!V||Q&&x&&O||!Z&&O||!ce)return-1}return 0}function QW(p,g,x){for(var A=-1,O=p.criteria,V=g.criteria,Z=O.length,Q=x.length;++A<Z;){var ce=TO(O[A],V[A]);if(ce){if(A>=Q)return ce;var Re=x[A];return ce*(Re=="desc"?-1:1)}}return p.index-g.index}function EO(p,g,x,A){for(var O=-1,V=p.length,Z=x.length,Q=-1,ce=g.length,Re=Ar(V-Z,0),Pe=me(ce+Re),Fe=!A;++Q<ce;)Pe[Q]=g[Q];for(;++O<Z;)(Fe||O<V)&&(Pe[x[O]]=p[O]);for(;Re--;)Pe[Q++]=p[O++];return Pe}function AO(p,g,x,A){for(var O=-1,V=p.length,Z=-1,Q=x.length,ce=-1,Re=g.length,Pe=Ar(V-Q,0),Fe=me(Pe+Re),Je=!A;++O<Pe;)Fe[O]=p[O];for(var vt=O;++ce<Re;)Fe[vt+ce]=g[ce];for(;++Z<Q;)(Je||O<V)&&(Fe[vt+x[Z]]=p[O++]);return Fe}function Gi(p,g){var x=-1,A=p.length;for(g||(g=me(A));++x<A;)g[x]=p[x];return g}function is(p,g,x,A){var O=!x;x||(x={});for(var V=-1,Z=g.length;++V<Z;){var Q=g[V],ce=A?A(x[Q],p[Q],Q,x,p):n;ce===n&&(ce=p[Q]),O?Us(x,Q,ce):Ep(x,Q,ce)}return x}function ej(p,g){return is(p,px(p),g)}function tj(p,g){return is(p,VO(p),g)}function Py(p,g){return function(x,A){var O=Vt(x)?a9:xW,V=g?g():{};return O(x,p,xt(A,2),V)}}function pd(p){return Yt(function(g,x){var A=-1,O=x.length,V=O>1?x[O-1]:n,Z=O>2?x[2]:n;for(V=p.length>3&&typeof V=="function"?(O--,V):n,Z&&Ci(x[0],x[1],Z)&&(V=O<3?n:V,O=1),g=Mn(g);++A<O;){var Q=x[A];Q&&p(g,Q,A,V)}return g})}function IO(p,g){return function(x,A){if(x==null)return x;if(!Wi(x))return p(x,A);for(var O=x.length,V=g?O:-1,Z=Mn(x);(g?V--:++V<O)&&A(Z[V],V,Z)!==!1;);return x}}function RO(p){return function(g,x,A){for(var O=-1,V=Mn(g),Z=A(g),Q=Z.length;Q--;){var ce=Z[p?Q:++O];if(x(V[ce],ce,V)===!1)break}return g}}function nj(p,g,x){var A=g&_,O=Mp(p);function V(){var Z=this&&this!==Hr&&this instanceof V?O:p;return Z.apply(A?x:this,arguments)}return V}function PO(p){return function(g){g=yn(g);var x=sd(g)?Aa(g):n,A=x?x[0]:g.charAt(0),O=x?Wl(x,1).join(""):g.slice(1);return A[p]()+O}}function vd(p){return function(g){return Ow(ID(AD(g).replace(j7,"")),p,"")}}function Mp(p){return function(){var g=arguments;switch(g.length){case 0:return new p;case 1:return new p(g[0]);case 2:return new p(g[0],g[1]);case 3:return new p(g[0],g[1],g[2]);case 4:return new p(g[0],g[1],g[2],g[3]);case 5:return new p(g[0],g[1],g[2],g[3],g[4]);case 6:return new p(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new p(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var x=hd(p.prototype),A=p.apply(x,g);return er(A)?A:x}}function rj(p,g,x){var A=Mp(p);function O(){for(var V=arguments.length,Z=me(V),Q=V,ce=gd(O);Q--;)Z[Q]=arguments[Q];var Re=V<3&&Z[0]!==ce&&Z[V-1]!==ce?[]:Vl(Z,ce);if(V-=Re.length,V<x)return NO(p,g,My,O.placeholder,n,Z,Re,n,n,x-V);var Pe=this&&this!==Hr&&this instanceof O?A:p;return bo(Pe,this,Z)}return O}function MO(p){return function(g,x,A){var O=Mn(g);if(!Wi(g)){var V=xt(x,3);g=kr(g),x=function(Q){return V(O[Q],Q,O)}}var Z=p(g,x,A);return Z>-1?O[V?g[Z]:Z]:n}}function OO(p){return zs(function(g){var x=g.length,A=x,O=Wo.prototype.thru;for(p&&g.reverse();A--;){var V=g[A];if(typeof V!="function")throw new Go(a);if(O&&!Z&&Ny(V)=="wrapper")var Z=new Wo([],!0)}for(A=Z?A:x;++A<x;){V=g[A];var Q=Ny(V),ce=Q=="wrapper"?dx(V):n;ce&&gx(ce[0])&&ce[1]==(E|b|T|R)&&!ce[4].length&&ce[9]==1?Z=Z[Ny(ce[0])].apply(Z,ce[3]):Z=V.length==1&&gx(V)?Z[Q]():Z.thru(V)}return function(){var Re=arguments,Pe=Re[0];if(Z&&Re.length==1&&Vt(Pe))return Z.plant(Pe).value();for(var Fe=0,Je=x?g[Fe].apply(this,Re):Pe;++Fe<x;)Je=g[Fe].call(this,Je);return Je}})}function My(p,g,x,A,O,V,Z,Q,ce,Re){var Pe=g&E,Fe=g&_,Je=g&y,vt=g&(b|w),Tt=g&I,Xt=Je?n:Mp(p);function Et(){for(var qt=arguments.length,sn=me(qt),Co=qt;Co--;)sn[Co]=arguments[Co];if(vt)var Ti=gd(Et),To=v9(sn,Ti);if(A&&(sn=EO(sn,A,O,vt)),V&&(sn=AO(sn,V,Z,vt)),qt-=To,vt&&qt<Re){var fr=Vl(sn,Ti);return NO(p,g,My,Et.placeholder,x,sn,fr,Q,ce,Re-qt)}var Pa=Fe?x:this,Xs=Je?Pa[p]:p;return qt=sn.length,Q?sn=xj(sn,Q):Tt&&qt>1&&sn.reverse(),Pe&&ce<qt&&(sn.length=ce),this&&this!==Hr&&this instanceof Et&&(Xs=Xt||Mp(Xs)),Xs.apply(Pa,sn)}return Et}function DO(p,g){return function(x,A){return MW(x,p,g(A),{})}}function Oy(p,g){return function(x,A){var O;if(x===n&&A===n)return g;if(x!==n&&(O=x),A!==n){if(O===n)return A;typeof x=="string"||typeof A=="string"?(x=wo(x),A=wo(A)):(x=yO(x),A=yO(A)),O=p(x,A)}return O}}function lx(p){return zs(function(g){return g=jn(g,So(xt())),Yt(function(x){var A=this;return p(g,function(O){return bo(O,A,x)})})})}function Dy(p,g){g=g===n?" ":wo(g);var x=g.length;if(x<2)return x?tx(g,p):g;var A=tx(g,_y(p/ld(g)));return sd(g)?Wl(Aa(A),0,p).join(""):A.slice(0,p)}function ij(p,g,x,A){var O=g&_,V=Mp(p);function Z(){for(var Q=-1,ce=arguments.length,Re=-1,Pe=A.length,Fe=me(Pe+ce),Je=this&&this!==Hr&&this instanceof Z?V:p;++Re<Pe;)Fe[Re]=A[Re];for(;ce--;)Fe[Re++]=arguments[++Q];return bo(Je,O?x:this,Fe)}return Z}function LO(p){return function(g,x,A){return A&&typeof A!="number"&&Ci(g,x,A)&&(x=A=n),g=js(g),x===n?(x=g,g=0):x=js(x),A=A===n?g<x?1:-1:js(A),zW(g,x,A,p)}}function Ly(p){return function(g,x){return typeof g=="string"&&typeof x=="string"||(g=Ko(g),x=Ko(x)),p(g,x)}}function NO(p,g,x,A,O,V,Z,Q,ce,Re){var Pe=g&b,Fe=Pe?Z:n,Je=Pe?n:Z,vt=Pe?V:n,Tt=Pe?n:V;g|=Pe?T:C,g&=~(Pe?C:T),g&S||(g&=-4);var Xt=[p,g,O,vt,Fe,Tt,Je,Q,ce,Re],Et=x.apply(n,Xt);return gx(p)&&XO(Et,Xt),Et.placeholder=A,YO(Et,p,g)}function ux(p){var g=Er[p];return function(x,A){if(x=Ko(x),A=A==null?0:ti(Wt(A),292),A&&YM(x)){var O=(yn(x)+"e").split("e"),V=g(O[0]+"e"+(+O[1]+A));return O=(yn(V)+"e").split("e"),+(O[0]+"e"+(+O[1]-A))}return g(x)}}var oj=fd&&1/uy(new fd([,-0]))[1]==K?function(p){return new fd(p)}:Ox;function kO(p){return function(g){var x=ni(g);return x==z?Bw(g):x==de?w9(g):p9(g,p(g))}}function Hs(p,g,x,A,O,V,Z,Q){var ce=g&y;if(!ce&&typeof p!="function")throw new Go(a);var Re=A?A.length:0;if(Re||(g&=-97,A=O=n),Z=Z===n?Z:Ar(Wt(Z),0),Q=Q===n?Q:Wt(Q),Re-=O?O.length:0,g&C){var Pe=A,Fe=O;A=O=n}var Je=ce?n:dx(p),vt=[p,g,x,A,O,Pe,Fe,V,Z,Q];if(Je&&bj(vt,Je),p=vt[0],g=vt[1],x=vt[2],A=vt[3],O=vt[4],Q=vt[9]=vt[9]===n?ce?0:p.length:Ar(vt[9]-Re,0),!Q&&g&(b|w)&&(g&=-25),!g||g==_)var Tt=nj(p,g,x);else g==b||g==w?Tt=rj(p,g,Q):(g==T||g==(_|T))&&!O.length?Tt=ij(p,g,x,A):Tt=My.apply(n,vt);var Xt=Je?gO:XO;return YO(Xt(Tt,vt),p,g)}function FO(p,g,x,A){return p===n||Ra(p,cd[x])&&!Cn.call(A,x)?g:p}function $O(p,g,x,A,O,V){return er(p)&&er(g)&&(V.set(g,p),Ay(p,g,n,$O,V),V.delete(g)),p}function aj(p){return Lp(p)?n:p}function BO(p,g,x,A,O,V){var Z=x&v,Q=p.length,ce=g.length;if(Q!=ce&&!(Z&&ce>Q))return!1;var Re=V.get(p),Pe=V.get(g);if(Re&&Pe)return Re==g&&Pe==p;var Fe=-1,Je=!0,vt=x&m?new cc:n;for(V.set(p,g),V.set(g,p);++Fe<Q;){var Tt=p[Fe],Xt=g[Fe];if(A)var Et=Z?A(Xt,Tt,Fe,g,p,V):A(Tt,Xt,Fe,p,g,V);if(Et!==n){if(Et)continue;Je=!1;break}if(vt){if(!Dw(g,function(qt,sn){if(!bp(vt,sn)&&(Tt===qt||O(Tt,qt,x,A,V)))return vt.push(sn)})){Je=!1;break}}else if(!(Tt===Xt||O(Tt,Xt,x,A,V))){Je=!1;break}}return V.delete(p),V.delete(g),Je}function sj(p,g,x,A,O,V,Z){switch(x){case bt:if(p.byteLength!=g.byteLength||p.byteOffset!=g.byteOffset)return!1;p=p.buffer,g=g.buffer;case Ze:return!(p.byteLength!=g.byteLength||!V(new vy(p),new vy(g)));case Ae:case Se:case ue:return Ra(+p,+g);case Ne:return p.name==g.name&&p.message==g.message;case J:case _e:return p==g+"";case z:var Q=Bw;case de:var ce=A&v;if(Q||(Q=uy),p.size!=g.size&&!ce)return!1;var Re=Z.get(p);if(Re)return Re==g;A|=m,Z.set(p,g);var Pe=BO(Q(p),Q(g),A,O,V,Z);return Z.delete(p),Pe;case Oe:if(Tp)return Tp.call(p)==Tp.call(g)}return!1}function lj(p,g,x,A,O,V){var Z=x&v,Q=cx(p),ce=Q.length,Re=cx(g),Pe=Re.length;if(ce!=Pe&&!Z)return!1;for(var Fe=ce;Fe--;){var Je=Q[Fe];if(!(Z?Je in g:Cn.call(g,Je)))return!1}var vt=V.get(p),Tt=V.get(g);if(vt&&Tt)return vt==g&&Tt==p;var Xt=!0;V.set(p,g),V.set(g,p);for(var Et=Z;++Fe<ce;){Je=Q[Fe];var qt=p[Je],sn=g[Je];if(A)var Co=Z?A(sn,qt,Je,g,p,V):A(qt,sn,Je,p,g,V);if(!(Co===n?qt===sn||O(qt,sn,x,A,V):Co)){Xt=!1;break}Et||(Et=Je=="constructor")}if(Xt&&!Et){var Ti=p.constructor,To=g.constructor;Ti!=To&&"constructor"in p&&"constructor"in g&&!(typeof Ti=="function"&&Ti instanceof Ti&&typeof To=="function"&&To instanceof To)&&(Xt=!1)}return V.delete(p),V.delete(g),Xt}function zs(p){return yx(WO(p,n,eD),p+"")}function cx(p){return oO(p,kr,px)}function fx(p){return oO(p,ji,VO)}var dx=Sy?function(p){return Sy.get(p)}:Ox;function Ny(p){for(var g=p.name+"",x=dd[g],A=Cn.call(dd,g)?x.length:0;A--;){var O=x[A],V=O.func;if(V==null||V==p)return O.name}return g}function gd(p){var g=Cn.call(F,"placeholder")?F:p;return g.placeholder}function xt(){var p=F.iteratee||Px;return p=p===Px?lO:p,arguments.length?p(arguments[0],arguments[1]):p}function ky(p,g){var x=p.__data__;return gj(g)?x[typeof g=="string"?"string":"hash"]:x.map}function hx(p){for(var g=kr(p),x=g.length;x--;){var A=g[x],O=p[A];g[x]=[A,O,zO(O)]}return g}function hc(p,g){var x=_9(p,g);return sO(x)?x:n}function uj(p){var g=Cn.call(p,lc),x=p[lc];try{p[lc]=n;var A=!0}catch{}var O=hy.call(p);return A&&(g?p[lc]=x:delete p[lc]),O}var px=Uw?function(p){return p==null?[]:(p=Mn(p),$l(Uw(p),function(g){return jM.call(p,g)}))}:Dx,VO=Uw?function(p){for(var g=[];p;)Bl(g,px(p)),p=gy(p);return g}:Dx,ni=xi;(Hw&&ni(new Hw(new ArrayBuffer(1)))!=bt||wp&&ni(new wp)!=z||zw&&ni(zw.resolve())!=U||fd&&ni(new fd)!=de||xp&&ni(new xp)!=he)&&(ni=function(p){var g=xi(p),x=g==ve?p.constructor:n,A=x?pc(x):"";if(A)switch(A){case W9:return bt;case j9:return z;case X9:return U;case Y9:return de;case K9:return he}return g});function cj(p,g,x){for(var A=-1,O=x.length;++A<O;){var V=x[A],Z=V.size;switch(V.type){case"drop":p+=Z;break;case"dropRight":g-=Z;break;case"take":g=ti(g,p+Z);break;case"takeRight":p=Ar(p,g-Z);break}}return{start:p,end:g}}function fj(p){var g=p.match(ty);return g?g[1].split(gp):[]}function UO(p,g,x){g=Gl(g,p);for(var A=-1,O=g.length,V=!1;++A<O;){var Z=os(g[A]);if(!(V=p!=null&&x(p,Z)))break;p=p[Z]}return V||++A!=O?V:(O=p==null?0:p.length,!!O&&zy(O)&&Gs(Z,O)&&(Vt(p)||vc(p)))}function dj(p){var g=p.length,x=new p.constructor(g);return g&&typeof p[0]=="string"&&Cn.call(p,"index")&&(x.index=p.index,x.input=p.input),x}function HO(p){return typeof p.constructor=="function"&&!Op(p)?hd(gy(p)):{}}function hj(p,g,x){var A=p.constructor;switch(g){case Ze:return sx(p);case Ae:case Se:return new A(+p);case bt:return ZW(p,x);case ne:case se:case pe:case Ee:case Ge:case oe:case Ie:case $e:case et:return CO(p,x);case z:return new A;case ue:case _e:return new A(p);case J:return qW(p);case de:return new A;case Oe:return JW(p)}}function pj(p,g){var x=g.length;if(!x)return p;var A=x-1;return g[A]=(x>1?"& ":"")+g[A],g=g.join(x>2?", ":" "),p.replace(ey,`{
|
||
/* [wrapped with `+g+`] */
|
||
`)}function vj(p){return Vt(p)||vc(p)||!!(XM&&p&&p[XM])}function Gs(p,g){var x=typeof p;return g=g??X,!!g&&(x=="number"||x!="symbol"&&He.test(p))&&p>-1&&p%1==0&&p<g}function Ci(p,g,x){if(!er(x))return!1;var A=typeof g;return(A=="number"?Wi(x)&&Gs(g,x.length):A=="string"&&g in x)?Ra(x[g],p):!1}function vx(p,g){if(Vt(p))return!1;var x=typeof p;return x=="number"||x=="symbol"||x=="boolean"||p==null||xo(p)?!0:ns.test(p)||!Fl.test(p)||g!=null&&p in Mn(g)}function gj(p){var g=typeof p;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?p!=="__proto__":p===null}function gx(p){var g=Ny(p),x=F[g];if(typeof x!="function"||!(g in nn.prototype))return!1;if(p===x)return!0;var A=dx(x);return!!A&&p===A[0]}function mj(p){return!!zM&&zM in p}var yj=fy?Ws:Lx;function Op(p){var g=p&&p.constructor,x=typeof g=="function"&&g.prototype||cd;return p===x}function zO(p){return p===p&&!er(p)}function GO(p,g){return function(x){return x==null?!1:x[p]===g&&(g!==n||p in Mn(x))}}function _j(p){var g=Uy(p,function(A){return x.size===u&&x.clear(),A}),x=g.cache;return g}function bj(p,g){var x=p[1],A=g[1],O=x|A,V=O<(_|y|E),Z=A==E&&x==b||A==E&&x==R&&p[7].length<=g[8]||A==(E|R)&&g[7].length<=g[8]&&x==b;if(!(V||Z))return p;A&_&&(p[2]=g[2],O|=x&_?0:S);var Q=g[3];if(Q){var ce=p[3];p[3]=ce?EO(ce,Q,g[4]):Q,p[4]=ce?Vl(p[3],c):g[4]}return Q=g[5],Q&&(ce=p[5],p[5]=ce?AO(ce,Q,g[6]):Q,p[6]=ce?Vl(p[5],c):g[6]),Q=g[7],Q&&(p[7]=Q),A&E&&(p[8]=p[8]==null?g[8]:ti(p[8],g[8])),p[9]==null&&(p[9]=g[9]),p[0]=g[0],p[1]=O,p}function Sj(p){var g=[];if(p!=null)for(var x in Mn(p))g.push(x);return g}function wj(p){return hy.call(p)}function WO(p,g,x){return g=Ar(g===n?p.length-1:g,0),function(){for(var A=arguments,O=-1,V=Ar(A.length-g,0),Z=me(V);++O<V;)Z[O]=A[g+O];O=-1;for(var Q=me(g+1);++O<g;)Q[O]=A[O];return Q[g]=x(Z),bo(p,this,Q)}}function jO(p,g){return g.length<2?p:dc(p,Xo(g,0,-1))}function xj(p,g){for(var x=p.length,A=ti(g.length,x),O=Gi(p);A--;){var V=g[A];p[A]=Gs(V,x)?O[V]:n}return p}function mx(p,g){if(!(g==="constructor"&&typeof p[g]=="function")&&g!="__proto__")return p[g]}var XO=KO(gO),Dp=$9||function(p,g){return Hr.setTimeout(p,g)},yx=KO(jW);function YO(p,g,x){var A=g+"";return yx(p,pj(A,Cj(fj(A),x)))}function KO(p){var g=0,x=0;return function(){var A=H9(),O=k-(A-x);if(x=A,O>0){if(++g>=D)return arguments[0]}else g=0;return p.apply(n,arguments)}}function Fy(p,g){var x=-1,A=p.length,O=A-1;for(g=g===n?A:g;++x<g;){var V=ex(x,O),Z=p[V];p[V]=p[x],p[x]=Z}return p.length=g,p}var ZO=_j(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(Qm,function(x,A,O,V){g.push(O?V.replace(ry,"$1"):A||x)}),g});function os(p){if(typeof p=="string"||xo(p))return p;var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}function pc(p){if(p!=null){try{return dy.call(p)}catch{}try{return p+""}catch{}}return""}function Cj(p,g){return zo(Ue,function(x){var A="_."+x[0];g&x[1]&&!sy(p,A)&&p.push(A)}),p.sort()}function qO(p){if(p instanceof nn)return p.clone();var g=new Wo(p.__wrapped__,p.__chain__);return g.__actions__=Gi(p.__actions__),g.__index__=p.__index__,g.__values__=p.__values__,g}function Tj(p,g,x){(x?Ci(p,g,x):g===n)?g=1:g=Ar(Wt(g),0);var A=p==null?0:p.length;if(!A||g<1)return[];for(var O=0,V=0,Z=me(_y(A/g));O<A;)Z[V++]=Xo(p,O,O+=g);return Z}function Ej(p){for(var g=-1,x=p==null?0:p.length,A=0,O=[];++g<x;){var V=p[g];V&&(O[A++]=V)}return O}function Aj(){var p=arguments.length;if(!p)return[];for(var g=me(p-1),x=arguments[0],A=p;A--;)g[A-1]=arguments[A];return Bl(Vt(x)?Gi(x):[x],zr(g,1))}var Ij=Yt(function(p,g){return cr(p)?Ap(p,zr(g,1,cr,!0)):[]}),Rj=Yt(function(p,g){var x=Yo(g);return cr(x)&&(x=n),cr(p)?Ap(p,zr(g,1,cr,!0),xt(x,2)):[]}),Pj=Yt(function(p,g){var x=Yo(g);return cr(x)&&(x=n),cr(p)?Ap(p,zr(g,1,cr,!0),n,x):[]});function Mj(p,g,x){var A=p==null?0:p.length;return A?(g=x||g===n?1:Wt(g),Xo(p,g<0?0:g,A)):[]}function Oj(p,g,x){var A=p==null?0:p.length;return A?(g=x||g===n?1:Wt(g),g=A-g,Xo(p,0,g<0?0:g)):[]}function Dj(p,g){return p&&p.length?Ry(p,xt(g,3),!0,!0):[]}function Lj(p,g){return p&&p.length?Ry(p,xt(g,3),!0):[]}function Nj(p,g,x,A){var O=p==null?0:p.length;return O?(x&&typeof x!="number"&&Ci(p,g,x)&&(x=0,A=O),AW(p,g,x,A)):[]}function JO(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var O=x==null?0:Wt(x);return O<0&&(O=Ar(A+O,0)),ly(p,xt(g,3),O)}function QO(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var O=A-1;return x!==n&&(O=Wt(x),O=x<0?Ar(A+O,0):ti(O,A-1)),ly(p,xt(g,3),O,!0)}function eD(p){var g=p==null?0:p.length;return g?zr(p,1):[]}function kj(p){var g=p==null?0:p.length;return g?zr(p,K):[]}function Fj(p,g){var x=p==null?0:p.length;return x?(g=g===n?1:Wt(g),zr(p,g)):[]}function $j(p){for(var g=-1,x=p==null?0:p.length,A={};++g<x;){var O=p[g];A[O[0]]=O[1]}return A}function tD(p){return p&&p.length?p[0]:n}function Bj(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var O=x==null?0:Wt(x);return O<0&&(O=Ar(A+O,0)),ad(p,g,O)}function Vj(p){var g=p==null?0:p.length;return g?Xo(p,0,-1):[]}var Uj=Yt(function(p){var g=jn(p,ox);return g.length&&g[0]===p[0]?Kw(g):[]}),Hj=Yt(function(p){var g=Yo(p),x=jn(p,ox);return g===Yo(x)?g=n:x.pop(),x.length&&x[0]===p[0]?Kw(x,xt(g,2)):[]}),zj=Yt(function(p){var g=Yo(p),x=jn(p,ox);return g=typeof g=="function"?g:n,g&&x.pop(),x.length&&x[0]===p[0]?Kw(x,n,g):[]});function Gj(p,g){return p==null?"":V9.call(p,g)}function Yo(p){var g=p==null?0:p.length;return g?p[g-1]:n}function Wj(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var O=A;return x!==n&&(O=Wt(x),O=O<0?Ar(A+O,0):ti(O,A-1)),g===g?C9(p,g,O):ly(p,NM,O,!0)}function jj(p,g){return p&&p.length?dO(p,Wt(g)):n}var Xj=Yt(nD);function nD(p,g){return p&&p.length&&g&&g.length?Qw(p,g):p}function Yj(p,g,x){return p&&p.length&&g&&g.length?Qw(p,g,xt(x,2)):p}function Kj(p,g,x){return p&&p.length&&g&&g.length?Qw(p,g,n,x):p}var Zj=zs(function(p,g){var x=p==null?0:p.length,A=Ww(p,g);return vO(p,jn(g,function(O){return Gs(O,x)?+O:O}).sort(TO)),A});function qj(p,g){var x=[];if(!(p&&p.length))return x;var A=-1,O=[],V=p.length;for(g=xt(g,3);++A<V;){var Z=p[A];g(Z,A,p)&&(x.push(Z),O.push(A))}return vO(p,O),x}function _x(p){return p==null?p:G9.call(p)}function Jj(p,g,x){var A=p==null?0:p.length;return A?(x&&typeof x!="number"&&Ci(p,g,x)?(g=0,x=A):(g=g==null?0:Wt(g),x=x===n?A:Wt(x)),Xo(p,g,x)):[]}function Qj(p,g){return Iy(p,g)}function eX(p,g,x){return nx(p,g,xt(x,2))}function tX(p,g){var x=p==null?0:p.length;if(x){var A=Iy(p,g);if(A<x&&Ra(p[A],g))return A}return-1}function nX(p,g){return Iy(p,g,!0)}function rX(p,g,x){return nx(p,g,xt(x,2),!0)}function iX(p,g){var x=p==null?0:p.length;if(x){var A=Iy(p,g,!0)-1;if(Ra(p[A],g))return A}return-1}function oX(p){return p&&p.length?mO(p):[]}function aX(p,g){return p&&p.length?mO(p,xt(g,2)):[]}function sX(p){var g=p==null?0:p.length;return g?Xo(p,1,g):[]}function lX(p,g,x){return p&&p.length?(g=x||g===n?1:Wt(g),Xo(p,0,g<0?0:g)):[]}function uX(p,g,x){var A=p==null?0:p.length;return A?(g=x||g===n?1:Wt(g),g=A-g,Xo(p,g<0?0:g,A)):[]}function cX(p,g){return p&&p.length?Ry(p,xt(g,3),!1,!0):[]}function fX(p,g){return p&&p.length?Ry(p,xt(g,3)):[]}var dX=Yt(function(p){return zl(zr(p,1,cr,!0))}),hX=Yt(function(p){var g=Yo(p);return cr(g)&&(g=n),zl(zr(p,1,cr,!0),xt(g,2))}),pX=Yt(function(p){var g=Yo(p);return g=typeof g=="function"?g:n,zl(zr(p,1,cr,!0),n,g)});function vX(p){return p&&p.length?zl(p):[]}function gX(p,g){return p&&p.length?zl(p,xt(g,2)):[]}function mX(p,g){return g=typeof g=="function"?g:n,p&&p.length?zl(p,n,g):[]}function bx(p){if(!(p&&p.length))return[];var g=0;return p=$l(p,function(x){if(cr(x))return g=Ar(x.length,g),!0}),Fw(g,function(x){return jn(p,Lw(x))})}function rD(p,g){if(!(p&&p.length))return[];var x=bx(p);return g==null?x:jn(x,function(A){return bo(g,n,A)})}var yX=Yt(function(p,g){return cr(p)?Ap(p,g):[]}),_X=Yt(function(p){return ix($l(p,cr))}),bX=Yt(function(p){var g=Yo(p);return cr(g)&&(g=n),ix($l(p,cr),xt(g,2))}),SX=Yt(function(p){var g=Yo(p);return g=typeof g=="function"?g:n,ix($l(p,cr),n,g)}),wX=Yt(bx);function xX(p,g){return SO(p||[],g||[],Ep)}function CX(p,g){return SO(p||[],g||[],Pp)}var TX=Yt(function(p){var g=p.length,x=g>1?p[g-1]:n;return x=typeof x=="function"?(p.pop(),x):n,rD(p,x)});function iD(p){var g=F(p);return g.__chain__=!0,g}function EX(p,g){return g(p),p}function $y(p,g){return g(p)}var AX=zs(function(p){var g=p.length,x=g?p[0]:0,A=this.__wrapped__,O=function(V){return Ww(V,p)};return g>1||this.__actions__.length||!(A instanceof nn)||!Gs(x)?this.thru(O):(A=A.slice(x,+x+(g?1:0)),A.__actions__.push({func:$y,args:[O],thisArg:n}),new Wo(A,this.__chain__).thru(function(V){return g&&!V.length&&V.push(n),V}))});function IX(){return iD(this)}function RX(){return new Wo(this.value(),this.__chain__)}function PX(){this.__values__===n&&(this.__values__=yD(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function MX(){return this}function OX(p){for(var g,x=this;x instanceof xy;){var A=qO(x);A.__index__=0,A.__values__=n,g?O.__wrapped__=A:g=A;var O=A;x=x.__wrapped__}return O.__wrapped__=p,g}function DX(){var p=this.__wrapped__;if(p instanceof nn){var g=p;return this.__actions__.length&&(g=new nn(this)),g=g.reverse(),g.__actions__.push({func:$y,args:[_x],thisArg:n}),new Wo(g,this.__chain__)}return this.thru(_x)}function LX(){return bO(this.__wrapped__,this.__actions__)}var NX=Py(function(p,g,x){Cn.call(p,x)?++p[x]:Us(p,x,1)});function kX(p,g,x){var A=Vt(p)?DM:EW;return x&&Ci(p,g,x)&&(g=n),A(p,xt(g,3))}function FX(p,g){var x=Vt(p)?$l:rO;return x(p,xt(g,3))}var $X=MO(JO),BX=MO(QO);function VX(p,g){return zr(By(p,g),1)}function UX(p,g){return zr(By(p,g),K)}function HX(p,g,x){return x=x===n?1:Wt(x),zr(By(p,g),x)}function oD(p,g){var x=Vt(p)?zo:Hl;return x(p,xt(g,3))}function aD(p,g){var x=Vt(p)?s9:nO;return x(p,xt(g,3))}var zX=Py(function(p,g,x){Cn.call(p,x)?p[x].push(g):Us(p,x,[g])});function GX(p,g,x,A){p=Wi(p)?p:yd(p),x=x&&!A?Wt(x):0;var O=p.length;return x<0&&(x=Ar(O+x,0)),Gy(p)?x<=O&&p.indexOf(g,x)>-1:!!O&&ad(p,g,x)>-1}var WX=Yt(function(p,g,x){var A=-1,O=typeof g=="function",V=Wi(p)?me(p.length):[];return Hl(p,function(Z){V[++A]=O?bo(g,Z,x):Ip(Z,g,x)}),V}),jX=Py(function(p,g,x){Us(p,x,g)});function By(p,g){var x=Vt(p)?jn:uO;return x(p,xt(g,3))}function XX(p,g,x,A){return p==null?[]:(Vt(g)||(g=g==null?[]:[g]),x=A?n:x,Vt(x)||(x=x==null?[]:[x]),hO(p,g,x))}var YX=Py(function(p,g,x){p[x?0:1].push(g)},function(){return[[],[]]});function KX(p,g,x){var A=Vt(p)?Ow:FM,O=arguments.length<3;return A(p,xt(g,4),x,O,Hl)}function ZX(p,g,x){var A=Vt(p)?l9:FM,O=arguments.length<3;return A(p,xt(g,4),x,O,nO)}function qX(p,g){var x=Vt(p)?$l:rO;return x(p,Hy(xt(g,3)))}function JX(p){var g=Vt(p)?JM:GW;return g(p)}function QX(p,g,x){(x?Ci(p,g,x):g===n)?g=1:g=Wt(g);var A=Vt(p)?SW:WW;return A(p,g)}function eY(p){var g=Vt(p)?wW:XW;return g(p)}function tY(p){if(p==null)return 0;if(Wi(p))return Gy(p)?ld(p):p.length;var g=ni(p);return g==z||g==de?p.size:qw(p).length}function nY(p,g,x){var A=Vt(p)?Dw:YW;return x&&Ci(p,g,x)&&(g=n),A(p,xt(g,3))}var rY=Yt(function(p,g){if(p==null)return[];var x=g.length;return x>1&&Ci(p,g[0],g[1])?g=[]:x>2&&Ci(g[0],g[1],g[2])&&(g=[g[0]]),hO(p,zr(g,1),[])}),Vy=F9||function(){return Hr.Date.now()};function iY(p,g){if(typeof g!="function")throw new Go(a);return p=Wt(p),function(){if(--p<1)return g.apply(this,arguments)}}function sD(p,g,x){return g=x?n:g,g=p&&g==null?p.length:g,Hs(p,E,n,n,n,n,g)}function lD(p,g){var x;if(typeof g!="function")throw new Go(a);return p=Wt(p),function(){return--p>0&&(x=g.apply(this,arguments)),p<=1&&(g=n),x}}var Sx=Yt(function(p,g,x){var A=_;if(x.length){var O=Vl(x,gd(Sx));A|=T}return Hs(p,A,g,x,O)}),uD=Yt(function(p,g,x){var A=_|y;if(x.length){var O=Vl(x,gd(uD));A|=T}return Hs(g,A,p,x,O)});function cD(p,g,x){g=x?n:g;var A=Hs(p,b,n,n,n,n,n,g);return A.placeholder=cD.placeholder,A}function fD(p,g,x){g=x?n:g;var A=Hs(p,w,n,n,n,n,n,g);return A.placeholder=fD.placeholder,A}function dD(p,g,x){var A,O,V,Z,Q,ce,Re=0,Pe=!1,Fe=!1,Je=!0;if(typeof p!="function")throw new Go(a);g=Ko(g)||0,er(x)&&(Pe=!!x.leading,Fe="maxWait"in x,V=Fe?Ar(Ko(x.maxWait)||0,g):V,Je="trailing"in x?!!x.trailing:Je);function vt(fr){var Pa=A,Xs=O;return A=O=n,Re=fr,Z=p.apply(Xs,Pa),Z}function Tt(fr){return Re=fr,Q=Dp(qt,g),Pe?vt(fr):Z}function Xt(fr){var Pa=fr-ce,Xs=fr-Re,MD=g-Pa;return Fe?ti(MD,V-Xs):MD}function Et(fr){var Pa=fr-ce,Xs=fr-Re;return ce===n||Pa>=g||Pa<0||Fe&&Xs>=V}function qt(){var fr=Vy();if(Et(fr))return sn(fr);Q=Dp(qt,Xt(fr))}function sn(fr){return Q=n,Je&&A?vt(fr):(A=O=n,Z)}function Co(){Q!==n&&wO(Q),Re=0,A=ce=O=Q=n}function Ti(){return Q===n?Z:sn(Vy())}function To(){var fr=Vy(),Pa=Et(fr);if(A=arguments,O=this,ce=fr,Pa){if(Q===n)return Tt(ce);if(Fe)return wO(Q),Q=Dp(qt,g),vt(ce)}return Q===n&&(Q=Dp(qt,g)),Z}return To.cancel=Co,To.flush=Ti,To}var oY=Yt(function(p,g){return tO(p,1,g)}),aY=Yt(function(p,g,x){return tO(p,Ko(g)||0,x)});function sY(p){return Hs(p,I)}function Uy(p,g){if(typeof p!="function"||g!=null&&typeof g!="function")throw new Go(a);var x=function(){var A=arguments,O=g?g.apply(this,A):A[0],V=x.cache;if(V.has(O))return V.get(O);var Z=p.apply(this,A);return x.cache=V.set(O,Z)||V,Z};return x.cache=new(Uy.Cache||Vs),x}Uy.Cache=Vs;function Hy(p){if(typeof p!="function")throw new Go(a);return function(){var g=arguments;switch(g.length){case 0:return!p.call(this);case 1:return!p.call(this,g[0]);case 2:return!p.call(this,g[0],g[1]);case 3:return!p.call(this,g[0],g[1],g[2])}return!p.apply(this,g)}}function lY(p){return lD(2,p)}var uY=KW(function(p,g){g=g.length==1&&Vt(g[0])?jn(g[0],So(xt())):jn(zr(g,1),So(xt()));var x=g.length;return Yt(function(A){for(var O=-1,V=ti(A.length,x);++O<V;)A[O]=g[O].call(this,A[O]);return bo(p,this,A)})}),xx=Yt(function(p,g){var x=Vl(g,gd(xx));return Hs(p,T,n,g,x)}),hD=Yt(function(p,g){var x=Vl(g,gd(hD));return Hs(p,C,n,g,x)}),cY=zs(function(p,g){return Hs(p,R,n,n,n,g)});function fY(p,g){if(typeof p!="function")throw new Go(a);return g=g===n?g:Wt(g),Yt(p,g)}function dY(p,g){if(typeof p!="function")throw new Go(a);return g=g==null?0:Ar(Wt(g),0),Yt(function(x){var A=x[g],O=Wl(x,0,g);return A&&Bl(O,A),bo(p,this,O)})}function hY(p,g,x){var A=!0,O=!0;if(typeof p!="function")throw new Go(a);return er(x)&&(A="leading"in x?!!x.leading:A,O="trailing"in x?!!x.trailing:O),dD(p,g,{leading:A,maxWait:g,trailing:O})}function pY(p){return sD(p,1)}function vY(p,g){return xx(ax(g),p)}function gY(){if(!arguments.length)return[];var p=arguments[0];return Vt(p)?p:[p]}function mY(p){return jo(p,h)}function yY(p,g){return g=typeof g=="function"?g:n,jo(p,h,g)}function _Y(p){return jo(p,f|h)}function bY(p,g){return g=typeof g=="function"?g:n,jo(p,f|h,g)}function SY(p,g){return g==null||eO(p,g,kr(g))}function Ra(p,g){return p===g||p!==p&&g!==g}var wY=Ly(Yw),xY=Ly(function(p,g){return p>=g}),vc=aO(function(){return arguments}())?aO:function(p){return rr(p)&&Cn.call(p,"callee")&&!jM.call(p,"callee")},Vt=me.isArray,CY=AM?So(AM):OW;function Wi(p){return p!=null&&zy(p.length)&&!Ws(p)}function cr(p){return rr(p)&&Wi(p)}function TY(p){return p===!0||p===!1||rr(p)&&xi(p)==Ae}var jl=B9||Lx,EY=IM?So(IM):DW;function AY(p){return rr(p)&&p.nodeType===1&&!Lp(p)}function IY(p){if(p==null)return!0;if(Wi(p)&&(Vt(p)||typeof p=="string"||typeof p.splice=="function"||jl(p)||md(p)||vc(p)))return!p.length;var g=ni(p);if(g==z||g==de)return!p.size;if(Op(p))return!qw(p).length;for(var x in p)if(Cn.call(p,x))return!1;return!0}function RY(p,g){return Rp(p,g)}function PY(p,g,x){x=typeof x=="function"?x:n;var A=x?x(p,g):n;return A===n?Rp(p,g,n,x):!!A}function Cx(p){if(!rr(p))return!1;var g=xi(p);return g==Ne||g==Te||typeof p.message=="string"&&typeof p.name=="string"&&!Lp(p)}function MY(p){return typeof p=="number"&&YM(p)}function Ws(p){if(!er(p))return!1;var g=xi(p);return g==Be||g==H||g==fe||g==j}function pD(p){return typeof p=="number"&&p==Wt(p)}function zy(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=X}function er(p){var g=typeof p;return p!=null&&(g=="object"||g=="function")}function rr(p){return p!=null&&typeof p=="object"}var vD=RM?So(RM):NW;function OY(p,g){return p===g||Zw(p,g,hx(g))}function DY(p,g,x){return x=typeof x=="function"?x:n,Zw(p,g,hx(g),x)}function LY(p){return gD(p)&&p!=+p}function NY(p){if(yj(p))throw new kt(o);return sO(p)}function kY(p){return p===null}function FY(p){return p==null}function gD(p){return typeof p=="number"||rr(p)&&xi(p)==ue}function Lp(p){if(!rr(p)||xi(p)!=ve)return!1;var g=gy(p);if(g===null)return!0;var x=Cn.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&dy.call(x)==D9}var Tx=PM?So(PM):kW;function $Y(p){return pD(p)&&p>=-9007199254740991&&p<=X}var mD=MM?So(MM):FW;function Gy(p){return typeof p=="string"||!Vt(p)&&rr(p)&&xi(p)==_e}function xo(p){return typeof p=="symbol"||rr(p)&&xi(p)==Oe}var md=OM?So(OM):$W;function BY(p){return p===n}function VY(p){return rr(p)&&ni(p)==he}function UY(p){return rr(p)&&xi(p)==Ve}var HY=Ly(Jw),zY=Ly(function(p,g){return p<=g});function yD(p){if(!p)return[];if(Wi(p))return Gy(p)?Aa(p):Gi(p);if(Sp&&p[Sp])return S9(p[Sp]());var g=ni(p),x=g==z?Bw:g==de?uy:yd;return x(p)}function js(p){if(!p)return p===0?p:0;if(p=Ko(p),p===K||p===-1/0){var g=p<0?-1:1;return g*ae}return p===p?p:0}function Wt(p){var g=js(p),x=g%1;return g===g?x?g-x:g:0}function _D(p){return p?fc(Wt(p),0,ye):0}function Ko(p){if(typeof p=="number")return p;if(xo(p))return ge;if(er(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=er(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=$M(p);var x=xw.test(p);return x||re.test(p)?i9(p.slice(2),x?2:8):oy.test(p)?ge:+p}function bD(p){return is(p,ji(p))}function GY(p){return p?fc(Wt(p),-9007199254740991,X):p===0?p:0}function yn(p){return p==null?"":wo(p)}var WY=pd(function(p,g){if(Op(g)||Wi(g)){is(g,kr(g),p);return}for(var x in g)Cn.call(g,x)&&Ep(p,x,g[x])}),SD=pd(function(p,g){is(g,ji(g),p)}),Wy=pd(function(p,g,x,A){is(g,ji(g),p,A)}),jY=pd(function(p,g,x,A){is(g,kr(g),p,A)}),XY=zs(Ww);function YY(p,g){var x=hd(p);return g==null?x:QM(x,g)}var KY=Yt(function(p,g){p=Mn(p);var x=-1,A=g.length,O=A>2?g[2]:n;for(O&&Ci(g[0],g[1],O)&&(A=1);++x<A;)for(var V=g[x],Z=ji(V),Q=-1,ce=Z.length;++Q<ce;){var Re=Z[Q],Pe=p[Re];(Pe===n||Ra(Pe,cd[Re])&&!Cn.call(p,Re))&&(p[Re]=V[Re])}return p}),ZY=Yt(function(p){return p.push(n,$O),bo(wD,n,p)});function qY(p,g){return LM(p,xt(g,3),rs)}function JY(p,g){return LM(p,xt(g,3),Xw)}function QY(p,g){return p==null?p:jw(p,xt(g,3),ji)}function eK(p,g){return p==null?p:iO(p,xt(g,3),ji)}function tK(p,g){return p&&rs(p,xt(g,3))}function nK(p,g){return p&&Xw(p,xt(g,3))}function rK(p){return p==null?[]:Ey(p,kr(p))}function iK(p){return p==null?[]:Ey(p,ji(p))}function Ex(p,g,x){var A=p==null?n:dc(p,g);return A===n?x:A}function oK(p,g){return p!=null&&UO(p,g,IW)}function Ax(p,g){return p!=null&&UO(p,g,RW)}var aK=DO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=hy.call(g)),p[g]=x},Rx(Xi)),sK=DO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=hy.call(g)),Cn.call(p,g)?p[g].push(x):p[g]=[x]},xt),lK=Yt(Ip);function kr(p){return Wi(p)?qM(p):qw(p)}function ji(p){return Wi(p)?qM(p,!0):BW(p)}function uK(p,g){var x={};return g=xt(g,3),rs(p,function(A,O,V){Us(x,g(A,O,V),A)}),x}function cK(p,g){var x={};return g=xt(g,3),rs(p,function(A,O,V){Us(x,O,g(A,O,V))}),x}var fK=pd(function(p,g,x){Ay(p,g,x)}),wD=pd(function(p,g,x,A){Ay(p,g,x,A)}),dK=zs(function(p,g){var x={};if(p==null)return x;var A=!1;g=jn(g,function(V){return V=Gl(V,p),A||(A=V.length>1),V}),is(p,fx(p),x),A&&(x=jo(x,f|d|h,aj));for(var O=g.length;O--;)rx(x,g[O]);return x});function hK(p,g){return xD(p,Hy(xt(g)))}var pK=zs(function(p,g){return p==null?{}:UW(p,g)});function xD(p,g){if(p==null)return{};var x=jn(fx(p),function(A){return[A]});return g=xt(g),pO(p,x,function(A,O){return g(A,O[0])})}function vK(p,g,x){g=Gl(g,p);var A=-1,O=g.length;for(O||(O=1,p=n);++A<O;){var V=p==null?n:p[os(g[A])];V===n&&(A=O,V=x),p=Ws(V)?V.call(p):V}return p}function gK(p,g,x){return p==null?p:Pp(p,g,x)}function mK(p,g,x,A){return A=typeof A=="function"?A:n,p==null?p:Pp(p,g,x,A)}var CD=kO(kr),TD=kO(ji);function yK(p,g,x){var A=Vt(p),O=A||jl(p)||md(p);if(g=xt(g,4),x==null){var V=p&&p.constructor;O?x=A?new V:[]:er(p)?x=Ws(V)?hd(gy(p)):{}:x={}}return(O?zo:rs)(p,function(Z,Q,ce){return g(x,Z,Q,ce)}),x}function _K(p,g){return p==null?!0:rx(p,g)}function bK(p,g,x){return p==null?p:_O(p,g,ax(x))}function SK(p,g,x,A){return A=typeof A=="function"?A:n,p==null?p:_O(p,g,ax(x),A)}function yd(p){return p==null?[]:$w(p,kr(p))}function wK(p){return p==null?[]:$w(p,ji(p))}function xK(p,g,x){return x===n&&(x=g,g=n),x!==n&&(x=Ko(x),x=x===x?x:0),g!==n&&(g=Ko(g),g=g===g?g:0),fc(Ko(p),g,x)}function CK(p,g,x){return g=js(g),x===n?(x=g,g=0):x=js(x),p=Ko(p),PW(p,g,x)}function TK(p,g,x){if(x&&typeof x!="boolean"&&Ci(p,g,x)&&(g=x=n),x===n&&(typeof g=="boolean"?(x=g,g=n):typeof p=="boolean"&&(x=p,p=n)),p===n&&g===n?(p=0,g=1):(p=js(p),g===n?(g=p,p=0):g=js(g)),p>g){var A=p;p=g,g=A}if(x||p%1||g%1){var O=KM();return ti(p+O*(g-p+r9("1e-"+((O+"").length-1))),g)}return ex(p,g)}var EK=vd(function(p,g,x){return g=g.toLowerCase(),p+(x?ED(g):g)});function ED(p){return Ix(yn(p).toLowerCase())}function AD(p){return p=yn(p),p&&p.replace(ct,g9).replace(X7,"")}function AK(p,g,x){p=yn(p),g=wo(g);var A=p.length;x=x===n?A:fc(Wt(x),0,A);var O=x;return x-=g.length,x>=0&&p.slice(x,O)==g}function IK(p){return p=yn(p),p&&Ta.test(p)?p.replace(Lt,m9):p}function RK(p){return p=yn(p),p&&ww.test(p)?p.replace(rd,"\\$&"):p}var PK=vd(function(p,g,x){return p+(x?"-":"")+g.toLowerCase()}),MK=vd(function(p,g,x){return p+(x?" ":"")+g.toLowerCase()}),OK=PO("toLowerCase");function DK(p,g,x){p=yn(p),g=Wt(g);var A=g?ld(p):0;if(!g||A>=g)return p;var O=(g-A)/2;return Dy(by(O),x)+p+Dy(_y(O),x)}function LK(p,g,x){p=yn(p),g=Wt(g);var A=g?ld(p):0;return g&&A<g?p+Dy(g-A,x):p}function NK(p,g,x){p=yn(p),g=Wt(g);var A=g?ld(p):0;return g&&A<g?Dy(g-A,x)+p:p}function kK(p,g,x){return x||g==null?g=0:g&&(g=+g),z9(yn(p).replace(zi,""),g||0)}function FK(p,g,x){return(x?Ci(p,g,x):g===n)?g=1:g=Wt(g),tx(yn(p),g)}function $K(){var p=arguments,g=yn(p[0]);return p.length<3?g:g.replace(p[1],p[2])}var BK=vd(function(p,g,x){return p+(x?"_":"")+g.toLowerCase()});function VK(p,g,x){return x&&typeof x!="number"&&Ci(p,g,x)&&(g=x=n),x=x===n?ye:x>>>0,x?(p=yn(p),p&&(typeof g=="string"||g!=null&&!Tx(g))&&(g=wo(g),!g&&sd(p))?Wl(Aa(p),0,x):p.split(g,x)):[]}var UK=vd(function(p,g,x){return p+(x?" ":"")+Ix(g)});function HK(p,g,x){return p=yn(p),x=x==null?0:fc(Wt(x),0,p.length),g=wo(g),p.slice(x,x+g.length)==g}function zK(p,g,x){var A=F.templateSettings;x&&Ci(p,g,x)&&(g=n),p=yn(p),g=Wy({},g,A,FO);var O=Wy({},g.imports,A.imports,FO),V=kr(O),Z=$w(O,V),Q,ce,Re=0,Pe=g.interpolate||xn,Fe="__p += '",Je=Vw((g.escape||xn).source+"|"+Pe.source+"|"+(Pe===nd?iy:xn).source+"|"+(g.evaluate||xn).source+"|$","g"),vt="//# sourceURL="+(Cn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++J7+"]")+`
|
||
`;p.replace(Je,function(Et,qt,sn,Co,Ti,To){return sn||(sn=Co),Fe+=p.slice(Re,To).replace(Lr,y9),qt&&(Q=!0,Fe+=`' +
|
||
__e(`+qt+`) +
|
||
'`),Ti&&(ce=!0,Fe+=`';
|
||
`+Ti+`;
|
||
__p += '`),sn&&(Fe+=`' +
|
||
((__t = (`+sn+`)) == null ? '' : __t) +
|
||
'`),Re=To+Et.length,Et}),Fe+=`';
|
||
`;var Tt=Cn.call(g,"variable")&&g.variable;if(!Tt)Fe=`with (obj) {
|
||
`+Fe+`
|
||
}
|
||
`;else if(Ea.test(Tt))throw new kt(s);Fe=(ce?Fe.replace(We,""):Fe).replace(Xe,"$1").replace(tt,"$1;"),Fe="function("+(Tt||"obj")+`) {
|
||
`+(Tt?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+Fe+`return __p
|
||
}`;var Xt=RD(function(){return pn(V,vt+"return "+Fe).apply(n,Z)});if(Xt.source=Fe,Cx(Xt))throw Xt;return Xt}function GK(p){return yn(p).toLowerCase()}function WK(p){return yn(p).toUpperCase()}function jK(p,g,x){if(p=yn(p),p&&(x||g===n))return $M(p);if(!p||!(g=wo(g)))return p;var A=Aa(p),O=Aa(g),V=BM(A,O),Z=VM(A,O)+1;return Wl(A,V,Z).join("")}function XK(p,g,x){if(p=yn(p),p&&(x||g===n))return p.slice(0,HM(p)+1);if(!p||!(g=wo(g)))return p;var A=Aa(p),O=VM(A,Aa(g))+1;return Wl(A,0,O).join("")}function YK(p,g,x){if(p=yn(p),p&&(x||g===n))return p.replace(zi,"");if(!p||!(g=wo(g)))return p;var A=Aa(p),O=BM(A,Aa(g));return Wl(A,O).join("")}function KK(p,g){var x=M,A=P;if(er(g)){var O="separator"in g?g.separator:O;x="length"in g?Wt(g.length):x,A="omission"in g?wo(g.omission):A}p=yn(p);var V=p.length;if(sd(p)){var Z=Aa(p);V=Z.length}if(x>=V)return p;var Q=x-ld(A);if(Q<1)return A;var ce=Z?Wl(Z,0,Q).join(""):p.slice(0,Q);if(O===n)return ce+A;if(Z&&(Q+=ce.length-Q),Tx(O)){if(p.slice(Q).search(O)){var Re,Pe=ce;for(O.global||(O=Vw(O.source,yn(mp.exec(O))+"g")),O.lastIndex=0;Re=O.exec(Pe);)var Fe=Re.index;ce=ce.slice(0,Fe===n?Q:Fe)}}else if(p.indexOf(wo(O),Q)!=Q){var Je=ce.lastIndexOf(O);Je>-1&&(ce=ce.slice(0,Je))}return ce+A}function ZK(p){return p=yn(p),p&&Nn.test(p)?p.replace(Ot,T9):p}var qK=vd(function(p,g,x){return p+(x?" ":"")+g.toUpperCase()}),Ix=PO("toUpperCase");function ID(p,g,x){return p=yn(p),g=x?n:g,g===n?b9(p)?I9(p):f9(p):p.match(g)||[]}var RD=Yt(function(p,g){try{return bo(p,n,g)}catch(x){return Cx(x)?x:new kt(x)}}),JK=zs(function(p,g){return zo(g,function(x){x=os(x),Us(p,x,Sx(p[x],p))}),p});function QK(p){var g=p==null?0:p.length,x=xt();return p=g?jn(p,function(A){if(typeof A[1]!="function")throw new Go(a);return[x(A[0]),A[1]]}):[],Yt(function(A){for(var O=-1;++O<g;){var V=p[O];if(bo(V[0],this,A))return bo(V[1],this,A)}})}function eZ(p){return TW(jo(p,f))}function Rx(p){return function(){return p}}function tZ(p,g){return p==null||p!==p?g:p}var nZ=OO(),rZ=OO(!0);function Xi(p){return p}function Px(p){return lO(typeof p=="function"?p:jo(p,f))}function iZ(p){return cO(jo(p,f))}function oZ(p,g){return fO(p,jo(g,f))}var aZ=Yt(function(p,g){return function(x){return Ip(x,p,g)}}),sZ=Yt(function(p,g){return function(x){return Ip(p,x,g)}});function Mx(p,g,x){var A=kr(g),O=Ey(g,A);x==null&&!(er(g)&&(O.length||!A.length))&&(x=g,g=p,p=this,O=Ey(g,kr(g)));var V=!(er(x)&&"chain"in x)||!!x.chain,Z=Ws(p);return zo(O,function(Q){var ce=g[Q];p[Q]=ce,Z&&(p.prototype[Q]=function(){var Re=this.__chain__;if(V||Re){var Pe=p(this.__wrapped__),Fe=Pe.__actions__=Gi(this.__actions__);return Fe.push({func:ce,args:arguments,thisArg:p}),Pe.__chain__=Re,Pe}return ce.apply(p,Bl([this.value()],arguments))})}),p}function lZ(){return Hr._===this&&(Hr._=L9),this}function Ox(){}function uZ(p){return p=Wt(p),Yt(function(g){return dO(g,p)})}var cZ=lx(jn),fZ=lx(DM),dZ=lx(Dw);function PD(p){return vx(p)?Lw(os(p)):HW(p)}function hZ(p){return function(g){return p==null?n:dc(p,g)}}var pZ=LO(),vZ=LO(!0);function Dx(){return[]}function Lx(){return!1}function gZ(){return{}}function mZ(){return""}function yZ(){return!0}function _Z(p,g){if(p=Wt(p),p<1||p>X)return[];var x=ye,A=ti(p,ye);g=xt(g),p-=ye;for(var O=Fw(A,g);++x<p;)g(x);return O}function bZ(p){return Vt(p)?jn(p,os):xo(p)?[p]:Gi(ZO(yn(p)))}function SZ(p){var g=++O9;return yn(p)+g}var wZ=Oy(function(p,g){return p+g},0),xZ=ux("ceil"),CZ=Oy(function(p,g){return p/g},1),TZ=ux("floor");function EZ(p){return p&&p.length?Ty(p,Xi,Yw):n}function AZ(p,g){return p&&p.length?Ty(p,xt(g,2),Yw):n}function IZ(p){return kM(p,Xi)}function RZ(p,g){return kM(p,xt(g,2))}function PZ(p){return p&&p.length?Ty(p,Xi,Jw):n}function MZ(p,g){return p&&p.length?Ty(p,xt(g,2),Jw):n}var OZ=Oy(function(p,g){return p*g},1),DZ=ux("round"),LZ=Oy(function(p,g){return p-g},0);function NZ(p){return p&&p.length?kw(p,Xi):0}function kZ(p,g){return p&&p.length?kw(p,xt(g,2)):0}return F.after=iY,F.ary=sD,F.assign=WY,F.assignIn=SD,F.assignInWith=Wy,F.assignWith=jY,F.at=XY,F.before=lD,F.bind=Sx,F.bindAll=JK,F.bindKey=uD,F.castArray=gY,F.chain=iD,F.chunk=Tj,F.compact=Ej,F.concat=Aj,F.cond=QK,F.conforms=eZ,F.constant=Rx,F.countBy=NX,F.create=YY,F.curry=cD,F.curryRight=fD,F.debounce=dD,F.defaults=KY,F.defaultsDeep=ZY,F.defer=oY,F.delay=aY,F.difference=Ij,F.differenceBy=Rj,F.differenceWith=Pj,F.drop=Mj,F.dropRight=Oj,F.dropRightWhile=Dj,F.dropWhile=Lj,F.fill=Nj,F.filter=FX,F.flatMap=VX,F.flatMapDeep=UX,F.flatMapDepth=HX,F.flatten=eD,F.flattenDeep=kj,F.flattenDepth=Fj,F.flip=sY,F.flow=nZ,F.flowRight=rZ,F.fromPairs=$j,F.functions=rK,F.functionsIn=iK,F.groupBy=zX,F.initial=Vj,F.intersection=Uj,F.intersectionBy=Hj,F.intersectionWith=zj,F.invert=aK,F.invertBy=sK,F.invokeMap=WX,F.iteratee=Px,F.keyBy=jX,F.keys=kr,F.keysIn=ji,F.map=By,F.mapKeys=uK,F.mapValues=cK,F.matches=iZ,F.matchesProperty=oZ,F.memoize=Uy,F.merge=fK,F.mergeWith=wD,F.method=aZ,F.methodOf=sZ,F.mixin=Mx,F.negate=Hy,F.nthArg=uZ,F.omit=dK,F.omitBy=hK,F.once=lY,F.orderBy=XX,F.over=cZ,F.overArgs=uY,F.overEvery=fZ,F.overSome=dZ,F.partial=xx,F.partialRight=hD,F.partition=YX,F.pick=pK,F.pickBy=xD,F.property=PD,F.propertyOf=hZ,F.pull=Xj,F.pullAll=nD,F.pullAllBy=Yj,F.pullAllWith=Kj,F.pullAt=Zj,F.range=pZ,F.rangeRight=vZ,F.rearg=cY,F.reject=qX,F.remove=qj,F.rest=fY,F.reverse=_x,F.sampleSize=QX,F.set=gK,F.setWith=mK,F.shuffle=eY,F.slice=Jj,F.sortBy=rY,F.sortedUniq=oX,F.sortedUniqBy=aX,F.split=VK,F.spread=dY,F.tail=sX,F.take=lX,F.takeRight=uX,F.takeRightWhile=cX,F.takeWhile=fX,F.tap=EX,F.throttle=hY,F.thru=$y,F.toArray=yD,F.toPairs=CD,F.toPairsIn=TD,F.toPath=bZ,F.toPlainObject=bD,F.transform=yK,F.unary=pY,F.union=dX,F.unionBy=hX,F.unionWith=pX,F.uniq=vX,F.uniqBy=gX,F.uniqWith=mX,F.unset=_K,F.unzip=bx,F.unzipWith=rD,F.update=bK,F.updateWith=SK,F.values=yd,F.valuesIn=wK,F.without=yX,F.words=ID,F.wrap=vY,F.xor=_X,F.xorBy=bX,F.xorWith=SX,F.zip=wX,F.zipObject=xX,F.zipObjectDeep=CX,F.zipWith=TX,F.entries=CD,F.entriesIn=TD,F.extend=SD,F.extendWith=Wy,Mx(F,F),F.add=wZ,F.attempt=RD,F.camelCase=EK,F.capitalize=ED,F.ceil=xZ,F.clamp=xK,F.clone=mY,F.cloneDeep=_Y,F.cloneDeepWith=bY,F.cloneWith=yY,F.conformsTo=SY,F.deburr=AD,F.defaultTo=tZ,F.divide=CZ,F.endsWith=AK,F.eq=Ra,F.escape=IK,F.escapeRegExp=RK,F.every=kX,F.find=$X,F.findIndex=JO,F.findKey=qY,F.findLast=BX,F.findLastIndex=QO,F.findLastKey=JY,F.floor=TZ,F.forEach=oD,F.forEachRight=aD,F.forIn=QY,F.forInRight=eK,F.forOwn=tK,F.forOwnRight=nK,F.get=Ex,F.gt=wY,F.gte=xY,F.has=oK,F.hasIn=Ax,F.head=tD,F.identity=Xi,F.includes=GX,F.indexOf=Bj,F.inRange=CK,F.invoke=lK,F.isArguments=vc,F.isArray=Vt,F.isArrayBuffer=CY,F.isArrayLike=Wi,F.isArrayLikeObject=cr,F.isBoolean=TY,F.isBuffer=jl,F.isDate=EY,F.isElement=AY,F.isEmpty=IY,F.isEqual=RY,F.isEqualWith=PY,F.isError=Cx,F.isFinite=MY,F.isFunction=Ws,F.isInteger=pD,F.isLength=zy,F.isMap=vD,F.isMatch=OY,F.isMatchWith=DY,F.isNaN=LY,F.isNative=NY,F.isNil=FY,F.isNull=kY,F.isNumber=gD,F.isObject=er,F.isObjectLike=rr,F.isPlainObject=Lp,F.isRegExp=Tx,F.isSafeInteger=$Y,F.isSet=mD,F.isString=Gy,F.isSymbol=xo,F.isTypedArray=md,F.isUndefined=BY,F.isWeakMap=VY,F.isWeakSet=UY,F.join=Gj,F.kebabCase=PK,F.last=Yo,F.lastIndexOf=Wj,F.lowerCase=MK,F.lowerFirst=OK,F.lt=HY,F.lte=zY,F.max=EZ,F.maxBy=AZ,F.mean=IZ,F.meanBy=RZ,F.min=PZ,F.minBy=MZ,F.stubArray=Dx,F.stubFalse=Lx,F.stubObject=gZ,F.stubString=mZ,F.stubTrue=yZ,F.multiply=OZ,F.nth=jj,F.noConflict=lZ,F.noop=Ox,F.now=Vy,F.pad=DK,F.padEnd=LK,F.padStart=NK,F.parseInt=kK,F.random=TK,F.reduce=KX,F.reduceRight=ZX,F.repeat=FK,F.replace=$K,F.result=vK,F.round=DZ,F.runInContext=le,F.sample=JX,F.size=tY,F.snakeCase=BK,F.some=nY,F.sortedIndex=Qj,F.sortedIndexBy=eX,F.sortedIndexOf=tX,F.sortedLastIndex=nX,F.sortedLastIndexBy=rX,F.sortedLastIndexOf=iX,F.startCase=UK,F.startsWith=HK,F.subtract=LZ,F.sum=NZ,F.sumBy=kZ,F.template=zK,F.times=_Z,F.toFinite=js,F.toInteger=Wt,F.toLength=_D,F.toLower=GK,F.toNumber=Ko,F.toSafeInteger=GY,F.toString=yn,F.toUpper=WK,F.trim=jK,F.trimEnd=XK,F.trimStart=YK,F.truncate=KK,F.unescape=ZK,F.uniqueId=SZ,F.upperCase=qK,F.upperFirst=Ix,F.each=oD,F.eachRight=aD,F.first=tD,Mx(F,function(){var p={};return rs(F,function(g,x){Cn.call(F.prototype,x)||(p[x]=g)}),p}(),{chain:!1}),F.VERSION=r,zo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){F[p].placeholder=F}),zo(["drop","take"],function(p,g){nn.prototype[p]=function(x){x=x===n?1:Ar(Wt(x),0);var A=this.__filtered__&&!g?new nn(this):this.clone();return A.__filtered__?A.__takeCount__=ti(x,A.__takeCount__):A.__views__.push({size:ti(x,ye),type:p+(A.__dir__<0?"Right":"")}),A},nn.prototype[p+"Right"]=function(x){return this.reverse()[p](x).reverse()}}),zo(["filter","map","takeWhile"],function(p,g){var x=g+1,A=x==$||x==N;nn.prototype[p]=function(O){var V=this.clone();return V.__iteratees__.push({iteratee:xt(O,3),type:x}),V.__filtered__=V.__filtered__||A,V}}),zo(["head","last"],function(p,g){var x="take"+(g?"Right":"");nn.prototype[p]=function(){return this[x](1).value()[0]}}),zo(["initial","tail"],function(p,g){var x="drop"+(g?"":"Right");nn.prototype[p]=function(){return this.__filtered__?new nn(this):this[x](1)}}),nn.prototype.compact=function(){return this.filter(Xi)},nn.prototype.find=function(p){return this.filter(p).head()},nn.prototype.findLast=function(p){return this.reverse().find(p)},nn.prototype.invokeMap=Yt(function(p,g){return typeof p=="function"?new nn(this):this.map(function(x){return Ip(x,p,g)})}),nn.prototype.reject=function(p){return this.filter(Hy(xt(p)))},nn.prototype.slice=function(p,g){p=Wt(p);var x=this;return x.__filtered__&&(p>0||g<0)?new nn(x):(p<0?x=x.takeRight(-p):p&&(x=x.drop(p)),g!==n&&(g=Wt(g),x=g<0?x.dropRight(-g):x.take(g-p)),x)},nn.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},nn.prototype.toArray=function(){return this.take(ye)},rs(nn.prototype,function(p,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),A=/^(?:head|last)$/.test(g),O=F[A?"take"+(g=="last"?"Right":""):g],V=A||/^find/.test(g);O&&(F.prototype[g]=function(){var Z=this.__wrapped__,Q=A?[1]:arguments,ce=Z instanceof nn,Re=Q[0],Pe=ce||Vt(Z),Fe=function(qt){var sn=O.apply(F,Bl([qt],Q));return A&&Je?sn[0]:sn};Pe&&x&&typeof Re=="function"&&Re.length!=1&&(ce=Pe=!1);var Je=this.__chain__,vt=!!this.__actions__.length,Tt=V&&!Je,Xt=ce&&!vt;if(!V&&Pe){Z=Xt?Z:new nn(this);var Et=p.apply(Z,Q);return Et.__actions__.push({func:$y,args:[Fe],thisArg:n}),new Wo(Et,Je)}return Tt&&Xt?p.apply(this,Q):(Et=this.thru(Fe),Tt?A?Et.value()[0]:Et.value():Et)})}),zo(["pop","push","shift","sort","splice","unshift"],function(p){var g=cy[p],x=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",A=/^(?:pop|shift)$/.test(p);F.prototype[p]=function(){var O=arguments;if(A&&!this.__chain__){var V=this.value();return g.apply(Vt(V)?V:[],O)}return this[x](function(Z){return g.apply(Vt(Z)?Z:[],O)})}}),rs(nn.prototype,function(p,g){var x=F[g];if(x){var A=x.name+"";Cn.call(dd,A)||(dd[A]=[]),dd[A].push({name:g,func:x})}}),dd[My(n,y).name]=[{name:"wrapper",func:n}],nn.prototype.clone=Z9,nn.prototype.reverse=q9,nn.prototype.value=J9,F.prototype.at=AX,F.prototype.chain=IX,F.prototype.commit=RX,F.prototype.next=PX,F.prototype.plant=OX,F.prototype.reverse=DX,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=LX,F.prototype.first=F.prototype.head,Sp&&(F.prototype[Sp]=MX),F},ud=R9();sc?((sc.exports=ud)._=ud,Rw._=ud):Hr._=ud}).call(Une)}(bv,bv.exports)),bv.exports}var mr=Hne();const Gr=[];for(let e=0;e<256;++e)Gr.push((e+256).toString(16).slice(1));function zne(e,t=0){return(Gr[e[t+0]]+Gr[e[t+1]]+Gr[e[t+2]]+Gr[e[t+3]]+"-"+Gr[e[t+4]]+Gr[e[t+5]]+"-"+Gr[e[t+6]]+Gr[e[t+7]]+"-"+Gr[e[t+8]]+Gr[e[t+9]]+"-"+Gr[e[t+10]]+Gr[e[t+11]]+Gr[e[t+12]]+Gr[e[t+13]]+Gr[e[t+14]]+Gr[e[t+15]]).toLowerCase()}let eC;const Gne=new Uint8Array(16);function Wne(){if(!eC){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");eC=crypto.getRandomValues.bind(crypto)}return eC(Gne)}const jne=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YL={randomUUID:jne};function $2(e,t,n){var i;if(YL.randomUUID&&!e)return YL.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??Wne();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zne(r)}const PV=pt("config/theme","default"),MV=PV.value==="default",uh=pt("config/default-theme",MV?"light":PV.value),ch=pt("config/dark-theme","dark"),Sv=pt("config/auto-theme",MV),OV=e=>e==="light-daisyui-v5"?"light":e==="dark-daisyui-v5"?"dark":e;uh.value=OV(uh.value);ch.value=OV(ch.value);const NE=Ce(()=>Sv.value&&IV.value?ch.value:uh.value),Su=pt("config/language",Object.values(_s).includes(navigator.language)?navigator.language:_s.EN_US),KL=pt("config/is-sidebar-collapsed",!0),Ua=Ce({get:()=>Hu.value?!0:KL.value,set:e=>{KL.value=e}}),Yv=pt("config/font",mu.MI_SANS),za=pt("config/custom-background-image",""),P_=pt("config/dashboard-transparent",90),M_=pt("config/auto-upgrade",!1),Xd=pt("config/check-upgrade-core",!0),wv=pt("config/auto-upgrade-core",!1),O_=pt("config/swipe-in-tabs",!1),Yd=pt("config/split-overview-page",!1),Sd=pt("config/show-ip-and-connection-info",!0),D_=pt("config/auto-ip-check",!0),L_=pt("config/auto-connection-check",!0),N_=pt("config/show-statistics-when-sidebar-collapsed",!0),k_=pt("config/collapse-group-map",{}),Kv=pt("config/two-columns",!0),wf=pt("config/speedtest-url",bV),fh=pt("config/independent-latency-test",!1),Lu=pt("config/speedtest-timeout",5e3),kE=pt("config/proxy-sort-type",yu.DEFAULT),FE=pt("config/automatic-disconnection",!0),F_=pt("config/truncate-proxy-name",!0),Zv=pt("config/proxy-preview-type",Vg.AUTO),$E=pt("config/hide-unavailable-proxies",!1),wu=pt("config/low-latency",400),ul=pt("config/medium-latency",800),xf=pt("config/ipv6-test",!1),ef=pt("config/proxy-card-size",Om.LARGE),qv=pt("config/min-proxy-card-width",k2(ef.value)),zg=pt("config/manage-hidden-group-mode",!1),$_=pt("config/display-global-by-mode",!1),Jv=pt("config/icon-size",14),B_=pt("config/icon-margin-right",6),Qv=pt("config/proxies-count-mode",Hg.ALIVE_TOTAL),Mo=pt("config/use-connecticon-card",window.innerWidth<640),dh=pt("config/proxy-chain-direction",tp.NORMAL),V_=pt("config/connecticon-table-size",Ug.SMALL),U_=pt("config/table-width-mode",fS.AUTO),xu=pt("config/connection-table-columns",[ze.Close,ze.Host,ze.Type,ze.Rule,ze.Chains,ze.DlSpeed,ze.UlSpeed,ze.Download,ze.Upload,ze.ConnectTime]),to=pt("config/connection-card-lines",wV),DV=e=>e!=="details",LV=e=>e==="transferType"?ze.DestinationType:e==="proxyNodeAddress"?ze.RemoteAddress:e;xu.value=xu.value.filter(DV).map(LV);to.value=to.value.map(e=>e.filter(DV).map(LV));const Xne=pt("config/source-ip-label-map",{}),ia=pt("config/source-ip-label-list",()=>{const e=Xne.value;return mr.isEmpty(e)?[]:Object.entries(e).sort((t,n)=>t[0].localeCompare(n[0])).map(([t,n])=>({key:t,label:n,id:$2()}))}),BE=pt("config/display-now-node-in-rule",!0),VE=pt("config/display-latency-in-rule",!0),UE=pt("config/log-retention-limit",1e3),wd=pt("config/log-search-history",[]);/*!
|
||
* shared v11.1.2
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const H1=typeof window<"u",tc=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Yne=(e,t,n)=>Kne({l:e,k:t,s:n}),Kne=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wr=e=>typeof e=="number"&&isFinite(e),Zne=e=>B2(e)==="[object Date]",Rh=e=>B2(e)==="[object RegExp]",hS=e=>en(e)&&Object.keys(e).length===0,Mr=Object.assign,qne=Object.create,Rn=(e=null)=>qne(e);let ZL;const tf=()=>ZL||(ZL=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Rn());function qL(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Jne=Object.prototype.hasOwnProperty;function ja(e,t){return Jne.call(e,t)}const xr=Array.isArray,zn=e=>typeof e=="function",ot=e=>typeof e=="string",hn=e=>typeof e=="boolean",gn=e=>e!==null&&typeof e=="object",Qne=e=>gn(e)&&zn(e.then)&&zn(e.catch),NV=Object.prototype.toString,B2=e=>NV.call(e),en=e=>B2(e)==="[object Object]",ere=e=>e==null?"":xr(e)||en(e)&&e.toString===NV?JSON.stringify(e,null,2):String(e);function V2(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function tre(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const a0=e=>!gn(e)||xr(e);function H_(e,t){if(a0(e)||a0(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(gn(r[o])&&!gn(i[o])&&(i[o]=Array.isArray(r[o])?[]:Rn()),a0(i[o])||a0(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*!
|
||
* message-compiler v11.1.2
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function nre(e,t,n){return{line:e,column:t,offset:n}}function HE(e,t,n){return{start:e,end:t}}const Tn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},rre=17;function pS(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=e,s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function ire(e){throw e}const qs=" ",ore="\r",Ri=`
|
||
`,are="\u2028",sre="\u2029";function lre(e){const t=e;let n=0,r=1,i=1,o=0;const a=E=>t[E]===ore&&t[E+1]===Ri,s=E=>t[E]===Ri,l=E=>t[E]===sre,u=E=>t[E]===are,c=E=>a(E)||s(E)||l(E)||u(E),f=()=>n,d=()=>r,h=()=>i,v=()=>o,m=E=>a(E)||l(E)||u(E)?Ri:t[E],_=()=>m(n),y=()=>m(n+o);function S(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function b(){return a(n+o)&&o++,o++,t[n+o]}function w(){n=0,r=1,i=1,o=0}function T(E=0){o=E}function C(){const E=n+o;for(;E!==n;)S();o=0}return{index:f,line:d,column:h,peekOffset:v,charAt:m,currentChar:_,currentPeek:y,next:S,peek:b,reset:w,resetPeek:T,skipToPeek:C}}const Kl=void 0,ure=".",JL="'",cre="tokenizer";function fre(e,t={}){const n=t.location!==!1,r=lre(e),i=()=>r.index(),o=()=>nre(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(U,j,J,...de){const _e=u();if(j.column+=J,j.offset+=J,c){const Oe=n?HE(_e.startLoc,j):null,q=pS(U,Oe,{domain:cre,args:de});c(q)}}function d(U,j,J){U.endLoc=o(),U.currentType=j;const de={type:j};return n&&(de.loc=HE(U.startLoc,U.endLoc)),J!=null&&(de.value=J),de}const h=U=>d(U,13);function v(U,j){return U.currentChar()===j?(U.next(),j):(f(Tn.EXPECTED_TOKEN,o(),0,j),"")}function m(U){let j="";for(;U.currentPeek()===qs||U.currentPeek()===Ri;)j+=U.currentPeek(),U.peek();return j}function _(U){const j=m(U);return U.skipToPeek(),j}function y(U){if(U===Kl)return!1;const j=U.charCodeAt(0);return j>=97&&j<=122||j>=65&&j<=90||j===95}function S(U){if(U===Kl)return!1;const j=U.charCodeAt(0);return j>=48&&j<=57}function b(U,j){const{currentType:J}=j;if(J!==2)return!1;m(U);const de=y(U.currentPeek());return U.resetPeek(),de}function w(U,j){const{currentType:J}=j;if(J!==2)return!1;m(U);const de=U.currentPeek()==="-"?U.peek():U.currentPeek(),_e=S(de);return U.resetPeek(),_e}function T(U,j){const{currentType:J}=j;if(J!==2)return!1;m(U);const de=U.currentPeek()===JL;return U.resetPeek(),de}function C(U,j){const{currentType:J}=j;if(J!==7)return!1;m(U);const de=U.currentPeek()===".";return U.resetPeek(),de}function E(U,j){const{currentType:J}=j;if(J!==8)return!1;m(U);const de=y(U.currentPeek());return U.resetPeek(),de}function R(U,j){const{currentType:J}=j;if(!(J===7||J===11))return!1;m(U);const de=U.currentPeek()===":";return U.resetPeek(),de}function I(U,j){const{currentType:J}=j;if(J!==9)return!1;const de=()=>{const Oe=U.currentPeek();return Oe==="{"?y(U.peek()):Oe==="@"||Oe==="|"||Oe===":"||Oe==="."||Oe===qs||!Oe?!1:Oe===Ri?(U.peek(),de()):P(U,!1)},_e=de();return U.resetPeek(),_e}function M(U){m(U);const j=U.currentPeek()==="|";return U.resetPeek(),j}function P(U,j=!0){const J=(_e=!1,Oe="")=>{const q=U.currentPeek();return q==="{"||q==="@"||!q?_e:q==="|"?!(Oe===qs||Oe===Ri):q===qs?(U.peek(),J(!0,qs)):q===Ri?(U.peek(),J(!0,Ri)):!0},de=J();return j&&U.resetPeek(),de}function D(U,j){const J=U.currentChar();return J===Kl?Kl:j(J)?(U.next(),J):null}function k(U){const j=U.charCodeAt(0);return j>=97&&j<=122||j>=65&&j<=90||j>=48&&j<=57||j===95||j===36}function $(U){return D(U,k)}function W(U){const j=U.charCodeAt(0);return j>=97&&j<=122||j>=65&&j<=90||j>=48&&j<=57||j===95||j===36||j===45}function N(U){return D(U,W)}function K(U){const j=U.charCodeAt(0);return j>=48&&j<=57}function X(U){return D(U,K)}function ae(U){const j=U.charCodeAt(0);return j>=48&&j<=57||j>=65&&j<=70||j>=97&&j<=102}function ge(U){return D(U,ae)}function ye(U){let j="",J="";for(;j=X(U);)J+=j;return J}function Me(U){let j="";for(;;){const J=U.currentChar();if(J==="{"||J==="}"||J==="@"||J==="|"||!J)break;if(J===qs||J===Ri)if(P(U))j+=J,U.next();else{if(M(U))break;j+=J,U.next()}else j+=J,U.next()}return j}function ke(U){_(U);let j="",J="";for(;j=N(U);)J+=j;return U.currentChar()===Kl&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),J}function Ue(U){_(U);let j="";return U.currentChar()==="-"?(U.next(),j+=`-${ye(U)}`):j+=ye(U),U.currentChar()===Kl&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),j}function Le(U){return U!==JL&&U!==Ri}function je(U){_(U),v(U,"'");let j="",J="";for(;j=D(U,Le);)j==="\\"?J+=fe(U):J+=j;const de=U.currentChar();return de===Ri||de===Kl?(f(Tn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),de===Ri&&(U.next(),v(U,"'")),J):(v(U,"'"),J)}function fe(U){const j=U.currentChar();switch(j){case"\\":case"'":return U.next(),`\\${j}`;case"u":return Ae(U,j,4);case"U":return Ae(U,j,6);default:return f(Tn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,j),""}}function Ae(U,j,J){v(U,j);let de="";for(let _e=0;_e<J;_e++){const Oe=ge(U);if(!Oe){f(Tn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${j}${de}${U.currentChar()}`);break}de+=Oe}return`\\${j}${de}`}function Se(U){return U!=="{"&&U!=="}"&&U!==qs&&U!==Ri}function Te(U){_(U);let j="",J="";for(;j=D(U,Se);)J+=j;return J}function Ne(U){let j="",J="";for(;j=$(U);)J+=j;return J}function Be(U){const j=J=>{const de=U.currentChar();return de==="{"||de==="@"||de==="|"||de==="("||de===")"||!de||de===qs?J:(J+=de,U.next(),j(J))};return j("")}function H(U){_(U);const j=v(U,"|");return _(U),j}function z(U,j){let J=null;switch(U.currentChar()){case"{":return j.braceNest>=1&&f(Tn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),U.next(),J=d(j,2,"{"),_(U),j.braceNest++,J;case"}":return j.braceNest>0&&j.currentType===2&&f(Tn.EMPTY_PLACEHOLDER,o(),0),U.next(),J=d(j,3,"}"),j.braceNest--,j.braceNest>0&&_(U),j.inLinked&&j.braceNest===0&&(j.inLinked=!1),J;case"@":return j.braceNest>0&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),J=ue(U,j)||h(j),j.braceNest=0,J;default:{let _e=!0,Oe=!0,q=!0;if(M(U))return j.braceNest>0&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),J=d(j,1,H(U)),j.braceNest=0,j.inLinked=!1,J;if(j.braceNest>0&&(j.currentType===4||j.currentType===5||j.currentType===6))return f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),j.braceNest=0,we(U,j);if(_e=b(U,j))return J=d(j,4,ke(U)),_(U),J;if(Oe=w(U,j))return J=d(j,5,Ue(U)),_(U),J;if(q=T(U,j))return J=d(j,6,je(U)),_(U),J;if(!_e&&!Oe&&!q)return J=d(j,12,Te(U)),f(Tn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,J.value),_(U),J;break}}return J}function ue(U,j){const{currentType:J}=j;let de=null;const _e=U.currentChar();switch((J===7||J===8||J===11||J===9)&&(_e===Ri||_e===qs)&&f(Tn.INVALID_LINKED_FORMAT,o(),0),_e){case"@":return U.next(),de=d(j,7,"@"),j.inLinked=!0,de;case".":return _(U),U.next(),d(j,8,".");case":":return _(U),U.next(),d(j,9,":");default:return M(U)?(de=d(j,1,H(U)),j.braceNest=0,j.inLinked=!1,de):C(U,j)||R(U,j)?(_(U),ue(U,j)):E(U,j)?(_(U),d(j,11,Ne(U))):I(U,j)?(_(U),_e==="{"?z(U,j)||de:d(j,10,Be(U))):(J===7&&f(Tn.INVALID_LINKED_FORMAT,o(),0),j.braceNest=0,j.inLinked=!1,we(U,j))}}function we(U,j){let J={type:13};if(j.braceNest>0)return z(U,j)||h(j);if(j.inLinked)return ue(U,j)||h(j);switch(U.currentChar()){case"{":return z(U,j)||h(j);case"}":return f(Tn.UNBALANCED_CLOSING_BRACE,o(),0),U.next(),d(j,3,"}");case"@":return ue(U,j)||h(j);default:{if(M(U))return J=d(j,1,H(U)),j.braceNest=0,j.inLinked=!1,J;if(P(U))return d(j,0,Me(U));break}}return J}function ve(){const{currentType:U,offset:j,startLoc:J,endLoc:de}=l;return l.lastType=U,l.lastOffset=j,l.lastStartLoc=J,l.lastEndLoc=de,l.offset=i(),l.startLoc=o(),r.currentChar()===Kl?d(l,13):we(r,l)}return{nextToken:ve,currentOffset:i,currentPosition:o,context:u}}const dre="parser",hre=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pre(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"<22>"}}}function vre(e={}){const t=e.location!==!1,{onError:n}=e;function r(y,S,b,w,...T){const C=y.currentPosition();if(C.offset+=w,C.column+=w,n){const E=t?HE(b,C):null,R=pS(S,E,{domain:dre,args:T});n(R)}}function i(y,S,b){const w={type:y};return t&&(w.start=S,w.end=S,w.loc={start:b,end:b}),w}function o(y,S,b,w){t&&(y.end=S,y.loc&&(y.loc.end=b))}function a(y,S){const b=y.context(),w=i(3,b.offset,b.startLoc);return w.value=S,o(w,y.currentOffset(),y.currentPosition()),w}function s(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:T}=b,C=i(5,w,T);return C.index=parseInt(S,10),y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function l(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:T}=b,C=i(4,w,T);return C.key=S,y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function u(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:T}=b,C=i(9,w,T);return C.value=S.replace(hre,pre),y.nextToken(),o(C,y.currentOffset(),y.currentPosition()),C}function c(y){const S=y.nextToken(),b=y.context(),{lastOffset:w,lastStartLoc:T}=b,C=i(8,w,T);return S.type!==11?(r(y,Tn.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),C.value="",o(C,w,T),{nextConsumeToken:S,node:C}):(S.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(S)),C.value=S.value||"",o(C,y.currentOffset(),y.currentPosition()),{node:C})}function f(y,S){const b=y.context(),w=i(7,b.offset,b.startLoc);return w.value=S,o(w,y.currentOffset(),y.currentPosition()),w}function d(y){const S=y.context(),b=i(6,S.offset,S.startLoc);let w=y.nextToken();if(w.type===8){const T=c(y);b.modifier=T.node,w=T.nextConsumeToken||y.nextToken()}switch(w.type!==9&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(w)),b.key=f(y,w.value||"");break;case 4:w.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(w)),b.key=l(y,w.value||"");break;case 5:w.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(w)),b.key=s(y,w.value||"");break;case 6:w.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(w)),b.key=u(y,w.value||"");break;default:{r(y,Tn.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const T=y.context(),C=i(7,T.offset,T.startLoc);return C.value="",o(C,T.offset,T.startLoc),b.key=C,o(b,T.offset,T.startLoc),{nextConsumeToken:w,node:b}}}return o(b,y.currentOffset(),y.currentPosition()),{node:b}}function h(y){const S=y.context(),b=S.currentType===1?y.currentOffset():S.offset,w=S.currentType===1?S.endLoc:S.startLoc,T=i(2,b,w);T.items=[];let C=null;do{const I=C||y.nextToken();switch(C=null,I.type){case 0:I.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(I)),T.items.push(a(y,I.value||""));break;case 5:I.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(I)),T.items.push(s(y,I.value||""));break;case 4:I.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(I)),T.items.push(l(y,I.value||""));break;case 6:I.value==null&&r(y,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(I)),T.items.push(u(y,I.value||""));break;case 7:{const M=d(y);T.items.push(M.node),C=M.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const E=S.currentType===1?S.lastOffset:y.currentOffset(),R=S.currentType===1?S.lastEndLoc:y.currentPosition();return o(T,E,R),T}function v(y,S,b,w){const T=y.context();let C=w.items.length===0;const E=i(1,S,b);E.cases=[],E.cases.push(w);do{const R=h(y);C||(C=R.items.length===0),E.cases.push(R)}while(T.currentType!==13);return C&&r(y,Tn.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),o(E,y.currentOffset(),y.currentPosition()),E}function m(y){const S=y.context(),{offset:b,startLoc:w}=S,T=h(y);return S.currentType===13?T:v(y,b,w,T)}function _(y){const S=fre(y,Mr({},e)),b=S.context(),w=i(0,b.offset,b.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=m(S),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),b.currentType!==13&&r(S,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,y[b.offset]||""),o(w,S.currentOffset(),S.currentPosition()),w}return{parse:_}}function ss(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function gre(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function QL(e,t){for(let n=0;n<e.length;n++)U2(e[n],t)}function U2(e,t){switch(e.type){case 1:QL(e.cases,t),t.helper("plural");break;case 2:QL(e.items,t);break;case 6:{U2(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function mre(e,t={}){const n=gre(e);n.helper("normalize"),e.body&&U2(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function yre(e){const t=e.body;return t.type===2?eN(t):t.cases.forEach(n=>eN(n)),e}function eN(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=V2(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Kd(e){switch(e.t=e.type,e.type){case 0:{const t=e;Kd(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Kd(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Kd(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Kd(t.key),t.k=t.key,delete t.key,t.modifier&&(Kd(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function _re(e,t){const{filename:n,breakLineCode:r,needIndent:i}=t,o=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const s=()=>a;function l(m,_){a.code+=m}function u(m,_=!0){const y=_?r:"";l(i?y+" ".repeat(m):y)}function c(m=!0){const _=++a.indentLevel;m&&u(_)}function f(m=!0){const _=--a.indentLevel;m&&u(_)}function d(){u(a.indentLevel)}return{context:s,push:l,indent:c,deindent:f,newline:d,helper:m=>`_${m}`,needIndent:()=>a.needIndent}}function bre(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ph(e,t.key),t.modifier?(e.push(", "),Ph(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Sre(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o<i&&(Ph(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function wre(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o<i&&(Ph(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function xre(e,t){t.body?Ph(e,t.body):e.push("null")}function Ph(e,t){const{helper:n}=e;switch(t.type){case 0:xre(e,t);break;case 1:wre(e,t);break;case 2:Sre(e,t);break;case 6:bre(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Cre=(e,t={})=>{const n=ot(t.mode)?t.mode:"normal",r=ot(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
||
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],s=_re(e,{filename:r,breakLineCode:i,needIndent:o});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),a.length>0&&(s.push(`const { ${V2(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),Ph(s,e),s.deindent(o),s.push("}"),delete e.helpers;const{code:l,map:u}=s.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Tre(e,t={}){const n=Mr({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=vre(n).parse(e);return r?(o&&yre(s),i&&Kd(s),{ast:s,code:""}):(mre(s,n),Cre(s,n))}/*!
|
||
* core-base v11.1.2
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function Ere(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(tf().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(tf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function tC(e){return n=>Are(n,e)}function Are(e,t){const n=Rre(t);if(n==null)throw Gg(0);if(H2(n)===1){const o=Mre(n);return e.plural(o.reduce((a,s)=>[...a,tN(e,s)],[]))}else return tN(e,n)}const Ire=["b","body"];function Rre(e){return nc(e,Ire)}const Pre=["c","cases"];function Mre(e){return nc(e,Pre,[])}function tN(e,t){const n=Dre(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Nre(t).reduce((i,o)=>[...i,zE(e,o)],[]);return e.normalize(r)}}const Ore=["s","static"];function Dre(e){return nc(e,Ore)}const Lre=["i","items"];function Nre(e){return nc(e,Lre,[])}function zE(e,t){const n=H2(t);switch(n){case 3:return s0(t,n);case 9:return s0(t,n);case 4:{const r=t;if(ja(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(ja(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Gg(n)}case 5:{const r=t;if(ja(r,"i")&&wr(r.i))return e.interpolate(e.list(r.i));if(ja(r,"index")&&wr(r.index))return e.interpolate(e.list(r.index));throw Gg(n)}case 6:{const r=t,i=Bre(r),o=Ure(r);return e.linked(zE(e,o),i?zE(e,i):void 0,e.type)}case 7:return s0(t,n);case 8:return s0(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const kre=["t","type"];function H2(e){return nc(e,kre)}const Fre=["v","value"];function s0(e,t){const n=nc(e,Fre);if(n)return n;throw Gg(t)}const $re=["m","modifier"];function Bre(e){return nc(e,$re)}const Vre=["k","key"];function Ure(e){const t=nc(e,Vre);if(t)return t;throw Gg(6)}function nc(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(ja(e,i)&&e[i]!=null)return e[i]}return n}function Gg(e){return new Error(`unhandled node type: ${e}`)}const Hre=e=>e;let l0=Rn();function Mh(e){return gn(e)&&H2(e)===0&&(ja(e,"b")||ja(e,"body"))}function zre(e,t={}){let n=!1;const r=t.onError||ire;return t.onError=i=>{n=!0,r(i)},{...Tre(e,t),detectError:n}}function Gre(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ot(e)){hn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Hre)(e),i=l0[r];if(i)return i;const{ast:o,detectError:a}=zre(e,{...t,location:!1,jit:!0}),s=tC(o);return a?s:l0[r]=s}else{const n=e.cacheKey;if(n){const r=l0[n];return r||(l0[n]=tC(e))}else return tC(e)}}let Wg=null;function Wre(e){Wg=e}function jre(e,t,n){Wg&&Wg.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Xre=Yre("function:translate");function Yre(e){return t=>Wg&&Wg.emit(e,t)}const dl={INVALID_ARGUMENT:rre,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Kre=24;function hl(e){return pS(e,null,void 0)}function z2(e,t){return t.locale!=null?nN(t.locale):nN(e.locale)}let nC;function nN(e){if(ot(e))return e;if(zn(e)){if(e.resolvedOnce&&nC!=null)return nC;if(e.constructor.name==="Function"){const t=e();if(Qne(t))throw hl(dl.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nC=t}else throw hl(dl.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw hl(dl.NOT_SUPPORT_LOCALE_TYPE)}function Zre(e,t,n){return[...new Set([n,...xr(t)?t:gn(t)?Object.keys(t):ot(t)?[t]:[n]])]}function kV(e,t,n){const r=ot(n)?n:jg,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;xr(a);)a=rN(o,a,t);const s=xr(t)||!en(t)?t:t.default?t.default:null;a=ot(s)?[s]:s,xr(a)&&rN(o,a,!1),i.__localeChainCache.set(r,o)}return o}function rN(e,t,n){let r=!0;for(let i=0;i<t.length&&hn(r);i++){const o=t[i];ot(o)&&(r=qre(e,t[i],n))}return r}function qre(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=Jre(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Jre(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(xr(n)||en(n))&&n[i]&&(r=n[i])}return r}const rc=[];rc[0]={w:[0],i:[3,0],"[":[4],o:[7]};rc[1]={w:[1],".":[2],"[":[4],o:[7]};rc[2]={w:[2],i:[3,0],0:[3,0]};rc[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};rc[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};rc[5]={"'":[4,0],o:8,l:[5,0]};rc[6]={'"':[4,0],o:8,l:[6,0]};const Qre=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function eie(e){return Qre.test(e)}function tie(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function nie(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function rie(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:eie(t)?tie(t):"*"+t}function iie(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,f;const d=[];d[0]=()=>{a===void 0?a=s:a+=s},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,a===void 0||(a=rie(a),a===!1))return!1;d[1]()}};function h(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,s="\\"+v,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=nie(o),f=rc[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const iN=new Map;function oie(e,t){return gn(e)?e[t]:null}function aie(e,t){if(!gn(e))return null;let n=iN.get(t);if(n||(n=iie(t),n&&iN.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const a=i[n[o]];if(a===void 0||zn(i))return null;i=a,o++}return i}const sie="11.1.2",vS=-1,jg="en-US",oN="",aN=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function lie(){return{upper:(e,t)=>t==="text"&&ot(e)?e.toUpperCase():t==="vnode"&&gn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ot(e)?e.toLowerCase():t==="vnode"&&gn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ot(e)?aN(e):t==="vnode"&&gn(e)&&"__v_isVNode"in e?aN(e.children):e}}let FV;function uie(e){FV=e}let $V;function cie(e){$V=e}let BV;function fie(e){BV=e}let VV=null;const die=e=>{VV=e},hie=()=>VV;let UV=null;const sN=e=>{UV=e},pie=()=>UV;let lN=0;function vie(e={}){const t=zn(e.onWarn)?e.onWarn:tre,n=ot(e.version)?e.version:sie,r=ot(e.locale)||zn(e.locale)?e.locale:jg,i=zn(r)?jg:r,o=xr(e.fallbackLocale)||en(e.fallbackLocale)||ot(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=en(e.messages)?e.messages:rC(i),s=en(e.datetimeFormats)?e.datetimeFormats:rC(i),l=en(e.numberFormats)?e.numberFormats:rC(i),u=Mr(Rn(),e.modifiers,lie()),c=e.pluralRules||Rn(),f=zn(e.missing)?e.missing:null,d=hn(e.missingWarn)||Rh(e.missingWarn)?e.missingWarn:!0,h=hn(e.fallbackWarn)||Rh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,m=!!e.unresolving,_=zn(e.postTranslation)?e.postTranslation:null,y=en(e.processor)?e.processor:null,S=hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,w=zn(e.messageCompiler)?e.messageCompiler:FV,T=zn(e.messageResolver)?e.messageResolver:$V||oie,C=zn(e.localeFallbacker)?e.localeFallbacker:BV||Zre,E=gn(e.fallbackContext)?e.fallbackContext:void 0,R=e,I=gn(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,M=gn(R.__numberFormatters)?R.__numberFormatters:new Map,P=gn(R.__meta)?R.__meta:{};lN++;const D={version:n,cid:lN,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:v,unresolving:m,postTranslation:_,processor:y,warnHtmlMessage:S,escapeParameter:b,messageCompiler:w,messageResolver:T,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:P};return D.datetimeFormats=s,D.numberFormats=l,D.__datetimeFormatters=I,D.__numberFormatters=M,__INTLIFY_PROD_DEVTOOLS__&&jre(D,n,P),D}const rC=e=>({[e]:Rn()});function G2(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return ot(s)?s:t}else return t}function Vp(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function gie(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function mie(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(gie(e,t[r]))return!0;return!1}function uN(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=GE(...t),d=hn(c.missingWarn)?c.missingWarn:e.missingWarn;hn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=z2(e,c),m=a(e,i,v);if(!ot(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let _={},y,S=null;const b="datetime format";for(let C=0;C<m.length&&(y=m[C],_=n[y]||{},S=_[l],!en(S));C++)G2(e,l,y,d,b);if(!en(S)||!ot(y))return r?vS:l;let w=`${y}__${l}`;hS(f)||(w=`${w}__${JSON.stringify(f)}`);let T=s.get(w);return T||(T=new Intl.DateTimeFormat(y,Mr({},S,f)),s.set(w,T)),h?T.formatToParts(u):T.format(u)}const HV=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function GE(...e){const[t,n,r,i]=e,o=Rn();let a=Rn(),s;if(ot(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw hl(dl.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw hl(dl.INVALID_ISO_DATE_ARGUMENT)}}else if(Zne(t)){if(isNaN(t.getTime()))throw hl(dl.INVALID_DATE_ARGUMENT);s=t}else if(wr(t))s=t;else throw hl(dl.INVALID_ARGUMENT);return ot(n)?o.key=n:en(n)&&Object.keys(n).forEach(l=>{HV.includes(l)?a[l]=n[l]:o[l]=n[l]}),ot(r)?o.locale=r:en(r)&&(a=r),en(i)&&(a=i),[o.key||"",s,o,a]}function cN(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function fN(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=WE(...t),d=hn(c.missingWarn)?c.missingWarn:e.missingWarn;hn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=z2(e,c),m=a(e,i,v);if(!ot(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let _={},y,S=null;const b="number format";for(let C=0;C<m.length&&(y=m[C],_=n[y]||{},S=_[l],!en(S));C++)G2(e,l,y,d,b);if(!en(S)||!ot(y))return r?vS:l;let w=`${y}__${l}`;hS(f)||(w=`${w}__${JSON.stringify(f)}`);let T=s.get(w);return T||(T=new Intl.NumberFormat(y,Mr({},S,f)),s.set(w,T)),h?T.formatToParts(u):T.format(u)}const zV=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function WE(...e){const[t,n,r,i]=e,o=Rn();let a=Rn();if(!wr(t))throw hl(dl.INVALID_ARGUMENT);const s=t;return ot(n)?o.key=n:en(n)&&Object.keys(n).forEach(l=>{zV.includes(l)?a[l]=n[l]:o[l]=n[l]}),ot(r)?o.locale=r:en(r)&&(a=r),en(i)&&(a=i),[o.key||"",s,o,a]}function dN(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const yie=e=>e,_ie=e=>"",bie="text",Sie=e=>e.length===0?"":V2(e),wie=ere;function hN(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function xie(e){const t=wr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wr(e.named.count)||wr(e.named.n))?wr(e.named.count)?e.named.count:wr(e.named.n)?e.named.n:t:t}function Cie(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Tie(e={}){const t=e.locale,n=xie(e),r=gn(e.pluralRules)&&ot(t)&&zn(e.pluralRules[t])?e.pluralRules[t]:hN,i=gn(e.pluralRules)&&ot(t)&&zn(e.pluralRules[t])?hN:void 0,o=y=>y[r(n,y.length,i)],a=e.list||[],s=y=>a[y],l=e.named||Rn();wr(e.pluralIndex)&&Cie(n,l);const u=y=>l[y];function c(y,S){const b=zn(e.messages)?e.messages(y,!!S):gn(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):_ie)}const f=y=>e.modifiers?e.modifiers[y]:yie,d=en(e.processor)&&zn(e.processor.normalize)?e.processor.normalize:Sie,h=en(e.processor)&&zn(e.processor.interpolate)?e.processor.interpolate:wie,v=en(e.processor)&&ot(e.processor.type)?e.processor.type:bie,_={list:s,named:u,plural:o,linked:(y,...S)=>{const[b,w]=S;let T="text",C="";S.length===1?gn(b)?(C=b.modifier||C,T=b.type||T):ot(b)&&(C=b||C):S.length===2&&(ot(b)&&(C=b||C),ot(w)&&(T=w||T));const E=c(y,!0)(_),R=T==="vnode"&&xr(E)&&C?E[0]:E;return C?f(C)(R,T):R},message:c,type:v,interpolate:h,normalize:d,values:Mr(Rn(),a,l)};return _}const pN=()=>"",aa=e=>zn(e);function vN(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=jE(...t),c=hn(u.missingWarn)?u.missingWarn:e.missingWarn,f=hn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=hn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,v=ot(u.default)||hn(u.default)?hn(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,m=n||v!=null&&(ot(v)||zn(v)),_=z2(e,u);d&&Eie(u);let[y,S,b]=h?[l,_,s[_]||Rn()]:GV(e,l,_,a,f,c),w=y,T=l;if(!h&&!(ot(w)||Mh(w)||aa(w))&&m&&(w=v,T=w),!h&&(!(ot(w)||Mh(w)||aa(w))||!ot(S)))return i?vS:l;let C=!1;const E=()=>{C=!0},R=aa(w)?w:WV(e,l,S,w,T,E);if(C)return w;const I=Rie(e,S,b,u),M=Tie(I),P=Aie(e,R,M),D=r?r(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const k={timestamp:Date.now(),key:ot(l)?l:aa(w)?w.key:"",locale:S||(aa(w)?w.locale:""),format:ot(w)?w:aa(w)?w.source:"",message:D};k.meta=Mr({},e.__meta,hie()||{}),Xre(k)}return D}function Eie(e){xr(e.list)?e.list=e.list.map(t=>ot(t)?qL(t):t):gn(e.named)&&Object.keys(e.named).forEach(t=>{ot(e.named[t])&&(e.named[t]=qL(e.named[t]))})}function GV(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=Rn(),d,h=null;const v="translate";for(let m=0;m<c.length&&(d=c[m],f=a[d]||Rn(),(h=l(f,t))===null&&(h=f[t]),!(ot(h)||Mh(h)||aa(h)));m++)if(!mie(d,c)){const _=G2(e,t,d,o,v);_!==t&&(h=_)}return[h,d,f]}function WV(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(aa(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(a==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=a(r,Iie(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function Aie(e,t,n){return t(n)}function jE(...e){const[t,n,r]=e,i=Rn();if(!ot(t)&&!wr(t)&&!aa(t)&&!Mh(t))throw hl(dl.INVALID_ARGUMENT);const o=wr(t)?String(t):(aa(t),t);return wr(n)?i.plural=n:ot(n)?i.default=n:en(n)&&!hS(n)?i.named=n:xr(n)&&(i.list=n),wr(r)?i.plural=r:ot(r)?i.default=r:en(r)&&Mr(i,r),[o,i]}function Iie(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Yne(t,n,a)}}function Rie(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:o,messages:(h,v)=>{let m=a(n,h);if(m==null&&(c||v)){const[,,_]=GV(c||e,h,t,s,l,u);m=a(_,h)}if(ot(m)||Mh(m)){let _=!1;const S=WV(e,h,t,m,h,()=>{_=!0});return _?pN:S}else return aa(m)?m:pN}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),wr(r.plural)&&(d.pluralIndex=r.plural),d}Ere();/*!
|
||
* vue-i18n v11.1.2
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Pie="11.1.2";function Mie(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(tf().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(tf().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(tf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(tf().__INTLIFY_PROD_DEVTOOLS__=!1)}const vo={UNEXPECTED_RETURN_TYPE:Kre,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Fo(e,...t){return pS(e,null,void 0)}const XE=tc("__translateVNode"),YE=tc("__datetimeParts"),KE=tc("__numberParts"),jV=tc("__setPluralRules"),XV=tc("__injectWithOption"),ZE=tc("__dispose");function Xg(e){if(!gn(e))return e;for(const t in e)if(ja(e,t))if(!t.includes("."))gn(e[t])&&Xg(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in i||(i[n[a]]=Rn()),!gn(i[n[a]])){o=!0;break}i=i[n[a]]}o||(i[n[r]]=e[t],delete e[t]),gn(i[n[r]])&&Xg(i[n[r]])}return e}function W2(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=en(n)?n:xr(r)?Rn():{[e]:Rn()};if(xr(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||Rn(),H_(u,a[l])):H_(u,a)}else ot(s)&&H_(JSON.parse(s),a)}),i==null&&o)for(const s in a)ja(a,s)&&Xg(a[s]);return a}function YV(e){return e.type}function KV(e,t,n){let r=gn(t.messages)?t.messages:Rn();"__i18nGlobal"in n&&(r=W2(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(gn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(gn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function gN(e){return G(yl,null,e,0)}const mN="__INTLIFY_META__",yN=()=>[],Oie=()=>!1;let _N=0;function bN(e){return(t,n,r,i)=>e(n,r,Tr()||void 0,i)}const Die=()=>{const e=Tr();let t=null;return e&&(t=YV(e)[mN])?{[mN]:t}:null};function j2(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=H1?De:bi;let a=hn(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:ot(e.locale)?e.locale:jg),l=o(t&&a?t.fallbackLocale.value:ot(e.fallbackLocale)||xr(e.fallbackLocale)||en(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(W2(s.value,e)),c=o(en(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(en(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=t?t.missingWarn:hn(e.missingWarn)||Rh(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:hn(e.fallbackWarn)||Rh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:hn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,_=zn(e.missing)?e.missing:null,y=zn(e.missing)?bN(e.missing):null,S=zn(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const T=t?t.modifiers:en(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&sN(null);const q={version:Pie,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:T,pluralRules:C,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};q.datetimeFormats=c.value,q.numberFormats=f.value,q.__datetimeFormatters=en(E)?E.__datetimeFormatters:void 0,q.__numberFormatters=en(E)?E.__numberFormatters:void 0;const he=vie(q);return r&&sN(he),he})(),Vp(E,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,f.value]}const M=Ce({get:()=>s.value,set:q=>{E.locale=q,s.value=q}}),P=Ce({get:()=>l.value,set:q=>{E.fallbackLocale=q,l.value=q,Vp(E,s.value,q)}}),D=Ce(()=>u.value),k=Ce(()=>c.value),$=Ce(()=>f.value);function W(){return zn(S)?S:null}function N(q){S=q,E.postTranslation=q}function K(){return _}function X(q){q!==null&&(y=bN(q)),_=q,E.missing=y}const ae=(q,he,Ve,Ze,bt,ne)=>{I();let se;try{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?pie():void 0),se=q(E)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(Ve!=="translate exists"&&wr(se)&&se===vS||Ve==="translate exists"&&!se){const[pe,Ee]=he();return t&&v?Ze(t):bt(pe)}else{if(ne(se))return se;throw Fo(vo.UNEXPECTED_RETURN_TYPE)}};function ge(...q){return ae(he=>Reflect.apply(vN,null,[he,...q]),()=>jE(...q),"translate",he=>Reflect.apply(he.t,he,[...q]),he=>he,he=>ot(he))}function ye(...q){const[he,Ve,Ze]=q;if(Ze&&!gn(Ze))throw Fo(vo.INVALID_ARGUMENT);return ge(he,Ve,Mr({resolvedMessage:!0},Ze||{}))}function Me(...q){return ae(he=>Reflect.apply(uN,null,[he,...q]),()=>GE(...q),"datetime format",he=>Reflect.apply(he.d,he,[...q]),()=>oN,he=>ot(he))}function ke(...q){return ae(he=>Reflect.apply(fN,null,[he,...q]),()=>WE(...q),"number format",he=>Reflect.apply(he.n,he,[...q]),()=>oN,he=>ot(he))}function Ue(q){return q.map(he=>ot(he)||wr(he)||hn(he)?gN(String(he)):he)}const je={normalize:Ue,interpolate:q=>q,type:"vnode"};function fe(...q){return ae(he=>{let Ve;const Ze=he;try{Ze.processor=je,Ve=Reflect.apply(vN,null,[Ze,...q])}finally{Ze.processor=null}return Ve},()=>jE(...q),"translate",he=>he[XE](...q),he=>[gN(he)],he=>xr(he))}function Ae(...q){return ae(he=>Reflect.apply(fN,null,[he,...q]),()=>WE(...q),"number format",he=>he[KE](...q),yN,he=>ot(he)||xr(he))}function Se(...q){return ae(he=>Reflect.apply(uN,null,[he,...q]),()=>GE(...q),"datetime format",he=>he[YE](...q),yN,he=>ot(he)||xr(he))}function Te(q){C=q,E.pluralRules=C}function Ne(q,he){return ae(()=>{if(!q)return!1;const Ve=ot(he)?he:s.value,Ze=z(Ve),bt=E.messageResolver(Ze,q);return Mh(bt)||aa(bt)||ot(bt)},()=>[q],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[q,he]),Oie,Ve=>hn(Ve))}function Be(q){let he=null;const Ve=kV(E,l.value,s.value);for(let Ze=0;Ze<Ve.length;Ze++){const bt=u.value[Ve[Ze]]||{},ne=E.messageResolver(bt,q);if(ne!=null){he=ne;break}}return he}function H(q){const he=Be(q);return he??(t?t.tm(q)||{}:{})}function z(q){return u.value[q]||{}}function ue(q,he){if(i){const Ve={[q]:he};for(const Ze in Ve)ja(Ve,Ze)&&Xg(Ve[Ze]);he=Ve[q]}u.value[q]=he,E.messages=u.value}function we(q,he){u.value[q]=u.value[q]||{};const Ve={[q]:he};if(i)for(const Ze in Ve)ja(Ve,Ze)&&Xg(Ve[Ze]);he=Ve[q],H_(he,u.value[q]),E.messages=u.value}function ve(q){return c.value[q]||{}}function U(q,he){c.value[q]=he,E.datetimeFormats=c.value,cN(E,q,he)}function j(q,he){c.value[q]=Mr(c.value[q]||{},he),E.datetimeFormats=c.value,cN(E,q,he)}function J(q){return f.value[q]||{}}function de(q,he){f.value[q]=he,E.numberFormats=f.value,dN(E,q,he)}function _e(q,he){f.value[q]=Mr(f.value[q]||{},he),E.numberFormats=f.value,dN(E,q,he)}_N++,t&&H1&&(Bt(t.locale,q=>{a&&(s.value=q,E.locale=q,Vp(E,s.value,l.value))}),Bt(t.fallbackLocale,q=>{a&&(l.value=q,E.fallbackLocale=q,Vp(E,s.value,l.value))}));const Oe={id:_N,locale:M,fallbackLocale:P,get inheritLocale(){return a},set inheritLocale(q){a=q,q&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Vp(E,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:D,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(q){d=q,E.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(q){h=q,E.fallbackWarn=h},get fallbackRoot(){return v},set fallbackRoot(q){v=q},get fallbackFormat(){return m},set fallbackFormat(q){m=q,E.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(q){b=q,E.warnHtmlMessage=q},get escapeParameter(){return w},set escapeParameter(q){w=q,E.escapeParameter=q},t:ge,getLocaleMessage:z,setLocaleMessage:ue,mergeLocaleMessage:we,getPostTranslationHandler:W,setPostTranslationHandler:N,getMissingHandler:K,setMissingHandler:X,[jV]:Te};return Oe.datetimeFormats=k,Oe.numberFormats=$,Oe.rt=ye,Oe.te=Ne,Oe.tm=H,Oe.d=Me,Oe.n=ke,Oe.getDateTimeFormat=ve,Oe.setDateTimeFormat=U,Oe.mergeDateTimeFormat=j,Oe.getNumberFormat=J,Oe.setNumberFormat=de,Oe.mergeNumberFormat=_e,Oe[XV]=n,Oe[XE]=fe,Oe[YE]=Se,Oe[KE]=Ae,Oe}function Lie(e){const t=ot(e.locale)?e.locale:jg,n=ot(e.fallbackLocale)||xr(e.fallbackLocale)||en(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=zn(e.missing)?e.missing:void 0,i=hn(e.silentTranslationWarn)||Rh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=hn(e.silentFallbackWarn)||Rh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=hn(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=en(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=zn(e.postTranslation)?e.postTranslation:void 0,f=ot(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=hn(e.sync)?e.sync:!0;let v=e.messages;if(en(e.sharedMessages)){const T=e.sharedMessages;v=Object.keys(T).reduce((E,R)=>{const I=E[R]||(E[R]={});return Mr(I,T[R]),E},v||{})}const{__i18n:m,__root:_,__injectWithOption:y}=e,S=e.datetimeFormats,b=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:w,datetimeFormats:S,numberFormats:b,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:_,__injectWithOption:y}}function qE(e={}){const t=j2(Lie(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(i){t.locale.value=i},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(i){t.fallbackLocale.value=i},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(i){t.setMissingHandler(i)},get silentTranslationWarn(){return hn(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=hn(i)?!i:i},get silentFallbackWarn(){return hn(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=hn(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){return Reflect.apply(t.t,t,[...i])},rt(...i){return Reflect.apply(t.rt,t,[...i])},te(i,o){return t.te(i,o)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,o){t.setLocaleMessage(i,o)},mergeLocaleMessage(i,o){t.mergeLocaleMessage(i,o)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,o){t.setDateTimeFormat(i,o)},mergeDateTimeFormat(i,o){t.mergeDateTimeFormat(i,o)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,o){t.setNumberFormat(i,o)},mergeNumberFormat(i,o){t.mergeNumberFormat(i,o)}};return r.__extender=n,r}function Nie(e,t,n){return{beforeCreate(){const r=Tr();if(!r)throw Fo(vo.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=t,this===this.$root)this.$i18n=SN(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=qE(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=SN(e,i);else{this.$i18n=qE({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&KV(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Tr();if(!r)throw Fo(vo.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function SN(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[jV](t.pluralizationRules||e.pluralizationRules);const n=W2(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const X2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function kie({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ye?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Rn())}function ZV(){return Ye}const Fie=nt({name:"i18n-t",props:Mr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wr(e)||!isNaN(e)}},X2),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Qr({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),a=Rn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=ot(e.plural)?+e.plural:e.plural);const s=kie(t,o),l=i[XE](e.keypath,s,a),u=Mr(Rn(),r),c=ot(e.tag)||gn(e.tag)?e.tag:ZV();return ca(c,u,l)}}}),wN=Fie;function $ie(e){return xr(e)&&!ot(e[0])}function qV(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=Rn();e.locale&&(a.locale=e.locale),ot(e.format)?a.key=e.format:gn(e.format)&&(ot(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Mr(Rn(),d,{[h]:e.format[h]}):d,Rn()));const l=r(e.value,a,s);let u=[a.key];xr(l)?u=l.map((d,h)=>{const v=i[d.type],m=v?v({[d.type]:d.value,index:h,parts:l}):[d.value];return $ie(m)&&(m[0].key=`${d.type}-${h}`),m}):ot(l)&&(u=[l]);const c=Mr(Rn(),o),f=ot(e.tag)||gn(e.tag)?e.tag:ZV();return ca(f,c,u)}}const Bie=nt({name:"i18n-n",props:Mr({value:{type:Number,required:!0},format:{type:[String,Object]}},X2),setup(e,t){const n=e.i18n||Qr({useScope:e.scope,__useComponent:!0});return qV(e,t,zV,(...r)=>n[KE](...r))}}),xN=Bie;function Vie(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Uie(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw Fo(vo.UNEXPECTED_ERROR);const u=Vie(e,s.$),c=CN(l);return[Reflect.apply(u.t,u,[...TN(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);H1&&e.global===u&&(a.__i18nWatcher=Bt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{H1&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=CN(s);a.textContent=Reflect.apply(l.t,l,[...TN(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function CN(e){if(ot(e))return{path:e};if(en(e)){if(!("path"in e))throw Fo(vo.REQUIRED_VALUE,"path");return e}else throw Fo(vo.INVALID_VALUE)}function TN(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return ot(n)&&(a.locale=n),wr(i)&&(a.plural=i),wr(o)&&(a.plural=o),[t,s,a]}function Hie(e,t,...n){const r=en(n[0])?n[0]:{};(hn(r.globalInstall)?r.globalInstall:!0)&&([wN.name,"I18nT"].forEach(o=>e.component(o,wN)),[xN.name,"I18nN"].forEach(o=>e.component(o,xN)),[AN.name,"I18nD"].forEach(o=>e.component(o,AN))),e.directive("t",Uie(t))}const zie=tc("global-vue-i18n");function Gie(e={}){const t=__VUE_I18N_LEGACY_API__&&hn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=hn(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,o]=Wie(e,t),a=tc("");function s(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,c),en(d[0])){const m=d[0];c.__composerExtend=m.__composerExtend,c.__vueI18nExtend=m.__vueI18nExtend}let h=null;!t&&n&&(h=Qie(f,c.global)),__VUE_I18N_FULL_INSTALL__&&Hie(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Nie(o,o.__composer,c));const v=f.unmount;f.unmount=()=>{h&&h(),c.dispose(),v()}},get global(){return o},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:l,__deleteInstance:u};return c}function Qr(e={}){const t=Tr();if(t==null)throw Fo(vo.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Fo(vo.NOT_INSTALLED);const n=jie(t),r=Yie(n),i=YV(t),o=Xie(e,i);if(o==="global")return KV(r,e,i),r;if(o==="parent"){let l=Kie(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Mr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=j2(l),a.__composerExtend&&(s[ZE]=a.__composerExtend(s)),qie(a,t,s),a.__setInstance(t,s)}return s}function Wie(e,t){const n=s$(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>qE(e)):n.run(()=>j2(e));if(r==null)throw Fo(vo.UNEXPECTED_ERROR);return[n,r]}function jie(e){const t=lo(e.isCE?zie:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Fo(e.isCE?vo.NOT_INSTALLED_WITH_PROVIDE:vo.UNEXPECTED_ERROR);return t}function Xie(e,t){return hS(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Yie(e){return e.mode==="composition"?e.global:e.global.__composer}function Kie(e,t,n=!1){let r=null;const i=t.root;let o=Zie(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[XV]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Zie(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function qie(e,t,n){Vo(()=>{},t),Qf(()=>{const r=n;e.__deleteInstance(t);const i=r[ZE];i&&(i(),delete r[ZE])},t)}const Jie=["locale","fallbackLocale","availableLocales"],EN=["t","rt","d","n","tm","te"];function Qie(e,t){const n=Object.create(null);return Jie.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw Fo(vo.UNEXPECTED_ERROR);const a=ht(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,EN.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw Fo(vo.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,EN.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const eoe=nt({name:"i18n-d",props:Mr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},X2),setup(e,t){const n=e.i18n||Qr({useScope:e.scope,__useComponent:!0});return qV(e,t,HV,(...r)=>n[YE](...r))}}),AN=eoe;Mie();uie(Gre);cie(aie);fie(kV);if(__INTLIFY_PROD_DEVTOOLS__){const e=tf();e.__INTLIFY__=!0,Wre(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const toe={setup:"Setup",overview:"Overview",proxies:"Proxies",rules:"Rules",connections:"Connections",logs:"Logs",protocol:"Protocol",host:"Host",port:"Port",password:"Password",submit:"Submit",cancel:"Cancel",download:"Download",upload:"Upload",downloadSpeed:"Download Speed",uploadSpeed:"Upload Speed",memoryUsage:"Memory",version:"Version",noContent:"No Content",flushFakeIP:"Flush Fake IP",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active",closedConnections:"Closed",logLevel:"Log Level",twoColumnProxyGroup:"Two-Column Proxy Group",type:"Type",process:"Process",connectTime:"Time",sourcePort:"Source Port",destination:"Final Destination",destinationType:"Dest Type",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",customCardLines:"Custom Card Lines",close:"Close",defaultTheme:"Default Theme",darkTheme:"Dark Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Update All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"Configs Order",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc",language:"Language",automaticDisconnection:"Automatic Disconnection",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",updateGeoDatabase:"Update Geo",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxies Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",unavailableProxy:"Hide Unavailable Proxies",protocolTips:"You are trying to connect a http backend but the zashboard is served by https. This may cause connection error. Please allow the insecure content in your browser settings. The settings is on the left of the browser address bar.",global:"Global",direct:"Direct",lowLatencyDesc:"Yellow Threshold",mediumLatencyDesc:"Red Threshold",fonts:"Fonts",unauthorizedTip:"Unauthorized, please login again.",restartCore:"Restart Core",checkUpgrade:"Check For Upgrade",autoUpgrade:"Auto Upgrade",secondaryPath:"Secondary Path",secondaryPathTip:'If present, start with a "/", otherwise leave it empty.',logRetentionLimit:"Log Retention Limit",DNSQuery:"DNS Query",currentBackendUnavailable:"The current backend is unavailable. Would you like to switch to another backend?",confirm:"Confirm",backendSwitchTo:"Automatic Switch to {backend}",ipv6Test:"IPv6 Test",socksPort:"Socks Port",httpPort:"HTTP Port",mixedPort:"Mixed Port",redirPort:"Redir Port",tproxyPort:"TProxy Port",tableSize:"Table Size",proxyCardSize:"Proxy Card Size",small:"Small",normal:"Normal",large:"Large",autoIPCheckWhenStart:"Auto IP Check When Start",autoConnectionCheckWhenStart:"Auto Connection Check When Start",chinaIP:"China IP",globalIP:"Global IP",networkInfo:"Network Info",autoSwitchTheme:"Auto Switch Theme",customBackgroundURL:"Background URL",splitOverviewPage:"Split Overview Page",manageHiddenGroup:"Manage Hidden Groups",showIPAndConnectionInfo:"Display IP and Connection Info",transparent:"Transparent",iconSize:"Icon Size",iconMarginRight:"Icon Margin Right",allowLan:"Allow LAN",proxyChainDirection:"Proxy Chain Direction",reverse:"Reverse",sniffHost:"Sniff Host",ipScreenshotTip:"Please make sure to hide the IP when taking screenshots.",showStatisticsWhenSidebarCollapsed:"Display Statistics When Sidebar Collapsed",totalConnections:"Total Connections",mostDownloadHost:"Most Download Host",mostUploadHost:"Most Upload Host",mostDownloadSourceIP:"Most Download Source IP",mostUploadSourceIP:"Most Upload Source IP",mostDownloadProxy:"Most Download Proxy",mostUploadProxy:"Most Upload Proxy",manual:"Manual",tableWidthMode:"Table Width Mode",testFinishedTip:"{number} Test Finished",updateFinishedTip:"{number} Update Finished",independentLatencyTest:"Independent Latency Test",independentLatencyTestTip:"Enabling Independent Latency Test will attempt to use the URLs specified in the configuration file instead of the zashboard's URL settings during the latency test. Latency will be displayed independently based on the URLs set in the policy groups.",search:"Search",allSourceIP:"All Source IPs",importing:"Importing",hideConnection:"Hide Connection",hideConnectionRegex:"Hide Connection Regex",hideConnectionTip:"You can use a case-insensitive regular expression to match and hide unwanted connections.",loadBalance:"Load Balance",label:"Label",optional:"Optional",swipeInTabs:"Swipe to Switch Between Tabs",simpleCardPreset:"Simple Preset",detailedCardPreset:"Detailed Preset",refresh:"Refresh",reset:"Reset",minProxyCardWidth:"Proxy Card Min Width",displayGlobalByMode:"Display GLOBAL By Mode",proxyCountMode:"Proxies Count Mode",filteredTotal:"Filtered Total",total:"Total",aliveTotal:"Alive / Total",displaySelectedNode:"Display Selected Node",displayLatencyNumber:"Display Latency",tipForFixed:"The current policy group is locked to the current node. Perform a speedtest to restore the urltest/fallback behavior.",remoteAddress:"Remote Address"},noe={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загружено",upload:"Отправлено",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость отдачи",memoryUsage:"Память",version:"Версия",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",chains:"Цепочки",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",connectTime:"Время",sourcePort:"Исходный порт",destination:"Финальное назначение",destinationType:"Тип назначения",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Отдч",dlSpeed:"Загрузка",ulSpeed:"Отдача",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",customCardLines:"Пользовательские строчки карточки",close:"Закрыть",defaultTheme:"Тема по умолчанию",darkTheme:"Темная тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновление все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",updateGeoDatabase:"Обновить GEO",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",unavailableProxy:"Скрыть недоступное",protocolTips:"Вы пытаетесь подключиться к http-бэкенду, но панель управления обслуживается через https. Это может вызвать ошибку подключения. Пожалуйста, разрешите небезопасный контент в настройках браузера. Настройки находятся слева от адресной строки.",global:"Глобальный",direct:"Прямой",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",unauthorizedTip:"Не авторизован, пожалуйста, войдите снова.",restartCore:"Перезапустить ядро",checkUpgrade:"Проверить обновления",autoUpgrade:"Автоматическое обновление",secondaryPath:"Дополнительный путь",secondaryPathTip:'Если присутствует, начните с "/", в противном случае оставьте пустым.',logRetentionLimit:"Лимит хранения журнала",DNSQuery:"DNS-запрос",currentBackendUnavailable:"Текущий бэкенд недоступен. Попробуйте переключиться на другой бэкенд?",confirm:"Подтвердить",backendSwitchTo:"Автоматическое переключение на {backend}",ipv6Test:"IPv6-тест",socksPort:"Порт Socks",httpPort:"Порт HTTP",mixedPort:"Порт Mixed",redirPort:"Порт Redir",tproxyPort:"Порт TProxy",tableSize:"Размер таблицы",proxyCardSize:"Размер карточки прокси",small:"Маленький",normal:"Нормальный",large:"Большой",autoIPCheckWhenStart:"Автоматическая проверка IP при запуске",autoConnectionCheckWhenStart:"Автоматическая проверка соединений при запуске",chinaIP:"IP для Китая",globalIP:"Мировой IP",networkInfo:"Информация о сети",autoSwitchTheme:"Автоматический темы",customBackgroundURL:"URL фона",splitOverviewPage:"Разделить страницу с обзором",manageHiddenGroup:"Управление скрытыми группами",showIPAndConnectionInfo:"Показать IP и информацию о соединениях",transparent:"Прозрачность",iconSize:"Размер иконки",iconMarginRight:"Отступ правой иконки",allowLan:"Разрешить локальную сеть",proxyChainDirection:"Направление цепочки прокси",reverse:"Обратное",sniffHost:"Захватывать хост",ipScreenshotTip:"Пожалуйста, убедитесь, что реальный IP скрыт при создании скриншотов.",showStatisticsWhenSidebarCollapsed:"Показать статистику при сворачивании панели",totalConnections:"Всего соединений",mostDownloadHost:"Ресурс с наибольшим скачиванием",mostUploadHost:"Ресурс с наибольшей отправкой данных",mostDownloadSourceIP:"IP-источник с наибольшим скачиванием",mostUploadSourceIP:"IP-источник с наибольшей отдачей",mostDownloadProxy:"Прокси с наибольшим скачиванием",mostUploadProxy:"Прокси с наибольшей отдачей",manual:"Ручной",tableWidthMode:"Режим ширины таблицы",testFinishedTip:"{number} Тест завершен",updateFinishedTip:"{number} Обновление завершено",independentLatencyTest:"Независимый тест задержки",independentLatencyTestTip:"Включение независимого тестирования задержки попытается использовать URL-адреса, указанные в конфигурационном файле, вместо настроек URL-адресов в панели управления во время теста задержки. Задержка будет отображаться отдельно на основе URL-адресов, установленных в группах политик.",search:"Поиск",allSourceIP:"Все IP-источники",importing:"Импортируется",hideConnection:"Скрыть соединение",hideConnectionRegex:"Скрыть соединение Regex",hideConnectionTip:"Используйте регистронезависимое регулярное выражение, чтобы найти и скрыть нежелательные соединения.",loadBalance:"Балансировка нагрузки",label:"Метка",optional:"Необязательно",swipeInTabs:"Провести для переключения вкладок",simpleCardPreset:"Простой",detailedCardPreset:"Подробный",refresh:"Обновить",reset:"Сбросить",minProxyCardWidth:"Минимальная ширина карточки прокси",displayGlobalByMode:"Отображать GLOBAL по режиму",proxyCountMode:"Режим подсчета прокси",filteredTotal:"Отфильтровано всего",total:"Всего",aliveTotal:"Живых / всего",displaySelectedNode:"Отображать выбранный узел",displayLatencyNumber:"Отображать задержку",tipForFixed:"Текущая стратегическая группа закреплена за текущим узлом. Нажмите «Тест скорости», чтобы восстановить поведение urltest/fallback.",remoteAddress:"удалённый адрес"},roe={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",noContent:"无内容",flushFakeIP:"清空Fake IP",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",connectTime:"连接时间",sourcePort:"源端口",destination:"最终目标",destinationType:"目标类型",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",customCardLines:"自定义卡片行",close:"关闭",defaultTheme:"默认主题",darkTheme:"深色主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"面板语言",automaticDisconnection:"切换节点时自动断开连接",backend:"后端",upgradeCore:"更新核心",updateGeoDatabase:"更新GEO",tunMode:"Tun 模式",truncateProxyName:"截断节点名称",sourceIPLabels:"源IP标签",proxyPreviewType:"节点预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",unavailableProxy:"隐藏不可用节点",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"面板字体",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",checkUpgrade:"检查更新",autoUpgrade:"自动更新",secondaryPath:"二级路径",secondaryPathTip:"如果有的话以/开头,没有则留空不填",logRetentionLimit:"日志保留条数",DNSQuery:"DNS 查询",currentBackendUnavailable:"当前后端不可用,尝试切换到其他后端?",confirm:"确定",backendSwitchTo:"自动切换到{backend}",ipv6Test:"IPv6 测试",socksPort:"Socks 端口",httpPort:"HTTP 端口",mixedPort:"Mixed 端口",redirPort:"Redir 端口",tproxyPort:"TProxy 端口",tableSize:"表格尺寸",proxyCardSize:"节点卡片尺寸",small:"小",normal:"正常",large:"大",autoIPCheckWhenStart:"自动检查 IP",autoConnectionCheckWhenStart:"自动检查连接",chinaIP:"中国大陆 IP",globalIP:"全球节点 IP",networkInfo:"网络信息",autoSwitchTheme:"自动切换主题",customBackgroundURL:"背景 URL",splitOverviewPage:"分离概览页",manageHiddenGroup:"管理隐藏代理组",showIPAndConnectionInfo:"显示 IP 和连接信息",transparent:"透明度",iconSize:"图标尺寸",iconMarginRight:"图标间距",allowLan:"允许局域网",proxyChainDirection:"代理链方向",reverse:"反向",sniffHost:"嗅探主机",ipScreenshotTip:"截图时请确保隐藏IP",showStatisticsWhenSidebarCollapsed:"侧边栏折叠时显示统计",totalConnections:"总连接数",mostDownloadHost:"最多下载主机",mostUploadHost:"最多上传主机",mostDownloadSourceIP:"最多下载源IP",mostUploadSourceIP:"最多上传源IP",mostDownloadProxy:"最多下载节点",mostUploadProxy:"最多上传节点",manual:"手动",tableWidthMode:"表格宽度模式",testFinishedTip:"{number} 测试完成",updateFinishedTip:"{number} 更新完成",independentLatencyTest:"独立延迟测试",independentLatencyTestTip:"开启独立延迟测试会在测速中尽可能的使用配置文件中的url覆盖面板设置的url,并展示根据策略组设置的url获取的延迟。",search:"搜索",allSourceIP:"全部源IP",importing:"正在导入",hideConnection:"隐藏连接",hideConnectionRegex:"隐藏连接正则",hideConnectionTip:"可通过不区分大小写的正则表达式来匹配并隐藏不需要看到的连接",loadBalance:"负载均衡",label:"标签",optional:"可选",swipeInTabs:"滑动切换页面二级标签",simpleCardPreset:"简洁预设",detailedCardPreset:"详细预设",refresh:"刷新",reset:"重置",minProxyCardWidth:"节点卡片最小宽度",displayGlobalByMode:"根据模式显示 GLOBAL",proxyCountMode:"节点计数模式",filteredTotal:"过滤后总数",total:"总数",aliveTotal:"可用 / 总数",displaySelectedNode:"显示选中节点",displayLatencyNumber:"显示延迟数字",tipForFixed:"当前策略组被固定在了当前节点,点击测速来恢复urltest/fallback行为",remoteAddress:"远端地址"},Dm=Gie({locale:Su.value,messages:{[_s.EN_US]:toe,[_s.ZH_CN]:roe,[_s.RU_RU]:noe}}),iC=De(!1),IN=De(),RN=De("alert-warning"),ioe=Dm.global.t;let oC=-1;const ed=()=>({showNotification:({content:t,params:n={},type:r="alert-warning",timeout:i=5e3})=>{clearTimeout(oC),RN.value=r,iC.value=!0,IN.value=ioe(t,n),i!==0&&(oC=setTimeout(()=>{iC.value=!1,oC=-1},i))},tipType:RN,tipShowModel:iC,tipContent:IN}),ooe={key:0,class:"toast-sm toast toast-end toast-top z-50 max-w-64 text-sm opacity-80 md:translate-y-8"},aoe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},soe=nt({__name:"App",setup(e){const t=De(),{tipContent:n,tipShowModel:r,tipType:i}=ed(),o={[mu.MI_SANS]:"font-MiSans",[mu.SARASA_UI]:"font-SarasaUI",[mu.PING_FANG]:"font-PingFang",[mu.FIRA_SANS]:"font-FiraSans",[mu.SYSTEM_UI]:"font-SystemUI"},a=Ce(()=>o[Yv.value]),s=po().format("YYYY-MM-DD"),l=De(""),u=async()=>{l.value=await Bne()||""};Bt(()=>za.value,()=>{za.value.includes(U1)&&u()},{immediate:!0});const c=Ce(()=>za.value?za.value.includes(U1)?`background-image: url('${l.value}');`:`background-image: url('${za.value}?v=${s}');`:""),f=()=>{const d=getComputedStyle(t.value).getPropertyValue("background-color").trim(),h=document.querySelector('meta[name="theme-color"]');h&&h.setAttribute("content",d)};return Bt(IV,f),Vo(()=>{Bt(NE,()=>{document.body.setAttribute("data-theme",NE.value),f()},{immediate:!0})}),(d,h)=>(Y(),te("div",{ref_key:"app",ref:t,id:"app-content",class:gt(["bg-base-100 flex h-dvh w-screen overflow-x-hidden",a.value,c.value&&`custom-background-${B(P_)} custom-background bg-cover bg-center`]),style:pr(c.value)},[G(B(P2)),B(r)?(Y(),te("div",ooe,[L("div",{class:gt(["breaks-all alert flex p-2 whitespace-normal",B(i)])},[L("a",aoe,ie(B(n)),1),L("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:h[0]||(h[0]=v=>r.value=!1)},[G(B(ate),{class:"w-4 cursor-pointer"})])],2)])):at("",!0)],6))}}),da=pt("setup/api-list",[]),vi=pt("setup/active-uuid",""),Lo=Ce(()=>da.value.find(e=>e.uuid===vi.value)),loe=e=>{const t=da.value.find(r=>mr.isEqual(mr.omit(r,"uuid"),e));if(t){vi.value=t.uuid;return}const n=$2();da.value.push({...e,uuid:n}),vi.value=n},JV=e=>{da.value=da.value.filter(t=>t.uuid!==e)};function QV(e,t){return function(){return e.apply(t,arguments)}}const{toString:uoe}=Object.prototype,{getPrototypeOf:Y2}=Object,gS=(e=>t=>{const n=uoe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),es=e=>(e=e.toLowerCase(),t=>gS(t)===e),mS=e=>t=>typeof t===e,{isArray:np}=Array,Yg=mS("undefined");function coe(e){return e!==null&&!Yg(e)&&e.constructor!==null&&!Yg(e.constructor)&&No(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eU=es("ArrayBuffer");function foe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eU(e.buffer),t}const doe=mS("string"),No=mS("function"),tU=mS("number"),yS=e=>e!==null&&typeof e=="object",hoe=e=>e===!0||e===!1,z_=e=>{if(gS(e)!=="object")return!1;const t=Y2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},poe=es("Date"),voe=es("File"),goe=es("Blob"),moe=es("FileList"),yoe=e=>yS(e)&&No(e.pipe),_oe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||No(e.append)&&((t=gS(e))==="formdata"||t==="object"&&No(e.toString)&&e.toString()==="[object FormData]"))},boe=es("URLSearchParams"),[Soe,woe,xoe,Coe]=["ReadableStream","Request","Response","Headers"].map(es),Toe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lm(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),np(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function nU(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const nf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rU=e=>!Yg(e)&&e!==nf;function JE(){const{caseless:e}=rU(this)&&this||{},t={},n=(r,i)=>{const o=e&&nU(t,i)||i;z_(t[o])&&z_(r)?t[o]=JE(t[o],r):z_(r)?t[o]=JE({},r):np(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Lm(arguments[r],n);return t}const Eoe=(e,t,n,{allOwnKeys:r}={})=>(Lm(t,(i,o)=>{n&&No(i)?e[o]=QV(i,n):e[o]=i},{allOwnKeys:r}),e),Aoe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ioe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Roe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Y2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Poe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Moe=e=>{if(!e)return null;if(np(e))return e;let t=e.length;if(!tU(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ooe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Y2(Uint8Array)),Doe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Loe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Noe=es("HTMLFormElement"),koe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),PN=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Foe=es("RegExp"),iU=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lm(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},$oe=e=>{iU(e,(t,n)=>{if(No(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(No(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Boe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return np(e)?r(e):r(String(e).split(t)),n},Voe=()=>{},Uoe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Hoe(e){return!!(e&&No(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const zoe=e=>{const t=new Array(10),n=(r,i)=>{if(yS(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=np(r)?[]:{};return Lm(r,(a,s)=>{const l=n(a,i+1);!Yg(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Goe=es("AsyncFunction"),Woe=e=>e&&(yS(e)||No(e))&&No(e.then)&&No(e.catch),oU=((e,t)=>e?setImmediate:t?((n,r)=>(nf.addEventListener("message",({source:i,data:o})=>{i===nf&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),nf.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",No(nf.postMessage)),joe=typeof queueMicrotask<"u"?queueMicrotask.bind(nf):typeof process<"u"&&process.nextTick||oU,be={isArray:np,isArrayBuffer:eU,isBuffer:coe,isFormData:_oe,isArrayBufferView:foe,isString:doe,isNumber:tU,isBoolean:hoe,isObject:yS,isPlainObject:z_,isReadableStream:Soe,isRequest:woe,isResponse:xoe,isHeaders:Coe,isUndefined:Yg,isDate:poe,isFile:voe,isBlob:goe,isRegExp:Foe,isFunction:No,isStream:yoe,isURLSearchParams:boe,isTypedArray:Ooe,isFileList:moe,forEach:Lm,merge:JE,extend:Eoe,trim:Toe,stripBOM:Aoe,inherits:Ioe,toFlatObject:Roe,kindOf:gS,kindOfTest:es,endsWith:Poe,toArray:Moe,forEachEntry:Doe,matchAll:Loe,isHTMLForm:Noe,hasOwnProperty:PN,hasOwnProp:PN,reduceDescriptors:iU,freezeMethods:$oe,toObjectSet:Boe,toCamelCase:koe,noop:Voe,toFiniteNumber:Uoe,findKey:nU,global:nf,isContextDefined:rU,isSpecCompliantForm:Hoe,toJSONObject:zoe,isAsyncFn:Goe,isThenable:Woe,setImmediate:oU,asap:joe};function zt(e,t,n,r,i){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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}be.inherits(zt,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:be.toJSONObject(this.config),code:this.code,status:this.status}}});const aU=zt.prototype,sU={};["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=>{sU[e]={value:e}});Object.defineProperties(zt,sU);Object.defineProperty(aU,"isAxiosError",{value:!0});zt.from=(e,t,n,r,i,o)=>{const a=Object.create(aU);return be.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),zt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Xoe=null;function QE(e){return be.isPlainObject(e)||be.isArray(e)}function lU(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function MN(e,t,n){return e?e.concat(t).map(function(i,o){return i=lU(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Yoe(e){return be.isArray(e)&&!e.some(QE)}const Koe=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function _S(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!be.isUndefined(_[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(be.isDate(v))return v.toISOString();if(!l&&be.isBlob(v))throw new zt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(v)||be.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,_){let y=v;if(v&&!_&&typeof v=="object"){if(be.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&Yoe(v)||(be.isFileList(v)||be.endsWith(m,"[]"))&&(y=be.toArray(v)))return m=lU(m),y.forEach(function(b,w){!(be.isUndefined(b)||b===null)&&t.append(a===!0?MN([m],w,o):a===null?m:m+"[]",u(b))}),!1}return QE(v)?!0:(t.append(MN(_,m,o),u(v)),!1)}const f=[],d=Object.assign(Koe,{defaultVisitor:c,convertValue:u,isVisitable:QE});function h(v,m){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),be.forEach(v,function(y,S){(!(be.isUndefined(y)||y===null)&&i.call(t,y,be.isString(S)?S.trim():S,m,d))===!0&&h(y,m?m.concat(S):[S])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ON(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function K2(e,t){this._pairs=[],e&&_S(e,this,t)}const uU=K2.prototype;uU.append=function(t,n){this._pairs.push([t,n])};uU.toString=function(t){const n=t?function(r){return t.call(this,r,ON)}:ON;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Zoe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cU(e,t,n){if(!t)return e;const r=n&&n.encode||Zoe;be.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=be.isURLSearchParams(t)?t.toString():new K2(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class DN{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){be.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qoe=typeof URLSearchParams<"u"?URLSearchParams:K2,Joe=typeof FormData<"u"?FormData:null,Qoe=typeof Blob<"u"?Blob:null,eae={isBrowser:!0,classes:{URLSearchParams:qoe,FormData:Joe,Blob:Qoe},protocols:["http","https","file","blob","url","data"]},Z2=typeof window<"u"&&typeof document<"u",eA=typeof navigator=="object"&&navigator||void 0,tae=Z2&&(!eA||["ReactNative","NativeScript","NS"].indexOf(eA.product)<0),nae=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rae=Z2&&window.location.href||"http://localhost",iae=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z2,hasStandardBrowserEnv:tae,hasStandardBrowserWebWorkerEnv:nae,navigator:eA,origin:rae},Symbol.toStringTag,{value:"Module"})),gi={...iae,...eae};function oae(e,t){return _S(e,new gi.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return gi.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function aae(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sae(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function dU(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=sae(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,i)=>{t(aae(r),i,n,0)}),n}return null}function lae(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Nm={transitional:fU,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(t);if(o&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(dU(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return oae(t,this.formSerializer).toString();if((s=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _S(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),lae(t)):t}],transformResponse:[function(t){const n=this.transitional||Nm.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?zt.from(s,zt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gi.classes.FormData,Blob:gi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{Nm.headers[e]={}});const uae=be.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"]),cae=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&uae[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},LN=Symbol("internals");function Up(e){return e&&String(e).trim().toLowerCase()}function G_(e){return e===!1||e==null?e:be.isArray(e)?e.map(G_):String(e)}function fae(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dae=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aC(e,t,n,r,i){if(be.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!be.isString(t)){if(be.isString(r))return t.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(t)}}function hae(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pae(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let uo=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Up(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=G_(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(be.isString(t)&&(t=t.trim())&&!dae(t))a(cae(t),n);else if(be.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Up(t),t){const r=be.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return fae(i);if(be.isFunction(n))return n.call(this,i,r);if(be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Up(t),t){const r=be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||aC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Up(a),a){const s=be.findKey(r,a);s&&(!n||aC(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||aC(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=G_(i),delete n[o];return}const s=t?hae(o):String(o).trim();s!==o&&delete n[o],n[s]=G_(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&be.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[LN]=this[LN]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Up(a);r[s]||(pae(i,a),r[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}};uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(uo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(uo);function sC(e,t){const n=this||Nm,r=t||n,i=uo.from(r.headers);let o=r.data;return be.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function hU(e){return!!(e&&e.__CANCEL__)}function rp(e,t,n){zt.call(this,e??"canceled",zt.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(rp,zt,{__CANCEL__:!0});function pU(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new zt("Request failed with status code "+n.status,[zt.ERR_BAD_REQUEST,zt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function vae(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gae(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function mae(e,t){let n=0,r=1e3/t,i,o;const a=(u,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const z1=(e,t,n=3)=>{let r=0;const i=gae(50,250);return mae(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},NN=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kN=e=>(...t)=>be.asap(()=>e(...t)),yae=gi.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,gi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(gi.origin),gi.navigator&&/(msie|trident)/i.test(gi.navigator.userAgent)):()=>!0,_ae=gi.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),be.isString(r)&&a.push("path="+r),be.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bae(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sae(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vU(e,t,n){let r=!bae(t);return e&&r||n==!1?Sae(e,t):t}const FN=e=>e instanceof uo?{...e}:e;function Ff(e,t){t=t||{};const n={};function r(u,c,f,d){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:d},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,d){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!be.isUndefined(c))return r(void 0,c)}function a(u,c){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,f)=>i(FN(u),FN(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const gU=e=>{const t=Ff({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=uo.from(a),t.url=cU(vU(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(n)){if(gi.hasStandardBrowserEnv||gi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(gi.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&yae(t.url))){const u=i&&o&&_ae.read(o);u&&a.set(i,u)}return t},wae=typeof XMLHttpRequest<"u",xae=wae&&function(e){return new Promise(function(n,r){const i=gU(e);let o=i.data;const a=uo.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,v;function m(){h&&h(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function y(){if(!_)return;const b=uo.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:b,config:e,request:_};pU(function(E){n(E),m()},function(E){r(E),m()},T),_=null}"onloadend"in _?_.onloadend=y:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(y)},_.onabort=function(){_&&(r(new zt("Request aborted",zt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new zt("Network Error",zt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||fU;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),r(new zt(w,T.clarifyTimeoutError?zt.ETIMEDOUT:zt.ECONNABORTED,e,_)),_=null},o===void 0&&a.setContentType(null),"setRequestHeader"in _&&be.forEach(a.toJSON(),function(w,T){_.setRequestHeader(T,w)}),be.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),s&&s!=="json"&&(_.responseType=i.responseType),u&&([d,v]=z1(u,!0),_.addEventListener("progress",d)),l&&_.upload&&([f,h]=z1(l),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=b=>{_&&(r(!b||b.type?new rp(null,e,_):b),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=vae(i.url);if(S&&gi.protocols.indexOf(S)===-1){r(new zt("Unsupported protocol "+S+":",zt.ERR_BAD_REQUEST,e));return}_.send(o||null)})},Cae=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof zt?c:new rp(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new zt(`timeout ${t} of ms exceeded`,zt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>be.asap(s),l}},Tae=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Eae=async function*(e,t){for await(const n of Aae(e))yield*Tae(n,t)},Aae=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},$N=(e,t,n,r)=>{const i=Eae(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(n){let d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},bS=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mU=bS&&typeof ReadableStream=="function",Iae=bS&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yU=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rae=mU&&yU(()=>{let e=!1;const t=new Request(gi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),BN=64*1024,tA=mU&&yU(()=>be.isReadableStream(new Response("").body)),G1={stream:tA&&(e=>e.body)};bS&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!G1[t]&&(G1[t]=be.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new zt(`Response type '${t}' is not supported`,zt.ERR_NOT_SUPPORT,r)})})})(new Response);const Pae=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(gi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await Iae(e)).byteLength},Mae=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??Pae(t)},Oae=bS&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=gU(e);u=u?(u+"").toLowerCase():"text";let h=Cae([i,o&&o.toAbortSignal()],a),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let _;try{if(l&&Rae&&n!=="get"&&n!=="head"&&(_=await Mae(c,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(be.isFormData(r)&&(C=T.headers.get("content-type"))&&c.setContentType(C),T.body){const[E,R]=NN(_,z1(kN(l)));r=$N(T.body,BN,E,R)}}be.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let S=await fetch(v);const b=tA&&(u==="stream"||u==="response");if(tA&&(s||b&&m)){const T={};["status","statusText","headers"].forEach(I=>{T[I]=S[I]});const C=be.toFiniteNumber(S.headers.get("content-length")),[E,R]=s&&NN(C,z1(kN(s),!0))||[];S=new Response($N(S.body,BN,E,()=>{R&&R(),m&&m()}),T)}u=u||"text";let w=await G1[be.findKey(G1,u)||"text"](S,e);return!b&&m&&m(),await new Promise((T,C)=>{pU(T,C,{data:w,headers:uo.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:v})})}catch(y){throw m&&m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new zt("Network Error",zt.ERR_NETWORK,e,v),{cause:y.cause||y}):zt.from(y,y&&y.code,e,v)}}),nA={http:Xoe,xhr:xae,fetch:Oae};be.forEach(nA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const VN=e=>`- ${e}`,Dae=e=>be.isFunction(e)||e===null||e===!1,_U={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!Dae(n)&&(r=nA[(a=String(n)).toLowerCase()],r===void 0))throw new zt(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
||
`+o.map(VN).join(`
|
||
`):" "+VN(o[0]):"as no adapter specified";throw new zt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:nA};function lC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rp(null,e)}function UN(e){return lC(e),e.headers=uo.from(e.headers),e.data=sC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_U.getAdapter(e.adapter||Nm.adapter)(e).then(function(r){return lC(e),r.data=sC.call(e,e.transformResponse,r),r.headers=uo.from(r.headers),r},function(r){return hU(r)||(lC(e),r&&r.response&&(r.response.data=sC.call(e,e.transformResponse,r.response),r.response.headers=uo.from(r.response.headers))),Promise.reject(r)})}const bU="1.8.2",SS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{SS[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const HN={};SS.transitional=function(t,n,r){function i(o,a){return"[Axios v"+bU+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new zt(i(a," has been removed"+(n?" in "+n:"")),zt.ERR_DEPRECATED);return n&&!HN[a]&&(HN[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};SS.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Lae(e,t,n){if(typeof e!="object")throw new zt("options must be an object",zt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new zt("option "+o+" must be "+l,zt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new zt("Unknown option "+o,zt.ERR_BAD_OPTION)}}const W_={assertOptions:Lae,validators:SS},ls=W_.validators;let Cf=class{constructor(t){this.defaults=t,this.interceptors={request:new DN,response:new DN}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ff(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&W_.assertOptions(r,{silentJSONParsing:ls.transitional(ls.boolean),forcedJSONParsing:ls.transitional(ls.boolean),clarifyTimeoutError:ls.transitional(ls.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:W_.assertOptions(i,{encode:ls.function,serialize:ls.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),W_.assertOptions(n,{baseUrl:ls.spelling("baseURL"),withXsrfToken:ls.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[n.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=uo.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const v=[UN.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const v=s[f++],m=s[f++];try{h=v(h)}catch(_){m.call(this,_);break}}try{c=UN.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Ff(this.defaults,t);const n=vU(t.baseURL,t.url,t.allowAbsoluteUrls);return cU(n,t.params,t.paramsSerializer)}};be.forEach(["delete","get","head","options"],function(t){Cf.prototype[t]=function(n,r){return this.request(Ff(r||{},{method:t,url:n,data:(r||{}).data}))}});be.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Ff(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Cf.prototype[t]=n(),Cf.prototype[t+"Form"]=n(!0)});let Nae=class SU{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new rp(o,a,s),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new SU(function(i){t=i}),cancel:t}}};function kae(e){return function(n){return e.apply(null,n)}}function Fae(e){return be.isObject(e)&&e.isAxiosError===!0}const rA={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(rA).forEach(([e,t])=>{rA[t]=e});function wU(e){const t=new Cf(e),n=QV(Cf.prototype.request,t);return be.extend(n,Cf.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wU(Ff(e,i))},n}const Ut=wU(Nm);Ut.Axios=Cf;Ut.CanceledError=rp;Ut.CancelToken=Nae;Ut.isCancel=hU;Ut.VERSION=bU;Ut.toFormData=_S;Ut.AxiosError=zt;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=kae;Ut.isAxiosError=Fae;Ut.mergeConfig=Ff;Ut.AxiosHeaders=uo;Ut.formToJSON=e=>dU(be.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=_U.getAdapter;Ut.HttpStatusCode=rA;Ut.default=Ut;const{Axios:d2e,AxiosError:h2e,CanceledError:p2e,isCancel:v2e,CancelToken:g2e,VERSION:m2e,all:y2e,Cancel:_2e,isAxiosError:b2e,spread:S2e,toFormData:w2e,AxiosHeaders:x2e,HttpStatusCode:C2e,formToJSON:T2e,getAdapter:E2e,mergeConfig:A2e}=Ut;var j_={exports:{}},$ae=j_.exports,zN;function Bae(){return zN||(zN=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})($ae,function(){if(!("WebSocket"in window))return;function t(n,r,i){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};i||(i={});for(var a in o)typeof i[a]<"u"?this[a]=i[a]:this[a]=o[a];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,l,u=!1,c=!1,f=document.createElement("div");f.addEventListener("open",function(h){s.onopen(h)}),f.addEventListener("close",function(h){s.onclose(h)}),f.addEventListener("connecting",function(h){s.onconnecting(h)}),f.addEventListener("message",function(h){s.onmessage(h)}),f.addEventListener("error",function(h){s.onerror(h)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function d(h,v){var m=document.createEvent("CustomEvent");return m.initCustomEvent(h,!1,!1,v),m}this.open=function(h){if(l=new WebSocket(s.url,r||[]),h){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(d("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var v=l,m=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,v.close(),c=!1},s.timeoutInterval);l.onopen=function(_){clearTimeout(m),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var y=d("open");y.isReconnect=h,h=!1,f.dispatchEvent(y)},l.onclose=function(_){if(clearTimeout(S),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(d("close"));else{s.readyState=WebSocket.CONNECTING;var y=d("connecting");y.code=_.code,y.reason=_.reason,y.wasClean=_.wasClean,f.dispatchEvent(y),!h&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(d("close")));var S=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},S>s.maxReconnectInterval?s.maxReconnectInterval:S)}},l.onmessage=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,_.data);var y=d("message");y.data=_.data,f.dispatchEvent(y)},l.onerror=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,_),f.dispatchEvent(d("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(h){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,h),l.send(h);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(h,v){typeof h>"u"&&(h=1e3),u=!0,l&&l.close(h,v)},this.refresh=function(){l&&l.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})}(j_)),j_.exports}var Vae=Bae();const Uae=bm(Vae);Ut.interceptors.request.use(e=>{var t;return e.baseURL=zu(Lo.value),e.headers.Authorization="Bearer "+((t=Lo.value)==null?void 0:t.password),e});Ut.interceptors.response.use(null,e=>(e.status===401&&vi.value&&(JV(vi.value),vi.value=null,Ds.push({name:jt.setup}),Qa(()=>{const{showNotification:t}=ed();t({content:"unauthorizedTip"})})),e));const Oh=De(),W1=De(!1),Hae=()=>Ut.get("/version"),_l=Ce(()=>{var e;return(e=Oh.value)==null?void 0:e.includes("sing-box")}),xU=De("1.73.1");Bt(Lo,async e=>{var t;if(e){const{data:n}=await Hae();if(Oh.value=n.version,_l.value||!Xd.value||(t=Lo.value)!=null&&t.disableUpgradeCore)return;W1.value=await ase(),W1.value&&wv.value&&AU()}},{immediate:!0});const zae=()=>Ut.get("/proxies"),Gae=(e,t)=>Ut.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),GN=(e,t,n)=>Ut.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),WN=(e,t,n)=>Ut.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),Wae=()=>Ut.get("/providers/proxies"),CU=e=>Ut.put(`/providers/proxies/${encodeURIComponent(e)}`),jae=e=>Ut.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Xae=()=>Ut.get("/rules"),Yae=()=>Ut.get("/providers/rules"),TU=e=>Ut.put(`/providers/rules/${encodeURIComponent(e)}`),wS=e=>Ut.delete(`/connections/${e}`),Kae=()=>Ut.get("/configs"),Zae=e=>Ut.patch("/configs",e),jN=()=>Ut.post("/cache/fakeip/flush"),qae=()=>Ut.put("/configs?reload=true",{path:"",payload:""}),EU=()=>Ut.post("/upgrade/ui"),Jae=()=>Ut.post("/configs/geo"),AU=()=>Ut.post("/upgrade"),Qae=()=>Ut.post("/restart"),ese=e=>Ut.get("/dns/query",{params:e}),xS=(e,t)=>{const n=Lo.value,r=new URL(`${zu(n).replace("http","ws")}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([l,u])=>{r.searchParams.append(l,u)});const i=De(),o=new Uae(r.toString()),a=()=>{o.close()},s=({data:l})=>{i.value=JSON.parse(l)};return o.onmessage=e==="logs"?s:mr.debounce(s,100),{data:i,close:a}},tse=()=>xS("connections"),nse=(e={})=>xS("logs",e),rse=()=>xS("memory"),ise=()=>xS("traffic"),XN=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${zu(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},ose=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${xU.value}`},YN=async(e,t)=>{const n=await fetch(`https://api.github.com/repos/MetaCubeX/mihomo${e}`),{assets:r}=await n.json();return!r.some(({name:o})=>o.includes(t))},ase=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(Oh.value);if(!e){const r=await fetch("https://api.github.com/repos/MetaCubeX/mihomo/releases/latest"),{tag_name:i}=await r.json();return i&&!i.endsWith(Oh.value)}const t=e[1],n=e[2];return t==="meta"?await YN("/releases/latest",n):t==="alpha"?await YN("/releases/tags/Prerelease-Alpha",n):!1},q2=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:""))).json(),sse=async()=>await(await fetch("https://myip.ipip.net/json")).json(),CS=e=>new Promise(t=>{const n=performance.now(),r=document.createElement("img");r.src=e+"?_="+new Date().getTime(),r.style.display="none",r.onload=()=>{const i=performance.now();r.remove(),t(i-n)},r.onerror=()=>{r.remove(),t(0)},document.body.appendChild(r)}),lse=()=>CS("https://www.cloudflare.com/favicon.ico"),use=()=>CS("https://yt3.ggpht.com/favicon.ico"),cse=()=>CS("https://github.githubassets.com/favicon.ico"),fse=()=>CS("https://apps.bdimg.com/favicon.ico"),$r=De({port:0,"socks-port":0,"redir-port":0,"tproxy-port":0,"mixed-port":0,"allow-lan":!1,"bind-address":"",mode:"","mode-list":[],modes:[],"log-level":"",ipv6:!1,tun:{enable:!1}}),J2=async()=>{$r.value=(await Kae()).data},X_=async e=>{await Zae(e),J2()};class dse{constructor(t){Nx(this,"value");Nx(this,"next");this.value=t}}var ra,ff,df;class hse{constructor(){jy(this,ra);jy(this,ff);jy(this,df);this.clear()}enqueue(t){const n=new dse(t);as(this,ra)?(as(this,ff).next=n,Ys(this,ff,n)):(Ys(this,ra,n),Ys(this,ff,n)),kx(this,df)._++}dequeue(){const t=as(this,ra);if(t)return Ys(this,ra,as(this,ra).next),kx(this,df)._--,t.value}peek(){if(as(this,ra))return as(this,ra).value}clear(){Ys(this,ra,void 0),Ys(this,ff,void 0),Ys(this,df,0)}get size(){return as(this,df)}*[Symbol.iterator](){let t=as(this,ra);for(;t;)yield t.value,t=t.next}*drain(){let t;for(;(t=this.dequeue())!==void 0;)yield t}}ra=new WeakMap,ff=new WeakMap,df=new WeakMap;function pse(e){KN(e);const t=new hse;let n=0;const r=()=>{n<e&&t.size>0&&(t.dequeue()(),n++)},i=()=>{n--,r()},o=async(l,u,c)=>{const f=(async()=>l(...c))();u(f);try{await f}catch{}i()},a=(l,u,c)=>{new Promise(f=>{t.enqueue(f)}).then(o.bind(void 0,l,u,c)),(async()=>(await Promise.resolve(),n<e&&r()))()},s=(l,...u)=>new Promise(c=>{a(l,c,u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(l){KN(l),e=l,queueMicrotask(()=>{for(;n<e&&t.size>0;)r()})}}}),s}function KN(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const bs=De([]),eg=De([]),iA=De(0),oA=De(0);let u0;const vse=()=>{u0==null||u0(),bs.value=[],eg.value=[],iA.value=0,oA.value=0;const e=tse(),t=Bt(e.data,n=>{var r;n&&(iA.value=n.downloadTotal,oA.value=n.uploadTotal,!K_.value&&(eg.value=[...eg.value,...mr.differenceWith(bs.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),bs.value=((r=n.connections)==null?void 0:r.map(i=>{const o=bs.value.find(a=>a.id===i.id);return(i.metadata.destinationPort==="443"||i.metadata.sniffHost)&&i.metadata.network==="udp"&&(i.metadata.network="quic"),o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});u0=()=>{t(),e.close()}},j1=pt("config/quick-filter-regex","direct|dns-out"),aA=pt("config/quick-filter-enabled",!1),hh=De(Mm.ACTIVE),gse=Ce(()=>Y_.value===Qc.DESC),ZN={[eo.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[eo.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[eo.CHAINS]:(e,t)=>cA(e).localeCompare(cA(t)),[eo.DOWNLOAD]:(e,t)=>e.download-t.download,[eo.DOWNLOAD_SPEED]:(e,t)=>e.downloadSpeed-t.downloadSpeed,[eo.UPLOAD]:(e,t)=>e.upload-t.upload,[eo.UPLOAD_SPEED]:(e,t)=>e.uploadSpeed-t.uploadSpeed,[eo.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[eo.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[eo.CONNECT_TIME]:(e,t)=>po(e.start).valueOf()-po(t.start).valueOf()},sA=pt("config/connection-sort-type",eo.HOST),Y_=pt("config/connection-sort-direction",Qc.ASC),X1=De(""),rl=De(null),K_=De(!1),ph=Ce(()=>hh.value===Mm.ACTIVE?bs.value:eg.value),Dh=Ce(()=>{let e=null;return aA.value&&j1.value&&(e=new RegExp(j1.value,"i")),ph.value.filter(t=>{const n=[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.sniffHost,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload];return rl.value!==null&&t.metadata.sourceIP!==rl.value||e&&n.some(i=>e.test(i))?!1:X1.value?n.some(r=>r==null?void 0:r.includes(X1.value)):!0}).sort((t,n)=>{Mo.value&&gse.value&&([t,n]=[n,t]);const r=Mo.value?ZN[sA.value](t,n):ZN[eo.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),tg="GLOBAL",Y1=De([]),Jr=De({}),Lh=pt("config/ipv6-map",{}),bl=pt("config/hidden-group-map",{}),Tf=De([]),Q2=e=>{const t=wf.value||bV;if(!e)return t;const n=Jr.value[e];return fh.value&&n.testUrl?n.testUrl:t},km=(e,t)=>{const n=IU(e,t);return Sse(n)},IU=(e,t)=>{var r,i;if(fh.value&&!_l.value){const o=Jr.value[e];return(i=(r=o==null?void 0:o.extra)==null?void 0:r[Q2(t)])==null?void 0:i.history}const n=Jr.value[$f(e)];return n==null?void 0:n.history},mse=e=>Lh.value[$f(e)],_a=async()=>{const{data:e}=await zae(),{data:t}=await Wae(),n=e.proxies[tg].all??[];Jr.value=e.proxies,Y1.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==tg}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),Object.entries(e.proxies).map(([r,i])=>{xf.value&&wse(i)&&(Lh.value[r]=!0),i.hidden&&!(r in bl.value)&&(bl.value[r]=!0)}),Tf.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},RU=async(e,t)=>{await Gae(e,t),Jr.value[e].now=t,FE.value&&bs.value.filter(n=>n.chains.includes(e)).forEach(n=>wS(n.id)),_a()},PU=async(e,t,n)=>{const r=$f(e);if(xf.value)try{const{data:i}=await GN(r,O2,2e3);Lh.value[r]=i.delay>Fi}catch{Lh.value[r]=!1}await GN(fh.value?e:r,t,n)},yse=async(e,t=wf.value,n=Lu.value)=>{await PU(e,t,n),await _a()},_se=mr.debounce(_a,800),MU=async(e,t=wf.value,n=Lu.value)=>{await PU(e,t,n),await _se()},OU=pse(5),DU=async e=>{const t=Jr.value[e],n=t.all??[],r=Q2(e);if([Xr.Selector,Xr.LoadBalance].includes(t.type.toLowerCase())){let o=0;return await Promise.all(n.map(a=>OU(async()=>{await MU(a,r,Math.min(3e3,Lu.value)),o++,LU(o,n.length)})))}const i=Math.max(5e3,Lu.value);if(xf.value)try{const{data:o}=await WN(e,O2,i);n==null||n.forEach(a=>{Lh.value[$f(a)]=o[a]>Fi})}catch{n==null||n.forEach(o=>{Lh.value[$f(o)]=!1})}await WN(e,r,i),await _a()},bse=async()=>{const e=Object.keys(Jr.value).filter(n=>!lA(n));let t=0;return await Promise.all(e.map(n=>OU(async()=>{await MU(n,wf.value,Math.min(3e3,Lu.value)),t++,LU(t,e.length)})))},Sse=e=>{var t;return((t=mr.last(e))==null?void 0:t.delay)??Fi},wse=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[O2])==null?void 0:r.history;return(((i=mr.last(t))==null?void 0:i.delay)??Fi)>Fi},$f=e=>{let t=Jr.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Jr.value[t.now];if(!n)return t.name;t=n}return t.name},{showNotification:xse}=ed(),LU=(e,t)=>{const n=e===t;xse({content:"testFinishedTip",params:{number:`${e}/${t}`},type:n?"alert-success":"alert-warning",timeout:n?2e3:0})},K1=De(""),qN=e=>zg.value?e:e.filter(t=>!bl.value[t]),NU=De(Wa.PROXIES),Cse=Ce(()=>{var e;return mr.isEmpty(Jr.value)?[]:NU.value===Wa.PROVIDER?Tf.value.map(t=>t.name):$_.value?((e=$r.value)==null?void 0:e.mode.toUpperCase())===tg?[tg]:qN(Y1.value):qN([...Y1.value,tg])}),Kg=()=>({proxiesTabShow:NU,renderGroups:Cse}),rf=60,Ef=new Array(rf).fill(0).map((e,t)=>({name:t,value:e})),kU=De(0),xv=De([...Ef]),Z_=De([...Ef]),FU=De(0),$U=De(0),Cv=De([...Ef]),Tv=De([...Ef]);let c0;const Tse=()=>{c0==null||c0(),Cv.value=[...Ef],Tv.value=[...Ef],xv.value=[...Ef];const{data:e,close:t}=rse(),n=Bt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();kU.value=a.inuse,xv.value.push({value:a.inuse,name:s}),Z_.value.push({value:bs.value.length,name:s}),xv.value=xv.value.slice(-1*rf),Z_.value=Z_.value.slice(-1*rf)}),{data:r,close:i}=ise(),o=Bt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();FU.value=a.down,$U.value=a.up,Cv.value.push({value:a.down,name:s}),Tv.value.push({value:a.up,name:s}),Cv.value=Cv.value.slice(-1*rf),Tv.value=Tv.value.slice(-1*rf)});c0=()=>{t(),i(),n(),o()}},Ese=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Ase=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ise=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Rse=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],JN=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Pse(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?Rse:Ise:t.binary?Ase:Ese,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const i=e<0,o=i?"-":t.signed?"+":"";i&&(e=-e);let a;if(t.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1){const c=JN(e,t.locale,a);return o+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3));const l=JN(Number(e),t.locale,a),u=n[s];return o+l+r+u}const Gn=(e,t)=>Pse(e,{binary:!1,...t}),TS=e=>po(e).locale(Su.value).fromNow(),lA=e=>{const t=Jr.value[e];return t?[Xr.Dns,Xr.Compatible,Xr.Direct,Xr.Reject,Xr.RejectDrop,Xr.Pass,Xr.Fallback,Xr.URLTest,Xr.LoadBalance,Xr.Selector].includes(t.type.toLowerCase()):!1},Mse=(e,t)=>{const n=new Map,r=i=>{if(lA(i))return-1;const o=n.get(i);return o===0?1/0:o};switch(e=[...e],e.forEach(i=>{n.set(i,km(i,t))}),$E.value&&(e=e.filter(i=>lA(i)||n.get(i)>0)),K1.value&&(e=e.filter(i=>i.toLowerCase().includes(K1.value.toLowerCase()))),kE.value){case yu.DEFAULT:return e;case yu.NAME_ASC:return e.sort((i,o)=>i.localeCompare(o));case yu.NAME_DESC:return e.sort((i,o)=>o.localeCompare(i));case yu.LATENCY_ASC:return e.sort((i,o)=>r(i)-r(o));case yu.LATENCY_DESC:return e.sort((i,o)=>r(o)-r(i))}},Ose=256,of=new Map,ng=new Map,uA=[],Dse=()=>{of.clear(),ng.clear(),uA.length=0;for(const{key:e,label:t}of ia.value)e.startsWith("/")?uA.push({regex:new RegExp(e.slice(1),"i"),label:t}):ng.set(e,t)},f0=(e,t)=>{if(of.set(e,t),of.size>Ose){const n=of.keys().next().value;n&&of.delete(n)}return t};Bt(ia,Dse,{immediate:!0,deep:!0});const Z1=e=>{if(!e)return e===""?"Inner":"";if(of.has(e))return of.get(e);if(e.includes(":")){for(const[n,r]of ng.entries())if(e.endsWith(n))return f0(e,r)}else if(ng.has(e))return f0(e,ng.get(e));for(const{regex:n,label:r}of uA)if(n.test(e))return f0(e,r);return f0(e,e)},BU=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",VU=e=>e.metadata.destinationIP||e.metadata.host,UU=e=>{const t=e.metadata.destinationIP;return t?t.includes(":")?"IPv6":"IPv4":"FQDN"},cA=e=>{const t=[...e.chains];return dh.value===tp.NORMAL&&t.reverse(),t.join("")},HU=e=>`${e.metadata.type} | ${e.metadata.network}`,zU=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name<rf+1?"":`
|
||
<div class="flex items-center my-2 gap-1">
|
||
<div class="w-4 h-4 rounded-full" style="background-color: ${e.color}"></div>
|
||
${e.seriesName}
|
||
(${po(e.data.name).format("HH:mm:ss")}): ${Gn(e.data.value,{binary:r})}${n}
|
||
</div>`},QN=()=>{const e={};for(const i in localStorage)(i.startsWith("config/")||i.startsWith("setup/"))&&(e[i]=localStorage.getItem(i));const t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="zashboard-settings",r.click(),URL.revokeObjectURL(n)},zu=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,Cu=e=>e===Fi?"":e<wu.value?"text-green-500":e<ul.value?"text-yellow-500":"text-red-500",af=Ce(()=>Object.values(jt).filter(e=>![jt.setup,!Yd.value&&jt.overview].includes(e)));function xd(e,t,n){let r=n.initialDeps??[],i;return()=>{var o,a,s,l;let u;n.key&&((o=n.debug)!=null&&o.call(n))&&(u=Date.now());const c=e();if(!(c.length!==r.length||c.some((h,v)=>r[v]!==h)))return i;r=c;let d;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(d=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const h=Math.round((Date.now()-u)*100)/100,v=Math.round((Date.now()-d)*100)/100,m=v/16,_=(y,S)=>{for(y=String(y);y.length<S;)y=" "+y;return y};console.info(`%c⏱ ${_(v,5)} /${_(h,5)} ms`,`
|
||
font-size: .6rem;
|
||
font-weight: bold;
|
||
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}}function uC(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Lse=(e,t)=>Math.abs(e-t)<1,Nse=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},kse=e=>e,Fse=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},$se=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=a=>{const{width:s,height:l}=a;t({width:Math.round(s),height:Math.round(l)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const s=()=>{const l=a[0];if(l!=null&&l.borderBoxSize){const u=l.borderBoxSize[0];if(u){i({width:u.inlineSize,height:u.blockSize});return}}i(n.getBoundingClientRect())};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},ek={passive:!0},tk=typeof window>"u"?!0:"onscrollend"in window,Bse=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&tk?()=>{}:Nse(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=c=>()=>{const{horizontal:f,isRtl:d}=e.options;i=f?n.scrollLeft*(d&&-1||1):n.scrollTop,o(),t(i,c)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,ek);const u=e.options.useScrollendEvent&&tk;return u&&n.addEventListener("scrollend",l,ek),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},Vse=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Use=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Hse{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{const a=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:kse,rangeExtractor:Fse,onChange:()=>{},measureElement:Vse,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=xd(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((a,s)=>a.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=xd(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a}),{key:!1}),this.getMeasurements=xd(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},s)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const f=o(c),d=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=d?d.end+this.options.gap:r+i,v=s.get(f),m=typeof v=="number"?v:this.options.estimateSize(c),_=h+m,y=d?d.lane:c%this.options.lanes;u[c]={index:c,start:h,size:m,end:_,key:f,lane:y}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=xd(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?zse({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=xd(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,o,a)=>o===null||a===null?[]:n({startIndex:o,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const a=o.key,s=this.elementsCache.get(a);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=xd(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;o<a;o++){const s=n[o],l=r[s];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return uC(r[GU(0,r.length-1,i=>uC(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const o=this.getSize(),a=this.getScrollOffset();r==="auto"&&(r=n>=a+o?"end":"start"),r==="center"?n+=(i-o)/2:r==="end"&&(n-=o);const s=this.options.horizontal?"scrollWidth":"scrollHeight",u=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(n,r);if(!o)return;const[a,s]=o;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=uC(this.getOffsetForIndex(n,s));Lse(u,this.getScrollOffset())||this.scrollToIndex(n,{align:s,behavior:i})}else this.scrollToIndex(n,{align:s,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const GU=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else if(o>r)t=i-1;else return i}return e>0?e-1:0};function zse({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1;let a=GU(0,i,l=>e[l].start,n),s=a;for(;s<i&&e[s].end<n+t;)s++;return r>1&&(a=Math.max(0,a-a%r),s=Math.min(i,s+(r-1-s%r))),{startIndex:a,endIndex:s}}function Gse(e){const t=new Hse(B(e)),n=bi(t),r=t._didMount();return Bt(()=>B(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Bt(()=>B(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;hE(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),hE(n)},{immediate:!0}),QI(r),n}function WU(e){return Gse(Ce(()=>({observeElementRect:$se,observeElementOffset:Bse,scrollToFn:Use,...B(e)})))}const Wse=["data-index"],eR=nt({__name:"VirtualScroller",props:{data:{default:()=>[]},size:{default:64}},setup(e){const t=De(null),n=e,r=Ce(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>n.size,overscan:36})),i=WU(r),o=Ce(()=>i.value.getVirtualItems()),a=Ce(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return Y(),te("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto"},[L("div",{style:pr({height:`${a.value}px`}),class:"relative w-full"},[L("div",{class:"absolute top-0 left-0 w-full",style:pr({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(Y(!0),te(Ye,null,fn(o.value,f=>(Y(),te("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[yf(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,Wse))),128))],4)],4)],512)}}}),cC=De(null),nk=De(!1),tR=()=>({infoConn:cC,connectionDetailModalShow:nk,handlerInfo:async t=>{cC.value=null,await Qa(),cC.value=t,nk.value=!0}});/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:jU,setPrototypeOf:rk,isFrozen:jse,getPrototypeOf:Xse,getOwnPropertyDescriptor:Yse}=Object;let{freeze:Ui,seal:ba,create:XU}=Object,{apply:fA,construct:dA}=typeof Reflect<"u"&&Reflect;Ui||(Ui=function(t){return t});ba||(ba=function(t){return t});fA||(fA=function(t,n,r){return t.apply(n,r)});dA||(dA=function(t,n){return new t(...n)});const d0=Hi(Array.prototype.forEach),Kse=Hi(Array.prototype.lastIndexOf),ik=Hi(Array.prototype.pop),Hp=Hi(Array.prototype.push),Zse=Hi(Array.prototype.splice),q_=Hi(String.prototype.toLowerCase),fC=Hi(String.prototype.toString),ok=Hi(String.prototype.match),zp=Hi(String.prototype.replace),qse=Hi(String.prototype.indexOf),Jse=Hi(String.prototype.trim),$a=Hi(Object.prototype.hasOwnProperty),Ei=Hi(RegExp.prototype.test),Gp=Qse(TypeError);function Hi(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return fA(e,t,r)}}function Qse(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dA(e,n)}}function Jt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q_;rk&&rk(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(jse(t)||(t[r]=o),i=o)}e[i]=!0}return e}function ele(e){for(let t=0;t<e.length;t++)$a(e,t)||(e[t]=null);return e}function jc(e){const t=XU(null);for(const[n,r]of jU(e))$a(e,n)&&(Array.isArray(r)?t[n]=ele(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=jc(r):t[n]=r);return t}function Wp(e,t){for(;e!==null;){const r=Yse(e,t);if(r){if(r.get)return Hi(r.get);if(typeof r.value=="function")return Hi(r.value)}e=Xse(e)}function n(){return null}return n}const ak=Ui(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dC=Ui(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hC=Ui(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),tle=Ui(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pC=Ui(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),nle=Ui(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sk=Ui(["#text"]),lk=Ui(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),vC=Ui(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),uk=Ui(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),h0=Ui(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rle=ba(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ile=ba(/<%[\w\W]*|[\w\W]*%>/gm),ole=ba(/\$\{[\w\W]*/gm),ale=ba(/^data-[\-\w.\u00B7-\uFFFF]+$/),sle=ba(/^aria-[\-\w]+$/),YU=ba(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lle=ba(/^(?:\w+script|data):/i),ule=ba(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),KU=ba(/^html$/i),cle=ba(/^[a-z][.\w]*(-[.\w]+)+$/i);var ck=Object.freeze({__proto__:null,ARIA_ATTR:sle,ATTR_WHITESPACE:ule,CUSTOM_ELEMENT:cle,DATA_ATTR:ale,DOCTYPE_NAME:KU,ERB_EXPR:ile,IS_ALLOWED_URI:YU,IS_SCRIPT_OR_DATA:lle,MUSTACHE_EXPR:rle,TMPLIT_EXPR:ole});const jp={element:1,text:3,progressingInstruction:7,comment:8,document:9},fle=function(){return typeof window>"u"?null:window},dle=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},fk=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ZU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fle();const t=mt=>ZU(mt);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==jp.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:h}=e,v=l.prototype,m=Wp(v,"cloneNode"),_=Wp(v,"remove"),y=Wp(v,"nextSibling"),S=Wp(v,"childNodes"),b=Wp(v,"parentNode");if(typeof a=="function"){const mt=n.createElement("template");mt.content&&mt.content.ownerDocument&&(n=mt.content.ownerDocument)}let w,T="";const{implementation:C,createNodeIterator:E,createDocumentFragment:R,getElementsByTagName:I}=n,{importNode:M}=r;let P=fk();t.isSupported=typeof jU=="function"&&typeof b=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:k,TMPLIT_EXPR:$,DATA_ATTR:W,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:ae}=ck;let{IS_ALLOWED_URI:ge}=ck,ye=null;const Me=Jt({},[...ak,...dC,...hC,...pC,...sk]);let ke=null;const Ue=Jt({},[...lk,...vC,...uk,...h0]);let Le=Object.seal(XU(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,fe=null,Ae=!0,Se=!0,Te=!1,Ne=!0,Be=!1,H=!0,z=!1,ue=!1,we=!1,ve=!1,U=!1,j=!1,J=!0,de=!1;const _e="user-content-";let Oe=!0,q=!1,he={},Ve=null;const Ze=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let bt=null;const ne=Jt({},["audio","video","img","source","image","track"]);let se=null;const pe=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml";let Ie=oe,$e=!1,et=null;const We=Jt({},[Ee,Ge,oe],fC);let Xe=Jt({},["mi","mo","mn","ms","mtext"]),tt=Jt({},["annotation-xml"]);const Ot=Jt({},["title","style","font","a","script"]);let Lt=null;const Nn=["application/xhtml+xml","text/html"],Ta="text/html";let Pn=null,yr=null;const nd=n.createElement("form"),Fl=function(re){return re instanceof RegExp||re instanceof Function},ns=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yr&&yr===re)){if((!re||typeof re!="object")&&(re={}),re=jc(re),Lt=Nn.indexOf(re.PARSER_MEDIA_TYPE)===-1?Ta:re.PARSER_MEDIA_TYPE,Pn=Lt==="application/xhtml+xml"?fC:q_,ye=$a(re,"ALLOWED_TAGS")?Jt({},re.ALLOWED_TAGS,Pn):Me,ke=$a(re,"ALLOWED_ATTR")?Jt({},re.ALLOWED_ATTR,Pn):Ue,et=$a(re,"ALLOWED_NAMESPACES")?Jt({},re.ALLOWED_NAMESPACES,fC):We,se=$a(re,"ADD_URI_SAFE_ATTR")?Jt(jc(pe),re.ADD_URI_SAFE_ATTR,Pn):pe,bt=$a(re,"ADD_DATA_URI_TAGS")?Jt(jc(ne),re.ADD_DATA_URI_TAGS,Pn):ne,Ve=$a(re,"FORBID_CONTENTS")?Jt({},re.FORBID_CONTENTS,Pn):Ze,je=$a(re,"FORBID_TAGS")?Jt({},re.FORBID_TAGS,Pn):{},fe=$a(re,"FORBID_ATTR")?Jt({},re.FORBID_ATTR,Pn):{},he=$a(re,"USE_PROFILES")?re.USE_PROFILES:!1,Ae=re.ALLOW_ARIA_ATTR!==!1,Se=re.ALLOW_DATA_ATTR!==!1,Te=re.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=re.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=re.SAFE_FOR_TEMPLATES||!1,H=re.SAFE_FOR_XML!==!1,z=re.WHOLE_DOCUMENT||!1,ve=re.RETURN_DOM||!1,U=re.RETURN_DOM_FRAGMENT||!1,j=re.RETURN_TRUSTED_TYPE||!1,we=re.FORCE_BODY||!1,J=re.SANITIZE_DOM!==!1,de=re.SANITIZE_NAMED_PROPS||!1,Oe=re.KEEP_CONTENT!==!1,q=re.IN_PLACE||!1,ge=re.ALLOWED_URI_REGEXP||YU,Ie=re.NAMESPACE||oe,Xe=re.MATHML_TEXT_INTEGRATION_POINTS||Xe,tt=re.HTML_INTEGRATION_POINTS||tt,Le=re.CUSTOM_ELEMENT_HANDLING||{},re.CUSTOM_ELEMENT_HANDLING&&Fl(re.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=re.CUSTOM_ELEMENT_HANDLING.tagNameCheck),re.CUSTOM_ELEMENT_HANDLING&&Fl(re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=re.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),re.CUSTOM_ELEMENT_HANDLING&&typeof re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Le.allowCustomizedBuiltInElements=re.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(Se=!1),U&&(ve=!0),he&&(ye=Jt({},sk),ke=[],he.html===!0&&(Jt(ye,ak),Jt(ke,lk)),he.svg===!0&&(Jt(ye,dC),Jt(ke,vC),Jt(ke,h0)),he.svgFilters===!0&&(Jt(ye,hC),Jt(ke,vC),Jt(ke,h0)),he.mathMl===!0&&(Jt(ye,pC),Jt(ke,uk),Jt(ke,h0))),re.ADD_TAGS&&(ye===Me&&(ye=jc(ye)),Jt(ye,re.ADD_TAGS,Pn)),re.ADD_ATTR&&(ke===Ue&&(ke=jc(ke)),Jt(ke,re.ADD_ATTR,Pn)),re.ADD_URI_SAFE_ATTR&&Jt(se,re.ADD_URI_SAFE_ATTR,Pn),re.FORBID_CONTENTS&&(Ve===Ze&&(Ve=jc(Ve)),Jt(Ve,re.FORBID_CONTENTS,Pn)),Oe&&(ye["#text"]=!0),z&&Jt(ye,["html","head","body"]),ye.table&&(Jt(ye,["tbody"]),delete je.tbody),re.TRUSTED_TYPES_POLICY){if(typeof re.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof re.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=re.TRUSTED_TYPES_POLICY,T=w.createHTML("")}else w===void 0&&(w=dle(h,i)),w!==null&&typeof T=="string"&&(T=w.createHTML(""));Ui&&Ui(re),yr=re}},Qm=Jt({},[...dC,...hC,...tle]),rd=Jt({},[...pC,...nle]),ww=function(re){let He=b(re);(!He||!He.tagName)&&(He={namespaceURI:Ie,tagName:"template"});const ct=q_(re.tagName),xn=q_(He.tagName);return et[re.namespaceURI]?re.namespaceURI===Ge?He.namespaceURI===oe?ct==="svg":He.namespaceURI===Ee?ct==="svg"&&(xn==="annotation-xml"||Xe[xn]):!!Qm[ct]:re.namespaceURI===Ee?He.namespaceURI===oe?ct==="math":He.namespaceURI===Ge?ct==="math"&&tt[xn]:!!rd[ct]:re.namespaceURI===oe?He.namespaceURI===Ge&&!tt[xn]||He.namespaceURI===Ee&&!Xe[xn]?!1:!rd[ct]&&(Ot[ct]||!Qm[ct]):!!(Lt==="application/xhtml+xml"&&et[re.namespaceURI]):!1},zi=function(re){Hp(t.removed,{element:re});try{b(re).removeChild(re)}catch{_(re)}},id=function(re,He){try{Hp(t.removed,{attribute:He.getAttributeNode(re),from:He})}catch{Hp(t.removed,{attribute:null,from:He})}if(He.removeAttribute(re),re==="is")if(ve||U)try{zi(He)}catch{}else try{He.setAttribute(re,"")}catch{}},ey=function(re){let He=null,ct=null;if(we)re="<remove></remove>"+re;else{const nr=ok(re,/^[\r\n\t ]+/);ct=nr&&nr[0]}Lt==="application/xhtml+xml"&&Ie===oe&&(re='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+re+"</body></html>");const xn=w?w.createHTML(re):re;if(Ie===oe)try{He=new d().parseFromString(xn,Lt)}catch{}if(!He||!He.documentElement){He=C.createDocument(Ie,"template",null);try{He.documentElement.innerHTML=$e?T:xn}catch{}}const Lr=He.body||He.documentElement;return re&&ct&&Lr.insertBefore(n.createTextNode(ct),Lr.childNodes[0]||null),Ie===oe?I.call(He,z?"html":"body")[0]:z?He.documentElement:Lr},ty=function(re){return E.call(re.ownerDocument||re,re,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},gp=function(re){return re instanceof f&&(typeof re.nodeName!="string"||typeof re.textContent!="string"||typeof re.removeChild!="function"||!(re.attributes instanceof c)||typeof re.removeAttribute!="function"||typeof re.setAttribute!="function"||typeof re.namespaceURI!="string"||typeof re.insertBefore!="function"||typeof re.hasChildNodes!="function")},ny=function(re){return typeof s=="function"&&re instanceof s};function Ea(mt,re,He){d0(mt,ct=>{ct.call(t,re,He,yr)})}const ry=function(re){let He=null;if(Ea(P.beforeSanitizeElements,re,null),gp(re))return zi(re),!0;const ct=Pn(re.nodeName);if(Ea(P.uponSanitizeElement,re,{tagName:ct,allowedTags:ye}),re.hasChildNodes()&&!ny(re.firstElementChild)&&Ei(/<[/\w]/g,re.innerHTML)&&Ei(/<[/\w]/g,re.textContent)||re.nodeType===jp.progressingInstruction||H&&re.nodeType===jp.comment&&Ei(/<[/\w]/g,re.data))return zi(re),!0;if(!ye[ct]||je[ct]){if(!je[ct]&&mp(ct)&&(Le.tagNameCheck instanceof RegExp&&Ei(Le.tagNameCheck,ct)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(ct)))return!1;if(Oe&&!Ve[ct]){const xn=b(re)||re.parentNode,Lr=S(re)||re.childNodes;if(Lr&&xn){const nr=Lr.length;for(let ei=nr-1;ei>=0;--ei){const Uo=m(Lr[ei],!0);Uo.__removalCount=(re.__removalCount||0)+1,xn.insertBefore(Uo,y(re))}}}return zi(re),!0}return re instanceof l&&!ww(re)||(ct==="noscript"||ct==="noembed"||ct==="noframes")&&Ei(/<\/no(script|embed|frames)/i,re.innerHTML)?(zi(re),!0):(Be&&re.nodeType===jp.text&&(He=re.textContent,d0([D,k,$],xn=>{He=zp(He,xn," ")}),re.textContent!==He&&(Hp(t.removed,{element:re.cloneNode()}),re.textContent=He)),Ea(P.afterSanitizeElements,re,null),!1)},iy=function(re,He,ct){if(J&&(He==="id"||He==="name")&&(ct in n||ct in nd))return!1;if(!(Se&&!fe[He]&&Ei(W,He))){if(!(Ae&&Ei(N,He))){if(!ke[He]||fe[He]){if(!(mp(re)&&(Le.tagNameCheck instanceof RegExp&&Ei(Le.tagNameCheck,re)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(re))&&(Le.attributeNameCheck instanceof RegExp&&Ei(Le.attributeNameCheck,He)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(He))||He==="is"&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&Ei(Le.tagNameCheck,ct)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(ct))))return!1}else if(!se[He]){if(!Ei(ge,zp(ct,X,""))){if(!((He==="src"||He==="xlink:href"||He==="href")&&re!=="script"&&qse(ct,"data:")===0&&bt[re])){if(!(Te&&!Ei(K,zp(ct,X,"")))){if(ct)return!1}}}}}}return!0},mp=function(re){return re!=="annotation-xml"&&ok(re,ae)},oy=function(re){Ea(P.beforeSanitizeAttributes,re,null);const{attributes:He}=re;if(!He||gp(re))return;const ct={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let xn=He.length;for(;xn--;){const Lr=He[xn],{name:nr,namespaceURI:ei,value:Uo}=Lr,ac=Pn(nr);let Nr=nr==="value"?Uo:Jse(Uo);if(ct.attrName=ac,ct.attrValue=Nr,ct.keepAttr=!0,ct.forceKeepAttr=void 0,Ea(P.uponSanitizeAttribute,re,ct),Nr=ct.attrValue,de&&(ac==="id"||ac==="name")&&(id(nr,re),Nr=_e+Nr),H&&Ei(/((--!?|])>)|<\/(style|title)/i,Nr)){id(nr,re);continue}if(ct.forceKeepAttr||(id(nr,re),!ct.keepAttr))continue;if(!Ne&&Ei(/\/>/i,Nr)){id(nr,re);continue}Be&&d0([D,k,$],_p=>{Nr=zp(Nr,_p," ")});const yp=Pn(re.nodeName);if(iy(yp,ac,Nr)){if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ei)switch(h.getAttributeType(yp,ac)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}try{ei?re.setAttributeNS(ei,nr,Nr):re.setAttribute(nr,Nr),gp(re)?zi(re):ik(t.removed)}catch{}}}Ea(P.afterSanitizeAttributes,re,null)},xw=function mt(re){let He=null;const ct=ty(re);for(Ea(P.beforeSanitizeShadowDOM,re,null);He=ct.nextNode();)Ea(P.uponSanitizeShadowNode,He,null),ry(He),oy(He),He.content instanceof o&&mt(He.content);Ea(P.afterSanitizeShadowDOM,re,null)};return t.sanitize=function(mt){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=null,ct=null,xn=null,Lr=null;if($e=!mt,$e&&(mt="<!-->"),typeof mt!="string"&&!ny(mt))if(typeof mt.toString=="function"){if(mt=mt.toString(),typeof mt!="string")throw Gp("dirty is not a string, aborting")}else throw Gp("toString is not a function");if(!t.isSupported)return mt;if(ue||ns(re),t.removed=[],typeof mt=="string"&&(q=!1),q){if(mt.nodeName){const Uo=Pn(mt.nodeName);if(!ye[Uo]||je[Uo])throw Gp("root node is forbidden and cannot be sanitized in-place")}}else if(mt instanceof s)He=ey("<!---->"),ct=He.ownerDocument.importNode(mt,!0),ct.nodeType===jp.element&&ct.nodeName==="BODY"||ct.nodeName==="HTML"?He=ct:He.appendChild(ct);else{if(!ve&&!Be&&!z&&mt.indexOf("<")===-1)return w&&j?w.createHTML(mt):mt;if(He=ey(mt),!He)return ve?null:j?T:""}He&&we&&zi(He.firstChild);const nr=ty(q?mt:He);for(;xn=nr.nextNode();)ry(xn),oy(xn),xn.content instanceof o&&xw(xn.content);if(q)return mt;if(ve){if(U)for(Lr=R.call(He.ownerDocument);He.firstChild;)Lr.appendChild(He.firstChild);else Lr=He;return(ke.shadowroot||ke.shadowrootmode)&&(Lr=M.call(r,Lr,!0)),Lr}let ei=z?He.outerHTML:He.innerHTML;return z&&ye["!doctype"]&&He.ownerDocument&&He.ownerDocument.doctype&&He.ownerDocument.doctype.name&&Ei(KU,He.ownerDocument.doctype.name)&&(ei="<!DOCTYPE "+He.ownerDocument.doctype.name+`>
|
||
`+ei),Be&&d0([D,k,$],Uo=>{ei=zp(ei,Uo," ")}),w&&j?w.createHTML(ei):ei},t.setConfig=function(){let mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ns(mt),ue=!0},t.clearConfig=function(){yr=null,ue=!1},t.isValidAttribute=function(mt,re,He){yr||ns({});const ct=Pn(mt),xn=Pn(re);return iy(ct,xn,He)},t.addHook=function(mt,re){typeof re=="function"&&Hp(P[mt],re)},t.removeHook=function(mt,re){if(re!==void 0){const He=Kse(P[mt],re);return He===-1?void 0:Zse(P[mt],He,1)[0]}return ik(P[mt])},t.removeHooks=function(mt){P[mt]=[]},t.removeAllHooks=function(){P=fk()},t}var hle=ZU();const ple=["innerHTML"],vle=["src"],dk="data:image/svg+xml,",nR=nt({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Ce(()=>({width:(t.size==="small"?Jv.value:Jv.value+4)+"px",marginRight:B_.value-4+"px"})),r=Ce(()=>t.icon.startsWith(dk)),i=Ce(()=>{if(r.value)return hle.sanitize(t.icon.replace(dk,""))});return(o,a)=>r.value?(Y(),te("div",{key:0,class:gt(["inline-block",o.fill||"fill-primary"]),style:pr(n.value),innerHTML:i.value},null,14,ple)):(Y(),te("img",{key:1,style:pr(n.value),src:o.icon},null,12,vle))}}),Bf=nt({__name:"ProxyName",props:{name:{},size:{default:"small"}},setup(e){const t=e,n=Ce(()=>{var r;return(r=Jr.value[t.name])==null?void 0:r.icon});return(r,i)=>(Y(),te("div",{class:gt(["flex shrink-0 items-center gap-1",r.size==="large"?"text-lg font-medium":"text-sm"])},[n.value?(Y(),yt(nR,{key:0,icon:n.value,size:r.size,class:gt(r.size==="large"&&"-mt-[2px]")},null,8,["icon","size","class"])):at("",!0),rt(" "+ie(r.name),1)],2))}}),gle=nt({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=tR();return()=>{const n=e.conn,r=n.metadata,i={[ze.Host]:G("span",{class:"text-primary/80 w-80 grow truncate"},[r.host||r.sniffHost||r.destinationIP,rt(":"),r.destinationPort]),[ze.Destination]:G("span",{class:"w-80 grow truncate break-all"},[VU(n)]),[ze.RemoteAddress]:G("span",{class:"w-80 grow truncate break-all"},[n.metadata.remoteDestination||"-"]),[ze.SourceIP]:G("span",{class:"w-40 grow truncate break-all"},[Z1(r.sourceIP)]),[ze.SourcePort]:G("span",{class:"w-20 grow truncate break-all"},[r.sourcePort]),[ze.SniffHost]:G("span",{class:"w-80 grow truncate break-all"},[r.sniffHost||"-"]),[ze.Type]:G("span",{class:"w-60 grow truncate break-all"},[HU(n)]),[ze.Rule]:G("span",{class:"w-80 grow truncate break-all"},[n.rule,n.rulePayload&&G(Ye,null,[rt(": "),n.rulePayload])]),[ze.Process]:G("span",{class:"w-60 grow truncate break-all"},[BU(n)]),[ze.Chains]:G("span",{class:["flex w-80 grow items-center gap-1 truncate break-all",dh.value===tp.REVERSE&&"flex-row-reverse justify-end"]},[G(Bf,{name:mr.last(n.chains)},null),mr.last(n.chains)!==mr.first(n.chains)&&G(Ye,null,[G(Rl,{class:"h-4 w-4 shrink-0"},null),G(Bf,{name:mr.first(n.chains)},null)])]),[ze.Download]:G("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.download),G(Wee,{class:"text-success h-4 w-4"},null)]),[ze.Upload]:G("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.upload),G(Xee,{class:"text-info h-4 w-4"},null)]),[ze.DlSpeed]:G("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.downloadSpeed),rt("/s"),G(sS,{class:"text-success h-4 w-4"},null)]),[ze.UlSpeed]:G("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.uploadSpeed),rt("/s"),G(Rm,{class:"text-info h-4 w-4"},null)]),[ze.ConnectTime]:G("div",{class:"gap-1 whitespace-nowrap"},[TS(n.start)]),[ze.DestinationType]:G("div",{class:"gap-1 whitespace-nowrap"},[UU(n)]),[ze.Close]:G("button",{class:"btn btn-circle btn-xs",onClick:o=>{o.stopPropagation(),wS(n.id)}},[G(Nf,{class:"h-4 w-4"},null)])};return G("div",{class:"card cursor-pointer gap-1 p-1",onClick:()=>t(n)},[to.value.map(o=>G("div",{class:"flex items-center gap-1 text-sm"},[o.map(a=>i[a])]))])}}}),mle={key:0,class:"card m-2 flex-row p-2 text-sm"},yle=nt({__name:"ConnectionCardList",setup(e){const t=Ce(()=>to.value.length*28+4);return(n,r)=>B(Dh).length?(Y(),yt(eR,{key:1,data:B(Dh),size:t.value},{default:qn(({item:i})=>[G(B(gle),{class:"mb-1",conn:i},null,8,["conn"])]),_:1},8,["data","size"])):(Y(),te("div",mle,ie(n.$t("noContent")),1))}}),_le={class:"modal-box relative max-h-[90dvh] overflow-hidden p-0 max-md:max-h-[70dvh]"},ble={method:"dialog"},Sle={class:"btn btn-circle btn-ghost btn-xs absolute top-1 right-1 z-10 outline-hidden"},ip=nt({__name:"DialogWrapper",props:M1({noPadding:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=De(),n=y2(e,"modelValue");return Bt(n,r=>{var i,o;r?(i=t.value)==null||i.showModal():(o=t.value)==null||o.close()}),(r,i)=>(Y(),te("dialog",{ref_key:"modalRef",ref:t,class:"modal",onClose:i[0]||(i[0]=o=>n.value=!1)},[L("div",_le,[L("form",ble,[L("button",Sle,[G(B(Nf),{class:"h-4 w-4"})])]),L("div",{class:gt(["max-h-[90dvh] overflow-y-auto max-md:max-h-[70dvh]",r.noPadding?"p-0":"p-4"])},[yf(r.$slots,"default")],2)]),i[1]||(i[1]=L("form",{method:"dialog",class:"modal-backdrop"},[L("button",null,"close")],-1))],544))}});var q1={d:(e,t)=>{for(var n in t)q1.o(t,n)&&!q1.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},qU={};function hA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JU(e,t){if(e){if(typeof e=="string")return hA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hA(e,t):void 0}}function J1(e){return function(t){if(Array.isArray(t))return hA(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||JU(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}q1.d(qU,{Z:()=>Ele});const wt=(hk={computed:()=>Ce,createTextVNode:()=>rt,createVNode:()=>G,defineComponent:()=>nt,reactive:()=>qa,ref:()=>De,watch:()=>Bt,watchEffect:()=>rS},gC={},q1.d(gC,hk),gC),wle=(0,wt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,wt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),xle=(0,wt.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,wt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,wt.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,wt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,wt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,wt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Cle=(0,wt.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,wt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,wt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,wt.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var hk,gC;function pA(e){return pA=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},pA(e)}function QU(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=r||{},o=i.key,a=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,d=f===void 0?1:f,h=QU(e);if(h==="array"){var v=pk(e.map(function(y,S,b){return Xc(y,"".concat(t,"[").concat(S,"]"),n+1,{index:S,showComma:S!==b.length-1,length:d,type:l})}));return[Xc("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(v,Xc("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var m=Object.keys(e),_=pk(m.map(function(y,S,b){return Xc(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),n+1,{key:y,showComma:S!==b.length-1,length:d,type:l})}));return[Xc("{",t,n,{showComma:!1,key:o,index:a,length:m.length,type:"objectStart"})[0]].concat(_,Xc("}",t,n,{showComma:c,length:m.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:d,type:l}]}function pk(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=J1(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,J1(r)):n.push(r)}return n}function vA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(pA(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return vA(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=vA(e[i],t);return t.set(e,r),r}function vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vk(Object(n),!0).forEach(function(r){Q1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var eH={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const Tle=(0,wt.defineComponent)({name:"TreeNode",props:gk(gk({},eH),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,wt.computed)(function(){return QU(e.node.content)}),i=(0,wt.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),o=(0,wt.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),a=(0,wt.computed)(function(){return e.selectableType==="multiple"}),s=(0,wt.computed)(function(){return e.selectableType==="single"}),l=(0,wt.computed)(function(){return e.nodeSelectable(e.node)&&(a.value||s.value)}),u=(0,wt.reactive)({editing:!1}),c=function(S){var b,w,T=(w=(b=S.target)===null||b===void 0?void 0:b.value)==="null"?null:w==="undefined"?void 0:w==="true"||w!=="false"&&(w[0]+w[w.length-1]==='""'||w[0]+w[w.length-1]==="''"?w.slice(1,-1):typeof Number(w)=="number"&&!isNaN(Number(w))||w==="NaN"?Number(w):w);n("valueChange",T,e.node.path)},f=(0,wt.computed)(function(){var S,b=(S=e.node)===null||S===void 0?void 0:S.content;return b===null?b="null":b===void 0&&(b="undefined"),r.value==="string"?'"'.concat(b,'"'):b+""}),d=function(){var S=e.renderNodeValue;return S?S({node:e.node,defaultValue:f.value}):f.value},h=function(){n("bracketsClick",!e.collapsed,e.node)},v=function(){n("iconClick",!e.collapsed,e.node)},m=function(){n("selectedChange",e.node)},_=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},y=function(S){if(e.editable&&!u.editing){u.editing=!0;var b=function w(T){var C;T.target!==S.target&&((C=T.target)===null||C===void 0?void 0:C.parentElement)!==S.target&&(u.editing=!1,document.removeEventListener("click",w))};document.removeEventListener("click",b),document.addEventListener("click",b)}};return function(){var S,b=e.node;return(0,wt.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:_,style:e.style},[e.showLineNumber&&(0,wt.createVNode)("span",{class:"vjs-node-index"},[b.id+1]),e.showSelectController&&l.value&&b.type!=="objectEnd"&&b.type!=="arrayEnd"&&(0,wt.createVNode)(xle,{isMultiple:a.value,checked:e.checked,onChange:m},null),(0,wt.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(b.level)).map(function(w,T){return(0,wt.createVNode)("div",{key:T,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,wt.createVNode)(Cle,{nodeType:b.type,onClick:v},null)]),b.key&&(0,wt.createVNode)("span",{class:"vjs-key"},[(S=e.renderNodeKey,S?S({node:e.node,defaultKey:o.value||""}):o.value),(0,wt.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,wt.createVNode)("span",null,[b.type!=="content"&&b.content?(0,wt.createVNode)(wle,{data:b.content.toString(),onClick:h},null):(0,wt.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:y,onDblclick:e.editable&&e.editableTrigger==="dblclick"?y:void 0},[e.editable&&u.editing?(0,wt.createVNode)("input",{value:f.value,onChange:c,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):d()]),b.showComma&&(0,wt.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,wt.createVNode)("span",{class:"vjs-comment"},[(0,wt.createTextVNode)(" // "),b.length,(0,wt.createTextVNode)(" items ")])])])}}});function mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(n),!0).forEach(function(r){Q1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Ele=(0,wt.defineComponent)({name:"Tree",props:Eo(Eo({},eH),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,wt.ref)(),o=(0,wt.computed)(function(){return Xc(e.data,e.rootPath)}),a=function(b,w){return o.value.reduce(function(T,C){var E,R=C.level>=b||C.length>=w,I=(E=e.pathCollapsible)===null||E===void 0?void 0:E.call(e,C);return C.type!=="objectStart"&&C.type!=="arrayStart"||!R&&!I?T:Eo(Eo({},T),{},Q1({},C.path,1))},{})},s=(0,wt.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,wt.computed)(function(){for(var b=null,w=[],T=o.value.length,C=0;C<T;C++){var E=Eo(Eo({},o.value[C]),{},{id:C}),R=s.hiddenPaths[E.path];if(b&&b.path===E.path){var I=b.type==="objectStart",M=Eo(Eo(Eo({},E),b),{},{showComma:E.showComma,content:I?"{...}":"[...]",type:I?"objectCollapsed":"arrayCollapsed"});b=null,w.push(M)}else{if(R&&!b){b=E;continue}if(b)continue;w.push(E)}}return w}),u=(0,wt.computed)(function(){var b=e.selectedValue;return b&&e.selectableType==="multiple"&&Array.isArray(b)?b:[b]}),c=(0,wt.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),f=function(){var b=l.value;if(e.virtual){var w,T=e.height/e.itemHeight,C=((w=i.value)===null||w===void 0?void 0:w.scrollTop)||0,E=Math.floor(C/e.itemHeight),R=E<0?0:E+T>b.length?b.length-T:E;R<0&&(R=0);var I=R+T;s.translateY=R*e.itemHeight,s.visibleData=b.filter(function(M,P){return P>=R&&P<I})}else s.visibleData=b},d=function(){f()},h=function(b){var w,T,C=b.path,E=e.selectableType;if(E==="multiple"){var R=u.value.findIndex(function(D){return D===C}),I=J1(u.value);R!==-1?I.splice(R,1):I.push(C),n("update:selectedValue",I),n("selectedChange",I,J1(u.value))}else if(E==="single"&&u.value[0]!==C){var M=(w=u.value,T=1,function(D){if(Array.isArray(D))return D}(w)||function(D,k){var $=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if($!=null){var W,N,K=[],X=!0,ae=!1;try{for($=$.call(D);!(X=(W=$.next()).done)&&(K.push(W.value),!k||K.length!==k);X=!0);}catch(ge){ae=!0,N=ge}finally{try{X||$.return==null||$.return()}finally{if(ae)throw N}}return K}}(w,T)||JU(w,T)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],P=C;n("update:selectedValue",P),n("selectedChange",P,M)}},v=function(b){n("nodeClick",b)},m=function(b,w){if(b)s.hiddenPaths=Eo(Eo({},s.hiddenPaths),{},Q1({},w,1));else{var T=Eo({},s.hiddenPaths);delete T[w],s.hiddenPaths=T}},_=function(b,w){e.collapsedOnClickBrackets&&m(b,w.path),n("bracketsClick",b,w)},y=function(b,w){m(b,w.path),n("iconClick",b,w)},S=function(b,w){var T=vA(e.data),C=e.rootPath;new Function("data","val","data".concat(w.slice(C.length),"=val"))(T,b),n("update:data",T)};return(0,wt.watchEffect)(function(){c.value&&function(b){throw new Error("[VueJSONPretty] ".concat(b))}(c.value)}),(0,wt.watchEffect)(function(){l.value&&f()}),(0,wt.watch)(function(){return e.deep},function(b){b&&(s.hiddenPaths=a(b,e.collapsedNodeLength))}),(0,wt.watch)(function(){return e.collapsedNodeLength},function(b){b&&(s.hiddenPaths=a(e.deep,b))}),function(){var b,w,T=(b=e.renderNodeKey)!==null&&b!==void 0?b:r.renderNodeKey,C=(w=e.renderNodeValue)!==null&&w!==void 0?w:r.renderNodeValue,E=s.visibleData&&s.visibleData.map(function(R){return(0,wt.createVNode)(Tle,{key:R.id,node:R,collapsed:!!s.hiddenPaths[R.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:u.value.includes(R.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:T,renderNodeValue:C,onNodeClick:v,onBracketsClick:_,onIconClick:y,onSelectedChange:h,onValueChange:S,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,wt.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?d:void 0,style:e.showLineNumber?Eo({paddingLeft:"".concat(12*Number(o.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,wt.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,wt.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,wt.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[E])])]):E])}}});var Ale=qU.Z;const Ile={class:"flex h-full max-h-[69dvh] flex-col overflow-hidden py-4 md:max-h-[89dvh]"},Rle={key:0,class:"min-h-12 shrink-0 px-4 pt-2 text-sm"},Ple={class:"flex flex-wrap items-center gap-1"},Mle={class:"flex flex-wrap"},Ole={class:"mr-3 flex items-center gap-1"},Dle={class:"flex items-center gap-1"},Lle=nt({__name:"ConnectionDetails",setup(e){const{infoConn:t,connectionDetailModalShow:n}=tR(),r=De(null),i=/^(127\.|10\.|192\.18\.|192\.168\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)/,o=/^(fc00::|fd[0-9a-f]{2}:|fe80::)/,a=Ce(()=>{var l;return(l=t.value)==null?void 0:l.metadata.destinationIP}),s=Ce(()=>a.value?i.test(a.value)||o.test(a.value):!1);return Bt(()=>a.value,l=>{var u,c;if(l){if(s.value){r.value=null;return}((u=r.value)==null?void 0:u.ip)!==l&&(r.value=null,q2((c=t.value)==null?void 0:c.metadata.destinationIP).then(f=>{r.value=f}))}}),(l,u)=>(Y(),yt(ip,{modelValue:B(n),"onUpdate:modelValue":u[0]||(u[0]=c=>ht(n)?n.value=c:null),"no-padding":!0},{default:qn(()=>{var c,f,d,h;return[L("div",Ile,[G(B(Ale),{data:B(t),class:"overflow-y-auto px-4"},null,8,["data"]),a.value&&!s.value?(Y(),te("div",Rle,[r.value?(Y(),te(Ye,{key:0},[L("div",Ple,[G(B(Rl),{class:"h-4 w-4 shrink-0"}),L("div",null,ie((c=r.value)==null?void 0:c.ip),1),L("div",null,"( AS"+ie((f=r.value)==null?void 0:f.asn)+" )",1)]),L("div",Mle,[L("div",Ole,[G(B(ete),{class:"h-4 w-4 shrink-0"}),rt(" "+ie((d=r.value)==null?void 0:d.country),1)]),L("div",Dle,[G(B(rte),{class:"h-4 w-4 shrink-0"}),rt(" "+ie((h=r.value)==null?void 0:h.organization),1)])])],64)):at("",!0)])):at("",!0)])]}),_:1},8,["modelValue"]))}});/**
|
||
* table-core
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Tu(e,t){return typeof e=="function"?e(t):e}function $o(e,t){return n=>{t.setState(r=>({...r,[e]:Tu(n,r[e])}))}}function Eu(e){return e instanceof Function}function Nle(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function tH(e,t){const n=[],r=i=>{i.forEach(o=>{n.push(o);const a=t(o);a!=null&&a.length&&r(a)})};return r(e),n}function At(e,t,n){let r=[],i;return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o);if(!(s.length!==r.length||s.some((c,f)=>r[f]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-a)*100)/100,f=Math.round((Date.now()-u)*100)/100,d=f/16,h=(v,m)=>{for(v=String(v);v.length<m;)v=" "+v;return v};console.info(`%c⏱ ${h(f,5)} /${h(c,5)} ms`,`
|
||
font-size: .6rem;
|
||
font-weight: bold;
|
||
color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function It(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function kle(e,t,n,r){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:At(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),It(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function Fle(e,t,n,r){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=d=>{let h=d;for(const m of l.split(".")){var v;h=(v=h)==null?void 0:v[m]}return h}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:At(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},It(e.options,"debugColumns")),getLeafColumns:At(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let v=f.columns.flatMap(m=>m.getLeafColumns());return d(v)}return[f]},It(e.options,"debugColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}const ri="debugHeaders";function yk(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(o,e)}),o}const $le={createTable:e=>{e.getHeaderGroups=At(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r==null?void 0:r.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return p0(t,[...s,...u,...l],e)},It(e.options,ri)),e.getCenterHeaderGroups=At(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),p0(t,n,e,"center")),It(e.options,ri)),e.getLeftHeaderGroups=At(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return p0(t,o,e,"left")},It(e.options,ri)),e.getRightHeaderGroups=At(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return p0(t,o,e,"right")},It(e.options,ri)),e.getFooterGroups=At(()=>[e.getHeaderGroups()],t=>[...t].reverse(),It(e.options,ri)),e.getLeftFooterGroups=At(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),It(e.options,ri)),e.getCenterFooterGroups=At(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),It(e.options,ri)),e.getRightFooterGroups=At(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),It(e.options,ri)),e.getFlatHeaders=At(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),It(e.options,ri)),e.getLeftFlatHeaders=At(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),It(e.options,ri)),e.getCenterFlatHeaders=At(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),It(e.options,ri)),e.getRightFlatHeaders=At(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),It(e.options,ri)),e.getCenterLeafHeaders=At(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),It(e.options,ri)),e.getLeftLeafHeaders=At(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),It(e.options,ri)),e.getRightLeafHeaders=At(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),It(e.options,ri)),e.getLeafHeaders=At(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},It(e.options,ri))}};function p0(e,t,n,r){var i,o;let a=0;const s=function(d,h){h===void 0&&(h=1),a=Math.max(a,h),d.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&s(v.columns,h+1)},0)};s(e);let l=[];const u=(d,h)=>{const v={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(_=>{const y=[...m].reverse()[0],S=_.column.depth===v.depth;let b,w=!1;if(S&&_.column.parent?b=_.column.parent:(b=_.column,w=!0),y&&(y==null?void 0:y.column)===b)y.subHeaders.push(_);else{const T=yk(n,b,{id:[r,h,b.id,_==null?void 0:_.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${m.filter(C=>C.column===b).length}`:void 0,depth:h,index:m.length});T.subHeaders.push(_),m.push(T)}v.headers.push(_),_.headerGroup=v}),l.push(v),h>0&&u(m,h-1)},c=t.map((d,h)=>yk(n,d,{depth:a,index:h}));u(c,a-1),l.reverse();const f=d=>d.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,_=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],f(v.subHeaders).forEach(b=>{let{colSpan:w,rowSpan:T}=b;m+=w,y.push(T)})):m=1;const S=Math.min(...y);return _=_+S,v.colSpan=m,v.rowSpan=_,{colSpan:m,rowSpan:_}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const nH=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>tH(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:At(()=>[e.getAllLeafColumns()],l=>l.map(u=>kle(e,s,u,u.id)),It(e.options,"debugRows")),_getAllCellsByColumnId:At(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),It(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},Ble={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},rH=(e,t,n)=>{var r,i;const o=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};rH.autoRemove=e=>Za(e);const iH=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};iH.autoRemove=e=>Za(e);const oH=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};oH.autoRemove=e=>Za(e);const aH=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};aH.autoRemove=e=>Za(e);const sH=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});sH.autoRemove=e=>Za(e)||!(e!=null&&e.length);const lH=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});lH.autoRemove=e=>Za(e)||!(e!=null&&e.length);const uH=(e,t,n)=>e.getValue(t)===n;uH.autoRemove=e=>Za(e);const cH=(e,t,n)=>e.getValue(t)==n;cH.autoRemove=e=>Za(e);const rR=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};rR.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};rR.autoRemove=e=>Za(e)||Za(e[0])&&Za(e[1]);const il={includesString:rH,includesStringSensitive:iH,equalsString:oH,arrIncludes:aH,arrIncludesAll:sH,arrIncludesSome:lH,equals:uH,weakEquals:cH,inNumberRange:rR};function Za(e){return e==null||e===""}const Vle={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:$o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?il.includesString:typeof r=="number"?il.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?il.equals:Array.isArray(r)?il.arrIncludes:il.weakEquals},e.getFilterFn=()=>{var n,r;return Eu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:il[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r==null?void 0:r.find(c=>c.id===e.id),a=Tu(n,o?o.value:void 0);if(_k(i,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=Tu(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(_k(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function _k(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Ule=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),Hle=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},zle=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}),r},Gle=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i<a&&(i=a)))}),[r,i]},Wle=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},jle=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!Nle(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,a)=>o-a);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},Xle=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Yle=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Kle=(e,t)=>t.length,mC={sum:Ule,min:Hle,max:zle,extent:Gle,mean:Wle,median:jle,unique:Xle,uniqueCount:Yle,count:Kle},Zle={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:$o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return mC.sum;if(Object.prototype.toString.call(r)==="[object Date]")return mC.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Eu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:mC[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function qle(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}const Jle={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:$o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=At(n=>[rg(t,n)],n=>n.findIndex(r=>r.id===e.id),It(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=rg(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=rg(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=At(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return qle(o,n,r)},It(e.options,"debugTable"))}},yC=()=>({left:[],right:[]}),Qle={getInitialState:e=>({columnPinning:yC(),...e}),getDefaultOptions:e=>({onColumnPinningChange:$o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=At(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(a=>!o.includes(a.column.id))},It(t.options,"debugRows")),e.getLeftVisibleCells=At(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),It(t.options,"debugRows")),e.getRightVisibleCells=At(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),It(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?yC():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:yC())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=At(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),It(e.options,"debugColumns")),e.getRightLeafColumns=At(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),It(e.options,"debugColumns")),e.getCenterLeafColumns=At(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},It(e.options,"debugColumns"))}},v0={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},_C=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),eue={getDefaultColumnDef:()=>v0,getInitialState:e=>({columnSizing:{},columnSizingInfo:_C(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:$o("columnSizing",e),onColumnSizingInfoChange:$o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:v0.minSize,(r=o??e.columnDef.size)!=null?r:v0.size),(i=e.columnDef.maxSize)!=null?i:v0.maxSize)},e.getStart=At(n=>[n,rg(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),It(t.options,"debugColumns")),e.getAfter=At(n=>[n,rg(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),It(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),bC(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[r.id,r.getSize()]],l=bC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(b=>{var w,T;const C=t.options.columnResizeDirection==="rtl"?-1:1,E=(S-((w=b==null?void 0:b.startOffset)!=null?w:0))*C,R=Math.max(E/((T=b==null?void 0:b.startSize)!=null?T:0),-.999999);return b.columnSizingStart.forEach(I=>{let[M,P]=I;u[M]=Math.round(Math.max(P+P*R,0)*100)/100}),{...b,deltaOffset:E,deltaPercentage:R}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(b=>({...b,...u})))},f=y=>c("move",y),d=y=>{c("end",y),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,v={moveHandler:y=>f(y.clientX),upHandler:y=>{h==null||h.removeEventListener("mousemove",v.moveHandler),h==null||h.removeEventListener("mouseup",v.upHandler),d(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),d((S=y.touches[0])==null?void 0:S.clientX)}},_=tue()?{passive:!1}:!1;bC(o)?(h==null||h.addEventListener("touchmove",m.moveHandler,_),h==null||h.addEventListener("touchend",m.upHandler,_)):(h==null||h.addEventListener("mousemove",v.moveHandler,_),h==null||h.addEventListener("mouseup",v.upHandler,_)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?_C():(n=e.initialState.columnSizingInfo)!=null?n:_C())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let g0=null;function tue(){if(typeof g0=="boolean")return g0;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return g0=e,g0}function bC(e){return e.type==="touchstart"}const nue={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:$o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=At(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),It(t.options,"debugRows")),e.getVisibleCells=At(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],It(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>At(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),It(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function rg(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const rue={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},iue={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:$o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>il.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Eu(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:il[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},oue={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:$o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(i=n)!=null?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},gA=0,mA=10,SC=()=>({pageIndex:gA,pageSize:mA}),aue={getInitialState:e=>({...e,pagination:{...SC(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:$o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>Tu(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?SC():(i=e.initialState.pagination)!=null?i:SC())},e.setPageIndex=r=>{e.setPagination(i=>{let o=Tu(r,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?gA:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:gA)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?mA:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:mA)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,Tu(r,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let a=Tu(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=At(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},It(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},wC=()=>({top:[],bottom:[]}),sue={getInitialState:e=>({rowPinning:wC(),...e}),getDefaultOptions:e=>({onRowPinningChange:$o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var f,d;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((d=l==null?void 0:l.bottom)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var h,v;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=o==null?void 0:o.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?wC():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:wC())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=At(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),It(e.options,"debugRows")),e.getBottomRows=At(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),It(e.options,"debugRows")),e.getCenterRows=At(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},It(e.options,"debugRows"))}},lue={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:$o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{yA(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=At(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?xC(e,n):{rows:[],flatRows:[],rowsById:{}},It(e.options,"debugTable")),e.getFilteredSelectedRowModel=At(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?xC(e,n):{rows:[],flatRows:[],rowsById:{}},It(e.options,"debugTable")),e.getGroupedSelectedRowModel=At(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?xC(e,n):{rows:[],flatRows:[],rowsById:{}},It(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return yA(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return iR(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return _A(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return _A(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},yA=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=a.subRows)!=null&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>yA(e,s.id,n,r,i))};function xC(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=iR(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function iR(e,t){var n;return(n=t[e.id])!=null?n:!1}function _A(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(a=>{if(!(o&&!i)&&(a.getCanSelect()&&(iR(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=_A(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const bA=/([0-9]+)/gm,uue=(e,t,n)=>fH(Gu(e.getValue(n)).toLowerCase(),Gu(t.getValue(n)).toLowerCase()),cue=(e,t,n)=>fH(Gu(e.getValue(n)),Gu(t.getValue(n))),fue=(e,t,n)=>oR(Gu(e.getValue(n)).toLowerCase(),Gu(t.getValue(n)).toLowerCase()),due=(e,t,n)=>oR(Gu(e.getValue(n)),Gu(t.getValue(n))),hue=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},pue=(e,t,n)=>oR(e.getValue(n),t.getValue(n));function oR(e,t){return e===t?0:e>t?1:-1}function Gu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function fH(e,t){const n=e.split(bA).filter(Boolean),r=t.split(bA).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Xp={alphanumeric:uue,alphanumericCaseSensitive:cue,text:fue,textCaseSensitive:due,datetime:hue,basic:pue},vue={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:$o("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Xp.datetime;if(typeof o=="string"&&(r=!0,o.split(bA).length>1))return Xp.alphanumeric}return r?Xp.text:Xp.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Eu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Xp[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(h=>h.id===e.id),l=a==null?void 0:a.findIndex(h=>h.id===e.id);let u=[],c,f=o?n:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(h=>h.id===e.id?{...h,desc:f}:h):c==="remove"?u=a.filter(h=>h.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},gue=[$le,nue,Jle,Qle,Ble,Vle,rue,iue,vue,Zle,oue,aue,sue,lue,eue];function mue(e){var t,n;const r=[...gue,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((d,h)=>Object.assign(d,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),a=d=>i.options.mergeOptions?i.options.mergeOptions(o,d):{...o,...d};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(d=>{var h;l=(h=d.getInitialState==null?void 0:d.getInitialState(l))!=null?h:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:d=>{u.push(d),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:d=>{const h=Tu(d,i.options);i.options=a(h)},getState:()=>i.options.state,setState:d=>{i.options.onStateChange==null||i.options.onStateChange(d)},_getRowId:(d,h,v)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(d,h,v))!=null?m:`${v?[v.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(d,h)=>{let v=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[d];if(!v&&(v=i.getCoreRowModel().rowsById[d],!v))throw new Error;return v},_getDefaultColumnDef:At(()=>[i.options.defaultColumn],d=>{var h;return d=(h=d)!=null?h:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,_;return(m=(_=v.renderValue())==null||_.toString==null?void 0:_.toString())!=null?m:null},...i._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...d}},It(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:At(()=>[i._getColumnDefs()],d=>{const h=function(v,m,_){return _===void 0&&(_=0),v.map(y=>{const S=Fle(i,y,_,m),b=y;return S.columns=b.columns?h(b.columns,S,_+1):[],S})};return h(d)},It(e,"debugColumns")),getAllFlatColumns:At(()=>[i.getAllColumns()],d=>d.flatMap(h=>h.getFlatColumns()),It(e,"debugColumns")),_getAllFlatColumnsById:At(()=>[i.getAllFlatColumns()],d=>d.reduce((h,v)=>(h[v.id]=v,h),{}),It(e,"debugColumns")),getAllLeafColumns:At(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(d,h)=>{let v=d.flatMap(m=>m.getLeafColumns());return h(v)},It(e,"debugColumns")),getColumn:d=>i._getAllFlatColumnsById()[d]};Object.assign(i,f);for(let d=0;d<i._features.length;d++){const h=i._features[d];h==null||h.createTable==null||h.createTable(i)}return i}function yue(){return e=>At(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=nH(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a==null?void 0:a.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return s};return n.rows=r(t),n},It(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function _ue(){return e=>At(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:bue(n),It(e.options,"debugTable"))}function bue(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Sue(){return e=>At(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),n;const r=t.filter(l=>e.getColumn(l)),i=[],o={},a=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(v=>(v.depth=u,i.push(v),o[v.id]=v,v.subRows&&(v.subRows=a(v.subRows,u+1,v.id)),v));const f=r[u],d=wue(l,f);return Array.from(d.entries()).map((v,m)=>{let[_,y]=v,S=`${f}:${_}`;S=c?`${c}>${S}`:S;const b=a(y,u+1,S);b.forEach(C=>{C.parentId=S});const w=u?tH(y,C=>C.subRows):y,T=nH(e,S,w[0].original,m,u,void 0,c);return Object.assign(T,{groupingColumnId:f,groupingValue:_,subRows:b,leafRows:w,getValue:C=>{if(r.includes(C)){if(T._valuesCache.hasOwnProperty(C))return T._valuesCache[C];if(y[0]){var E;T._valuesCache[C]=(E=y[0].getValue(C))!=null?E:void 0}return T._valuesCache[C]}if(T._groupingValuesCache.hasOwnProperty(C))return T._groupingValuesCache[C];const R=e.getColumn(C),I=R==null?void 0:R.getAggregationFn();if(I)return T._groupingValuesCache[C]=I(C,w,y),T._groupingValuesCache[C]}}),b.forEach(C=>{i.push(C),o[C.id]=C}),T})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},It(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function wue(e,t){const n=new Map;return e.reduce((r,i)=>{const o=`${i.getGroupingValue(t)}`,a=r.get(o);return a?a.push(i):r.set(o,[i]),r},n)}function xue(){return e=>At(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],o=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let h=0;h<o.length;h+=1){var d;const v=o[h],m=a[v.id],_=m.sortUndefined,y=(d=v==null?void 0:v.desc)!=null?d:!1;let S=0;if(_){const b=c.getValue(v.id),w=f.getValue(v.id),T=b===void 0,C=w===void 0;if(T||C){if(_==="first")return T?-1:1;if(_==="last")return T?1:-1;S=T&&C?0:T?_:-_}}if(S===0&&(S=m.sortingFn(c,f,v.id)),S!==0)return y&&(S*=-1),m.invertSorting&&(S*=-1),S}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},It(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
||
* vue-table
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function m0(){return!0}const Cue=Symbol("merge-proxy"),Tue={get(e,t,n){return t===Cue?n:e.get(t)},has(e,t){return e.has(t)},set:m0,deleteProperty:m0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:m0,deleteProperty:m0}},ownKeys(e){return e.keys()}};function CC(e){return"value"in e?e.value:e}function Ev(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Proxy({get(r){for(let i=t.length-1;i>=0;i--){const o=CC(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in CC(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i<t.length;i++)r.push(...Object.keys(CC(t[i])));return[...Array.from(new Set(r))]}},Tue)}const TC=nt({props:["render","props"],setup:e=>()=>typeof e.render=="function"||typeof e.render=="object"?ca(e.render,e.props):e.render});function bk(e){return Ev(e,{data:B(e.data)})}function Eue(e){const t=ht(e.data),n=Ev({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:Ev(o,a)}},t?bk(e):e),r=mue(n);if(t){const o=bi(e.data);Bt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=De(r.initialState);return rS(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return Ev(o,t?bk(e):e,{state:Ev(s,(a=e.state)!=null?a:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),r}const aR="-",Aue=e=>{const t=Rue(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(aR);return s[0]===""&&s.length!==1&&s.shift(),dH(s,t)||Iue(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},dH=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?dH(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(aR);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},Sk=/^\[(.+)\]$/,Iue=e=>{if(Sk.test(e)){const t=Sk.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Rue=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)SA(n[i],r,i,t);return r},SA=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:wk(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Pue(i)){SA(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{SA(a,wk(t,o),n,r)})})},wk=(e,t)=>{let n=e;return t.split(aR).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Pue=e=>e.isThemeGetter,Mue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},wA="!",xA=":",Oue=xA.length,Due=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,s=0,l=0,u;for(let v=0;v<i.length;v++){let m=i[v];if(a===0&&s===0){if(m===xA){o.push(i.slice(l,v)),l=v+Oue;continue}if(m==="/"){u=v;continue}}m==="["?a++:m==="]"?a--:m==="("?s++:m===")"&&s--}const c=o.length===0?i:i.substring(l),f=Lue(c),d=f!==c,h=u&&u>l?u-l:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const i=t+xA,o=r;r=a=>a.startsWith(i)?o(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Lue=e=>e.endsWith(wA)?e.substring(0,e.length-1):e.startsWith(wA)?e.substring(1):e,Nue=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(i.push(...o.sort(),a),o=[]):o.push(a)}),i.push(...o.sort()),i}},kue=e=>({cache:Mue(e.cacheSize),parseClassName:Due(e),sortModifiers:Nue(e),...Aue(e)}),Fue=/\s+/,$ue=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(Fue);let l="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let _=!!m,y=r(_?v.substring(0,m):v);if(!y){if(!_){l=c+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=c+(l.length>0?" "+l:l);continue}_=!1}const S=o(d).join(":"),b=h?S+wA:S,w=b+y;if(a.includes(w))continue;a.push(w);const T=i(y,_);for(let C=0;C<T.length;++C){const E=T[C];a.push(b+E)}l=c+(l.length>0?" "+l:l)}return l};function Bue(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=hH(t))&&(r&&(r+=" "),r+=n);return r}const hH=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=hH(e[r]))&&(n&&(n+=" "),n+=t);return n};function Vue(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((c,f)=>f(c),e());return n=kue(u),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const u=r(l);if(u)return u;const c=$ue(l,n);return i(l,c),c}return function(){return o(Bue.apply(null,arguments))}}const Fr=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},pH=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vH=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Uue=/^\d+\/\d+$/,Hue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zue=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gue=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wue=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Cd=e=>Uue.test(e),rn=e=>!!e&&!Number.isNaN(Number(e)),yc=e=>!!e&&Number.isInteger(Number(e)),xk=e=>e.endsWith("%")&&rn(e.slice(0,-1)),Zl=e=>Hue.test(e),Xue=()=>!0,Yue=e=>zue.test(e)&&!Gue.test(e),sR=()=>!1,Kue=e=>Wue.test(e),Zue=e=>jue.test(e),que=e=>!lt(e)&&!ut(e),Jue=e=>op(e,yH,sR),lt=e=>pH.test(e),_c=e=>op(e,_H,Yue),EC=e=>op(e,uce,rn),Que=e=>op(e,gH,sR),ece=e=>op(e,mH,Zue),tce=e=>op(e,sR,Kue),ut=e=>vH.test(e),y0=e=>ap(e,_H),nce=e=>ap(e,cce),rce=e=>ap(e,gH),ice=e=>ap(e,yH),oce=e=>ap(e,mH),ace=e=>ap(e,fce,!0),op=(e,t,n)=>{const r=pH.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ap=(e,t,n=!1)=>{const r=vH.exec(e);return r?r[1]?t(r[1]):n:!1},gH=e=>e==="position",sce=new Set(["image","url"]),mH=e=>sce.has(e),lce=new Set(["length","size","percentage"]),yH=e=>lce.has(e),_H=e=>e==="length",uce=e=>e==="number",cce=e=>e==="family-name",fce=e=>e==="shadow",dce=()=>{const e=Fr("color"),t=Fr("font"),n=Fr("text"),r=Fr("font-weight"),i=Fr("tracking"),o=Fr("leading"),a=Fr("breakpoint"),s=Fr("container"),l=Fr("spacing"),u=Fr("radius"),c=Fr("shadow"),f=Fr("inset-shadow"),d=Fr("drop-shadow"),h=Fr("blur"),v=Fr("perspective"),m=Fr("aspect"),_=Fr("ease"),y=Fr("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],w=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],C=()=>[ut,lt,l],E=()=>[Cd,"full","auto",...C()],R=()=>[yc,"none","subgrid",ut,lt],I=()=>["auto",{span:["full",yc,ut,lt]},ut,lt],M=()=>[yc,"auto",ut,lt],P=()=>["auto","min","max","fr",ut,lt],D=()=>["start","end","center","between","around","evenly","stretch","baseline"],k=()=>["start","end","center","stretch"],$=()=>["auto",...C()],W=()=>[Cd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],N=()=>[e,ut,lt],K=()=>[xk,_c],X=()=>["","none","full",u,ut,lt],ae=()=>["",rn,y0,_c],ge=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Me=()=>["","none",h,ut,lt],ke=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ut,lt],Ue=()=>["none",rn,ut,lt],Le=()=>["none",rn,ut,lt],je=()=>[rn,ut,lt],fe=()=>[Cd,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zl],breakpoint:[Zl],color:[Xue],container:[Zl],"drop-shadow":[Zl],ease:["in","out","in-out"],font:[que],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zl],shadow:[Zl],spacing:["px",rn],text:[Zl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Cd,lt,ut,m]}],container:["container"],columns:[{columns:[rn,lt,ut,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...b(),lt,ut]}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[yc,"auto",ut,lt]}],basis:[{basis:[Cd,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rn,Cd,"auto","initial","none",lt]}],grow:[{grow:["",rn,ut,lt]}],shrink:[{shrink:["",rn,ut,lt]}],order:[{order:[yc,"first","last","none",ut,lt]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...k(),"normal"]}],"justify-self":[{"justify-self":["auto",...k()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...k(),"baseline"]}],"align-self":[{self:["auto",...k(),"baseline"]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...k(),"baseline"]}],"place-self":[{"place-self":["auto",...k()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[s,"screen",...W()]}],"min-w":[{"min-w":[s,"screen","none",...W()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",n,y0,_c]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ut,EC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xk,lt]}],"font-family":[{font:[nce,lt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ut,lt]}],"line-clamp":[{"line-clamp":[rn,"none",ut,EC]}],leading:[{leading:[o,...C()]}],"list-image":[{"list-image":["none",ut,lt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ut,lt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[rn,"from-font","auto",ut,_c]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[rn,"auto",ut,lt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ut,lt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ut,lt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...b(),rce,Que]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",ice,Jue]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yc,ut,lt],radial:["",ut,lt],conic:[yc,ut,lt]},oce,ece]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rn,ut,lt]}],"outline-w":[{outline:["",rn,y0,_c]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",c,ace,tce]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",ut,lt,f]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[rn,_c]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":N()}],opacity:[{opacity:[rn,ut,lt]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none",ut,lt]}],blur:[{blur:Me()}],brightness:[{brightness:[rn,ut,lt]}],contrast:[{contrast:[rn,ut,lt]}],"drop-shadow":[{"drop-shadow":["","none",d,ut,lt]}],grayscale:[{grayscale:["",rn,ut,lt]}],"hue-rotate":[{"hue-rotate":[rn,ut,lt]}],invert:[{invert:["",rn,ut,lt]}],saturate:[{saturate:[rn,ut,lt]}],sepia:[{sepia:["",rn,ut,lt]}],"backdrop-filter":[{"backdrop-filter":["","none",ut,lt]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[rn,ut,lt]}],"backdrop-contrast":[{"backdrop-contrast":[rn,ut,lt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rn,ut,lt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rn,ut,lt]}],"backdrop-invert":[{"backdrop-invert":["",rn,ut,lt]}],"backdrop-opacity":[{"backdrop-opacity":[rn,ut,lt]}],"backdrop-saturate":[{"backdrop-saturate":[rn,ut,lt]}],"backdrop-sepia":[{"backdrop-sepia":["",rn,ut,lt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ut,lt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rn,"initial",ut,lt]}],ease:[{ease:["linear","initial",_,ut,lt]}],delay:[{delay:[rn,ut,lt]}],animate:[{animate:["none",y,ut,lt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ut,lt]}],"perspective-origin":[{"perspective-origin":ke()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:Le()}],"scale-x":[{"scale-x":Le()}],"scale-y":[{"scale-y":Le()}],"scale-z":[{"scale-z":Le()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[ut,lt,"","none","gpu","cpu"]}],"transform-origin":[{origin:ke()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ut,lt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ut,lt]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[rn,y0,_c,EC]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},_i=Vue(dce),hce={class:"bg-base-100 sticky -top-2 z-10"},pce=["colSpan","onClick"],vce={class:"flex items-center gap-1"},gce=["onClick"],mce=["onDblclick","onMousedown","onTouchstart"],yce=["onClick"],_ce={key:0,class:"flex items-center"},bce={class:"ml-1"},Sce=nt({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=tR(),n=pt("config/table-column-width",{[ze.Close]:50,[ze.Host]:320,[ze.Chains]:320,[ze.Rule]:200,[ze.Download]:80,[ze.DlSpeed]:80,[ze.Upload]:80,[ze.UlSpeed]:80,[ze.Type]:150,[ze.Process]:150,[ze.SourceIP]:150,[ze.SourcePort]:100,[ze.SniffHost]:200,[ze.Destination]:150,[ze.ConnectTime]:100}),r=Ce(()=>U_.value===fS.MANUAL),{t:i}=Qr(),o=[{header:()=>i(ze.Close),enableSorting:!1,id:ze.Close,cell:({row:b})=>ca("button",{class:"btn btn-xs btn-circle",onClick:w=>{const T=b.original;w.stopPropagation(),wS(T.id)}},[ca(Nf,{class:"h-4 w-4"})])},{header:()=>i(ze.Type),id:ze.Type,accessorFn:b=>HU(b)},{header:()=>i(ze.Process),id:ze.Process,accessorFn:b=>BU(b)},{header:()=>i(ze.Host),id:ze.Host,accessorFn:b=>`${b.metadata.host||b.metadata.sniffHost||b.metadata.destinationIP}:${b.metadata.destinationPort}`},{header:()=>i(ze.SniffHost),id:ze.SniffHost,accessorFn:b=>b.metadata.sniffHost||"-"},{header:()=>i(ze.Rule),id:ze.Rule,accessorFn:b=>b.rulePayload?`${b.rule}: ${b.rulePayload}`:b.rule},{header:()=>i(ze.Chains),id:ze.Chains,accessorFn:cA,cell:({row:b})=>{const w=[],T=b.original.chains;return T.forEach((C,E)=>{w.unshift(ca(Bf,{name:C,size:"small"})),E<T.length-1&&w.unshift(ca(Rl,{class:"h-4 w-4 shrink-0"}))}),ca("div",{class:`inline-flex items-center ${dh.value===tp.REVERSE&&"flex-row-reverse justify-end"} gap-1`},w)}},{header:()=>i(ze.ConnectTime),enableGrouping:!1,id:ze.ConnectTime,accessorFn:b=>TS(b.start),sortingFn:(b,w)=>po(w.original.start).valueOf()-po(b.original.start).valueOf()},{header:()=>i(ze.DlSpeed),enableGrouping:!1,sortDescFirst:!0,id:ze.DlSpeed,accessorFn:b=>`${Gn(b.downloadSpeed)}/s`,sortingFn:(b,w)=>b.original.downloadSpeed-w.original.downloadSpeed},{header:()=>i(ze.UlSpeed),enableGrouping:!1,sortDescFirst:!0,id:ze.UlSpeed,accessorFn:b=>`${Gn(b.uploadSpeed)}/s`,sortingFn:(b,w)=>b.original.uploadSpeed-w.original.uploadSpeed},{header:()=>i(ze.Download),enableGrouping:!1,sortDescFirst:!0,id:ze.Download,accessorFn:b=>Gn(b.download),sortingFn:(b,w)=>b.original.download-w.original.download},{header:()=>i(ze.Upload),enableGrouping:!1,sortDescFirst:!0,id:ze.Upload,accessorFn:b=>Gn(b.upload),sortingFn:(b,w)=>b.original.upload-w.original.upload},{header:()=>i(ze.SourceIP),id:ze.SourceIP,accessorFn:b=>Z1(b.metadata.sourceIP)},{header:()=>i(ze.SourcePort),id:ze.SourcePort,accessorFn:b=>b.metadata.sourcePort},{header:()=>i(ze.Destination),id:ze.Destination,accessorFn:VU},{header:()=>i(ze.DestinationType),id:ze.DestinationType,accessorFn:UU},{header:()=>i(ze.RemoteAddress),id:ze.RemoteAddress,accessorFn:b=>b.metadata.remoteDestination||"-"}],a=De([]),s=De({}),l=pt("config/table-sorting",[]),u=Eue({get data(){return Dh.value},columns:o,columnResizeMode:"onChange",columnResizeDirection:"ltr",state:{get columnOrder(){return xu.value},get columnVisibility(){return{...Object.fromEntries(Object.values(ze).map(b=>[b,!1])),...Object.fromEntries(xu.value.map(b=>[b,!0]))}},get grouping(){return a.value},get expanded(){return s.value},get sorting(){return l.value},get columnSizing(){return n.value}},onGroupingChange:b=>{Eu(b)?a.value=b(a.value):a.value=b},onExpandedChange:b=>{Eu(b)&&(s.value=b(s.value))},onSortingChange:b=>{Eu(b)?l.value=b(l.value):l.value=b},onColumnSizingChange:b=>{Eu(b)?n.value=b(n.value):n.value=b},getSortedRowModel:xue(),getGroupedRowModel:Sue(),getExpandedRowModel:_ue(),getCoreRowModel:yue()}),c=Ce(()=>u.getRowModel().rows),f=De(null),d=Ce(()=>({count:c.value.length,getScrollElement:()=>f.value,estimateSize:()=>36,overscan:48})),h=WU(d),v=Ce(()=>h.value.getVirtualItems()),m=Ce(()=>h.value.getTotalSize()+24),_={[Ug.SMALL]:"table-xs",[Ug.LARGE]:"table-sm"},y=Ce(()=>_[V_.value]),S=b=>{b.getIsGrouped()?b.getCanExpand()&&b.getToggleExpandedHandler()():t(b.original)};return(b,w)=>(Y(),te("div",{ref_key:"parentRef",ref:f,class:"h-full overflow-y-auto p-2",onTouchstart:w[0]||(w[0]=gr(()=>{},["stop"])),onTouchmove:w[1]||(w[1]=gr(()=>{},["stop"])),onTouchend:w[2]||(w[2]=gr(()=>{},["stop"]))},[L("div",{style:pr({height:`${m.value}px`})},[L("table",{class:gt(["table-zebra table rounded-none shadow-md",y.value,r.value&&"table-fixed"]),style:pr(r.value&&{width:`${B(u).getCenterTotalSize()}px`})},[L("thead",hce,[(Y(!0),te(Ye,null,fn(B(u).getHeaderGroups(),T=>(Y(),te("tr",{key:T.id},[(Y(!0),te(Ye,null,fn(T.headers,C=>(Y(),te("th",{key:C.id,colSpan:C.colSpan,class:gt(["relative",C.column.getCanSort()?"cursor-pointer select-none":""]),style:pr(r.value&&{width:`${C.getSize()}px`}),onClick:E=>{var R;return(R=C.column.getToggleSortingHandler())==null?void 0:R(E)}},[L("div",vce,[C.column.getCanGroup()?(Y(),te("button",{key:0,class:"cursor-pointer",onClick:gr(()=>C.column.getToggleGroupingHandler()(),["stop"])},[C.column.getIsGrouped()?(Y(),yt(B(EL),{key:0,class:"h-4 w-4"})):(Y(),yt(B(AL),{key:1,class:"h-4 w-4"}))],8,gce)):at("",!0),C.isPlaceholder?at("",!0):(Y(),yt(B(TC),{key:1,render:C.column.columnDef.header,props:C.getContext()},null,8,["render","props"])),C.column.getIsSorted()==="asc"?(Y(),yt(B(Rm),{key:2,class:"h-4 w-4"})):at("",!0),C.column.getIsSorted()==="desc"?(Y(),yt(B(sS),{key:3,class:"h-4 w-4"})):at("",!0)]),r.value?(Y(),te("div",{key:0,onDblclick:()=>C.column.resetSize(),onMousedown:E=>C.getResizeHandler()(E),onTouchstart:E=>C.getResizeHandler()(E),class:"resizer bg-neutral absolute top-0 right-0 h-full w-1 cursor-ew-resize"},null,40,mce)):at("",!0)],14,pce))),128))]))),128))]),L("tbody",null,[(Y(!0),te(Ye,null,fn(v.value,(T,C)=>(Y(),te("tr",{key:T.key.toString(),style:pr({height:`${T.size}px`,transform:`translateY(${T.start-C*T.size}px)`}),class:"bg-base-100 hover:bg-primary! hover:text-primary-content cursor-pointer",onClick:E=>S(c.value[T.index])},[(Y(!0),te(Ye,null,fn(c.value[T.index].getVisibleCells(),E=>(Y(),te("td",{key:E.id,class:gt([r.value?"truncate text-sm":B(_i)("text-sm whitespace-nowrap",[B(ze).Download,B(ze).DlSpeed,B(ze).Upload,B(ze).UlSpeed].includes(E.column.id)&&"min-w-20",B(ze).Host===E.column.id&&"max-w-sm truncate",B(ze).Chains===E.column.id&&"max-w-xl truncate")])},[E.column.getIsGrouped()?(Y(),te(Ye,{key:0},[c.value[T.index].getCanExpand()?(Y(),te("div",_ce,[c.value[T.index].getIsExpanded()?(Y(),yt(B(EL),{key:0,class:"mr-1 inline-block h-4 w-4"})):(Y(),yt(B(AL),{key:1,class:"mr-1 inline-block h-4 w-4"})),G(B(TC),{render:E.column.columnDef.cell,props:E.getContext()},null,8,["render","props"]),L("span",bce," ("+ie(c.value[T.index].subRows.length)+") ",1)])):at("",!0)],64)):(Y(),yt(B(TC),{key:1,render:E.getIsAggregated()?E.column.columnDef.aggregatedCell:E.column.columnDef.cell,props:E.getContext()},null,8,["render","props"]))],2))),128))],12,yce))),128))])],6)],4)],544))}}),wce={class:"size-full overflow-x-hidden"},xce=nt({__name:"ConnectionsPage",setup(e){return(t,n)=>(Y(),te("div",wce,[B(Mo)?(Y(),yt(yle,{key:0,class:"overflow-x-hidden p-2"})):(Y(),yt(Sce,{key:1})),G(Lle)]))}});var co="top",Sa="bottom",wa="right",fo="left",lR="auto",Fm=[co,Sa,wa,fo],Nh="start",Zg="end",Cce="clippingParents",bH="viewport",Yp="popper",Tce="reference",Ck=Fm.reduce(function(e,t){return e.concat([t+"-"+Nh,t+"-"+Zg])},[]),SH=[].concat(Fm,[lR]).reduce(function(e,t){return e.concat([t,t+"-"+Nh,t+"-"+Zg])},[]),Ece="beforeRead",Ace="read",Ice="afterRead",Rce="beforeMain",Pce="main",Mce="afterMain",Oce="beforeWrite",Dce="write",Lce="afterWrite",Nce=[Ece,Ace,Ice,Rce,Pce,Mce,Oce,Dce,Lce];function Rs(e){return e?(e.nodeName||"").toLowerCase():null}function Bo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vf(e){var t=Bo(e).Element;return e instanceof t||e instanceof Element}function va(e){var t=Bo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uR(e){if(typeof ShadowRoot>"u")return!1;var t=Bo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kce(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!va(o)||!Rs(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Fce(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!va(i)||!Rs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const wH={name:"applyStyles",enabled:!0,phase:"write",fn:kce,effect:Fce,requires:["computeStyles"]};function xs(e){return e.split("-")[0]}var Af=Math.max,eb=Math.min,kh=Math.round;function CA(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xH(){return!/^((?!chrome|android).)*safari/i.test(CA())}function Fh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&va(e)&&(i=e.offsetWidth>0&&kh(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&kh(r.height)/e.offsetHeight||1);var a=Vf(e)?Bo(e):window,s=a.visualViewport,l=!xH()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function cR(e){var t=Fh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function CH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uR(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pl(e){return Bo(e).getComputedStyle(e)}function $ce(e){return["table","td","th"].indexOf(Rs(e))>=0}function ic(e){return((Vf(e)?e.ownerDocument:e.document)||window.document).documentElement}function ES(e){return Rs(e)==="html"?e:e.assignedSlot||e.parentNode||(uR(e)?e.host:null)||ic(e)}function Tk(e){return!va(e)||Pl(e).position==="fixed"?null:e.offsetParent}function Bce(e){var t=/firefox/i.test(CA()),n=/Trident/i.test(CA());if(n&&va(e)){var r=Pl(e);if(r.position==="fixed")return null}var i=ES(e);for(uR(i)&&(i=i.host);va(i)&&["html","body"].indexOf(Rs(i))<0;){var o=Pl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function $m(e){for(var t=Bo(e),n=Tk(e);n&&$ce(n)&&Pl(n).position==="static";)n=Tk(n);return n&&(Rs(n)==="html"||Rs(n)==="body"&&Pl(n).position==="static")?t:n||Bce(e)||t}function fR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ig(e,t,n){return Af(e,eb(t,n))}function Vce(e,t,n){var r=ig(e,t,n);return r>n?n:r}function TH(){return{top:0,right:0,bottom:0,left:0}}function EH(e){return Object.assign({},TH(),e)}function AH(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Uce=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EH(typeof t!="number"?t:AH(t,Fm))};function Hce(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xs(n.placement),l=fR(s),u=[fo,wa].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=Uce(i.padding,n),d=cR(o),h=l==="y"?co:fo,v=l==="y"?Sa:wa,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],_=a[l]-n.rects.reference[l],y=$m(o),S=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=m/2-_/2,w=f[h],T=S-d[c]-f[v],C=S/2-d[c]/2+b,E=ig(w,C,T),R=l;n.modifiersData[r]=(t={},t[R]=E,t.centerOffset=E-C,t)}}function zce(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||CH(t.elements.popper,i)&&(t.elements.arrow=i))}const Gce={name:"arrow",enabled:!0,phase:"main",fn:Hce,effect:zce,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $h(e){return e.split("-")[1]}var Wce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jce(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:kh(n*i)/i||0,y:kh(r*i)/i||0}}function Ek(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,v=a.y,m=v===void 0?0:v,_=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=_.x,m=_.y;var y=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),b=fo,w=co,T=window;if(u){var C=$m(n),E="clientHeight",R="clientWidth";if(C===Bo(n)&&(C=ic(n),Pl(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",R="scrollWidth")),C=C,i===co||(i===fo||i===wa)&&o===Zg){w=Sa;var I=f&&C===T&&T.visualViewport?T.visualViewport.height:C[E];m-=I-r.height,m*=l?1:-1}if(i===fo||(i===co||i===Sa)&&o===Zg){b=wa;var M=f&&C===T&&T.visualViewport?T.visualViewport.width:C[R];h-=M-r.width,h*=l?1:-1}}var P=Object.assign({position:s},u&&Wce),D=c===!0?jce({x:h,y:m},Bo(n)):{x:h,y:m};if(h=D.x,m=D.y,l){var k;return Object.assign({},P,(k={},k[w]=S?"0":"",k[b]=y?"0":"",k.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",k))}return Object.assign({},P,(t={},t[w]=S?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}function Xce(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:xs(t.placement),variation:$h(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ek(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ek(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Yce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xce,data:{}};var _0={passive:!0};function Kce(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Bo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,_0)}),s&&l.addEventListener("resize",n.update,_0),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,_0)}),s&&l.removeEventListener("resize",n.update,_0)}}const Zce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kce,data:{}};var qce={left:"right",right:"left",bottom:"top",top:"bottom"};function J_(e){return e.replace(/left|right|bottom|top/g,function(t){return qce[t]})}var Jce={start:"end",end:"start"};function Ak(e){return e.replace(/start|end/g,function(t){return Jce[t]})}function dR(e){var t=Bo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hR(e){return Fh(ic(e)).left+dR(e).scrollLeft}function Qce(e,t){var n=Bo(e),r=ic(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=xH();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+hR(e),y:l}}function efe(e){var t,n=ic(e),r=dR(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Af(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Af(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+hR(e),l=-r.scrollTop;return Pl(i||n).direction==="rtl"&&(s+=Af(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function pR(e){var t=Pl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function IH(e){return["html","body","#document"].indexOf(Rs(e))>=0?e.ownerDocument.body:va(e)&&pR(e)?e:IH(ES(e))}function og(e,t){var n;t===void 0&&(t=[]);var r=IH(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Bo(r),a=i?[o].concat(o.visualViewport||[],pR(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(og(ES(a)))}function TA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tfe(e,t){var n=Fh(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ik(e,t,n){return t===bH?TA(Qce(e,n)):Vf(t)?tfe(t,n):TA(efe(ic(e)))}function nfe(e){var t=og(ES(e)),n=["absolute","fixed"].indexOf(Pl(e).position)>=0,r=n&&va(e)?$m(e):e;return Vf(r)?t.filter(function(i){return Vf(i)&&CH(i,r)&&Rs(i)!=="body"}):[]}function rfe(e,t,n,r){var i=t==="clippingParents"?nfe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=Ik(e,u,r);return l.top=Af(c.top,l.top),l.right=eb(c.right,l.right),l.bottom=eb(c.bottom,l.bottom),l.left=Af(c.left,l.left),l},Ik(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function RH(e){var t=e.reference,n=e.element,r=e.placement,i=r?xs(r):null,o=r?$h(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case co:l={x:a,y:t.y-n.height};break;case Sa:l={x:a,y:t.y+t.height};break;case wa:l={x:t.x+t.width,y:s};break;case fo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?fR(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Nh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Zg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function qg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Cce:s,u=n.rootBoundary,c=u===void 0?bH:u,f=n.elementContext,d=f===void 0?Yp:f,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,_=m===void 0?0:m,y=EH(typeof _!="number"?_:AH(_,Fm)),S=d===Yp?Tce:Yp,b=e.rects.popper,w=e.elements[v?S:d],T=rfe(Vf(w)?w:w.contextElement||ic(e.elements.popper),l,c,a),C=Fh(e.elements.reference),E=RH({reference:C,element:b,placement:i}),R=TA(Object.assign({},b,E)),I=d===Yp?R:C,M={top:T.top-I.top+y.top,bottom:I.bottom-T.bottom+y.bottom,left:T.left-I.left+y.left,right:I.right-T.right+y.right},P=e.modifiersData.offset;if(d===Yp&&P){var D=P[i];Object.keys(M).forEach(function(k){var $=[wa,Sa].indexOf(k)>=0?1:-1,W=[co,Sa].indexOf(k)>=0?"y":"x";M[k]+=D[W]*$})}return M}function ife(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?SH:l,c=$h(r),f=c?s?Ck:Ck.filter(function(v){return $h(v)===c}):Fm,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=qg(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[xs(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function ofe(e){if(xs(e)===lR)return[];var t=J_(e);return[Ak(e),t,Ak(t)]}function afe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,_=t.options.placement,y=xs(_),S=y===_,b=l||(S||!v?[J_(_)]:ofe(_)),w=[_].concat(b).reduce(function(Ue,Le){return Ue.concat(xs(Le)===lR?ife(t,{placement:Le,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):Le)},[]),T=t.rects.reference,C=t.rects.popper,E=new Map,R=!0,I=w[0],M=0;M<w.length;M++){var P=w[M],D=xs(P),k=$h(P)===Nh,$=[co,Sa].indexOf(D)>=0,W=$?"width":"height",N=qg(t,{placement:P,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),K=$?k?wa:fo:k?Sa:co;T[W]>C[W]&&(K=J_(K));var X=J_(K),ae=[];if(o&&ae.push(N[D]<=0),s&&ae.push(N[K]<=0,N[X]<=0),ae.every(function(Ue){return Ue})){I=P,R=!1;break}E.set(P,ae)}if(R)for(var ge=v?3:1,ye=function(Le){var je=w.find(function(fe){var Ae=E.get(fe);if(Ae)return Ae.slice(0,Le).every(function(Se){return Se})});if(je)return I=je,"break"},Me=ge;Me>0;Me--){var ke=ye(Me);if(ke==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const sfe={name:"flip",enabled:!0,phase:"main",fn:afe,requiresIfExists:["offset"],data:{_skip:!1}};function Rk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pk(e){return[co,wa,Sa,fo].some(function(t){return e[t]>=0})}function lfe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=qg(t,{elementContext:"reference"}),s=qg(t,{altBoundary:!0}),l=Rk(a,r),u=Rk(s,i,o),c=Pk(l),f=Pk(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const ufe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lfe};function cfe(e,t,n){var r=xs(e),i=[fo,co].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[fo,wa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function ffe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=SH.reduce(function(c,f){return c[f]=cfe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const dfe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ffe};function hfe(e){var t=e.state,n=e.name;t.modifiersData[n]=RH({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pfe={name:"popperOffsets",enabled:!0,phase:"read",fn:hfe,data:{}};function vfe(e){return e==="x"?"y":"x"}function gfe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,m=v===void 0?0:v,_=qg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=xs(t.placement),S=$h(t.placement),b=!S,w=fR(y),T=vfe(w),C=t.modifiersData.popperOffsets,E=t.rects.reference,R=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(o){var k,$=w==="y"?co:fo,W=w==="y"?Sa:wa,N=w==="y"?"height":"width",K=C[w],X=K+_[$],ae=K-_[W],ge=h?-R[N]/2:0,ye=S===Nh?E[N]:R[N],Me=S===Nh?-R[N]:-E[N],ke=t.elements.arrow,Ue=h&&ke?cR(ke):{width:0,height:0},Le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TH(),je=Le[$],fe=Le[W],Ae=ig(0,E[N],Ue[N]),Se=b?E[N]/2-ge-Ae-je-M.mainAxis:ye-Ae-je-M.mainAxis,Te=b?-E[N]/2+ge+Ae+fe+M.mainAxis:Me+Ae+fe+M.mainAxis,Ne=t.elements.arrow&&$m(t.elements.arrow),Be=Ne?w==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,H=(k=P==null?void 0:P[w])!=null?k:0,z=K+Se-H-Be,ue=K+Te-H,we=ig(h?eb(X,z):X,K,h?Af(ae,ue):ae);C[w]=we,D[w]=we-K}if(s){var ve,U=w==="x"?co:fo,j=w==="x"?Sa:wa,J=C[T],de=T==="y"?"height":"width",_e=J+_[U],Oe=J-_[j],q=[co,fo].indexOf(y)!==-1,he=(ve=P==null?void 0:P[T])!=null?ve:0,Ve=q?_e:J-E[de]-R[de]-he+M.altAxis,Ze=q?J+E[de]+R[de]-he-M.altAxis:Oe,bt=h&&q?Vce(Ve,J,Ze):ig(h?Ve:_e,J,h?Ze:Oe);C[T]=bt,D[T]=bt-J}t.modifiersData[r]=D}}const mfe={name:"preventOverflow",enabled:!0,phase:"main",fn:gfe,requiresIfExists:["offset"]};function yfe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _fe(e){return e===Bo(e)||!va(e)?dR(e):yfe(e)}function bfe(e){var t=e.getBoundingClientRect(),n=kh(t.width)/e.offsetWidth||1,r=kh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sfe(e,t,n){n===void 0&&(n=!1);var r=va(t),i=va(t)&&bfe(t),o=ic(t),a=Fh(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Rs(t)!=="body"||pR(o))&&(s=_fe(t)),va(t)?(l=Fh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=hR(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wfe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function xfe(e){var t=wfe(e);return Nce.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Cfe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Tfe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mk={placement:"bottom",modifiers:[],strategy:"absolute"};function Ok(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Efe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Mk:i;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mk,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(y){var S=typeof y=="function"?y(c.options):y;m(),c.options=Object.assign({},o,c.options,S),c.scrollParents={reference:Vf(s)?og(s):s.contextElement?og(s.contextElement):[],popper:og(l)};var b=xfe(Tfe([].concat(r,c.options.modifiers)));return c.orderedModifiers=b.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var y=c.elements,S=y.reference,b=y.popper;if(Ok(S,b)){c.rects={reference:Sfe(S,$m(b),c.options.strategy==="fixed"),popper:cR(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var T=c.orderedModifiers[w],C=T.fn,E=T.options,R=E===void 0?{}:E,I=T.name;typeof C=="function"&&(c=C({state:c,options:R,name:I,instance:h})||c)}}}},update:Cfe(function(){return new Promise(function(_){h.forceUpdate(),_(c)})}),destroy:function(){m(),d=!0}};if(!Ok(s,l))return h;h.setOptions(u).then(function(_){!d&&u.onFirstUpdate&&u.onFirstUpdate(_)});function v(){c.orderedModifiers.forEach(function(_){var y=_.name,S=_.options,b=S===void 0?{}:S,w=_.effect;if(typeof w=="function"){var T=w({state:c,name:y,instance:h,options:b}),C=function(){};f.push(T||C)}})}function m(){f.forEach(function(_){return _()}),f=[]}return h}}var Afe=[Zce,pfe,Yce,wH,dfe,sfe,mfe,Gce,ufe],Ife=Efe({defaultModifiers:Afe}),Rfe="tippy-box",PH="tippy-content",Pfe="tippy-backdrop",MH="tippy-arrow",OH="tippy-svg-arrow",Yc={passive:!0,capture:!0},DH=function(){return document.body};function AC(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function vR(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function LH(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Dk(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Mfe(e){return e.split(/\s+/).filter(Boolean)}function Zd(e){return[].concat(e)}function Lk(e,t){e.indexOf(t)===-1&&e.push(t)}function Ofe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Dfe(e){return e.split("-")[0]}function tb(e){return[].slice.call(e)}function Nk(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function ag(){return document.createElement("div")}function AS(e){return["Element","Fragment"].some(function(t){return vR(e,t)})}function Lfe(e){return vR(e,"NodeList")}function Nfe(e){return vR(e,"MouseEvent")}function kfe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Ffe(e){return AS(e)?[e]:Lfe(e)?tb(e):Array.isArray(e)?e:tb(document.querySelectorAll(e))}function IC(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function kk(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function $fe(e){var t,n=Zd(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Bfe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=Dfe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+f>l,_=r-o.bottom-d>l,y=o.left-n+h>l,S=n-o.right-v>l;return m||_||y||S})}function RC(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function Fk(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var gs={isTouch:!1},$k=0;function Vfe(){gs.isTouch||(gs.isTouch=!0,window.performance&&document.addEventListener("mousemove",NH))}function NH(){var e=performance.now();e-$k<20&&(gs.isTouch=!1,document.removeEventListener("mousemove",NH)),$k=e}function Ufe(){var e=document.activeElement;if(kfe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Hfe(){document.addEventListener("touchstart",Vfe,Yc),window.addEventListener("blur",Ufe)}var zfe=typeof window<"u"&&typeof document<"u",Gfe=zfe?!!window.msCrypto:!1,Wfe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},jfe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Xa=Object.assign({appendTo:DH,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Wfe,jfe),Xfe=Object.keys(Xa),Yfe=function(t){var n=Object.keys(t);n.forEach(function(r){Xa[r]=t[r]})};function kH(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=Xa[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Kfe(e,t){var n=t?Object.keys(kH(Object.assign({},Xa,{plugins:t}))):Xfe,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function Bk(e,t){var n=Object.assign({},t,{content:LH(t.content,[e])},t.ignoreAttributes?{}:Kfe(e,t.plugins));return n.aria=Object.assign({},Xa.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Zfe=function(){return"innerHTML"};function EA(e,t){e[Zfe()]=t}function Vk(e){var t=ag();return e===!0?t.className=MH:(t.className=OH,AS(e)?t.appendChild(e):EA(t,e)),t}function Uk(e,t){AS(t.content)?(EA(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?EA(e,t.content):e.textContent=t.content)}function AA(e){var t=e.firstElementChild,n=tb(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(PH)}),arrow:n.find(function(r){return r.classList.contains(MH)||r.classList.contains(OH)}),backdrop:n.find(function(r){return r.classList.contains(Pfe)})}}function FH(e){var t=ag(),n=ag();n.className=Rfe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ag();r.className=PH,r.setAttribute("data-state","hidden"),Uk(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=AA(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&Uk(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(Vk(a.arrow))):l.appendChild(Vk(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}FH.$$tippy=!0;var qfe=1,b0=[],PC=[];function Jfe(e,t){var n=Bk(e,Object.assign({},Xa,kH(Nk(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],v=Dk(z,n.interactiveDebounce),m,_=qfe++,y=null,S=Ofe(n.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:_,reference:e,popper:ag(),popperInstance:y,props:n,state:b,plugins:S,clearDelayTimeouts:Ve,setProps:Ze,setContent:bt,show:ne,hide:se,hideWithInteractivity:pe,enable:q,disable:he,unmount:Ee,destroy:Ge};if(!n.render)return w;var T=n.render(w),C=T.popper,E=T.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+w.id,w.popper=C,e._tippy=w,C._tippy=w;var R=S.map(function(oe){return oe.fn(w)}),I=e.hasAttribute("aria-expanded");return Ne(),ge(),K(),X("onCreate",[w]),n.showOnCreate&&_e(),C.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",v)}),w;function M(){var oe=w.props.touch;return Array.isArray(oe)?oe:[oe,0]}function P(){return M()[0]==="hold"}function D(){var oe;return!!((oe=w.props.render)!=null&&oe.$$tippy)}function k(){return m||e}function $(){var oe=k().parentNode;return oe?$fe(oe):document}function W(){return AA(C)}function N(oe){return w.state.isMounted&&!w.state.isVisible||gs.isTouch||c&&c.type==="focus"?0:AC(w.props.delay,oe?0:1,Xa.delay)}function K(oe){oe===void 0&&(oe=!1),C.style.pointerEvents=w.props.interactive&&!oe?"":"none",C.style.zIndex=""+w.props.zIndex}function X(oe,Ie,$e){if($e===void 0&&($e=!0),R.forEach(function(We){We[oe]&&We[oe].apply(We,Ie)}),$e){var et;(et=w.props)[oe].apply(et,Ie)}}function ae(){var oe=w.props.aria;if(oe.content){var Ie="aria-"+oe.content,$e=C.id,et=Zd(w.props.triggerTarget||e);et.forEach(function(We){var Xe=We.getAttribute(Ie);if(w.state.isVisible)We.setAttribute(Ie,Xe?Xe+" "+$e:$e);else{var tt=Xe&&Xe.replace($e,"").trim();tt?We.setAttribute(Ie,tt):We.removeAttribute(Ie)}})}}function ge(){if(!(I||!w.props.aria.expanded)){var oe=Zd(w.props.triggerTarget||e);oe.forEach(function(Ie){w.props.interactive?Ie.setAttribute("aria-expanded",w.state.isVisible&&Ie===k()?"true":"false"):Ie.removeAttribute("aria-expanded")})}}function ye(){$().removeEventListener("mousemove",v),b0=b0.filter(function(oe){return oe!==v})}function Me(oe){if(!(gs.isTouch&&(l||oe.type==="mousedown"))){var Ie=oe.composedPath&&oe.composedPath()[0]||oe.target;if(!(w.props.interactive&&Fk(C,Ie))){if(Zd(w.props.triggerTarget||e).some(function($e){return Fk($e,Ie)})){if(gs.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else X("onClickOutside",[w,oe]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),s=!0,setTimeout(function(){s=!1}),w.state.isMounted||je())}}}function ke(){l=!0}function Ue(){l=!1}function Le(){var oe=$();oe.addEventListener("mousedown",Me,!0),oe.addEventListener("touchend",Me,Yc),oe.addEventListener("touchstart",Ue,Yc),oe.addEventListener("touchmove",ke,Yc)}function je(){var oe=$();oe.removeEventListener("mousedown",Me,!0),oe.removeEventListener("touchend",Me,Yc),oe.removeEventListener("touchstart",Ue,Yc),oe.removeEventListener("touchmove",ke,Yc)}function fe(oe,Ie){Se(oe,function(){!w.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&Ie()})}function Ae(oe,Ie){Se(oe,Ie)}function Se(oe,Ie){var $e=W().box;function et(We){We.target===$e&&(RC($e,"remove",et),Ie())}if(oe===0)return Ie();RC($e,"remove",f),RC($e,"add",et),f=et}function Te(oe,Ie,$e){$e===void 0&&($e=!1);var et=Zd(w.props.triggerTarget||e);et.forEach(function(We){We.addEventListener(oe,Ie,$e),h.push({node:We,eventType:oe,handler:Ie,options:$e})})}function Ne(){P()&&(Te("touchstart",H,{passive:!0}),Te("touchend",ue,{passive:!0})),Mfe(w.props.trigger).forEach(function(oe){if(oe!=="manual")switch(Te(oe,H),oe){case"mouseenter":Te("mouseleave",ue);break;case"focus":Te(Gfe?"focusout":"blur",we);break;case"focusin":Te("focusout",we);break}})}function Be(){h.forEach(function(oe){var Ie=oe.node,$e=oe.eventType,et=oe.handler,We=oe.options;Ie.removeEventListener($e,et,We)}),h=[]}function H(oe){var Ie,$e=!1;if(!(!w.state.isEnabled||ve(oe)||s)){var et=((Ie=c)==null?void 0:Ie.type)==="focus";c=oe,m=oe.currentTarget,ge(),!w.state.isVisible&&Nfe(oe)&&b0.forEach(function(We){return We(oe)}),oe.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||a)&&w.props.hideOnClick!==!1&&w.state.isVisible?$e=!0:_e(oe),oe.type==="click"&&(a=!$e),$e&&!et&&Oe(oe)}}function z(oe){var Ie=oe.target,$e=k().contains(Ie)||C.contains(Ie);if(!(oe.type==="mousemove"&&$e)){var et=de().concat(C).map(function(We){var Xe,tt=We._tippy,Ot=(Xe=tt.popperInstance)==null?void 0:Xe.state;return Ot?{popperRect:We.getBoundingClientRect(),popperState:Ot,props:n}:null}).filter(Boolean);Bfe(et,oe)&&(ye(),Oe(oe))}}function ue(oe){var Ie=ve(oe)||w.props.trigger.indexOf("click")>=0&&a;if(!Ie){if(w.props.interactive){w.hideWithInteractivity(oe);return}Oe(oe)}}function we(oe){w.props.trigger.indexOf("focusin")<0&&oe.target!==k()||w.props.interactive&&oe.relatedTarget&&C.contains(oe.relatedTarget)||Oe(oe)}function ve(oe){return gs.isTouch?P()!==oe.type.indexOf("touch")>=0:!1}function U(){j();var oe=w.props,Ie=oe.popperOptions,$e=oe.placement,et=oe.offset,We=oe.getReferenceClientRect,Xe=oe.moveTransition,tt=D()?AA(C).arrow:null,Ot=We?{getBoundingClientRect:We,contextElement:We.contextElement||k()}:e,Lt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Pn){var yr=Pn.state;if(D()){var nd=W(),Fl=nd.box;["placement","reference-hidden","escaped"].forEach(function(ns){ns==="placement"?Fl.setAttribute("data-placement",yr.placement):yr.attributes.popper["data-popper-"+ns]?Fl.setAttribute("data-"+ns,""):Fl.removeAttribute("data-"+ns)}),yr.attributes.popper={}}}},Nn=[{name:"offset",options:{offset:et}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Xe}},Lt];D()&&tt&&Nn.push({name:"arrow",options:{element:tt,padding:3}}),Nn.push.apply(Nn,(Ie==null?void 0:Ie.modifiers)||[]),w.popperInstance=Ife(Ot,C,Object.assign({},Ie,{placement:$e,onFirstUpdate:d,modifiers:Nn}))}function j(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function J(){var oe=w.props.appendTo,Ie,$e=k();w.props.interactive&&oe===DH||oe==="parent"?Ie=$e.parentNode:Ie=LH(oe,[$e]),Ie.contains(C)||Ie.appendChild(C),w.state.isMounted=!0,U()}function de(){return tb(C.querySelectorAll("[data-tippy-root]"))}function _e(oe){w.clearDelayTimeouts(),oe&&X("onTrigger",[w,oe]),Le();var Ie=N(!0),$e=M(),et=$e[0],We=$e[1];gs.isTouch&&et==="hold"&&We&&(Ie=We),Ie?r=setTimeout(function(){w.show()},Ie):w.show()}function Oe(oe){if(w.clearDelayTimeouts(),X("onUntrigger",[w,oe]),!w.state.isVisible){je();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(oe.type)>=0&&a)){var Ie=N(!1);Ie?i=setTimeout(function(){w.state.isVisible&&w.hide()},Ie):o=requestAnimationFrame(function(){w.hide()})}}function q(){w.state.isEnabled=!0}function he(){w.hide(),w.state.isEnabled=!1}function Ve(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Ze(oe){if(!w.state.isDestroyed){X("onBeforeUpdate",[w,oe]),Be();var Ie=w.props,$e=Bk(e,Object.assign({},Ie,Nk(oe),{ignoreAttributes:!0}));w.props=$e,Ne(),Ie.interactiveDebounce!==$e.interactiveDebounce&&(ye(),v=Dk(z,$e.interactiveDebounce)),Ie.triggerTarget&&!$e.triggerTarget?Zd(Ie.triggerTarget).forEach(function(et){et.removeAttribute("aria-expanded")}):$e.triggerTarget&&e.removeAttribute("aria-expanded"),ge(),K(),E&&E(Ie,$e),w.popperInstance&&(U(),de().forEach(function(et){requestAnimationFrame(et._tippy.popperInstance.forceUpdate)})),X("onAfterUpdate",[w,oe])}}function bt(oe){w.setProps({content:oe})}function ne(){var oe=w.state.isVisible,Ie=w.state.isDestroyed,$e=!w.state.isEnabled,et=gs.isTouch&&!w.props.touch,We=AC(w.props.duration,0,Xa.duration);if(!(oe||Ie||$e||et)&&!k().hasAttribute("disabled")&&(X("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,D()&&(C.style.visibility="visible"),K(),Le(),w.state.isMounted||(C.style.transition="none"),D()){var Xe=W(),tt=Xe.box,Ot=Xe.content;IC([tt,Ot],0)}d=function(){var Nn;if(!(!w.state.isVisible||u)){if(u=!0,C.offsetHeight,C.style.transition=w.props.moveTransition,D()&&w.props.animation){var Ta=W(),Pn=Ta.box,yr=Ta.content;IC([Pn,yr],We),kk([Pn,yr],"visible")}ae(),ge(),Lk(PC,w),(Nn=w.popperInstance)==null||Nn.forceUpdate(),X("onMount",[w]),w.props.animation&&D()&&Ae(We,function(){w.state.isShown=!0,X("onShown",[w])})}},J()}}function se(){var oe=!w.state.isVisible,Ie=w.state.isDestroyed,$e=!w.state.isEnabled,et=AC(w.props.duration,1,Xa.duration);if(!(oe||Ie||$e)&&(X("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,u=!1,a=!1,D()&&(C.style.visibility="hidden"),ye(),je(),K(!0),D()){var We=W(),Xe=We.box,tt=We.content;w.props.animation&&(IC([Xe,tt],et),kk([Xe,tt],"hidden"))}ae(),ge(),w.props.animation?D()&&fe(et,w.unmount):w.unmount()}}function pe(oe){$().addEventListener("mousemove",v),Lk(b0,v),v(oe)}function Ee(){w.state.isVisible&&w.hide(),w.state.isMounted&&(j(),de().forEach(function(oe){oe._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),PC=PC.filter(function(oe){return oe!==w}),w.state.isMounted=!1,X("onHidden",[w]))}function Ge(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),Be(),delete e._tippy,w.state.isDestroyed=!0,X("onDestroy",[w]))}}function Bm(e,t){t===void 0&&(t={});var n=Xa.plugins.concat(t.plugins||[]);Hfe();var r=Object.assign({},t,{plugins:n}),i=Ffe(e),o=i.reduce(function(a,s){var l=s&&Jfe(s,r);return l&&a.push(l),a},[]);return AS(e)?o[0]:o}Bm.defaultProps=Xa;Bm.setDefaultProps=Yfe;Bm.currentInput=gs;Object.assign({},wH,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Bm.setDefaultProps({render:FH});let MC,Ma=null;const Ls=()=>(MC||(MC=document.getElementById("app-content")),{showTip:(n,r,i={})=>{Ma==null||Ma.destroy(),Ma=Bm(n.target,{content:r,placement:"top",animation:"scale",appendTo:MC,allowHTML:!0,showOnCreate:!0,onHidden:()=>{Ma==null||Ma.destroy(),Ma=null},...i})},hideTip:()=>{Ma==null||Ma.hide()}}),Qfe={class:"relative"},ede=["placeholder","name","autocomplete"],Zr=nt({__name:"TextInput",props:M1({placeholder:{},beforeClose:{type:Boolean},name:{},autocomplete:{},clearable:{type:Boolean},menus:{}},{modelValue:{},modelModifiers:{}}),emits:M1(["input","change"],["update:modelValue"]),setup(e,{emit:t}){const n=t,r=e,i=y2(e,"modelValue"),o=()=>{i.value=""},{showTip:a,hideTip:s}=Ls(),l=u=>{var f;if(!((f=r.menus)!=null&&f.length))return;const c=document.createElement("div");for(const d of r.menus){const h=document.createElement("div");h.className="cursor-pointer p-1 transition-transform hover:scale-105 hover:text-primary",h.textContent=d,h.addEventListener("click",()=>{i.value=d,s()}),c.appendChild(h)}a(u,c,{theme:"base",placement:"bottom-start",trigger:"click",interactive:!0,arrow:!1})};return(u,c)=>(Y(),te("div",Qfe,[u.beforeClose&&u.clearable?(Y(),yt(B(Nf),{key:0,class:"absolute top-2 right-2 z-10 h-4 w-3 cursor-pointer hover:scale-125",onClick:o})):at("",!0),St(L("input",{"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),type:"text",class:gt(["input input-sm join-item w-full",{"pr-6":u.clearable}]),placeholder:u.placeholder||"",name:u.name||"",autocomplete:u.autocomplete||"",onClick:l,onInput:c[1]||(c[1]=f=>(n("input",i.value||""),B(s)())),onChange:c[2]||(c[2]=f=>n("change",i.value||""))},null,42,ede),[[ki,i.value]]),!u.beforeClose&&u.clearable?(Y(),yt(B(Nf),{key:1,class:"absolute top-2 right-2 z-10 h-4 w-3 cursor-pointer hover:scale-125",onClick:o})):at("",!0)]))}});var Q_={exports:{}},OC={exports:{}},DC={};/**
|
||
* @vue/compiler-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const Bh=Symbol(""),vh=Symbol(""),IS=Symbol(""),Jg=Symbol(""),gR=Symbol(""),Wu=Symbol(""),mR=Symbol(""),yR=Symbol(""),RS=Symbol(""),PS=Symbol(""),sp=Symbol(""),MS=Symbol(""),_R=Symbol(""),OS=Symbol(""),DS=Symbol(""),LS=Symbol(""),NS=Symbol(""),kS=Symbol(""),FS=Symbol(""),bR=Symbol(""),SR=Symbol(""),Vm=Symbol(""),Qg=Symbol(""),$S=Symbol(""),BS=Symbol(""),Vh=Symbol(""),lp=Symbol(""),VS=Symbol(""),nb=Symbol(""),$H=Symbol(""),rb=Symbol(""),em=Symbol(""),BH=Symbol(""),VH=Symbol(""),US=Symbol(""),UH=Symbol(""),HH=Symbol(""),HS=Symbol(""),wR=Symbol(""),Uf={[Bh]:"Fragment",[vh]:"Teleport",[IS]:"Suspense",[Jg]:"KeepAlive",[gR]:"BaseTransition",[Wu]:"openBlock",[mR]:"createBlock",[yR]:"createElementBlock",[RS]:"createVNode",[PS]:"createElementVNode",[sp]:"createCommentVNode",[MS]:"createTextVNode",[_R]:"createStaticVNode",[OS]:"resolveComponent",[DS]:"resolveDynamicComponent",[LS]:"resolveDirective",[NS]:"resolveFilter",[kS]:"withDirectives",[FS]:"renderList",[bR]:"renderSlot",[SR]:"createSlots",[Vm]:"toDisplayString",[Qg]:"mergeProps",[$S]:"normalizeClass",[BS]:"normalizeStyle",[Vh]:"normalizeProps",[lp]:"guardReactiveProps",[VS]:"toHandlers",[nb]:"camelize",[$H]:"capitalize",[rb]:"toHandlerKey",[em]:"setBlockTracking",[BH]:"pushScopeId",[VH]:"popScopeId",[US]:"withCtx",[UH]:"unref",[HH]:"isRef",[HS]:"withMemo",[wR]:"isMemoSame"};function zH(e){Object.getOwnPropertySymbols(e).forEach(t=>{Uf[t]=e[t]})}const tde={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},nde={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},rde={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},ide={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Or={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function GH(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Or}}function Uh(e,t,n,r,i,o,a,s=!1,l=!1,u=!1,c=Or){return e&&(s?(e.helper(Wu),e.helper(Gf(e.inSSR,u))):e.helper(zf(e.inSSR,u)),a&&e.helper(kS)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function Nu(e,t=Or){return{type:17,loc:t,elements:e}}function Oo(e,t=Or){return{type:15,loc:t,properties:e}}function lr(e,t){return{type:16,loc:Or,key:Mt(e)?$t(e,!0):e,value:t}}function $t(e,t=!1,n=Or,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ode(e,t){return{type:5,loc:t,content:Mt(e)?$t(e,!1,t):e}}function ga(e,t=Or){return{type:8,loc:t,children:e}}function br(e,t=[],n=Or){return{type:14,loc:n,callee:e,arguments:t}}function Hf(e,t=void 0,n=!1,r=!1,i=Or){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function ib(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Or}}function WH(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Or}}function jH(e){return{type:21,body:e,loc:Or}}function ade(e){return{type:22,elements:e,loc:Or}}function sde(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Or}}function lde(e,t){return{type:24,left:e,right:t,loc:Or}}function ude(e){return{type:25,expressions:e,loc:Or}}function cde(e){return{type:26,returns:e,loc:Or}}function zf(e,t){return e||t?RS:PS}function Gf(e,t){return e||t?mR:yR}function zS(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(zf(r,e.isComponent)),t(Wu),t(Gf(r,e.isComponent)))}const Hk=new Uint8Array([123,123]),zk=new Uint8Array([125,125]);function Gk(e){return e>=97&&e<=122||e>=65&&e<=90}function Po(e){return e===32||e===10||e===9||e===12||e===13}function ql(e){return e===47||e===62||Po(e)}function ob(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const ii={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class fde{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Hk,this.delimiterClose=zk,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Hk,this.delimiterClose=zk}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=0;i--){const o=this.newlines[i];if(t>o){n=i+2,r=t-o;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?ql(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Po(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ii.TitleEnd||this.currentSequence===ii.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===ii.Cdata[this.sequenceIndex]?++this.sequenceIndex===ii.Cdata.length&&(this.state=28,this.currentSequence=ii.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ii.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Gk(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){ql(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(ql(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(ob("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Po(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Gk(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||Po(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Po(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Po(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||ql(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||ql(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||ql(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||ql(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||ql(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Po(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):Po(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Po(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=ii.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===ii.ScriptEnd[3]?this.startSpecial(ii.ScriptEnd,4):t===ii.StyleEnd[3]?this.startSpecial(ii.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===ii.TitleEnd[3]?this.startSpecial(ii.TitleEnd,4):t===ii.TextareaEnd[3]?this.startSpecial(ii.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===ii.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const dde={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},hde={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function IA(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function If(e,t){const n=IA("MODE",t),r=IA(e,t);return n===3?r===!0:r!==!1}function Hh(e,t,n,...r){return If(e,t)}function pde(e,t,n,...r){if(IA(e,t)==="suppress-warning")return;const{message:o,link:a}=hde[e],s=`(deprecation ${e}) ${typeof o=="function"?o(...r):o}${a?`
|
||
Details: ${a}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function xR(e){throw e}function XH(e){}function Wn(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const vde={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},gde={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
||
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function mde(e,t,n=!1,r=[],i=Object.create(null)){}function yde(e,t,n){return!1}function _de(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function bde(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function Sde(e,t){for(const n of e.params)for(const r of cl(n))t(r)}function wde(e,t){for(const n of e.body)if(n.type==="VariableDeclaration"){if(n.declare)continue;for(const r of n.declarations)for(const i of cl(r.id))t(i)}else if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){if(n.declare||!n.id)continue;t(n.id)}else xde(n)&&Cde(n,!0,t)}function xde(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function Cde(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"&&t))for(const i of r.declarations)for(const o of cl(i.id))n(o)}function cl(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?cl(r.argument,t):cl(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&cl(r,t)});break;case"RestElement":cl(e.argument,t);break;case"AssignmentPattern":cl(e.left,t);break}return t}const Tde=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),YH=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,Ede=(e,t)=>YH(t)&&t.key===e,KH=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function ZH(e){return KH.includes(e.type)?ZH(e.expression):e}const $i=e=>e.type===4&&e.isStatic;function CR(e){switch(e){case"Teleport":case"teleport":return vh;case"Suspense":case"suspense":return IS;case"KeepAlive":case"keep-alive":return Jg;case"BaseTransition":case"base-transition":return gR}}const Ade=/^\d|[^\$\w\xA0-\uFFFF]/,Um=e=>!Ade.test(e),Ide=/[A-Za-z_$\xA0-\uFFFF]/,Rde=/[\.\?\w$\xA0-\uFFFF]/,Pde=/\s+[.[]\s*|\s*[.[]\s+/g,qH=e=>e.type===4?e.content:e.loc.source,JH=e=>{const t=qH(e).trim().replace(Pde,s=>s.trim());let n=0,r=[],i=0,o=0,a=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")r.push(n),n=1,i++;else if(l==="(")r.push(n),n=2,o++;else if(!(s===0?Ide:Rde).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,a=l):l==="["?i++:l==="]"&&(--i||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,a=l;else if(l==="(")o++;else if(l===")"){if(s===t.length-1)return!1;--o||(n=r.pop())}break;case 3:l===a&&(n=r.pop(),a=null);break}}return!i&&!o},Mde=Vr,TR=JH,Ode=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,QH=e=>Ode.test(qH(e)),Dde=Vr,e6=QH;function Lde(e,t,n=t.length){return t6({offset:e.offset,line:e.line,column:e.column},t,n)}function t6(e,t,n=t.length){let r=0,i=-1;for(let o=0;o<n;o++)t.charCodeAt(o)===10&&(r++,i=o);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function Nde(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Li(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(Mt(t)?i.name===t:t.test(i.name)))return i}}function Hm(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(n)continue;if(o.name===t&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&Au(o.arg,t))return o}}function Au(e,t){return!!(e&&$i(e)&&e.content===t)}function n6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function e1(e){return e.type===5||e.type===2}function ER(e){return e.type===7&&e.name==="slot"}function zh(e){return e.type===1&&e.tagType===3}function tm(e){return e.type===1&&e.tagType===2}const kde=new Set([Vh,lp]);function r6(e,t=[]){if(e&&!Mt(e)&&e.type===14){const n=e.callee;if(!Mt(n)&&kde.has(n))return r6(e.arguments[0],t.concat(e))}return[e,t]}function nm(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],o=[],a;if(i&&!Mt(i)&&i.type===14){const s=r6(i);i=s[0],o=s[1],a=o[o.length-1]}if(i==null||Mt(i))r=Oo([t]);else if(i.type===14){const s=i.arguments[0];!Mt(s)&&s.type===15?Wk(t,s)||s.properties.unshift(t):i.callee===VS?r=br(n.helper(Qg),[Oo([t]),i]):i.arguments.unshift(Oo([t])),!r&&(r=i)}else i.type===15?(Wk(t,i)||i.properties.unshift(t),r=i):(r=br(n.helper(Qg),[Oo([t]),i]),a&&a.callee===lp&&(a=o[o.length-2]));e.type===13?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function Wk(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function Gh(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function ka(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(ka(r.arg,t)||ka(r.exp,t)))return!0}return e.children.some(n=>ka(n,t));case 11:return ka(e.source,t)?!0:e.children.some(n=>ka(n,t));case 9:return e.branches.some(n=>ka(n,t));case 10:return ka(e.condition,t)?!0:e.children.some(n=>ka(n,t));case 4:return!e.isStatic&&Um(e.content)&&!!t[e.content];case 8:return e.children.some(n=>mn(n)&&ka(n,t));case 5:case 12:return ka(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function i6(e){return e.type===14&&e.callee===HS?e.arguments[1].returns:e}const o6=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,a6={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Qd,isPreTag:Qd,isIgnoreNewlineTag:Qd,isCustomElement:Qd,onError:xR,onWarn:XH,comments:!1,prefixIdentifiers:!1};let vn=a6,rm=null,Sl="",ui=null,ln=null,Ji="",tl=-1,Kc=-1,AR=0,vu=!1,RA=null;const Yn=[],sr=new fde(Yn,{onerr:Js,ontext(e,t){S0(jr(e,t),e,t)},ontextentity(e,t,n){S0(e,t,n)},oninterpolation(e,t){if(vu)return S0(jr(e,t),e,t);let n=e+sr.delimiterOpen.length,r=t-sr.delimiterClose.length;for(;Po(Sl.charCodeAt(n));)n++;for(;Po(Sl.charCodeAt(r-1));)r--;let i=jr(n,r);i.includes("&")&&(i=vn.decodeEntities(i,!1)),PA({type:5,content:n1(i,!1,dr(n,r)),loc:dr(e,t)})},onopentagname(e,t){const n=jr(e,t);ui={type:1,tag:n,ns:vn.getNamespace(n,Yn[0],vn.ns),tagType:0,props:[],children:[],loc:dr(e-1,t),codegenNode:void 0}},onopentagend(e){Xk(e)},onclosetag(e,t){const n=jr(e,t);if(!vn.isVoidTag(n)){let r=!1;for(let i=0;i<Yn.length;i++)if(Yn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Js(24,Yn[0].loc.start.offset);for(let a=0;a<=i;a++){const s=Yn.shift();t1(s,t,a<i)}break}r||Js(23,s6(e,60))}},onselfclosingtag(e){const t=ui.tag;ui.isSelfClosing=!0,Xk(e),Yn[0]&&Yn[0].tag===t&&t1(Yn.shift(),e)},onattribname(e,t){ln={type:6,name:jr(e,t),nameLoc:dr(e,t),value:void 0,loc:dr(e)}},ondirname(e,t){const n=jr(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!vu&&r===""&&Js(26,e),vu||r==="")ln={type:6,name:n,nameLoc:dr(e,t),value:void 0,loc:dr(e)};else if(ln={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[$t("prop")]:[],loc:dr(e)},r==="pre"){vu=sr.inVPre=!0,RA=ui;const i=ui.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=Xde(i[o]))}},ondirarg(e,t){if(e===t)return;const n=jr(e,t);if(vu)ln.name+=n,sf(ln.nameLoc,t);else{const r=n[0]!=="[";ln.arg=n1(r?n:n.slice(1,-1),r,dr(e,t),r?3:0)}},ondirmodifier(e,t){const n=jr(e,t);if(vu)ln.name+="."+n,sf(ln.nameLoc,t);else if(ln.name==="slot"){const r=ln.arg;r&&(r.content+="."+n,sf(r.loc,t))}else{const r=$t(n,!0,dr(e,t));ln.modifiers.push(r)}},onattribdata(e,t){Ji+=jr(e,t),tl<0&&(tl=e),Kc=t},onattribentity(e,t,n){Ji+=e,tl<0&&(tl=t),Kc=n},onattribnameend(e){const t=ln.loc.start.offset,n=jr(t,e);ln.type===7&&(ln.rawName=n),ui.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Js(2,t)},onattribend(e,t){if(ui&&ln){if(sf(ln.loc,t),e!==0)if(Ji.includes("&")&&(Ji=vn.decodeEntities(Ji,!0)),ln.type===6)ln.name==="class"&&(Ji=u6(Ji).trim()),e===1&&!Ji&&Js(13,t),ln.value={type:2,content:Ji,loc:e===1?dr(tl,Kc):dr(tl-1,Kc+1)},sr.inSFCRoot&&ui.tag==="template"&&ln.name==="lang"&&Ji&&Ji!=="html"&&sr.enterRCDATA(ob("</template"),0);else{let n=0;ln.exp=n1(Ji,!1,dr(tl,Kc),0,n),ln.name==="for"&&(ln.forParseResult=$de(ln.exp));let r=-1;ln.name==="bind"&&(r=ln.modifiers.findIndex(i=>i.content==="sync"))>-1&&Hh("COMPILER_V_BIND_SYNC",vn,ln.loc,ln.rawName)&&(ln.name="model",ln.modifiers.splice(r,1))}(ln.type!==7||ln.name!=="pre")&&ui.props.push(ln)}Ji="",tl=Kc=-1},oncomment(e,t){vn.comments&&PA({type:3,content:jr(e,t),loc:dr(e-4,t+3)})},onend(){const e=Sl.length;for(let t=0;t<Yn.length;t++)t1(Yn[t],e-1),Js(24,Yn[t].loc.start.offset)},oncdata(e,t){Yn[0].ns!==0?S0(jr(e,t),e,t):Js(1,e-9)},onprocessinginstruction(e){(Yn[0]?Yn[0].ns:vn.ns)===0&&Js(21,e-1)}}),jk=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Fde=/^\(|\)$/g;function $de(e){const t=e.loc,n=e.content,r=n.match(o6);if(!r)return;const[,i,o]=r,a=(f,d,h=!1)=>{const v=t.start.offset+d,m=v+f.length;return n1(f,!1,dr(v,m),0,h?1:0)},s={source:a(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Fde,"").trim();const u=i.indexOf(l),c=l.match(jk);if(c){l=l.replace(jk,"").trim();const f=c[1].trim();let d;if(f&&(d=n.indexOf(f,u+l.length),s.key=a(f,d,!0)),c[2]){const h=c[2].trim();h&&(s.index=a(h,n.indexOf(h,s.key?d+f.length:u+l.length),!0))}}return l&&(s.value=a(l,u,!0)),s}function jr(e,t){return Sl.slice(e,t)}function Xk(e){sr.inSFCRoot&&(ui.innerLoc=dr(e+1,e+1)),PA(ui);const{tag:t,ns:n}=ui;n===0&&vn.isPreTag(t)&&AR++,vn.isVoidTag(t)?t1(ui,e):(Yn.unshift(ui),(n===1||n===2)&&(sr.inXML=!0)),ui=null}function S0(e,t,n){{const o=Yn[0]&&Yn[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=vn.decodeEntities(e,!1))}const r=Yn[0]||rm,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,sf(i.loc,n)):r.children.push({type:2,content:e,loc:dr(t,n)})}function t1(e,t,n=!1){n?sf(e.loc,s6(t,60)):sf(e.loc,Bde(t,62)+1),sr.inSFCRoot&&(e.children.length?e.innerLoc.end=tn({},e.children[e.children.length-1].loc.end):e.innerLoc.end=tn({},e.innerLoc.start),e.innerLoc.source=jr(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(vu||(r==="slot"?e.tagType=2:Yk(e)?e.tagType=3:Ude(e)&&(e.tagType=1)),sr.inRCDATA||(e.children=l6(o)),i===0&&vn.isIgnoreNewlineTag(r)){const a=o[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}i===0&&vn.isPreTag(r)&&AR--,RA===e&&(vu=sr.inVPre=!1,RA=null),sr.inXML&&(Yn[0]?Yn[0].ns:vn.ns)===0&&(sr.inXML=!1);{const a=e.props;if(!sr.inSFCRoot&&If("COMPILER_NATIVE_TEMPLATE",vn)&&e.tag==="template"&&!Yk(e)){const l=Yn[0]||rm,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const s=a.find(l=>l.type===6&&l.name==="inline-template");s&&Hh("COMPILER_INLINE_TEMPLATE",vn,s.loc)&&e.children.length&&(s.value={type:2,content:jr(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Bde(e,t){let n=e;for(;Sl.charCodeAt(n)!==t&&n<Sl.length-1;)n++;return n}function s6(e,t){let n=e;for(;Sl.charCodeAt(n)!==t&&n>=0;)n--;return n}const Vde=new Set(["if","else","else-if","for","slot"]);function Yk({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Vde.has(t[n].name))return!0}return!1}function Ude({tag:e,props:t}){if(vn.isCustomElement(e))return!1;if(e==="component"||Hde(e.charCodeAt(0))||CR(e)||vn.isBuiltInComponent&&vn.isBuiltInComponent(e)||vn.isNativeTag&&!vn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Hh("COMPILER_IS_ON_ELEMENT",vn,r.loc))return!0}}else if(r.name==="bind"&&Au(r.arg,"is")&&Hh("COMPILER_IS_ON_ELEMENT",vn,r.loc))return!0}return!1}function Hde(e){return e>64&&e<91}const zde=/\r\n/g;function l6(e,t){const n=vn.whitespace!=="preserve";let r=!1;for(let i=0;i<e.length;i++){const o=e[i];if(o.type===2)if(AR)o.content=o.content.replace(zde,`
|
||
`);else if(Gde(o.content)){const a=e[i-1]&&e[i-1].type,s=e[i+1]&&e[i+1].type;!a||!s||n&&(a===3&&(s===3||s===1)||a===1&&(s===3||s===1&&Wde(o.content)))?(r=!0,e[i]=null):o.content=" "}else n&&(o.content=u6(o.content))}return r?e.filter(Boolean):e}function Gde(e){for(let t=0;t<e.length;t++)if(!Po(e.charCodeAt(t)))return!1;return!0}function Wde(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function u6(e){let t="",n=!1;for(let r=0;r<e.length;r++)Po(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function PA(e){(Yn[0]||rm).children.push(e)}function dr(e,t){return{start:sr.getPos(e),end:t==null?t:sr.getPos(t),source:t==null?t:jr(e,t)}}function jde(e){return dr(e.start.offset,e.end.offset)}function sf(e,t){e.end=sr.getPos(t),e.source=jr(e.start.offset,t)}function Xde(e){const t={type:6,name:e.rawName,nameLoc:dr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function n1(e,t=!1,n,r=0,i=0){return $t(e,t,n,r)}function Js(e,t,n){vn.onError(Wn(e,dr(t,t)))}function Yde(){sr.reset(),ui=null,ln=null,Ji="",tl=-1,Kc=-1,Yn.length=0}function IR(e,t){if(Yde(),Sl=e,vn=tn({},a6),t){let i;for(i in t)t[i]!=null&&(vn[i]=t[i])}sr.mode=vn.parseMode==="html"?1:vn.parseMode==="sfc"?2:0,sr.inXML=vn.ns===1||vn.ns===2;const n=t&&t.delimiters;n&&(sr.delimiterOpen=ob(n[0]),sr.delimiterClose=ob(n[1]));const r=rm=GH([],e);return sr.parse(Sl),r.loc=dr(0,e.length),r.children=l6(r.children),rm=null,r}function Kde(e,t){r1(e,void 0,t,c6(e,e.children[0]))}function c6(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!tm(t)}function r1(e,t,n,r=!1,i=!1){const{children:o}=e,a=[];for(let c=0;c<o.length;c++){const f=o[c];if(f.type===1&&f.tagType===0){const d=r?0:so(f,n);if(d>0){if(d>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const h=f.codegenNode;if(h.type===13){const v=h.patchFlag;if((v===void 0||v===512||v===1)&&d6(f,n)>=2){const m=h6(f);m&&(h.props=n.hoist(m))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(f.type===12&&(r?0:so(f,n))>=2){a.push(f);continue}if(f.type===1){const d=f.tagType===1;d&&n.scopes.vSlot++,r1(f,e,n,!1,i),d&&n.scopes.vSlot--}else if(f.type===11)r1(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let d=0;d<f.branches.length;d++)r1(f.branches[d],e,n,f.branches[d].children.length===1,i)}let s=!1;if(a.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Qe(e.codegenNode.children))e.codegenNode.children=l(Nu(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Qe(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(Nu(c.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Qe(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=Li(e,"slot",!0),f=c&&c.arg&&u(t.codegenNode,c.arg);f&&(f.returns=l(Nu(f.returns)),s=!0)}}if(!s)for(const c of a)c.codegenNode=n.cache(c.codegenNode);function l(c){const f=n.cache(c);return i&&n.hmr&&(f.needArraySpread=!0),f}function u(c,f){if(c.children&&!Qe(c.children)&&c.children.type===15){const d=c.children.properties.find(h=>h.key===f||h.key.content===f);return d&&d.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function so(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let a=3;const s=d6(e,t);if(s===0)return n.set(e,0),0;s<a&&(a=s);for(let l=0;l<e.children.length;l++){const u=so(e.children[l],t);if(u===0)return n.set(e,0),0;u<a&&(a=u)}if(a>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=so(u.exp,t);if(c===0)return n.set(e,0),0;c<a&&(a=c)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Wu),t.removeHelper(Gf(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(zf(t.inSSR,i.isComponent))}return n.set(e,a),a}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return so(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const s=e.children[a];if(Mt(s)||Vi(s))continue;const l=so(s,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const Zde=new Set([$S,BS,Vh,lp]);function f6(e,t){if(e.type===14&&!Mt(e.callee)&&Zde.has(e.callee)){const n=e.arguments[0];if(n.type===4)return so(n,t);if(n.type===14)return f6(n,t)}return 0}function d6(e,t){let n=3;const r=h6(e);if(r&&r.type===15){const{properties:i}=r;for(let o=0;o<i.length;o++){const{key:a,value:s}=i[o],l=so(a,t);if(l===0)return l;l<n&&(n=l);let u;if(s.type===4?u=so(s,t):s.type===14?u=f6(s,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function h6(e){const t=e.codegenNode;if(t.type===13)return t.props}function p6(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:u=Vr,isCustomElement:c=Vr,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:v=!1,inSSR:m=!1,ssrCssVars:_="",bindingMetadata:y=Qt,inline:S=!1,isTS:b=!1,onError:w=xR,onWarn:T=XH,compatConfig:C}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={filename:t,selfName:E&&Ju(Vn(E[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:f,scopeId:d,slotted:h,ssr:v,inSSR:m,ssrCssVars:_,bindingMetadata:y,inline:S,isTS:b,onError:w,onWarn:T,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const M=R.helpers.get(I)||0;return R.helpers.set(I,M+1),I},removeHelper(I){const M=R.helpers.get(I);if(M){const P=M-1;P?R.helpers.set(I,P):R.helpers.delete(I)}},helperString(I){return`_${Uf[R.helper(I)]}`},replaceNode(I){R.parent.children[R.childIndex]=R.currentNode=I},removeNode(I){const M=R.parent.children,P=I?M.indexOf(I):R.currentNode?R.childIndex:-1;!I||I===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>P&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(P,1)},onNodeRemoved:Vr,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){Mt(I)&&(I=$t(I)),R.hoists.push(I);const M=$t(`_hoisted_${R.hoists.length}`,!1,I.loc,2);return M.hoisted=I,M},cache(I,M=!1,P=!1){const D=WH(R.cached.length,I,M,P);return R.cached.push(D),D}};return R.filters=new Set,R}function v6(e,t){const n=p6(e,t);zm(e,n),t.hoistStatic&&Kde(e,n),t.ssr||qde(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function qde(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=r[0];if(c6(e,i)&&i.codegenNode){const o=i.codegenNode;o.type===13&&zS(o,t),e.codegenNode=o}else e.codegenNode=i}else if(r.length>1){let i=64;e.codegenNode=Uh(t,n(Bh),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Jde(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];Mt(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,zm(i,t))}}function zm(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const a=n[o](e,t);if(a&&(Qe(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(sp);break;case 5:t.ssr||t.helper(Vm);break;case 9:for(let o=0;o<e.branches.length;o++)zm(e.branches[o],t);break;case 10:case 11:case 1:case 0:Jde(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function RR(e,t){const n=Mt(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:o}=r;if(r.tagType===3&&o.some(ER))return;const a=[];for(let s=0;s<o.length;s++){const l=o[s];if(l.type===7&&n(l.name)){o.splice(s,1),s--;const u=t(r,l,i);u&&a.push(u)}}return a}}}const GS="/*@__PURE__*/",g6=e=>`${Uf[e]}: _${Uf[e]}`;function Qde(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Uf[m]}`},push(m,_=-2,y){h.code+=m},indent(){v(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:v(--h.indentLevel)},newline(){v(h.indentLevel)}};function v(m){h.push(`
|
||
`+" ".repeat(m),0)}return h}function m6(e,t={}){const n=Qde(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:u,ssr:c}=n,f=Array.from(e.helpers),d=f.length>0,h=!o&&r!=="module";ehe(e,n);const m=c?"ssrRender":"render",y=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${y}) {`),a(),h&&(i("with (_ctx) {"),a(),d&&(i(`const { ${f.map(g6).join(", ")} } = _Vue
|
||
`,-1),l())),e.components.length&&(LC(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(LC(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),LC(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let S=0;S<e.temps;S++)i(`${S>0?", ":""}_temp${S}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
||
`,0),l()),c||i("return "),e.codegenNode?Si(e.codegenNode,n):i("null"),h&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ehe(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,u=s,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${u}
|
||
`,-1),e.hoists.length)){const f=[RS,PS,sp,MS,_R].filter(d=>c.includes(d)).map(g6).join(", ");i(`const { ${f} } = _Vue
|
||
`,-1)}the(e.hoists,t),o(),i("return ")}function LC(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n(t==="filter"?NS:t==="component"?OS:LS);for(let s=0;s<e.length;s++){let l=e[s];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${Gh(l,t)} = ${a}(${JSON.stringify(l)}${u?", true":""})${o?"!":""}`),s<e.length-1&&i()}}function the(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),Si(o,t),r())}t.pure=!1}function PR(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Gm(e,t,n),n&&t.deindent(),t.push("]")}function Gm(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];Mt(s)?i(s,-3):Qe(s)?PR(s,t):Si(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Si(e,t){if(Mt(e)){t.push(e,-3);return}if(Vi(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Si(e.codegenNode,t);break;case 2:nhe(e,t);break;case 4:y6(e,t);break;case 5:rhe(e,t);break;case 12:Si(e.codegenNode,t);break;case 8:_6(e,t);break;case 3:ohe(e,t);break;case 13:ahe(e,t);break;case 14:lhe(e,t);break;case 15:uhe(e,t);break;case 17:che(e,t);break;case 18:fhe(e,t);break;case 19:dhe(e,t);break;case 20:hhe(e,t);break;case 21:Gm(e.body,t,!0,!1);break}}function nhe(e,t){t.push(JSON.stringify(e.content),-3,e)}function y6(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function rhe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(GS),n(`${r(Vm)}(`),Si(e.content,t),n(")")}function _6(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Mt(r)?t.push(r,-3):Si(r,t)}}function ihe(e,t){const{push:n}=t;if(e.type===8)n("["),_6(e,t),n("]");else if(e.isStatic){const r=Um(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function ohe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(GS),n(`${r(sp)}(${JSON.stringify(e.content)})`,-3,e)}function ahe(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:d,isComponent:h}=e;let v;l&&(v=String(l)),c&&n(r(kS)+"("),f&&n(`(${r(Wu)}(${d?"true":""}), `),i&&n(GS);const m=f?Gf(t.inSSR,h):zf(t.inSSR,h);n(r(m)+"(",-2,e),Gm(she([o,a,s,v,u]),t),n(")"),f&&n(")"),c&&(n(", "),Si(c,t),n(")"))}function she(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function lhe(e,t){const{push:n,helper:r,pure:i}=t,o=Mt(e.callee)?e.callee:r(e.callee);i&&n(GS),n(o+"(",-2,e),Gm(e.arguments,t),n(")")}function uhe(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length){n("{}",-2,e);return}const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<a.length;l++){const{key:u,value:c}=a[l];ihe(u,t),n(": "),Si(c,t),l<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}function che(e,t){PR(e.elements,t)}function fhe(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${Uf[US]}(`),n("(",-2,e),Qe(o)?Gm(o,t):o&&Si(o,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),Qe(a)?PR(a,t):Si(a,t)):s&&Si(s,t),(l||s)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function dhe(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:u}=t;if(n.type===4){const f=!Um(n.content);f&&a("("),y6(n,t),f&&a(")")}else a("("),Si(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),Si(r,t),t.indentLevel--,o&&u(),o||a(" "),a(": ");const c=i.type===19;c||t.indentLevel++,Si(i,t),c||t.indentLevel--,o&&l(!0)}function hhe(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(em)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("(")),n(`_cache[${e.index}] = `),Si(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(em)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const phe=(e,t)=>{if(e.type===5)e.content=i1(e.content,t);else if(e.type===1){const n=Li(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const o=i.exp,a=i.arg;o&&o.type===4&&!(i.name==="on"&&a)&&!(n&&a&&a.type===4&&a.content==="key")&&(i.exp=i1(o,t,i.name==="slot")),a&&a.type===4&&!a.isStatic&&(i.arg=i1(a,t))}}}};function i1(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function b6(e){return Mt(e)?e:e.type===4?e.content:e.children.map(b6).join("")}const vhe=RR(/^(if|else|else-if)$/,(e,t,n)=>S6(e,t,n,(r,i,o)=>{const a=n.parent.children;let s=a.indexOf(r),l=0;for(;s-->=0;){const u=a[s];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(o)r.codegenNode=Zk(i,l,n);else{const u=ghe(r.codegenNode);u.alternate=Zk(i,l+r.branches.length-1,n)}}}));function S6(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Wn(28,t.loc)),t.exp=$t("true",!1,i)}if(t.name==="if"){const i=Kk(e,t),o={type:9,loc:jde(e.loc),branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const a=i[o];if(a&&a.type===3){n.removeNode(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(Wn(30,e.loc)),n.removeNode();const s=Kk(e,t);a.branches.push(s);const l=r&&r(a,s,!1);zm(s,n),l&&l(),n.currentNode=null}else n.onError(Wn(30,e.loc));break}}}function Kk(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Li(e,"for")?e.children:[e],userKey:Hm(e,"key"),isTemplateIf:n}}function Zk(e,t,n){return e.condition?ib(e.condition,qk(e,t,n),br(n.helper(sp),['""',"true"])):qk(e,t,n)}function qk(e,t,n){const{helper:r}=n,i=lr("key",$t(`${t}`,!1,Or,2)),{children:o}=e,a=o[0];if(o.length!==1||a.type!==1)if(o.length===1&&a.type===11){const l=a.codegenNode;return nm(l,i,n),l}else return Uh(n,r(Bh),Oo([i]),o,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=a.codegenNode,u=i6(l);return u.type===13&&zS(u,n),nm(u,i,n),l}}function ghe(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const w6=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(o.type!==4||!o.isStatic)return n.onError(Wn(52,o.loc)),{props:[lr(o,$t("",!0,i))]};x6(e),a=e.exp}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.some(s=>s.content==="camel")&&(o.type===4?o.isStatic?o.content=Vn(o.content):o.content=`${n.helperString(nb)}(${o.content})`:(o.children.unshift(`${n.helperString(nb)}(`),o.children.push(")"))),n.inSSR||(r.some(s=>s.content==="prop")&&Jk(o,"."),r.some(s=>s.content==="attr")&&Jk(o,"^")),{props:[lr(o,a)]}},x6=(e,t)=>{const n=e.arg,r=Vn(n.content);e.exp=$t(r,!1,n.loc)},Jk=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},mhe=RR("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return C6(e,t,n,o=>{const a=br(r(FS),[o.source]),s=zh(e),l=Li(e,"memo"),u=Hm(e,"key",!1,!0);u&&u.type===7&&!u.exp&&x6(u);let f=u&&(u.type===6?u.value?$t(u.value.content,!0):void 0:u.exp);const d=u&&f?lr("key",f):null,h=o.source.type===4&&o.source.constType>0,v=h?64:u?128:256;return o.codegenNode=Uh(n,r(Bh),void 0,a,v,void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:_}=o,y=_.length!==1||_[0].type!==1,S=tm(e)?e:s&&e.children.length===1&&tm(e.children[0])?e.children[0]:null;if(S?(m=S.codegenNode,s&&d&&nm(m,d,n)):y?m=Uh(n,r(Bh),d?Oo([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(m=_[0].codegenNode,s&&d&&nm(m,d,n),m.isBlock!==!h&&(m.isBlock?(i(Wu),i(Gf(n.inSSR,m.isComponent))):i(zf(n.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(Wu),r(Gf(n.inSSR,m.isComponent))):r(zf(n.inSSR,m.isComponent))),l){const b=Hf(ab(o.parseResult,[$t("_cached")]));b.body=jH([ga(["const _memo = (",l.exp,")"]),ga(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(wR)}(_cached, _memo)) return _cached`]),ga(["const _item = ",m]),$t("_item.memo = _memo"),$t("return _item")]),a.arguments.push(b,$t("_cache"),$t(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Hf(ab(o.parseResult),m,!0))}})});function C6(e,t,n,r){if(!t.exp){n.onError(Wn(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Wn(32,t.loc));return}MR(i);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=i,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:i,children:zh(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const h=r&&r(d);return()=>{s.vFor--,h&&h()}}function MR(e,t){e.finalized||(e.finalized=!0)}function ab({value:e,key:t,index:n},r=[]){return yhe([e,t,n,...r])}function yhe(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||$t("_".repeat(r+1),!1))}const Qk=$t("undefined",!1),T6=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Li(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},_he=(e,t)=>{let n;if(zh(e)&&e.props.some(ER)&&(n=Li(e,"for"))){const r=n.forParseResult;if(r){MR(r);const{value:i,key:o,index:a}=r,{addIdentifiers:s,removeIdentifiers:l}=t;return i&&s(i),o&&s(o),a&&s(a),()=>{i&&l(i),o&&l(o),a&&l(a)}}}},bhe=(e,t,n,r)=>Hf(e,n,!1,!0,n.length?n[0].loc:r);function E6(e,t,n=bhe){t.helper(US);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Li(e,"slot",!0);if(l){const{arg:_,exp:y}=l;_&&!$i(_)&&(s=!0),o.push(lr(_||$t("default",!0),n(y,void 0,r,i)))}let u=!1,c=!1;const f=[],d=new Set;let h=0;for(let _=0;_<r.length;_++){const y=r[_];let S;if(!zh(y)||!(S=Li(y,"slot",!0))){y.type!==3&&f.push(y);continue}if(l){t.onError(Wn(37,S.loc));break}u=!0;const{children:b,loc:w}=y,{arg:T=$t("default",!0),exp:C,loc:E}=S;let R;$i(T)?R=T?T.content:"default":s=!0;const I=Li(y,"for"),M=n(C,I,b,w);let P,D;if(P=Li(y,"if"))s=!0,a.push(ib(P.exp,w0(T,M,h++),Qk));else if(D=Li(y,/^else(-if)?$/,!0)){let k=_,$;for(;k--&&($=r[k],$.type===3););if($&&zh($)&&Li($,/^(else-)?if$/)){let W=a[a.length-1];for(;W.alternate.type===19;)W=W.alternate;W.alternate=D.exp?ib(D.exp,w0(T,M,h++),Qk):w0(T,M,h++)}else t.onError(Wn(30,D.loc))}else if(I){s=!0;const k=I.forParseResult;k?(MR(k),a.push(br(t.helper(FS),[k.source,Hf(ab(k),w0(T,M),!0)]))):t.onError(Wn(32,I.loc))}else{if(R){if(d.has(R)){t.onError(Wn(38,E));continue}d.add(R),R==="default"&&(c=!0)}o.push(lr(T,M))}}if(!l){const _=(y,S)=>{const b=n(y,void 0,S,i);return t.compatConfig&&(b.isNonScopedSlot=!0),lr("default",b)};u?f.length&&f.some(y=>A6(y))&&(c?t.onError(Wn(39,f[0].loc)):o.push(_(void 0,f))):o.push(_(void 0,r))}const v=s?2:o1(e.children)?3:1;let m=Oo(o.concat(lr("_",$t(v+"",!1))),i);return a.length&&(m=br(t.helper(SR),[m,Nu(a)])),{slots:m,hasDynamicSlots:s}}function w0(e,t,n){const r=[lr("name",e),lr("fn",t)];return n!=null&&r.push(lr("key",$t(String(n),!0))),Oo(r)}function o1(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||o1(n.children))return!0;break;case 9:if(o1(n.branches))return!0;break;case 10:case 11:if(o1(n.children))return!0;break}}return!1}function A6(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():A6(e.content)}const I6=new WeakMap,R6=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,o=e.tagType===1;let a=o?P6(e,t):`"${r}"`;const s=mn(a)&&a.callee===DS;let l,u,c=0,f,d,h,v=s||a===vh||a===IS||!o&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const m=OR(e,t,void 0,o,s);l=m.props,c=m.patchFlag,d=m.dynamicPropNames;const _=m.directives;h=_&&_.length?Nu(_.map(y=>M6(y,t))):void 0,m.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(a===Jg&&(v=!0,c|=1024),o&&a!==vh&&a!==Jg){const{slots:_,hasDynamicSlots:y}=E6(e,t);u=_,y&&(c|=1024)}else if(e.children.length===1&&a!==vh){const _=e.children[0],y=_.type,S=y===5||y===8;S&&so(_,t)===0&&(c|=1),S||y===2?u=_:u=e.children}else u=e.children;d&&d.length&&(f=whe(d)),e.codegenNode=Uh(t,a,l,u,c===0?void 0:c,f,h,!!v,!1,o,e.loc)};function P6(e,t,n=!1){let{tag:r}=e;const i=MA(r),o=Hm(e,"is",!1,!0);if(o)if(i||If("COMPILER_IS_ON_ELEMENT",t)){let s;if(o.type===6?s=o.value&&$t(o.value.content,!0):(s=o.exp,s||(s=$t("is",!1,o.arg.loc))),s)return br(t.helper(DS),[s])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=CR(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(OS),t.components.add(r),Gh(r,"component"))}function OR(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let u=[];const c=[],f=[],d=l.length>0;let h=!1,v=0,m=!1,_=!1,y=!1,S=!1,b=!1,w=!1;const T=[],C=M=>{u.length&&(c.push(Oo(eF(u),s)),u=[]),M&&c.push(M)},E=()=>{t.scopes.vFor>0&&u.push(lr($t("ref_for",!0),$t("true")))},R=({key:M,value:P})=>{if($i(M)){const D=M.content,k=Zu(D);if(k&&(!r||i)&&D.toLowerCase()!=="onclick"&&D!=="onUpdate:modelValue"&&!gl(D)&&(S=!0),k&&gl(D)&&(w=!0),k&&P.type===14&&(P=P.arguments[0]),P.type===20||(P.type===4||P.type===8)&&so(P,t)>0)return;D==="ref"?m=!0:D==="class"?_=!0:D==="style"?y=!0:D!=="key"&&!T.includes(D)&&T.push(D),r&&(D==="class"||D==="style")&&!T.includes(D)&&T.push(D)}else b=!0};for(let M=0;M<n.length;M++){const P=n[M];if(P.type===6){const{loc:D,name:k,nameLoc:$,value:W}=P;let N=!0;if(k==="ref"&&(m=!0,E()),k==="is"&&(MA(a)||W&&W.content.startsWith("vue:")||If("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(lr($t(k,!0,$),$t(W?W.content:"",N,W?W.loc:D)))}else{const{name:D,arg:k,exp:$,loc:W,modifiers:N}=P,K=D==="bind",X=D==="on";if(D==="slot"){r||t.onError(Wn(40,W));continue}if(D==="once"||D==="memo"||D==="is"||K&&Au(k,"is")&&(MA(a)||If("COMPILER_IS_ON_ELEMENT",t))||X&&o)continue;if((K&&Au(k,"key")||X&&d&&Au(k,"vue:before-update"))&&(h=!0),K&&Au(k,"ref")&&E(),!k&&(K||X)){if(b=!0,$)if(K){if(E(),C(),If("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift($);continue}c.push($)}else C({type:14,loc:W,callee:t.helper(VS),arguments:r?[$]:[$,"true"]});else t.onError(Wn(K?34:35,W));continue}K&&N.some(ge=>ge.content==="prop")&&(v|=32);const ae=t.directiveTransforms[D];if(ae){const{props:ge,needRuntime:ye}=ae(P,e,t);!o&&ge.forEach(R),X&&k&&!$i(k)?C(Oo(ge,s)):u.push(...ge),ye&&(f.push(P),Vi(ye)&&I6.set(P,ye))}else K4(D)||(f.push(P),d&&(h=!0))}}let I;if(c.length?(C(),c.length>1?I=br(t.helper(Qg),c,s):I=c[0]):u.length&&(I=Oo(eF(u),s)),b?v|=16:(_&&!r&&(v|=2),y&&!r&&(v|=4),T.length&&(v|=8),S&&(v|=32)),!h&&(v===0||v===32)&&(m||w||f.length>0)&&(v|=512),!t.inSSR&&I)switch(I.type){case 15:let M=-1,P=-1,D=!1;for(let W=0;W<I.properties.length;W++){const N=I.properties[W].key;$i(N)?N.content==="class"?M=W:N.content==="style"&&(P=W):N.isHandlerKey||(D=!0)}const k=I.properties[M],$=I.properties[P];D?I=br(t.helper(Vh),[I]):(k&&!$i(k.value)&&(k.value=br(t.helper($S),[k.value])),$&&(y||$.value.type===4&&$.value.content.trim()[0]==="["||$.value.type===17)&&($.value=br(t.helper(BS),[$.value])));break;case 14:break;default:I=br(t.helper(Vh),[br(t.helper(lp),[I])]);break}return{props:I,directives:f,patchFlag:v,dynamicPropNames:T,shouldUseBlock:h}}function eF(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?(o==="style"||o==="class"||Zu(o))&&She(a,i):(t.set(o,i),n.push(i))}return n}function She(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Nu([e.value,t.value],e.loc)}function M6(e,t){const n=[],r=I6.get(e);r?n.push(t.helperString(r)):(t.helper(LS),t.directives.add(e.name),n.push(Gh(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const o=$t("true",!1,i);n.push(Oo(e.modifiers.map(a=>lr(a,o)),i))}return Nu(n,e.loc)}function whe(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function MA(e){return e==="component"||e==="Component"}const xhe=(e,t)=>{if(tm(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=O6(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=Hf([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=br(t.helper(bR),a,r)}};function O6(e,t){let n='"default"',r;const i=[];for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===6)a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=Vn(a.name),i.push(a)));else if(a.name==="bind"&&Au(a.arg,"name")){if(a.exp)n=a.exp;else if(a.arg&&a.arg.type===4){const s=Vn(a.arg.content);n=a.exp=$t(s,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&$i(a.arg)&&(a.arg.content=Vn(a.arg.content)),i.push(a)}if(i.length>0){const{props:o,directives:a}=OR(e,t,i,!1,!1);r=o,a.length&&t.onError(Wn(36,a[0].loc))}return{slotName:n,slotProps:r}}const DR=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;!e.exp&&!o.length&&n.onError(Wn(35,i));let s;if(a.type===4)if(a.isStatic){let f=a.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const d=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?vf(Vn(f)):`on:${f}`;s=$t(d,!0,a.loc)}else s=ga([`${n.helperString(rb)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(rb)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=TR(l),d=!(f||e6(l)),h=l.content.includes(";");(d||u&&f)&&(l=ga([`${d?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let c={props:[lr(s,l||$t("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},Che=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let o=0;o<n.length;o++){const a=n[o];if(e1(a)){i=!0;for(let s=o+1;s<n.length;s++){const l=n[s];if(e1(l))r||(r=n[o]=ga([a],a.loc)),r.children.push(" + ",l),n.splice(s,1),s--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<n.length;o++){const a=n[o];if(e1(a)||a.type===8){const s=[];(a.type!==2||a.content!==" ")&&s.push(a),!t.ssr&&so(a,t)===0&&s.push("1"),n[o]={type:12,content:a,loc:a.loc,codegenNode:br(t.helper(MS),s)}}}}},tF=new WeakSet,The=(e,t)=>{if(e.type===1&&Li(e,"once",!0))return tF.has(e)||t.inVOnce||t.inSSR?void 0:(tF.add(e),t.inVOnce=!0,t.helper(em),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},LR=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Wn(41,e.loc)),x0();const o=r.loc.source.trim(),a=r.type===4?r.content:o,s=n.bindingMetadata[o];if(s==="props"||s==="props-aliased")return n.onError(Wn(44,r.loc)),x0();if(!a.trim()||!TR(r))return n.onError(Wn(42,r.loc)),x0();const l=i||$t("modelValue",!0),u=i?$i(i)?`onUpdate:${Vn(i.content)}`:ga(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;const f=n.isTS?"($event: any)":"$event";c=ga([`${f} => ((`,r,") = $event)"]);const d=[lr(l,e.exp),lr(u,c)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(m=>m.content).map(m=>(Um(m)?m:JSON.stringify(m))+": true").join(", "),v=i?$i(i)?`${i.content}Modifiers`:ga([i,' + "Modifiers"']):"modelModifiers";d.push(lr(v,$t(`{ ${h} }`,!1,e.loc,2)))}return x0(d)};function x0(e=[]){return{props:e}}const Ehe=/[\w).+\-_$\]]/,Ahe=(e,t)=>{If("COMPILER_FILTERS",t)&&(e.type===5?sb(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&sb(n.exp,t)}))};function sb(e,t){if(e.type===4)nF(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?nF(r,t):r.type===8?sb(e,t):r.type===5&&sb(r.content,t))}}function nF(e,t){const n=e.content;let r=!1,i=!1,o=!1,a=!1,s=0,l=0,u=0,c=0,f,d,h,v,m=[];for(h=0;h<n.length;h++)if(d=f,f=n.charCodeAt(h),r)f===39&&d!==92&&(r=!1);else if(i)f===34&&d!==92&&(i=!1);else if(o)f===96&&d!==92&&(o=!1);else if(a)f===47&&d!==92&&(a=!1);else if(f===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!s&&!l&&!u)v===void 0?(c=h+1,v=n.slice(0,h).trim()):_();else{switch(f){case 34:i=!0;break;case 39:r=!0;break;case 96:o=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(f===47){let y=h-1,S;for(;y>=0&&(S=n.charAt(y),S===" ");y--);(!S||!Ehe.test(S))&&(a=!0)}}v===void 0?v=n.slice(0,h).trim():c!==0&&_();function _(){m.push(n.slice(c,h).trim()),c=h+1}if(m.length){for(h=0;h<m.length;h++)v=Ihe(v,m[h],t);e.content=v,e.ast=void 0}}function Ihe(e,t,n){n.helper(NS);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Gh(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${Gh(i,"filter")}(${e}${o!==")"?","+o:o}`}}const rF=new WeakSet,Rhe=(e,t)=>{if(e.type===1){const n=Li(e,"memo");return!n||rF.has(e)?void 0:(rF.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&zS(r,t),e.codegenNode=br(t.helper(HS),[n.exp,Hf(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function D6(e){return[[The,vhe,Rhe,mhe,Ahe,xhe,R6,T6,Che],{on:DR,bind:w6,model:LR}]}function L6(e,t={}){const n=t.onError||xR,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wn(47)):r&&n(Wn(48));const i=!1;t.cacheHandlers&&n(Wn(49)),t.scopeId&&!r&&n(Wn(50));const o=tn({},t,{prefixIdentifiers:i}),a=Mt(e)?IR(e,o):e,[s,l]=D6();return v6(a,tn({},o,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:tn({},l,t.directiveTransforms||{})})),m6(a,o)}const Phe={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},N6=()=>({props:[]});/**
|
||
* @vue/compiler-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const NR=Symbol(""),kR=Symbol(""),FR=Symbol(""),$R=Symbol(""),lb=Symbol(""),BR=Symbol(""),VR=Symbol(""),UR=Symbol(""),HR=Symbol(""),zR=Symbol("");zH({[NR]:"vModelRadio",[kR]:"vModelCheckbox",[FR]:"vModelText",[$R]:"vModelSelect",[lb]:"vModelDynamic",[BR]:"withModifiers",[VR]:"withKeys",[UR]:"vShow",[HR]:"Transition",[zR]:"TransitionGroup"});let Td;function Mhe(e,t=!1){return Td||(Td=document.createElement("div")),t?(Td.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Td.children[0].getAttribute("foo")):(Td.innerHTML=e,Td.textContent)}const GR={parseMode:"html",isVoidTag:t$,isNativeTag:e=>J4(e)||Q4(e)||e$(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Mhe,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return HR;if(e==="TransitionGroup"||e==="transition-group")return zR},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},k6=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:$t("style",!0,t.loc),exp:Ohe(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ohe=(e,t)=>{const n=ZI(e);return $t(JSON.stringify(n),!1,t,3)};function wl(e,t){return Wn(e,t)}const Dhe={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},Lhe={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Nhe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(wl(53,i)),t.children.length&&(n.onError(wl(54,i)),t.children.length=0),{props:[lr($t("innerHTML",!0,i),r||$t("",!0))]}},khe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(wl(55,i)),t.children.length&&(n.onError(wl(56,i)),t.children.length=0),{props:[lr($t("textContent",!0),r?so(r,n)>0?r:br(n.helperString(Vm),[r],i):$t("",!0))]}},Fhe=(e,t,n)=>{const r=LR(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(wl(58,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let a=FR,s=!1;if(i==="input"||o){const l=Hm(t,"type");if(l){if(l.type===7)a=lb;else if(l.value)switch(l.value.content){case"radio":a=NR;break;case"checkbox":a=kR;break;case"file":s=!0,n.onError(wl(59,e.loc));break}}else n6(t)&&(a=lb)}else i==="select"&&(a=$R);s||(r.needRuntime=n.helper(a))}else n.onError(wl(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},$he=Ur("passive,once,capture"),Bhe=Ur("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Vhe=Ur("left,right"),F6=Ur("onkeyup,onkeydown,onkeypress"),Uhe=(e,t,n,r)=>{const i=[],o=[],a=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&Hh("COMPILER_V_ON_NATIVE",n)||$he(l)?a.push(l):Vhe(l)?$i(e)?F6(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):Bhe(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},iF=(e,t)=>$i(e)&&e.content.toLowerCase()==="onclick"?$t(t,!0):e.type!==4?ga(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Hhe=(e,t,n)=>DR(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:o,value:a}=r.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:u}=Uhe(o,i,n,e.loc);if(l.includes("right")&&(o=iF(o,"onContextmenu")),l.includes("middle")&&(o=iF(o,"onMouseup")),l.length&&(a=br(n.helper(BR),[a,JSON.stringify(l)])),s.length&&(!$i(o)||F6(o.content.toLowerCase()))&&(a=br(n.helper(VR),[a,JSON.stringify(s)])),u.length){const c=u.map(Ju).join("");o=$i(o)?$t(`${o.content}${c}`,!0):ga(["(",o,`) + "${c}"`])}return{props:[lr(o,a)]}}),zhe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(wl(61,i)),{props:[],needRuntime:n.helper(UR)}},Ghe=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},$6=[k6],B6={cloak:N6,html:Nhe,text:khe,model:Fhe,on:Hhe,show:zhe};function Whe(e,t={}){return L6(e,tn({},GR,t,{nodeTransforms:[Ghe,...$6,...t.nodeTransforms||[]],directiveTransforms:tn({},B6,t.directiveTransforms||{}),transformHoist:null}))}function jhe(e,t={}){return IR(e,tn({},GR,t))}const Xhe=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:gR,BindingTypes:Phe,CAMELIZE:nb,CAPITALIZE:$H,CREATE_BLOCK:mR,CREATE_COMMENT:sp,CREATE_ELEMENT_BLOCK:yR,CREATE_ELEMENT_VNODE:PS,CREATE_SLOTS:SR,CREATE_STATIC:_R,CREATE_TEXT:MS,CREATE_VNODE:RS,CompilerDeprecationTypes:dde,ConstantTypes:ide,DOMDirectiveTransforms:B6,DOMErrorCodes:Dhe,DOMErrorMessages:Lhe,DOMNodeTransforms:$6,ElementTypes:rde,ErrorCodes:vde,FRAGMENT:Bh,GUARD_REACTIVE_PROPS:lp,IS_MEMO_SAME:wR,IS_REF:HH,KEEP_ALIVE:Jg,MERGE_PROPS:Qg,NORMALIZE_CLASS:$S,NORMALIZE_PROPS:Vh,NORMALIZE_STYLE:BS,Namespaces:tde,NodeTypes:nde,OPEN_BLOCK:Wu,POP_SCOPE_ID:VH,PUSH_SCOPE_ID:BH,RENDER_LIST:FS,RENDER_SLOT:bR,RESOLVE_COMPONENT:OS,RESOLVE_DIRECTIVE:LS,RESOLVE_DYNAMIC_COMPONENT:DS,RESOLVE_FILTER:NS,SET_BLOCK_TRACKING:em,SUSPENSE:IS,TELEPORT:vh,TO_DISPLAY_STRING:Vm,TO_HANDLERS:VS,TO_HANDLER_KEY:rb,TRANSITION:HR,TRANSITION_GROUP:zR,TS_NODE_TYPES:KH,UNREF:UH,V_MODEL_CHECKBOX:kR,V_MODEL_DYNAMIC:lb,V_MODEL_RADIO:NR,V_MODEL_SELECT:$R,V_MODEL_TEXT:FR,V_ON_WITH_KEYS:VR,V_ON_WITH_MODIFIERS:BR,V_SHOW:UR,WITH_CTX:US,WITH_DIRECTIVES:kS,WITH_MEMO:HS,advancePositionWithClone:Lde,advancePositionWithMutation:t6,assert:Nde,baseCompile:L6,baseParse:IR,buildDirectiveArgs:M6,buildProps:OR,buildSlots:E6,checkCompatEnabled:Hh,compile:Whe,convertToBlock:zS,createArrayExpression:Nu,createAssignmentExpression:lde,createBlockStatement:jH,createCacheExpression:WH,createCallExpression:br,createCompilerError:Wn,createCompoundExpression:ga,createConditionalExpression:ib,createDOMCompilerError:wl,createForLoopParams:ab,createFunctionExpression:Hf,createIfStatement:sde,createInterpolation:ode,createObjectExpression:Oo,createObjectProperty:lr,createReturnStatement:cde,createRoot:GH,createSequenceExpression:ude,createSimpleExpression:$t,createStructuralDirectiveTransform:RR,createTemplateLiteral:ade,createTransformContext:p6,createVNodeCall:Uh,errorMessages:gde,extractIdentifiers:cl,findDir:Li,findProp:Hm,forAliasRE:o6,generate:m6,generateCodeFrame:Z4,getBaseTransformPreset:D6,getConstantType:so,getMemoedVNodeCall:i6,getVNodeBlockHelper:Gf,getVNodeHelper:zf,hasDynamicKeyVBind:n6,hasScopeRef:ka,helperNameMap:Uf,injectProp:nm,isCoreComponent:CR,isFnExpression:e6,isFnExpressionBrowser:QH,isFnExpressionNode:Dde,isFunctionType:Tde,isInDestructureAssignment:_de,isInNewExpression:bde,isMemberExpression:TR,isMemberExpressionBrowser:JH,isMemberExpressionNode:Mde,isReferencedIdentifier:yde,isSimpleIdentifier:Um,isSlotOutlet:tm,isStaticArgOf:Au,isStaticExp:$i,isStaticProperty:YH,isStaticPropertyKey:Ede,isTemplateNode:zh,isText:e1,isVSlot:ER,locStub:Or,noopDirectiveTransform:N6,parse:jhe,parserOptions:GR,processExpression:i1,processFor:C6,processIf:S6,processSlotOutlet:O6,registerRuntimeHelpers:zH,resolveComponentType:P6,stringifyExpression:b6,toValidAssetId:Gh,trackSlotScopes:T6,trackVForSlotScopes:_he,transform:v6,transformBind:w6,transformElement:R6,transformExpression:phe,transformModel:LR,transformOn:DR,transformStyle:k6,traverseNode:zm,unwrapTSNode:ZH,walkBlockDeclarations:wde,walkFunctionParams:Sde,walkIdentifiers:mde,warnDeprecation:pde},Symbol.toStringTag,{value:"Module"})),Yhe=Vb(Xhe),Khe=Vb(Gee),Zhe=Vb(Lq);/**
|
||
* vue v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/var oF;function qhe(){return oF||(oF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Yhe,n=Khe,r=Zhe;function i(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var o=i(n);const a=Object.create(null);function s(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),f=a[c];if(f)return f;if(l[0]==="#"){const m=document.querySelector(l);l=m?m.innerHTML:""}const d=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!d.isCustomElement&&typeof customElements<"u"&&(d.isCustomElement=m=>!!customElements.get(m));const{code:h}=t.compile(l,d),v=new Function("Vue",h)(o);return v._rc=!0,a[c]=v}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})}(DC)),DC}var aF;function Jhe(){return aF||(aF=1,OC.exports=qhe()),OC.exports}/**!
|
||
* Sortable 1.14.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function sF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sF(Object(n),!0).forEach(function(r){Qhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a1=function(t){return typeof t}:a1=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a1(e)}function Qhe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xa(){return xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function epe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tpe(e,t){if(e==null)return{};var n=epe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function npe(e){return rpe(e)||ipe(e)||ope(e)||ape()}function rpe(e){if(Array.isArray(e))return OA(e)}function ipe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ope(e,t){if(e){if(typeof e=="string")return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ape(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var spe="1.14.0";function xl(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ll=xl(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Wm=xl(/Edge/i),lF=xl(/firefox/i),sg=xl(/safari/i)&&!xl(/chrome/i)&&!xl(/android/i),V6=xl(/iP(ad|od|hone)/i),lpe=xl(/chrome/i)&&xl(/android/i),U6={capture:!1,passive:!1};function on(e,t,n){e.addEventListener(t,n,!Ll&&U6)}function Kt(e,t,n){e.removeEventListener(t,n,!Ll&&U6)}function ub(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function upe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ha(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ub(e,t):ub(e,t))||r&&e===n)return e;if(e===n)break}while(e=upe(e))}return null}var uF=/\s+/g;function tr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(uF," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(uF," ")}}function dt(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function Rf(e,t){var n="";if(typeof e=="string")n=e;else do{var r=dt(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function H6(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Cs(){var e=document.scrollingElement;return e||document.documentElement}function Kn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,a,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==Cs()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Ll))do if(i&&i.getBoundingClientRect&&(dt(i,"transform")!=="none"||n&&dt(i,"position")!=="static")){var d=i.getBoundingClientRect();a-=d.top+parseInt(dt(i,"border-top-width")),s-=d.left+parseInt(dt(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==window){var h=Rf(i||e),v=h&&h.a,m=h&&h.d;h&&(a/=m,s/=v,f/=v,c/=m,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function cF(e,t,n){for(var r=Iu(e,!0),i=Kn(e)[t];r;){var o=Kn(r)[n],a=void 0;if(a=i>=o,!a)return r;if(r===Cs())break;r=Iu(r,!1)}return!1}function Wh(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==Pt.ghost&&(r||a[o]!==Pt.dragged)&&Ha(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function WR(e,t){for(var n=e.lastElementChild;n&&(n===Pt.ghost||dt(n,"display")==="none"||t&&!ub(n,t));)n=n.previousElementSibling;return n||null}function ar(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Pt.clone&&(!t||ub(e,t))&&n++;return n}function fF(e){var t=0,n=0,r=Cs();if(e)do{var i=Rf(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function cpe(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Iu(e,t){if(!e||!e.getBoundingClientRect)return Cs();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=dt(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Cs();if(r||t)return n;r=!0}}while(n=n.parentNode);return Cs()}function fpe(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function NC(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var lg;function z6(e,t){return function(){if(!lg){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),lg=setTimeout(function(){lg=void 0},t)}}}function dpe(){clearTimeout(lg),lg=void 0}function G6(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function jR(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function dF(e,t){dt(e,"position","absolute"),dt(e,"top",t.top),dt(e,"left",t.left),dt(e,"width",t.width),dt(e,"height",t.height)}function kC(e){dt(e,"position",""),dt(e,"top",""),dt(e,"left",""),dt(e,"width",""),dt(e,"height","")}var mi="Sortable"+new Date().getTime();function hpe(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(dt(i,"display")==="none"||i===Pt.ghost)){e.push({target:i,rect:Kn(i)});var o=Ps({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=Rf(i,!0);a&&(o.top-=a.f,o.left-=a.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(cpe(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,a=0;e.forEach(function(s){var l=0,u=s.target,c=u.fromRect,f=Kn(u),d=u.prevFromRect,h=u.prevToRect,v=s.rect,m=Rf(u,!0);m&&(f.top-=m.f,f.left-=m.e),u.toRect=f,u.thisAnimationDuration&&NC(d,f)&&!NC(c,f)&&(v.top-f.top)/(v.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=vpe(v,d,h,i.options)),NC(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=i.options.animation),i.animate(u,v,f,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,a){if(a){dt(r,"transition",""),dt(r,"transform","");var s=Rf(this.el),l=s&&s.a,u=s&&s.d,c=(i.left-o.left)/(l||1),f=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!f,dt(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=ppe(r),dt(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),dt(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){dt(r,"transition",""),dt(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function ppe(e){return e.offsetWidth}function vpe(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Ed=[],FC={initializeByDefault:!0},jm={mount:function(t){for(var n in FC)FC.hasOwnProperty(n)&&!(n in t)&&(t[n]=FC[n]);Ed.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ed.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";Ed.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][o]&&n[a.pluginName][o](Ps({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](Ps({sortable:n},r)))})},initializePlugins:function(t,n,r,i){Ed.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,xa(r,u.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,n){var r={};return Ed.forEach(function(i){typeof i.eventProperties=="function"&&xa(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return Ed.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function Av(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[mi],!!t){var m,_=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ll&&!Wm?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=a||n,m.from=s||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var S=Ps(Ps({},v),jm.getEventProperties(r,t));for(var b in S)m[b]=S[b];n&&n.dispatchEvent(m),_[y]&&_[y].call(t,m)}}var gpe=["evt"],Yi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=tpe(r,gpe);jm.pluginEvent.bind(Pt)(t,n,Ps({dragEl:Ke,parentEl:ir,ghostEl:Ht,rootEl:Xn,nextEl:Zc,lastDownEl:s1,cloneEl:or,cloneHidden:_u,dragStarted:Iv,putSortable:Wr,activeSortable:Pt.active,originalEvent:i,oldIndex:th,oldDraggableIndex:ug,newIndex:Io,newDraggableIndex:gu,hideGhostForTarget:Y6,unhideGhostForTarget:K6,cloneNowHidden:function(){_u=!0},cloneNowShown:function(){_u=!1},dispatchSortableEvent:function(s){Ii({sortable:n,name:s,originalEvent:i})}},o))};function Ii(e){Av(Ps({putSortable:Wr,cloneEl:or,targetEl:Ke,rootEl:Xn,oldIndex:th,oldDraggableIndex:ug,newIndex:Io,newDraggableIndex:gu},e))}var Ke,ir,Ht,Xn,Zc,s1,or,_u,th,Io,ug,gu,C0,Wr,qd=!1,cb=!1,fb=[],bc,Oa,$C,BC,hF,pF,Iv,Ad,cg,fg=!1,T0=!1,l1,oi,VC=[],DA=!1,db=[],WS=typeof document<"u",E0=V6,vF=Wm||Ll?"cssFloat":"float",mpe=WS&&!lpe&&!V6&&"draggable"in document.createElement("div"),W6=function(){if(WS){if(Ll)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),j6=function(t,n){var r=dt(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Wh(t,0,n),a=Wh(t,1,n),s=o&&dt(o),l=a&&dt(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Kn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Kn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return o&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[vF]==="none"||a&&r[vF]==="none"&&u+c>i)?"vertical":"horizontal"},ype=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,a=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||o===l||i+a/2===s+u/2},_pe=function(t,n){var r;return fb.some(function(i){var o=i[mi].options.emptyInsertThreshold;if(!(!o||WR(i))){var a=Kn(i),s=t>=a.left-o&&t<=a.right+o,l=n>=a.top-o&&n<=a.bottom+o;if(s&&l)return r=i}}),r},X6=function(t){function n(o,a){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(o==null&&(a||f))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return n(o(s,l,u,c),a)(s,l,u,c);var d=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},i=t.group;(!i||a1(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},Y6=function(){!W6&&Ht&&dt(Ht,"display","none")},K6=function(){!W6&&Ht&&dt(Ht,"display","")};WS&&document.addEventListener("click",function(e){if(cb)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),cb=!1,!1},!0);var Sc=function(t){if(Ke){t=t.touches?t.touches[0]:t;var n=_pe(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[mi]._onDragOver(r)}}},bpe=function(t){Ke&&Ke.parentNode[mi]._isOutsideThisEl(t.target)};function Pt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=xa({},t),e[mi]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return j6(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Pt.supportPointer!==!1&&"PointerEvent"in window&&!sg,emptyInsertThreshold:5};jm.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);X6(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:mpe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?on(e,"pointerdown",this._onTapStart):(on(e,"mousedown",this._onTapStart),on(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(e,"dragover",this),on(e,"dragenter",this)),fb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),xa(this,hpe())}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ad=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ke):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(Ipe(r),!Ke&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&sg&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ha(l,i.draggable,r,!1),!(l&&l.animated)&&s1!==l)){if(th=ar(l),ug=ar(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){Ii({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Yi("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Ha(u,f.trim(),r,!1),f)return Ii({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),Yi("filter",n,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Ha(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,a=i.options,s=o.ownerDocument,l;if(r&&!Ke&&r.parentNode===o){var u=Kn(r);if(Xn=o,Ke=r,ir=Ke.parentNode,Zc=Ke.nextSibling,s1=r,C0=a.group,Pt.dragged=Ke,bc={target:Ke,clientX:(n||t).clientX,clientY:(n||t).clientY},hF=bc.clientX-u.left,pF=bc.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ke.style["will-change"]="all",l=function(){if(Yi("delayEnded",i,{evt:t}),Pt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!lF&&i.nativeDraggable&&(Ke.draggable=!0),i._triggerDragStart(t,n),Ii({sortable:i,name:"choose",originalEvent:t}),tr(Ke,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){H6(Ke,c.trim(),UC)}),on(s,"dragover",Sc),on(s,"mousemove",Sc),on(s,"touchmove",Sc),on(s,"mouseup",i._onDrop),on(s,"touchend",i._onDrop),on(s,"touchcancel",i._onDrop),lF&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ke.draggable=!0),Yi("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Wm||Ll))){if(Pt.eventCanceled){this._onDrop();return}on(s,"mouseup",i._disableDelayedDrag),on(s,"touchend",i._disableDelayedDrag),on(s,"touchcancel",i._disableDelayedDrag),on(s,"mousemove",i._delayedDragTouchMoveHandler),on(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&on(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ke&&UC(Ke),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Kt(t,"mouseup",this._disableDelayedDrag),Kt(t,"touchend",this._disableDelayedDrag),Kt(t,"touchcancel",this._disableDelayedDrag),Kt(t,"mousemove",this._delayedDragTouchMoveHandler),Kt(t,"touchmove",this._delayedDragTouchMoveHandler),Kt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):n?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(Ke,"dragend",this),on(Xn,"dragstart",this._onDragStart));try{document.selection?u1(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(qd=!1,Xn&&Ke){Yi("dragStarted",this,{evt:n}),this.nativeDraggable&&on(document,"dragover",bpe);var r=this.options;!t&&tr(Ke,r.dragClass,!1),tr(Ke,r.ghostClass,!0),Pt.active=this,t&&this._appendGhost(),Ii({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Oa){this._lastX=Oa.clientX,this._lastY=Oa.clientY,Y6();for(var t=document.elementFromPoint(Oa.clientX,Oa.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Oa.clientX,Oa.clientY),t!==n);)n=t;if(Ke.parentNode[mi]._isOutsideThisEl(t),n)do{if(n[mi]){var r=void 0;if(r=n[mi]._onDragOver({clientX:Oa.clientX,clientY:Oa.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);K6()}},_onTouchMove:function(t){if(bc){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=Ht&&Rf(Ht,!0),s=Ht&&a&&a.a,l=Ht&&a&&a.d,u=E0&&oi&&fF(oi),c=(o.clientX-bc.clientX+i.x)/(s||1)+(u?u[0]-VC[0]:0)/(s||1),f=(o.clientY-bc.clientY+i.y)/(l||1)+(u?u[1]-VC[1]:0)/(l||1);if(!Pt.active&&!qd){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Ht){a?(a.e+=c-($C||0),a.f+=f-(BC||0)):a={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");dt(Ht,"webkitTransform",d),dt(Ht,"mozTransform",d),dt(Ht,"msTransform",d),dt(Ht,"transform",d),$C=c,BC=f,Oa=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ht){var t=this.options.fallbackOnBody?document.body:Xn,n=Kn(Ke,!0,E0,!0,t),r=this.options;if(E0){for(oi=t;dt(oi,"position")==="static"&&dt(oi,"transform")==="none"&&oi!==document;)oi=oi.parentNode;oi!==document.body&&oi!==document.documentElement?(oi===document&&(oi=Cs()),n.top+=oi.scrollTop,n.left+=oi.scrollLeft):oi=Cs(),VC=fF(oi)}Ht=Ke.cloneNode(!0),tr(Ht,r.ghostClass,!1),tr(Ht,r.fallbackClass,!0),tr(Ht,r.dragClass,!0),dt(Ht,"transition",""),dt(Ht,"transform",""),dt(Ht,"box-sizing","border-box"),dt(Ht,"margin",0),dt(Ht,"top",n.top),dt(Ht,"left",n.left),dt(Ht,"width",n.width),dt(Ht,"height",n.height),dt(Ht,"opacity","0.8"),dt(Ht,"position",E0?"absolute":"fixed"),dt(Ht,"zIndex","100000"),dt(Ht,"pointerEvents","none"),Pt.ghost=Ht,t.appendChild(Ht),dt(Ht,"transform-origin",hF/parseInt(Ht.style.width)*100+"% "+pF/parseInt(Ht.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,o=r.options;if(Yi("dragStart",this,{evt:t}),Pt.eventCanceled){this._onDrop();return}Yi("setupClone",this),Pt.eventCanceled||(or=jR(Ke),or.draggable=!1,or.style["will-change"]="",this._hideClone(),tr(or,this.options.chosenClass,!1),Pt.clone=or),r.cloneId=u1(function(){Yi("clone",r),!Pt.eventCanceled&&(r.options.removeCloneOnHide||Xn.insertBefore(or,Ke),r._hideClone(),Ii({sortable:r,name:"clone"}))}),!n&&tr(Ke,o.dragClass,!0),n?(cb=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Kt(document,"mouseup",r._onDrop),Kt(document,"touchend",r._onDrop),Kt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Ke)),on(document,"drop",r),dt(Ke,"transform","translateZ(0)")),qd=!0,r._dragStartId=u1(r._dragStarted.bind(r,n,t)),on(document,"selectstart",r),Iv=!0,sg&&dt(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,o,a,s=this.options,l=s.group,u=Pt.active,c=C0===l,f=s.sort,d=Wr||u,h,v=this,m=!1;if(DA)return;function _(X,ae){Yi(X,v,Ps({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:a,dragRect:i,targetRect:o,canSort:f,fromSortable:d,target:r,completed:S,onMove:function(ye,Me){return A0(Xn,n,Ke,i,ye,Kn(ye),t,Me)},changed:b},ae))}function y(){_("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function S(X){return _("dragOverCompleted",{insertion:X}),X&&(c?u._hideClone():u._showClone(v),v!==d&&(tr(Ke,Wr?Wr.options.ghostClass:u.options.ghostClass,!1),tr(Ke,s.ghostClass,!0)),Wr!==v&&v!==Pt.active?Wr=v:v===Pt.active&&Wr&&(Wr=null),d===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){_("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===Ke&&!Ke.animated||r===n&&!r.animated)&&(Ad=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Ke.parentNode[mi]._isOutsideThisEl(t.target),!X&&Sc(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function b(){Io=ar(Ke),gu=ar(Ke,s.draggable),Ii({sortable:v,name:"change",toEl:n,newIndex:Io,newDraggableIndex:gu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ha(r,s.draggable,n,!0),_("dragOver"),Pt.eventCanceled)return m;if(Ke.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return S(!1);if(cb=!1,u&&!s.disabled&&(c?f||(a=ir!==Xn):Wr===this||(this.lastPutMode=C0.checkPull(this,u,Ke,t))&&l.checkPut(this,u,Ke,t))){if(h=this._getDirection(t,r)==="vertical",i=Kn(Ke),_("dragOverValid"),Pt.eventCanceled)return m;if(a)return ir=Xn,y(),this._hideClone(),_("revert"),Pt.eventCanceled||(Zc?Xn.insertBefore(Ke,Zc):Xn.appendChild(Ke)),S(!0);var w=WR(n,s.draggable);if(!w||Cpe(t,h,this)&&!w.animated){if(w===Ke)return S(!1);if(w&&n===t.target&&(r=w),r&&(o=Kn(r)),A0(Xn,n,Ke,i,r,o,t,!!r)!==!1)return y(),n.appendChild(Ke),ir=n,b(),S(!0)}else if(w&&xpe(t,h,this)){var T=Wh(n,0,s,!0);if(T===Ke)return S(!1);if(r=T,o=Kn(r),A0(Xn,n,Ke,i,r,o,t,!1)!==!1)return y(),n.insertBefore(Ke,T),ir=n,b(),S(!0)}else if(r.parentNode===n){o=Kn(r);var C=0,E,R=Ke.parentNode!==n,I=!ype(Ke.animated&&Ke.toRect||i,r.animated&&r.toRect||o,h),M=h?"top":"left",P=cF(r,"top","top")||cF(Ke,"top","top"),D=P?P.scrollTop:void 0;Ad!==r&&(E=o[M],fg=!1,T0=!I&&s.invertSwap||R),C=Tpe(t,r,o,h,I?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,T0,Ad===r);var k;if(C!==0){var $=ar(Ke);do $-=C,k=ir.children[$];while(k&&(dt(k,"display")==="none"||k===Ht))}if(C===0||k===r)return S(!1);Ad=r,cg=C;var W=r.nextElementSibling,N=!1;N=C===1;var K=A0(Xn,n,Ke,i,r,o,t,N);if(K!==!1)return(K===1||K===-1)&&(N=K===1),DA=!0,setTimeout(wpe,30),y(),N&&!W?n.appendChild(Ke):r.parentNode.insertBefore(Ke,N?W:r),P&&G6(P,0,D-P.scrollTop),ir=Ke.parentNode,E!==void 0&&!T0&&(l1=Math.abs(E-Kn(r)[M])),b(),S(!0)}if(n.contains(Ke))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Kt(document,"mousemove",this._onTouchMove),Kt(document,"touchmove",this._onTouchMove),Kt(document,"pointermove",this._onTouchMove),Kt(document,"dragover",Sc),Kt(document,"mousemove",Sc),Kt(document,"touchmove",Sc)},_offUpEvents:function(){var t=this.el.ownerDocument;Kt(t,"mouseup",this._onDrop),Kt(t,"touchend",this._onDrop),Kt(t,"pointerup",this._onDrop),Kt(t,"touchcancel",this._onDrop),Kt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(Io=ar(Ke),gu=ar(Ke,r.draggable),Yi("drop",this,{evt:t}),ir=Ke&&Ke.parentNode,Io=ar(Ke),gu=ar(Ke,r.draggable),Pt.eventCanceled){this._nulling();return}qd=!1,T0=!1,fg=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),LA(this.cloneId),LA(this._dragStartId),this.nativeDraggable&&(Kt(document,"drop",this),Kt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),sg&&dt(document.body,"user-select",""),dt(Ke,"transform",""),t&&(Iv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ht&&Ht.parentNode&&Ht.parentNode.removeChild(Ht),(Xn===ir||Wr&&Wr.lastPutMode!=="clone")&&or&&or.parentNode&&or.parentNode.removeChild(or),Ke&&(this.nativeDraggable&&Kt(Ke,"dragend",this),UC(Ke),Ke.style["will-change"]="",Iv&&!qd&&tr(Ke,Wr?Wr.options.ghostClass:this.options.ghostClass,!1),tr(Ke,this.options.chosenClass,!1),Ii({sortable:this,name:"unchoose",toEl:ir,newIndex:null,newDraggableIndex:null,originalEvent:t}),Xn!==ir?(Io>=0&&(Ii({rootEl:ir,name:"add",toEl:ir,fromEl:Xn,originalEvent:t}),Ii({sortable:this,name:"remove",toEl:ir,originalEvent:t}),Ii({rootEl:ir,name:"sort",toEl:ir,fromEl:Xn,originalEvent:t}),Ii({sortable:this,name:"sort",toEl:ir,originalEvent:t})),Wr&&Wr.save()):Io!==th&&Io>=0&&(Ii({sortable:this,name:"update",toEl:ir,originalEvent:t}),Ii({sortable:this,name:"sort",toEl:ir,originalEvent:t})),Pt.active&&((Io==null||Io===-1)&&(Io=th,gu=ug),Ii({sortable:this,name:"end",toEl:ir,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Yi("nulling",this),Xn=Ke=ir=Ht=Zc=or=s1=_u=bc=Oa=Iv=Io=gu=th=ug=Ad=cg=Wr=C0=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,db.forEach(function(t){t.checked=!0}),db.length=$C=BC=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ke&&(this._onDragOver(t),Spe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)n=r[i],Ha(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||Ape(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,a){var s=i.children[a];Ha(s,this.options.draggable,i,!1)&&(r[o]=s)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Ha(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=jm.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&X6(r)},destroy:function(){Yi("destroy",this);var t=this.el;t[mi]=null,Kt(t,"mousedown",this._onTapStart),Kt(t,"touchstart",this._onTapStart),Kt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Kt(t,"dragover",this),Kt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),fb.splice(fb.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_u){if(Yi("hideClone",this),Pt.eventCanceled)return;dt(or,"display","none"),this.options.removeCloneOnHide&&or.parentNode&&or.parentNode.removeChild(or),_u=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_u){if(Yi("showClone",this),Pt.eventCanceled)return;Ke.parentNode==Xn&&!this.options.group.revertClone?Xn.insertBefore(or,Ke):Zc?Xn.insertBefore(or,Zc):Xn.appendChild(or),this.options.group.revertClone&&this.animate(Ke,or),dt(or,"display",""),_u=!1}}};function Spe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function A0(e,t,n,r,i,o,a,s){var l,u=e[mi],c=u.options.onMove,f;return window.CustomEvent&&!Ll&&!Wm?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Kn(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),c&&(f=c.call(u,l,a)),f}function UC(e){e.draggable=!1}function wpe(){DA=!1}function xpe(e,t,n){var r=Kn(Wh(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function Cpe(e,t,n){var r=Kn(WR(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function Tpe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a){if(s&&l1<u*i){if(!fg&&(cg===1?l>c+u*o/2:l<f-u*o/2)&&(fg=!0),fg)d=!0;else if(cg===1?l<c+l1:l>f-l1)return-cg}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return Epe(t)}return d=d||a,d&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function Epe(e){return ar(Ke)<ar(e)?1:-1}function Ape(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ipe(e){db.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&db.push(r)}}function u1(e){return setTimeout(e,0)}function LA(e){return clearTimeout(e)}WS&&on(document,"touchmove",function(e){(Pt.active||qd)&&e.cancelable&&e.preventDefault()});Pt.utils={on,off:Kt,css:dt,find:H6,is:function(t,n){return!!Ha(t,n,t,!1)},extend:fpe,throttle:z6,closest:Ha,toggleClass:tr,clone:jR,index:ar,nextTick:u1,cancelNextTick:LA,detectDirection:j6,getChild:Wh};Pt.get=function(e){return e[mi]};Pt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Pt.utils=Ps(Ps({},Pt.utils),r.utils)),jm.mount(r)})};Pt.create=function(e,t){return new Pt(e,t)};Pt.version=spe;var _r=[],Rv,NA,kA=!1,HC,zC,hb,Pv;function Rpe(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):r.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Kt(document,"dragover",this._handleAutoScroll):(Kt(document,"pointermove",this._handleFallbackAutoScroll),Kt(document,"touchmove",this._handleFallbackAutoScroll),Kt(document,"mousemove",this._handleFallbackAutoScroll)),gF(),c1(),dpe()},nulling:function(){hb=NA=Rv=kA=Pv=HC=zC=null,_r.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(o,a);if(hb=n,r||this.options.forceAutoScrollFallback||Wm||Ll||sg){GC(n,this.options,s,r);var l=Iu(s,!0);kA&&(!Pv||o!==HC||a!==zC)&&(Pv&&gF(),Pv=setInterval(function(){var u=Iu(document.elementFromPoint(o,a),!0);u!==l&&(l=u,c1()),GC(n,i.options,u,r)},10),HC=o,zC=a)}else{if(!this.options.bubbleScroll||Iu(s,!0)===Cs()){c1();return}GC(n,this.options,Iu(s,!1),!1)}}},xa(e,{pluginName:"scroll",initializeByDefault:!0})}function c1(){_r.forEach(function(e){clearInterval(e.pid)}),_r=[]}function gF(){clearInterval(Pv)}var GC=z6(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=Cs(),u=!1,c;NA!==n&&(NA=n,c1(),Rv=t.scroll,c=t.scrollFn,Rv===!0&&(Rv=Iu(n,!0)));var f=0,d=Rv;do{var h=d,v=Kn(h),m=v.top,_=v.bottom,y=v.left,S=v.right,b=v.width,w=v.height,T=void 0,C=void 0,E=h.scrollWidth,R=h.scrollHeight,I=dt(h),M=h.scrollLeft,P=h.scrollTop;h===l?(T=b<E&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),C=w<R&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(T=b<E&&(I.overflowX==="auto"||I.overflowX==="scroll"),C=w<R&&(I.overflowY==="auto"||I.overflowY==="scroll"));var D=T&&(Math.abs(S-i)<=a&&M+b<E)-(Math.abs(y-i)<=a&&!!M),k=C&&(Math.abs(_-o)<=a&&P+w<R)-(Math.abs(m-o)<=a&&!!P);if(!_r[f])for(var $=0;$<=f;$++)_r[$]||(_r[$]={});(_r[f].vx!=D||_r[f].vy!=k||_r[f].el!==h)&&(_r[f].el=h,_r[f].vx=D,_r[f].vy=k,clearInterval(_r[f].pid),(D!=0||k!=0)&&(u=!0,_r[f].pid=setInterval((function(){r&&this.layer===0&&Pt.active._onTouchMove(hb);var W=_r[this.layer].vy?_r[this.layer].vy*s:0,N=_r[this.layer].vx?_r[this.layer].vx*s:0;typeof c=="function"&&c.call(Pt.dragged.parentNode[mi],N,W,e,hb,_r[this.layer].el)!=="continue"||G6(_r[this.layer].el,N,W)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=Iu(d,!1)));kA=u}},30),Z6=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||o;s();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function XR(){}XR.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Wh(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Z6};xa(XR,{pluginName:"revertOnSpill"});function YR(){}YR.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Z6};xa(YR,{pluginName:"removeOnSpill"});var qo;function Ppe(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;qo=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,a=n.activeSortable,s=n.changed,l=n.cancel;if(a.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var f=qo;o(i)!==!1?(tr(i,c.swapClass,!0),qo=i):qo=null,f&&f!==qo&&tr(f,c.swapClass,!1)}s(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,a=i||this.sortable,s=this.options;qo&&tr(qo,s.swapClass,!1),qo&&(s.swap||i&&i.options.swap)&&o!==qo&&(a.captureAnimationState(),a!==r&&r.captureAnimationState(),Mpe(o,qo),a.animateAll(),a!==r&&r.animateAll())},nulling:function(){qo=null}},xa(e,{pluginName:"swap",eventProperties:function(){return{swapItem:qo}}})}function Mpe(e,t){var n=e.parentNode,r=t.parentNode,i,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=ar(e),o=ar(t),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[o]))}var Ft=[],Ao=[],Kp,Da,Zp=!1,Ki=!1,Id=!1,Fn,qp,I0;function Ope(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?on(document,"pointerup",this._deselectMultiDrag):(on(document,"mouseup",this._deselectMultiDrag),on(document,"touchend",this._deselectMultiDrag)),on(document,"keydown",this._checkKeyDown),on(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var a="";Ft.length&&Da===t?Ft.forEach(function(s,l){a+=(l?", ":"")+s.textContent}):a=o.textContent,i.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Fn=r},delayEnded:function(){this.isMultiDrag=~Ft.indexOf(Fn)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<Ft.length;o++)Ao.push(jR(Ft[o])),Ao[o].sortableIndex=Ft[o].sortableIndex,Ao[o].draggable=!1,Ao[o].style["will-change"]="",tr(Ao[o],this.options.selectedClass,!1),Ft[o]===Fn&&tr(Ao[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,a=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ft.length&&Da===r&&(mF(!0,i),o("clone"),a()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(mF(!1,i),Ao.forEach(function(a){dt(a,"display","")}),r(),I0=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Ao.forEach(function(a){dt(a,"display","none"),r.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),I0=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Da&&Da.multiDrag._deselectMultiDrag(),Ft.forEach(function(r){r.sortableIndex=ar(r)}),Ft=Ft.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),Id=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Ft.forEach(function(a){a!==Fn&&dt(a,"position","absolute")});var o=Kn(Fn,!1,!0,!0);Ft.forEach(function(a){a!==Fn&&dF(a,o)}),Ki=!0,Zp=!0}i.animateAll(function(){Ki=!1,Zp=!1,r.options.animation&&Ft.forEach(function(a){kC(a)}),r.options.sort&&R0()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;Ki&&~Ft.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,a=n.dragRect;Ft.length>1&&(Ft.forEach(function(s){o.addAnimationState({target:s,rect:Ki?Kn(s):a}),kC(s),s.fromRect=a,r.removeAnimationState(s)}),Ki=!1,Dpe(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,a=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&a._hideClone(),Zp=!1,u.animation&&Ft.length>1&&(Ki||!i&&!a.options.sort&&!l)){var c=Kn(Fn,!1,!0,!0);Ft.forEach(function(d){d!==Fn&&(dF(d,c),s.appendChild(d))}),Ki=!0}if(!i)if(Ki||R0(),Ft.length>1){var f=I0;a._showClone(r),a.options.animation&&!I0&&f&&Ao.forEach(function(d){a.addAnimationState({target:d,rect:qp}),d.fromRect=qp,d.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(Ft.forEach(function(s){s.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){qp=xa({},r);var a=Rf(Fn,!0);qp.top-=a.f,qp.left-=a.e}},dragOverAnimationComplete:function(){Ki&&(Ki=!1,R0())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,a=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var f=this.options,d=o.children;if(!Id)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),tr(Fn,f.selectedClass,!~Ft.indexOf(Fn)),~Ft.indexOf(Fn))Ft.splice(Ft.indexOf(Fn),1),Kp=null,Av({sortable:a,rootEl:i,name:"deselect",targetEl:Fn});else{if(Ft.push(Fn),Av({sortable:a,rootEl:i,name:"select",targetEl:Fn}),r.shiftKey&&Kp&&a.el.contains(Kp)){var h=ar(Kp),v=ar(Fn);if(~h&&~v&&h!==v){var m,_;for(v>h?(_=h,m=v):(_=v,m=h+1);_<m;_++)~Ft.indexOf(d[_])||(tr(d[_],f.selectedClass,!0),Ft.push(d[_]),Av({sortable:a,rootEl:i,name:"select",targetEl:d[_]}))}}else Kp=Fn;Da=c}if(Id&&this.isMultiDrag){if(Ki=!1,(o[mi].options.sort||o!==i)&&Ft.length>1){var y=Kn(Fn),S=ar(Fn,":not(."+this.options.selectedClass+")");if(!Zp&&f.animation&&(Fn.thisAnimationDuration=null),c.captureAnimationState(),!Zp&&(f.animation&&(Fn.fromRect=y,Ft.forEach(function(w){if(w.thisAnimationDuration=null,w!==Fn){var T=Ki?Kn(w):y;w.fromRect=T,c.addAnimationState({target:w,rect:T})}})),R0(),Ft.forEach(function(w){d[S]?o.insertBefore(w,d[S]):o.appendChild(w),S++}),l===ar(Fn))){var b=!1;Ft.forEach(function(w){if(w.sortableIndex!==ar(w)){b=!0;return}}),b&&s("update")}Ft.forEach(function(w){kC(w)}),c.animateAll()}Da=c}(i===o||u&&u.lastPutMode!=="clone")&&Ao.forEach(function(w){w.parentNode&&w.parentNode.removeChild(w)})}},nullingGlobal:function(){this.isMultiDrag=Id=!1,Ao.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Kt(document,"pointerup",this._deselectMultiDrag),Kt(document,"mouseup",this._deselectMultiDrag),Kt(document,"touchend",this._deselectMultiDrag),Kt(document,"keydown",this._checkKeyDown),Kt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Id<"u"&&Id)&&Da===this.sortable&&!(n&&Ha(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Ft.length;){var r=Ft[0];tr(r,this.options.selectedClass,!1),Ft.shift(),Av({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},xa(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[mi];!r||!r.options.multiDrag||~Ft.indexOf(n)||(Da&&Da!==r&&(Da.multiDrag._deselectMultiDrag(),Da=r),tr(n,r.options.selectedClass,!0),Ft.push(n))},deselect:function(n){var r=n.parentNode[mi],i=Ft.indexOf(n);!r||!r.options.multiDrag||!~i||(tr(n,r.options.selectedClass,!1),Ft.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Ft.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var a;Ki&&o!==Fn?a=-1:Ki?a=ar(o,":not(."+n.options.selectedClass+")"):a=ar(o),i.push({multiDragElement:o,index:a})}),{items:npe(Ft),clones:[].concat(Ao),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Dpe(e,t){Ft.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function mF(e,t){Ao.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function R0(){Ft.forEach(function(e){e!==Fn&&e.parentNode&&e.parentNode.removeChild(e)})}Pt.mount(new Rpe);Pt.mount(YR,XR);const Lpe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Ope,Sortable:Pt,Swap:Ppe,default:Pt},Symbol.toStringTag,{value:"Module"})),Npe=Vb(Lpe);var kpe=Q_.exports,yF;function Fpe(){return yF||(yF=1,function(e,t){(function(r,i){e.exports=i(Jhe(),Npe)})(typeof self<"u"?self:kpe,function(n,r){return function(i){var o={};function a(s){if(o[s])return o[s].exports;var l=o[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=o,a.d=function(s,l,u){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(l&1&&(s=a(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)a.d(u,c,(function(f){return s[f]}).bind(null,c));return u},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s="fb15")}({"00ee":function(i,o,a){var s=a("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,a){var s=a("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,a){var s=a("fc6a"),l=a("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(i,o,a){var s=a("83ab"),l=a("d1e7"),u=a("5c6c"),c=a("fc6a"),f=a("c04e"),d=a("5135"),h=a("0cfb"),v=Object.getOwnPropertyDescriptor;o.f=s?v:function(_,y){if(_=c(_),y=f(y,!0),h)try{return v(_,y)}catch{}if(d(_,y))return u(!l.f.call(_,y),_[y])}},"0cfb":function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,a){var s=a("23e7"),l=a("d58f").left,u=a("a640"),c=a("ae40"),f=u("reduce"),d=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(v){return l(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,a){var s=a("c6b6"),l=a("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("17c2"),c=a("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,o,a){var s=a("b727").forEach,l=a("a640"),u=a("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,a){var s=a("d066");i.exports=s("document","documentElement")},"1c0b":function(i,o){i.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"1c7e":function(i,o,a){var s=a("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var v=!1;try{var m={};m[l]=function(){return{next:function(){return{done:v=!0}}}},d(m)}catch{}return v}},"1d80":function(i,o){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"1dde":function(i,o,a){var s=a("d039"),l=a("b622"),u=a("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(i,o,a){var s=a("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var d=s(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(i,o,a){var s=a("da84"),l=a("06cf").f,u=a("9112"),c=a("6eeb"),f=a("ce4e"),d=a("e893"),h=a("94ca");i.exports=function(v,m){var _=v.target,y=v.global,S=v.stat,b,w,T,C,E,R;if(y?w=s:S?w=s[_]||f(_,{}):w=(s[_]||{}).prototype,w)for(T in m){if(E=m[T],v.noTargetGet?(R=l(w,T),C=R&&R.value):C=w[T],b=h(y?T:_+(S?".":"#")+T,v.forced),!b&&C!==void 0){if(typeof E==typeof C)continue;d(E,C)}(v.sham||C&&C.sham)&&u(E,"sham",!0),c(w,T,E,v)}}},"241c":function(i,o,a){var s=a("ca84"),l=a("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},"25f0":function(i,o,a){var s=a("6eeb"),l=a("825a"),u=a("d039"),c=a("ad6d"),f="toString",d=RegExp.prototype,h=d[f],v=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),m=h.name!=f;(v||m)&&s(RegExp.prototype,f,function(){var y=l(this),S=String(y.source),b=y.flags,w=String(b===void 0&&y instanceof RegExp&&!("flags"in d)?c.call(y):b);return"/"+S+"/"+w},{unsafe:!0})},"2ca0":function(i,o,a){var s=a("23e7"),l=a("06cf").f,u=a("50c4"),c=a("5a34"),f=a("1d80"),d=a("ab13"),h=a("c430"),v="".startsWith,m=Math.min,_=d("startsWith"),y=!h&&!_&&!!function(){var S=l(String.prototype,"startsWith");return S&&!S.writable}();s({target:"String",proto:!0,forced:!y&&!_},{startsWith:function(b){var w=String(f(this));c(b);var T=u(m(arguments.length>1?arguments[1]:void 0,w.length)),C=String(b);return v?v.call(w,C,T):w.slice(T,T+C.length)===C}})},"2d00":function(i,o,a){var s=a("da84"),l=a("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,o,a){var s=a("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,o,a){var s=a("f5df"),l=a("3f8c"),u=a("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}},"37e8":function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("825a"),c=a("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var v=c(h),m=v.length,_=0,y;m>_;)l.f(d,y=v[_++],h[y]);return d}},"3bbe":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,a){var s=a("6547").charAt,l=a("69f3"),u=a("7dd0"),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var v=d(this),m=v.string,_=v.index,y;return _>=m.length?{value:void 0,done:!0}:(y=s(m,_),v.index+=y.length,{value:y,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,a){var s=a("23e7"),l=a("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,a){var s=a("da84");i.exports=s},"44ad":function(i,o,a){var s=a("d039"),l=a("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,a){var s=a("b622"),l=a("7c73"),u=a("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(d){f[c][d]=!0}},"44e7":function(i,o,a){var s=a("861d"),l=a("c6b6"),u=a("b622"),c=u("match");i.exports=function(f){var d;return s(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},4930:function(i,o,a){var s=a("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,o,a){var s=a("fc6a"),l=a("50c4"),u=a("23cb"),c=function(f){return function(d,h,v){var m=s(d),_=l(m.length),y=u(v,_),S;if(f&&h!=h){for(;_>y;)if(S=m[y++],S!=S)return!0}else for(;_>y;y++)if((f||y in m)&&m[y]===h)return f||y||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,a){var s=a("23e7"),l=a("b727").filter,u=a("1dde"),c=a("ae40"),f=u("filter"),d=c("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,a){var s=a("0366"),l=a("7b0b"),u=a("9bdd"),c=a("e95a"),f=a("50c4"),d=a("8418"),h=a("35a1");i.exports=function(m){var _=l(m),y=typeof this=="function"?this:Array,S=arguments.length,b=S>1?arguments[1]:void 0,w=b!==void 0,T=h(_),C=0,E,R,I,M,P,D;if(w&&(b=s(b,S>2?arguments[2]:void 0,2)),T!=null&&!(y==Array&&c(T)))for(M=T.call(_),P=M.next,R=new y;!(I=P.call(M)).done;C++)D=w?u(M,b,[I.value,C],!0):I.value,d(R,C,D);else for(E=f(_.length),R=new y(E);E>C;C++)D=w?b(_[C],C):_[C],d(R,C,D);return R.length=C,R}},"4fad":function(i,o,a){var s=a("23e7"),l=a("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,a){var s=a("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,o){var a={}.hasOwnProperty;i.exports=function(s,l){return a.call(s,l)}},5319:function(i,o,a){var s=a("d784"),l=a("825a"),u=a("7b0b"),c=a("50c4"),f=a("a691"),d=a("1d80"),h=a("8aa5"),v=a("14c3"),m=Math.max,_=Math.min,y=Math.floor,S=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,w=function(T){return T===void 0?T:String(T)};s("replace",2,function(T,C,E,R){var I=R.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=R.REPLACE_KEEPS_$0,P=I?"$":"$0";return[function($,W){var N=d(this),K=$==null?void 0:$[T];return K!==void 0?K.call($,N,W):C.call(String(N),$,W)},function(k,$){if(!I&&M||typeof $=="string"&&$.indexOf(P)===-1){var W=E(C,k,this,$);if(W.done)return W.value}var N=l(k),K=String(this),X=typeof $=="function";X||($=String($));var ae=N.global;if(ae){var ge=N.unicode;N.lastIndex=0}for(var ye=[];;){var Me=v(N,K);if(Me===null||(ye.push(Me),!ae))break;var ke=String(Me[0]);ke===""&&(N.lastIndex=h(K,c(N.lastIndex),ge))}for(var Ue="",Le=0,je=0;je<ye.length;je++){Me=ye[je];for(var fe=String(Me[0]),Ae=m(_(f(Me.index),K.length),0),Se=[],Te=1;Te<Me.length;Te++)Se.push(w(Me[Te]));var Ne=Me.groups;if(X){var Be=[fe].concat(Se,Ae,K);Ne!==void 0&&Be.push(Ne);var H=String($.apply(void 0,Be))}else H=D(fe,K,Ae,Se,Ne,$);Ae>=Le&&(Ue+=K.slice(Le,Ae)+H,Le=Ae+fe.length)}return Ue+K.slice(Le)}];function D(k,$,W,N,K,X){var ae=W+k.length,ge=N.length,ye=b;return K!==void 0&&(K=u(K),ye=S),C.call(X,ye,function(Me,ke){var Ue;switch(ke.charAt(0)){case"$":return"$";case"&":return k;case"`":return $.slice(0,W);case"'":return $.slice(ae);case"<":Ue=K[ke.slice(1,-1)];break;default:var Le=+ke;if(Le===0)return Me;if(Le>ge){var je=y(Le/10);return je===0?Me:je<=ge?N[je-1]===void 0?ke.charAt(1):N[je-1]+ke.charAt(1):Me}Ue=N[Le-1]}return Ue===void 0?"":Ue})}})},5692:function(i,o,a){var s=a("c430"),l=a("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,a){var s=a("d066"),l=a("241c"),u=a("7418"),c=a("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(c(d)),v=u.f;return v?h.concat(v(d)):h}},"5a34":function(i,o,a){var s=a("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"5db7":function(i,o,a){var s=a("23e7"),l=a("a2bf"),u=a("7b0b"),c=a("50c4"),f=a("1c0b"),d=a("65f0");s({target:"Array",proto:!0},{flatMap:function(v){var m=u(this),_=c(m.length),y;return f(v),y=d(m,0),y.length=l(y,m,m,_,0,1,v,arguments.length>1?arguments[1]:void 0),y}})},6547:function(i,o,a){var s=a("a691"),l=a("1d80"),u=function(c){return function(f,d){var h=String(l(f)),v=s(d),m=h.length,_,y;return v<0||v>=m?c?"":void 0:(_=h.charCodeAt(v),_<55296||_>56319||v+1===m||(y=h.charCodeAt(v+1))<56320||y>57343?c?h.charAt(v):_:c?h.slice(v,v+2):(_-55296<<10)+(y-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,a){var s=a("861d"),l=a("e8b5"),u=a("b622"),c=u("species");i.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,o,a){var s=a("7f9a"),l=a("da84"),u=a("861d"),c=a("9112"),f=a("5135"),d=a("f772"),h=a("d012"),v=l.WeakMap,m,_,y,S=function(I){return y(I)?_(I):m(I,{})},b=function(I){return function(M){var P;if(!u(M)||(P=_(M)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return P}};if(s){var w=new v,T=w.get,C=w.has,E=w.set;m=function(I,M){return E.call(w,I,M),M},_=function(I){return T.call(w,I)||{}},y=function(I){return C.call(w,I)}}else{var R=d("state");h[R]=!0,m=function(I,M){return c(I,R,M),M},_=function(I){return f(I,R)?I[R]:{}},y=function(I){return f(I,R)}}i.exports={set:m,get:_,has:y,enforce:S,getterFor:b}},"6eeb":function(i,o,a){var s=a("da84"),l=a("9112"),u=a("5135"),c=a("ce4e"),f=a("8925"),d=a("69f3"),h=d.get,v=d.enforce,m=String(String).split("String");(i.exports=function(_,y,S,b){var w=b?!!b.unsafe:!1,T=b?!!b.enumerable:!1,C=b?!!b.noTargetGet:!1;if(typeof S=="function"&&(typeof y=="string"&&!u(S,"name")&&l(S,"name",y),v(S).source=m.join(typeof y=="string"?y:"")),_===s){T?_[y]=S:c(y,S);return}else w?!C&&_[y]&&(T=!0):delete _[y];T?_[y]=S:l(_,y,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(i,o,a){var s=a("83ab"),l=a("df75"),u=a("fc6a"),c=a("d1e7").f,f=function(d){return function(h){for(var v=u(h),m=l(v),_=m.length,y=0,S=[],b;_>y;)b=m[y++],(!s||c.call(v,b))&&S.push(d?[b,v[b]]:v[b]);return S}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,o,a){var s=a("44d2");s("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,a){var s=a("428f"),l=a("5135"),u=a("e538"),c=a("9bf2").f;i.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||c(d,f,{value:u.f(f)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,a){var s=a("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,o,a){var s=a("825a"),l=a("37e8"),u=a("7839"),c=a("d012"),f=a("1be4"),d=a("cc12"),h=a("f772"),v=">",m="<",_="prototype",y="script",S=h("IE_PROTO"),b=function(){},w=function(I){return m+y+v+I+m+"/"+y+v},T=function(I){I.write(w("")),I.close();var M=I.parentWindow.Object;return I=null,M},C=function(){var I=d("iframe"),M="java"+y+":",P;return I.style.display="none",f.appendChild(I),I.src=String(M),P=I.contentWindow.document,P.open(),P.write(w("document.F=Object")),P.close(),P.F},E,R=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch{}R=E?T(E):C();for(var I=u.length;I--;)delete R[_][u[I]];return R()};c[S]=!0,i.exports=Object.create||function(M,P){var D;return M!==null?(b[_]=s(M),D=new b,b[_]=null,D[S]=M):D=R(),P===void 0?D:l(D,P)}},"7dd0":function(i,o,a){var s=a("23e7"),l=a("9ed3"),u=a("e163"),c=a("d2bb"),f=a("d44e"),d=a("9112"),h=a("6eeb"),v=a("b622"),m=a("c430"),_=a("3f8c"),y=a("ae93"),S=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,w=v("iterator"),T="keys",C="values",E="entries",R=function(){return this};i.exports=function(I,M,P,D,k,$,W){l(P,M,D);var N=function(je){if(je===k&&ye)return ye;if(!b&&je in ae)return ae[je];switch(je){case T:return function(){return new P(this,je)};case C:return function(){return new P(this,je)};case E:return function(){return new P(this,je)}}return function(){return new P(this)}},K=M+" Iterator",X=!1,ae=I.prototype,ge=ae[w]||ae["@@iterator"]||k&&ae[k],ye=!b&&ge||N(k),Me=M=="Array"&&ae.entries||ge,ke,Ue,Le;if(Me&&(ke=u(Me.call(new I)),S!==Object.prototype&&ke.next&&(!m&&u(ke)!==S&&(c?c(ke,S):typeof ke[w]!="function"&&d(ke,w,R)),f(ke,K,!0,!0),m&&(_[K]=R))),k==C&&ge&&ge.name!==C&&(X=!0,ye=function(){return ge.call(this)}),(!m||W)&&ae[w]!==ye&&d(ae,w,ye),_[M]=ye,k)if(Ue={values:N(C),keys:$?ye:N(T),entries:N(E)},W)for(Le in Ue)(b||X||!(Le in ae))&&h(ae,Le,Ue[Le]);else s({target:M,proto:!0,forced:b||X},Ue);return Ue}},"7f9a":function(i,o,a){var s=a("da84"),l=a("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,a){var s=a("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,a){var s=a("c04e"),l=a("9bf2"),u=a("5c6c");i.exports=function(c,f,d){var h=s(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},"861d":function(i,o){i.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},8875:function(i,o,a){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(o,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(E){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(E.stack)||h.exec(E.stack),m=v&&v[1]||!1,_=v&&v[2]||!1,y=document.location.href.replace(document.location.hash,""),S,b,w,T=document.getElementsByTagName("script");m===y&&(S=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(_-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),w=S.replace(b,"$1").trim());for(var C=0;C<T.length;C++)if(T[C].readyState==="interactive"||T[C].src===m||m===y&&T[C].innerHTML&&T[C].innerHTML.trim()===w)return T[C];return null}}return c})},8925:function(i,o,a){var s=a("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),i.exports=s.inspectSource},"8aa5":function(i,o,a){var s=a("6547").charAt;i.exports=function(l,u,c){return u+(c?s(l,u).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var a=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++a+s).toString(36)}},9112:function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("5c6c");i.exports=s?function(c,f,d){return l.f(c,f,u(1,d))}:function(c,f,d){return c[f]=d,c}},9263:function(i,o,a){var s=a("ad6d"),l=a("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,d=function(){var _=/a/,y=/b*/g;return u.call(_,"a"),u.call(y,"a"),_.lastIndex!==0||y.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,m=d||v||h;m&&(f=function(y){var S=this,b,w,T,C,E=h&&S.sticky,R=s.call(S),I=S.source,M=0,P=y;return E&&(R=R.replace("y",""),R.indexOf("g")===-1&&(R+="g"),P=String(y).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&y[S.lastIndex-1]!==`
|
||
`)&&(I="(?: "+I+")",P=" "+P,M++),w=new RegExp("^(?:"+I+")",R)),v&&(w=new RegExp("^"+I+"$(?!\\s)",R)),d&&(b=S.lastIndex),T=u.call(E?w:S,P),E?T?(T.input=T.input.slice(M),T[0]=T[0].slice(M),T.index=S.lastIndex,S.lastIndex+=T[0].length):S.lastIndex=0:d&&T&&(S.lastIndex=S.global?T.index+T[0].length:b),v&&T&&T.length>1&&c.call(T[0],w,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(T[C]=void 0)}),T}),i.exports=f},"94ca":function(i,o,a){var s=a("d039"),l=/#|\.prototype\./,u=function(v,m){var _=f[c(v)];return _==h?!0:_==d?!1:typeof m=="function"?s(m):!!m},c=u.normalize=function(v){return String(v).replace(l,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u},"99af":function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("e8b5"),c=a("861d"),f=a("7b0b"),d=a("50c4"),h=a("8418"),v=a("65f0"),m=a("1dde"),_=a("b622"),y=a("2d00"),S=_("isConcatSpreadable"),b=9007199254740991,w="Maximum allowed index exceeded",T=y>=51||!l(function(){var I=[];return I[S]=!1,I.concat()[0]!==I}),C=m("concat"),E=function(I){if(!c(I))return!1;var M=I[S];return M!==void 0?!!M:u(I)},R=!T||!C;s({target:"Array",proto:!0,forced:R},{concat:function(M){var P=f(this),D=v(P,0),k=0,$,W,N,K,X;for($=-1,N=arguments.length;$<N;$++)if(X=$===-1?P:arguments[$],E(X)){if(K=d(X.length),k+K>b)throw TypeError(w);for(W=0;W<K;W++,k++)W in X&&h(D,k,X[W])}else{if(k>=b)throw TypeError(w);h(D,k++,X)}return D.length=k,D}})},"9bdd":function(i,o,a){var s=a("825a");i.exports=function(l,u,c,f){try{return f?u(s(c)[0],c[1]):u(c)}catch(h){var d=l.return;throw d!==void 0&&s(d.call(l)),h}}},"9bf2":function(i,o,a){var s=a("83ab"),l=a("0cfb"),u=a("825a"),c=a("c04e"),f=Object.defineProperty;o.f=s?f:function(h,v,m){if(u(h),v=c(v,!0),u(m),l)try{return f(h,v,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[v]=m.value),h}},"9ed3":function(i,o,a){var s=a("ae93").IteratorPrototype,l=a("7c73"),u=a("5c6c"),c=a("d44e"),f=a("3f8c"),d=function(){return this};i.exports=function(h,v,m){var _=v+" Iterator";return h.prototype=l(s,{next:u(1,m)}),c(h,_,!1,!0),f[_]=d,h}},"9f7f":function(i,o,a){var s=a("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,a){var s=a("e8b5"),l=a("50c4"),u=a("0366"),c=function(f,d,h,v,m,_,y,S){for(var b=m,w=0,T=y?u(y,S,3):!1,C;w<v;){if(w in h){if(C=T?T(h[w],w,d):h[w],_>0&&s(C))b=c(f,d,C,l(C.length),b,_-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[b]=C}b++}w++}return b};i.exports=c},a352:function(i,o){i.exports=r},a434:function(i,o,a){var s=a("23e7"),l=a("23cb"),u=a("a691"),c=a("50c4"),f=a("7b0b"),d=a("65f0"),h=a("8418"),v=a("1dde"),m=a("ae40"),_=v("splice"),y=m("splice",{ACCESSORS:!0,0:0,1:2}),S=Math.max,b=Math.min,w=9007199254740991,T="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!_||!y},{splice:function(E,R){var I=f(this),M=c(I.length),P=l(E,M),D=arguments.length,k,$,W,N,K,X;if(D===0?k=$=0:D===1?(k=0,$=M-P):(k=D-2,$=b(S(u(R),0),M-P)),M+k-$>w)throw TypeError(T);for(W=d(I,$),N=0;N<$;N++)K=P+N,K in I&&h(W,N,I[K]);if(W.length=$,k<$){for(N=P;N<M-$;N++)K=N+$,X=N+k,K in I?I[X]=I[K]:delete I[X];for(N=M;N>M-$+k;N--)delete I[N-1]}else if(k>$)for(N=M-$;N>P;N--)K=N+$-1,X=N+k-1,K in I?I[X]=I[K]:delete I[X];for(N=0;N<k;N++)I[N+P]=arguments[N+2];return I.length=M-$+k,W}})},a4d3:function(i,o,a){var s=a("23e7"),l=a("da84"),u=a("d066"),c=a("c430"),f=a("83ab"),d=a("4930"),h=a("fdbf"),v=a("d039"),m=a("5135"),_=a("e8b5"),y=a("861d"),S=a("825a"),b=a("7b0b"),w=a("fc6a"),T=a("c04e"),C=a("5c6c"),E=a("7c73"),R=a("df75"),I=a("241c"),M=a("057f"),P=a("7418"),D=a("06cf"),k=a("9bf2"),$=a("d1e7"),W=a("9112"),N=a("6eeb"),K=a("5692"),X=a("f772"),ae=a("d012"),ge=a("90e3"),ye=a("b622"),Me=a("e538"),ke=a("746f"),Ue=a("d44e"),Le=a("69f3"),je=a("b727").forEach,fe=X("hidden"),Ae="Symbol",Se="prototype",Te=ye("toPrimitive"),Ne=Le.set,Be=Le.getterFor(Ae),H=Object[Se],z=l.Symbol,ue=u("JSON","stringify"),we=D.f,ve=k.f,U=M.f,j=$.f,J=K("symbols"),de=K("op-symbols"),_e=K("string-to-symbol-registry"),Oe=K("symbol-to-string-registry"),q=K("wks"),he=l.QObject,Ve=!he||!he[Se]||!he[Se].findChild,Ze=f&&v(function(){return E(ve({},"a",{get:function(){return ve(this,"a",{value:7}).a}})).a!=7})?function(We,Xe,tt){var Ot=we(H,Xe);Ot&&delete H[Xe],ve(We,Xe,tt),Ot&&We!==H&&ve(H,Xe,Ot)}:ve,bt=function(We,Xe){var tt=J[We]=E(z[Se]);return Ne(tt,{type:Ae,tag:We,description:Xe}),f||(tt.description=Xe),tt},ne=h?function(We){return typeof We=="symbol"}:function(We){return Object(We)instanceof z},se=function(Xe,tt,Ot){Xe===H&&se(de,tt,Ot),S(Xe);var Lt=T(tt,!0);return S(Ot),m(J,Lt)?(Ot.enumerable?(m(Xe,fe)&&Xe[fe][Lt]&&(Xe[fe][Lt]=!1),Ot=E(Ot,{enumerable:C(0,!1)})):(m(Xe,fe)||ve(Xe,fe,C(1,{})),Xe[fe][Lt]=!0),Ze(Xe,Lt,Ot)):ve(Xe,Lt,Ot)},pe=function(Xe,tt){S(Xe);var Ot=w(tt),Lt=R(Ot).concat($e(Ot));return je(Lt,function(Nn){(!f||Ge.call(Ot,Nn))&&se(Xe,Nn,Ot[Nn])}),Xe},Ee=function(Xe,tt){return tt===void 0?E(Xe):pe(E(Xe),tt)},Ge=function(Xe){var tt=T(Xe,!0),Ot=j.call(this,tt);return this===H&&m(J,tt)&&!m(de,tt)?!1:Ot||!m(this,tt)||!m(J,tt)||m(this,fe)&&this[fe][tt]?Ot:!0},oe=function(Xe,tt){var Ot=w(Xe),Lt=T(tt,!0);if(!(Ot===H&&m(J,Lt)&&!m(de,Lt))){var Nn=we(Ot,Lt);return Nn&&m(J,Lt)&&!(m(Ot,fe)&&Ot[fe][Lt])&&(Nn.enumerable=!0),Nn}},Ie=function(Xe){var tt=U(w(Xe)),Ot=[];return je(tt,function(Lt){!m(J,Lt)&&!m(ae,Lt)&&Ot.push(Lt)}),Ot},$e=function(Xe){var tt=Xe===H,Ot=U(tt?de:w(Xe)),Lt=[];return je(Ot,function(Nn){m(J,Nn)&&(!tt||m(H,Nn))&&Lt.push(J[Nn])}),Lt};if(d||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var Xe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),tt=ge(Xe),Ot=function(Lt){this===H&&Ot.call(de,Lt),m(this,fe)&&m(this[fe],tt)&&(this[fe][tt]=!1),Ze(this,tt,C(1,Lt))};return f&&Ve&&Ze(H,tt,{configurable:!0,set:Ot}),bt(tt,Xe)},N(z[Se],"toString",function(){return Be(this).tag}),N(z,"withoutSetter",function(We){return bt(ge(We),We)}),$.f=Ge,k.f=se,D.f=oe,I.f=M.f=Ie,P.f=$e,Me.f=function(We){return bt(ye(We),We)},f&&(ve(z[Se],"description",{configurable:!0,get:function(){return Be(this).description}}),c||N(H,"propertyIsEnumerable",Ge,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:z}),je(R(q),function(We){ke(We)}),s({target:Ae,stat:!0,forced:!d},{for:function(We){var Xe=String(We);if(m(_e,Xe))return _e[Xe];var tt=z(Xe);return _e[Xe]=tt,Oe[tt]=Xe,tt},keyFor:function(Xe){if(!ne(Xe))throw TypeError(Xe+" is not a symbol");if(m(Oe,Xe))return Oe[Xe]},useSetter:function(){Ve=!0},useSimple:function(){Ve=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!f},{create:Ee,defineProperty:se,defineProperties:pe,getOwnPropertyDescriptor:oe}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Ie,getOwnPropertySymbols:$e}),s({target:"Object",stat:!0,forced:v(function(){P.f(1)})},{getOwnPropertySymbols:function(Xe){return P.f(b(Xe))}}),ue){var et=!d||v(function(){var We=z();return ue([We])!="[null]"||ue({a:We})!="{}"||ue(Object(We))!="{}"});s({target:"JSON",stat:!0,forced:et},{stringify:function(Xe,tt,Ot){for(var Lt=[Xe],Nn=1,Ta;arguments.length>Nn;)Lt.push(arguments[Nn++]);if(Ta=tt,!(!y(tt)&&Xe===void 0||ne(Xe)))return _(tt)||(tt=function(Pn,yr){if(typeof Ta=="function"&&(yr=Ta.call(this,Pn,yr)),!ne(yr))return yr}),Lt[1]=tt,ue.apply(null,Lt)}})}z[Se][Te]||W(z[Se],Te,z[Se].valueOf),Ue(z,Ae),ae[fe]=!0},a630:function(i,o,a){var s=a("23e7"),l=a("4df4"),u=a("1c7e"),c=!u(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,o,a){var s=a("d039");i.exports=function(l,u){var c=[][l];return!!c&&s(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,o){var a=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:a)(l)}},ab13:function(i,o,a){var s=a("b622"),l=s("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,o,a){var s=a("23e7"),l=a("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,a){var s=a("825a");i.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("5135"),c=Object.defineProperty,f={},d=function(h){throw h};i.exports=function(h,v){if(u(f,h))return f[h];v||(v={});var m=[][h],_=u(v,"ACCESSORS")?v.ACCESSORS:!1,y=u(v,0)?v[0]:d,S=u(v,1)?v[1]:void 0;return f[h]=!!m&&!l(function(){if(_&&!s)return!0;var b={length:-1};_?c(b,1,{enumerable:!0,get:d}):b[1]=1,m.call(b,y,S)})}},ae93:function(i,o,a){var s=a("e163"),l=a("9112"),u=a("5135"),c=a("b622"),f=a("c430"),d=c("iterator"),h=!1,v=function(){return this},m,_,y;[].keys&&(y=[].keys(),"next"in y?(_=s(s(y)),_!==Object.prototype&&(m=_)):h=!0),m==null&&(m={}),!f&&!u(m,d)&&l(m,d,v),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:h}},b041:function(i,o,a){var s=a("00ee"),l=a("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,a){var s=a("83ab"),l=a("9bf2").f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},b622:function(i,o,a){var s=a("da84"),l=a("5692"),u=a("5135"),c=a("90e3"),f=a("4930"),d=a("fdbf"),h=l("wks"),v=s.Symbol,m=d?v:v&&v.withoutSetter||c;i.exports=function(_){return u(h,_)||(f&&u(v,_)?h[_]=v[_]:h[_]=m("Symbol."+_)),h[_]}},b64b:function(i,o,a){var s=a("23e7"),l=a("7b0b"),u=a("df75"),c=a("d039"),f=c(function(){u(1)});s({target:"Object",stat:!0,forced:f},{keys:function(h){return u(l(h))}})},b727:function(i,o,a){var s=a("0366"),l=a("44ad"),u=a("7b0b"),c=a("50c4"),f=a("65f0"),d=[].push,h=function(v){var m=v==1,_=v==2,y=v==3,S=v==4,b=v==6,w=v==5||b;return function(T,C,E,R){for(var I=u(T),M=l(I),P=s(C,E,3),D=c(M.length),k=0,$=R||f,W=m?$(T,D):_?$(T,0):void 0,N,K;D>k;k++)if((w||k in M)&&(N=M[k],K=P(N,k,I),v)){if(m)W[k]=K;else if(K)switch(v){case 3:return!0;case 5:return N;case 6:return k;case 2:d.call(W,N)}else if(S)return!1}return b?-1:y||S?S:W}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(i,o,a){var s=a("861d");i.exports=function(l,u){if(!s(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!s(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var a={}.toString;i.exports=function(s){return a.call(s).slice(8,-1)}},c6cd:function(i,o,a){var s=a("da84"),l=a("ce4e"),u="__core-js_shared__",c=s[u]||l(u,{});i.exports=c},c740:function(i,o,a){var s=a("23e7"),l=a("b727").findIndex,u=a("44d2"),c=a("ae40"),f="findIndex",d=!0,h=c(f);f in[]&&Array(1)[f](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(i,o){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}i.exports=a},c975:function(i,o,a){var s=a("23e7"),l=a("4d64").indexOf,u=a("a640"),c=a("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),v=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!v},{indexOf:function(_){return d?f.apply(this,arguments)||0:l(this,_,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,a){var s=a("5135"),l=a("fc6a"),u=a("4d64").indexOf,c=a("d012");i.exports=function(f,d){var h=l(f),v=0,m=[],_;for(_ in h)!s(c,_)&&s(h,_)&&m.push(_);for(;d.length>v;)s(h,_=d[v++])&&(~u(m,_)||m.push(_));return m}},caad:function(i,o,a){var s=a("23e7"),l=a("4d64").includes,u=a("44d2"),c=a("ae40"),f=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,o,a){var s=a("da84"),l=a("861d"),u=s.document,c=l(u)&&l(u.createElement);i.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(i,o,a){var s=a("da84"),l=a("9112");i.exports=function(u,c){try{l(s,u,c)}catch{s[u]=c}return c}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(a){try{return!!a()}catch{return!0}}},d066:function(i,o,a){var s=a("428f"),l=a("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,f){return arguments.length<2?u(s[c])||u(l[c]):s[c]&&s[c][f]||l[c]&&l[c][f]}},d1e7:function(i,o,a){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);o.f=u?function(f){var d=l(this,f);return!!d&&d.enumerable}:s},d28b:function(i,o,a){var s=a("746f");s("iterator")},d2bb:function(i,o,a){var s=a("825a"),l=a("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(h,v){return s(h),l(v),u?f.call(h,v):h.__proto__=v,h}}():void 0)},d3b7:function(i,o,a){var s=a("00ee"),l=a("6eeb"),u=a("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,o,a){var s=a("9bf2").f,l=a("5135"),u=a("b622"),c=u("toStringTag");i.exports=function(f,d,h){f&&!l(f=h?f:f.prototype,c)&&s(f,c,{configurable:!0,value:d})}},d58f:function(i,o,a){var s=a("1c0b"),l=a("7b0b"),u=a("44ad"),c=a("50c4"),f=function(d){return function(h,v,m,_){s(v);var y=l(h),S=u(y),b=c(y.length),w=d?b-1:0,T=d?-1:1;if(m<2)for(;;){if(w in S){_=S[w],w+=T;break}if(w+=T,d?w<0:b<=w)throw TypeError("Reduce of empty array with no initial value")}for(;d?w>=0:b>w;w+=T)w in S&&(_=v(_,S[w],w,y));return _}};i.exports={left:f(!1),right:f(!0)}},d784:function(i,o,a){a("ac1f");var s=a("6eeb"),l=a("d039"),u=a("b622"),c=a("9263"),f=a("9112"),d=u("species"),h=!l(function(){var S=/./;return S.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(S,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),_=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),y=!l(function(){var S=/(?:)/,b=S.exec;S.exec=function(){return b.apply(this,arguments)};var w="ab".split(S);return w.length!==2||w[0]!=="a"||w[1]!=="b"});i.exports=function(S,b,w,T){var C=u(S),E=!l(function(){var k={};return k[C]=function(){return 7},""[S](k)!=7}),R=E&&!l(function(){var k=!1,$=/a/;return S==="split"&&($={},$.constructor={},$.constructor[d]=function(){return $},$.flags="",$[C]=/./[C]),$.exec=function(){return k=!0,null},$[C](""),!k});if(!E||!R||S==="replace"&&!(h&&v&&!_)||S==="split"&&!y){var I=/./[C],M=w(C,""[S],function(k,$,W,N,K){return $.exec===c?E&&!K?{done:!0,value:I.call($,W,N)}:{done:!0,value:k.call(W,$,N)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:_}),P=M[0],D=M[1];s(String.prototype,S,P),s(RegExp.prototype,C,b==2?function(k,$){return D.call(k,this,$)}:function(k){return D.call(k,this)})}T&&f(RegExp.prototype[C],"sham",!0)}},d81d:function(i,o,a){var s=a("23e7"),l=a("b727").map,u=a("1dde"),c=a("ae40"),f=u("map"),d=c("map");s({target:"Array",proto:!0,forced:!f||!d},{map:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,a){(function(s){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,a("c8ba"))},dbb4:function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("56ef"),c=a("fc6a"),f=a("06cf"),d=a("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(v){for(var m=c(v),_=f.f,y=u(m),S={},b=0,w,T;y.length>b;)T=_(m,w=y[b++]),T!==void 0&&d(S,w,T);return S}})},dbf1:function(i,o,a){(function(s){a.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,a("c8ba"))},ddb0:function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("e260"),c=a("9112"),f=a("b622"),d=f("iterator"),h=f("toStringTag"),v=u.values;for(var m in l){var _=s[m],y=_&&_.prototype;if(y){if(y[d]!==v)try{c(y,d,v)}catch{y[d]=v}if(y[h]||c(y,h,m),l[m]){for(var S in u)if(y[S]!==u[S])try{c(y,S,u[S])}catch{y[S]=u[S]}}}}},df75:function(i,o,a){var s=a("ca84"),l=a("7839");i.exports=Object.keys||function(c){return s(c,l)}},e01a:function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("da84"),c=a("5135"),f=a("861d"),d=a("9bf2").f,h=a("e893"),v=u.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var m={},_=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),E=this instanceof _?new v(C):C===void 0?v():v(C);return C===""&&(m[E]=!0),E};h(_,v);var y=_.prototype=v.prototype;y.constructor=_;var S=y.toString,b=String(v("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var C=f(this)?this.valueOf():this,E=S.call(C);if(c(m,C))return"";var R=b?E.slice(7,-1):E.replace(w,"$1");return R===""?void 0:R}}),s({global:!0,forced:!0},{Symbol:_})}},e163:function(i,o,a){var s=a("5135"),l=a("7b0b"),u=a("f772"),c=a("e177"),f=u("IE_PROTO"),d=Object.prototype;i.exports=c?Object.getPrototypeOf:function(h){return h=l(h),s(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(i,o,a){var s=a("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,a){var s=a("fc6a"),l=a("44d2"),u=a("3f8c"),c=a("69f3"),f=a("7dd0"),d="Array Iterator",h=c.set,v=c.getterFor(d);i.exports=f(Array,"Array",function(m,_){h(this,{type:d,target:s(m),index:0,kind:_})},function(){var m=v(this),_=m.target,y=m.kind,S=m.index++;return!_||S>=_.length?(m.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:S,done:!1}:y=="values"?{value:_[S],done:!1}:{value:[S,_[S]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("fc6a"),c=a("06cf").f,f=a("83ab"),d=l(function(){c(1)}),h=!f||d;s({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(m,_){return c(u(m),_)}})},e538:function(i,o,a){var s=a("b622");o.f=s},e893:function(i,o,a){var s=a("5135"),l=a("56ef"),u=a("06cf"),c=a("9bf2");i.exports=function(f,d){for(var h=l(d),v=c.f,m=u.f,_=0;_<h.length;_++){var y=h[_];s(f,y)||v(f,y,m(d,y))}}},e8b5:function(i,o,a){var s=a("c6b6");i.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(i,o,a){var s=a("b622"),l=a("3f8c"),u=s("iterator"),c=Array.prototype;i.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}},f5df:function(i,o,a){var s=a("00ee"),l=a("c6b6"),u=a("b622"),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(h,v){try{return h[v]}catch{}};i.exports=s?l:function(h){var v,m,_;return h===void 0?"Undefined":h===null?"Null":typeof(m=d(v=Object(h),c))=="string"?m:f?l(v):(_=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":_}},f772:function(i,o,a){var s=a("5692"),l=a("90e3"),u=s("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(i,o,a){if(a.r(o),typeof window<"u"){var s=window.document.currentScript;{var l=a("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(a.p=u[1])}a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("159b"),a("a4d3"),a("e439"),a("dbb4"),a("b64b");function c(ne,se,pe){return se in ne?Object.defineProperty(ne,se,{value:pe,enumerable:!0,configurable:!0,writable:!0}):ne[se]=pe,ne}function f(ne,se){var pe=Object.keys(ne);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(ne);se&&(Ee=Ee.filter(function(Ge){return Object.getOwnPropertyDescriptor(ne,Ge).enumerable})),pe.push.apply(pe,Ee)}return pe}function d(ne){for(var se=1;se<arguments.length;se++){var pe=arguments[se]!=null?arguments[se]:{};se%2?f(Object(pe),!0).forEach(function(Ee){c(ne,Ee,pe[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(pe)):f(Object(pe)).forEach(function(Ee){Object.defineProperty(ne,Ee,Object.getOwnPropertyDescriptor(pe,Ee))})}return ne}function h(ne){if(Array.isArray(ne))return ne}a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");function v(ne,se){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ne)))){var pe=[],Ee=!0,Ge=!1,oe=void 0;try{for(var Ie=ne[Symbol.iterator](),$e;!(Ee=($e=Ie.next()).done)&&(pe.push($e.value),!(se&&pe.length===se));Ee=!0);}catch(et){Ge=!0,oe=et}finally{try{!Ee&&Ie.return!=null&&Ie.return()}finally{if(Ge)throw oe}}return pe}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function m(ne,se){(se==null||se>ne.length)&&(se=ne.length);for(var pe=0,Ee=new Array(se);pe<se;pe++)Ee[pe]=ne[pe];return Ee}function _(ne,se){if(ne){if(typeof ne=="string")return m(ne,se);var pe=Object.prototype.toString.call(ne).slice(8,-1);if(pe==="Object"&&ne.constructor&&(pe=ne.constructor.name),pe==="Map"||pe==="Set")return Array.from(ne);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return m(ne,se)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(ne,se){return h(ne)||v(ne,se)||_(ne,se)||y()}function b(ne){if(Array.isArray(ne))return m(ne)}function w(ne){if(typeof Symbol<"u"&&Symbol.iterator in Object(ne))return Array.from(ne)}function T(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(ne){return b(ne)||w(ne)||_(ne)||T()}var E=a("a352"),R=a.n(E);function I(ne){ne.parentElement!==null&&ne.parentElement.removeChild(ne)}function M(ne,se,pe){var Ee=pe===0?ne.children[0]:ne.children[pe-1].nextSibling;ne.insertBefore(se,Ee)}var P=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function D(ne){var se=Object.create(null);return function(Ee){var Ge=se[Ee];return Ge||(se[Ee]=ne(Ee))}}var k=/-(\w)/g,$=D(function(ne){return ne.replace(k,function(se,pe){return pe.toUpperCase()})});a("5db7"),a("73d9");var W=["Start","Add","Remove","Update","End"],N=["Choose","Unchoose","Sort","Filter","Clone"],K=["Move"],X=[K,W,N].flatMap(function(ne){return ne}).map(function(ne){return"on".concat(ne)}),ae={manage:K,manageAndEmit:W,emit:N};function ge(ne){return X.indexOf(ne)!==-1}a("caad"),a("2ca0");var ye=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Me(ne){return ye.includes(ne)}function ke(ne){return["transition-group","TransitionGroup"].includes(ne)}function Ue(ne){return["id","class","role","style"].includes(ne)||ne.startsWith("data-")||ne.startsWith("aria-")||ne.startsWith("on")}function Le(ne){return ne.reduce(function(se,pe){var Ee=S(pe,2),Ge=Ee[0],oe=Ee[1];return se[Ge]=oe,se},{})}function je(ne){var se=ne.$attrs,pe=ne.componentData,Ee=pe===void 0?{}:pe,Ge=Le(Object.entries(se).filter(function(oe){var Ie=S(oe,2),$e=Ie[0];return Ie[1],Ue($e)}));return d(d({},Ge),Ee)}function fe(ne){var se=ne.$attrs,pe=ne.callBackBuilder,Ee=Le(Ae(se));Object.entries(pe).forEach(function(oe){var Ie=S(oe,2),$e=Ie[0],et=Ie[1];ae[$e].forEach(function(We){Ee["on".concat(We)]=et(We)})});var Ge="[data-draggable]".concat(Ee.draggable||"");return d(d({},Ee),{},{draggable:Ge})}function Ae(ne){return Object.entries(ne).filter(function(se){var pe=S(se,2),Ee=pe[0];return pe[1],!Ue(Ee)}).map(function(se){var pe=S(se,2),Ee=pe[0],Ge=pe[1];return[$(Ee),Ge]}).filter(function(se){var pe=S(se,2),Ee=pe[0];return pe[1],!ge(Ee)})}a("c740");function Se(ne,se){if(!(ne instanceof se))throw new TypeError("Cannot call a class as a function")}function Te(ne,se){for(var pe=0;pe<se.length;pe++){var Ee=se[pe];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ne,Ee.key,Ee)}}function Ne(ne,se,pe){return se&&Te(ne.prototype,se),ne}var Be=function(se){var pe=se.el;return pe},H=function(se,pe){return se.__draggable_context=pe},z=function(se){return se.__draggable_context},ue=function(){function ne(se){var pe=se.nodes,Ee=pe.header,Ge=pe.default,oe=pe.footer,Ie=se.root,$e=se.realList;Se(this,ne),this.defaultNodes=Ge,this.children=[].concat(C(Ee),C(Ge),C(oe)),this.externalComponent=Ie.externalComponent,this.rootTransition=Ie.transition,this.tag=Ie.tag,this.realList=$e}return Ne(ne,[{key:"render",value:function(pe,Ee){var Ge=this.tag,oe=this.children,Ie=this._isRootComponent,$e=Ie?{default:function(){return oe}}:oe;return pe(Ge,Ee,$e)}},{key:"updated",value:function(){var pe=this.defaultNodes,Ee=this.realList;pe.forEach(function(Ge,oe){H(Be(Ge),{element:Ee[oe],index:oe})})}},{key:"getUnderlyingVm",value:function(pe){return z(pe)}},{key:"getVmIndexFromDomIndex",value:function(pe,Ee){var Ge=this.defaultNodes,oe=Ge.length,Ie=Ee.children,$e=Ie.item(pe);if($e===null)return oe;var et=z($e);if(et)return et.index;if(oe===0)return 0;var We=Be(Ge[0]),Xe=C(Ie).findIndex(function(tt){return tt===We});return pe<Xe?0:oe}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),ne}(),we=a("8bbf");function ve(ne,se){var pe=ne[se];return pe?pe():[]}function U(ne){var se=ne.$slots,pe=ne.realList,Ee=ne.getKey,Ge=pe||[],oe=["header","footer"].map(function(tt){return ve(se,tt)}),Ie=S(oe,2),$e=Ie[0],et=Ie[1],We=se.item;if(!We)throw new Error("draggable element must have an item slot");var Xe=Ge.flatMap(function(tt,Ot){return We({element:tt,index:Ot}).map(function(Lt){return Lt.key=Ee(tt),Lt.props=d(d({},Lt.props||{}),{},{"data-draggable":!0}),Lt})});if(Xe.length!==Ge.length)throw new Error("Item slot must have only one child");return{header:$e,footer:et,default:Xe}}function j(ne){var se=ke(ne),pe=!Me(ne)&&!se;return{transition:se,externalComponent:pe,tag:pe?Object(we.resolveComponent)(ne):se?we.TransitionGroup:ne}}function J(ne){var se=ne.$slots,pe=ne.tag,Ee=ne.realList,Ge=ne.getKey,oe=U({$slots:se,realList:Ee,getKey:Ge}),Ie=j(pe);return new ue({nodes:oe,root:Ie,realList:Ee})}function de(ne,se){var pe=this;Object(we.nextTick)(function(){return pe.$emit(ne.toLowerCase(),se)})}function _e(ne){var se=this;return function(pe,Ee){if(se.realList!==null)return se["onDrag".concat(ne)](pe,Ee)}}function Oe(ne){var se=this,pe=_e.call(this,ne);return function(Ee,Ge){pe.call(se,Ee,Ge),de.call(se,ne,Ee)}}var q=null,he={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(se){return se}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ve=["update:modelValue","change"].concat(C([].concat(C(ae.manageAndEmit),C(ae.emit)).map(function(ne){return ne.toLowerCase()}))),Ze=Object(we.defineComponent)({name:"draggable",inheritAttrs:!1,props:he,emits:Ve,data:function(){return{error:!1}},render:function(){try{this.error=!1;var se=this.$slots,pe=this.$attrs,Ee=this.tag,Ge=this.componentData,oe=this.realList,Ie=this.getKey,$e=J({$slots:se,tag:Ee,realList:oe,getKey:Ie});this.componentStructure=$e;var et=je({$attrs:pe,componentData:Ge});return $e.render(we.h,et)}catch(We){return this.error=!0,Object(we.h)("pre",{style:{color:"red"}},We.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&P.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var se=this;if(!this.error){var pe=this.$attrs,Ee=this.$el,Ge=this.componentStructure;Ge.updated();var oe=fe({$attrs:pe,callBackBuilder:{manageAndEmit:function(et){return Oe.call(se,et)},emit:function(et){return de.bind(se,et)},manage:function(et){return _e.call(se,et)}}}),Ie=Ee.nodeType===1?Ee:Ee.parentElement;this._sortable=new R.a(Ie,oe),this.targetDomElement=Ie,Ie.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var se=this.list;return se||this.modelValue},getKey:function(){var se=this.itemKey;return typeof se=="function"?se:function(pe){return pe[se]}}},watch:{$attrs:{handler:function(se){var pe=this._sortable;pe&&Ae(se).forEach(function(Ee){var Ge=S(Ee,2),oe=Ge[0],Ie=Ge[1];pe.option(oe,Ie)})},deep:!0}},methods:{getUnderlyingVm:function(se){return this.componentStructure.getUnderlyingVm(se)||null},getUnderlyingPotencialDraggableComponent:function(se){return se.__draggable_component__},emitChanges:function(se){var pe=this;Object(we.nextTick)(function(){return pe.$emit("change",se)})},alterList:function(se){if(this.list){se(this.list);return}var pe=C(this.modelValue);se(pe),this.$emit("update:modelValue",pe)},spliceList:function(){var se=arguments,pe=function(Ge){return Ge.splice.apply(Ge,C(se))};this.alterList(pe)},updatePosition:function(se,pe){var Ee=function(oe){return oe.splice(pe,0,oe.splice(se,1)[0])};this.alterList(Ee)},getRelatedContextFromMoveEvent:function(se){var pe=se.to,Ee=se.related,Ge=this.getUnderlyingPotencialDraggableComponent(pe);if(!Ge)return{component:Ge};var oe=Ge.realList,Ie={list:oe,component:Ge};if(pe!==Ee&&oe){var $e=Ge.getUnderlyingVm(Ee)||{};return d(d({},$e),Ie)}return Ie},getVmIndexFromDomIndex:function(se){return this.componentStructure.getVmIndexFromDomIndex(se,this.targetDomElement)},onDragStart:function(se){this.context=this.getUnderlyingVm(se.item),se.item._underlying_vm_=this.clone(this.context.element),q=se.item},onDragAdd:function(se){var pe=se.item._underlying_vm_;if(pe!==void 0){I(se.item);var Ee=this.getVmIndexFromDomIndex(se.newIndex);this.spliceList(Ee,0,pe);var Ge={element:pe,newIndex:Ee};this.emitChanges({added:Ge})}},onDragRemove:function(se){if(M(this.$el,se.item,se.oldIndex),se.pullMode==="clone"){I(se.clone);return}var pe=this.context,Ee=pe.index,Ge=pe.element;this.spliceList(Ee,1);var oe={element:Ge,oldIndex:Ee};this.emitChanges({removed:oe})},onDragUpdate:function(se){I(se.item),M(se.from,se.item,se.oldIndex);var pe=this.context.index,Ee=this.getVmIndexFromDomIndex(se.newIndex);this.updatePosition(pe,Ee);var Ge={element:this.context.element,oldIndex:pe,newIndex:Ee};this.emitChanges({moved:Ge})},computeFutureIndex:function(se,pe){if(!se.element)return 0;var Ee=C(pe.to.children).filter(function($e){return $e.style.display!=="none"}),Ge=Ee.indexOf(pe.related),oe=se.component.getVmIndexFromDomIndex(Ge),Ie=Ee.indexOf(q)!==-1;return Ie||!pe.willInsertAfter?oe:oe+1},onDragMove:function(se,pe){var Ee=this.move,Ge=this.realList;if(!Ee||!Ge)return!0;var oe=this.getRelatedContextFromMoveEvent(se),Ie=this.computeFutureIndex(oe,se),$e=d(d({},this.context),{},{futureIndex:Ie}),et=d(d({},se),{},{relatedContext:oe,draggedContext:$e});return Ee(et,pe)},onDragEnd:function(){q=null}}}),bt=Ze;o.default=bt},fb6a:function(i,o,a){var s=a("23e7"),l=a("861d"),u=a("e8b5"),c=a("23cb"),f=a("50c4"),d=a("fc6a"),h=a("8418"),v=a("b622"),m=a("1dde"),_=a("ae40"),y=m("slice"),S=_("slice",{ACCESSORS:!0,0:0,1:2}),b=v("species"),w=[].slice,T=Math.max;s({target:"Array",proto:!0,forced:!y||!S},{slice:function(E,R){var I=d(this),M=f(I.length),P=c(E,M),D=c(R===void 0?M:R,M),k,$,W;if(u(I)&&(k=I.constructor,typeof k=="function"&&(k===Array||u(k.prototype))?k=void 0:l(k)&&(k=k[b],k===null&&(k=void 0)),k===Array||k===void 0))return w.call(I,P,D);for($=new(k===void 0?Array:k)(T(D-P,0)),W=0;P<D;P++,W++)P in I&&h($,W,I[P]);return $.length=W,$}})},fc6a:function(i,o,a){var s=a("44ad"),l=a("1d80");i.exports=function(u){return s(l(u))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,a){var s=a("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})}(Q_)),Q_.exports}var $pe=Fpe();const jh=bm($pe),Bpe={class:"flex flex-col gap-3"},Vpe={class:"flex items-center gap-2"},Upe={class:"relative flex flex-col rounded-sm"},Hpe=["onClick"],zpe={class:"bg-neutral text-neutral-content flex h-8 cursor-move items-center rounded-sm px-2 select-none"},Gpe={class:"bg-base-200 text-base-content flex h-8 cursor-move items-center rounded-sm px-2 select-none"},Wpe=nt({__name:"ConnectionCardSettings",setup(e){const t=De([]),n=()=>{t.value=Object.values(ze).filter(o=>!to.value.flat().includes(o))};n();const r=()=>{to.value=[...to.value,t.value[0]?[t.value[0]]:[]],n()},i=o=>{to.value.splice(o,1),n()};return(o,a)=>(Y(),te("div",Bpe,[L("span",null,ie(o.$t("customCardLines")),1),L("div",Vpe,[L("button",{class:"btn btn-sm",onClick:a[0]||(a[0]=s=>(to.value=B(cne),n()))},ie(o.$t("simpleCardPreset")),1),L("button",{class:"btn btn-sm",onClick:a[1]||(a[1]=s=>(to.value=B(wV),n()))},ie(o.$t("detailedCardPreset")),1),a[3]||(a[3]=L("div",{class:"flex-1"},null,-1)),L("button",{class:"btn btn-circle btn-neutral btn-sm",onClick:r},[G(B(T2),{class:"h-4 w-4"})])]),L("div",Upe,[(Y(!0),te(Ye,null,fn(B(to),(s,l)=>(Y(),te("div",{key:l,class:gt(`flex items-center gap-2 p-2 ${l%2===0?"bg-base-200":"bg-base-300"}`)},[B(to).length>1?(Y(),te("button",{key:0,class:"btn btn-circle btn-neutral btn-sm",onClick:u=>i(l)},[G(B(A2),{class:"h-4 w-4"})],8,Hpe)):at("",!0),G(B(jh),{class:"flex flex-1 flex-wrap items-center gap-2",modelValue:B(to)[l],"onUpdate:modelValue":u=>B(to)[l]=u,animation:150,group:"list",ghostClass:"ghost","item-key":u=>u},{item:qn(({element:u})=>[L("div",zpe,ie(o.$t(u)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","item-key"])],2))),128)),G(B(jh),{class:"flex flex-1 flex-wrap gap-2 p-2",modelValue:t.value,"onUpdate:modelValue":a[2]||(a[2]=s=>t.value=s),animation:150,group:"list",ghostClass:"ghost","item-key":s=>s},{item:qn(({element:s})=>[L("div",Gpe,ie(o.$t(s)),1)]),_:1},8,["modelValue","item-key"])])]))}}),jpe={class:"flex gap-4 rounded-sm"},Xpe={class:"bg-neutral text-neutral-content flex h-8 cursor-move items-center justify-center rounded-sm px-2 select-none"},Ype={class:"bg-base-200 text-base-content flex h-8 cursor-move items-center justify-center rounded-sm px-2 select-none"},Kpe=nt({__name:"TableSettings",setup(e){const t=De(Object.values(ze).filter(n=>!xu.value.includes(n)));return(n,r)=>(Y(),te(Ye,null,[L("div",null,ie(n.$t("customTableColumns")),1),L("div",jpe,[G(B(jh),{class:"bg-base-200 flex flex-1 flex-col gap-2 p-4",modelValue:B(xu),"onUpdate:modelValue":r[0]||(r[0]=i=>ht(xu)?xu.value=i:null),group:"list",animation:150,"item-key":i=>i},{item:qn(({element:i})=>[L("div",Xpe,ie(n.$t(i)),1)]),_:1},8,["modelValue","item-key"]),G(B(jh),{class:"flex flex-1 flex-col gap-2 p-4",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=i=>t.value=i),group:"list",animation:150,"item-key":i=>i},{item:qn(({element:i})=>[L("div",Ype,ie(n.$t(i)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),Zpe={class:"tabs-box tabs tabs-xs"},qpe=["onClick"],P0=nt({__name:"ConnectionTabs",props:{horizental:{type:Boolean,default:!0}},setup(e){const t=Ce(()=>Dh.value.length!==ph.value.length?`${Dh.value.length} / ${ph.value.length}`:ph.value.length);return(n,r)=>(Y(),te("div",Zpe,[(Y(!0),te(Ye,null,fn(Object.values(B(Mm)),i=>(Y(),te("a",{key:i,role:"tab",class:gt(B(_i)("tab",B(hh)===i&&"tab-active",!e.horizental&&"flex-1")),onClick:()=>hh.value=i},[rt(ie(n.$t(i))+" ",1),B(hh)===i?(Y(),te(Ye,{key:0},[rt(" ("+ie(t.value)+") ",1)],64)):at("",!0)],10,qpe))),128))]))}}),Jpe={value:null},Qpe=["value"],eve=["value"],M0=nt({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Ce(()=>mr.uniq(ph.value.map(r=>r.metadata.sourceIP)).sort()),n=De([]);return Bt(t,(r,i)=>{mr.isEqual(r,i)||(n.value=t.value.map(o=>({label:Z1(o),value:o})))},{immediate:!0}),(r,i)=>r.horizontal?at("",!0):St((Y(),te("select",{key:0,class:"join-item select select-sm","onUpdate:modelValue":i[0]||(i[0]=o=>ht(rl)?rl.value=o:null)},[L("option",Jpe,ie(r.$t("allSourceIP")),1),n.value.every(o=>o.value!==B(rl))&&B(rl)!==null?(Y(),te("option",{key:0,value:B(rl)},ie(B(Z1)(B(rl))),9,Qpe)):at("",!0),(Y(!0),te(Ye,null,fn(n.value,o=>(Y(),te("option",{key:o.value,value:o.value},ie(o.label),9,eve))),128))],512)),[[vr,B(rl)]])}}),tve=()=>{Dh.value.forEach(e=>{wS(e.id)})},q6=nt({name:"ConnectionCtrl",components:{TextInput:Zr,ConnectionTabs:P0,SourceIPFilter:M0},props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),n=De(!1),{showTip:r}=Ls(),i=Ce(()=>Mo.value?kne.value:Hu.value);return()=>{const o=G("div",{class:["flex w-full items-center gap-1 text-sm",e.horizontal&&"lg:w-auto"]},[G("span",{class:"shrink-0"},[t("sortBy")]),G("div",{class:"join flex-1 max-lg:w-0"},[St(G("select",{class:"join-item select select-sm flex-1 max-lg:w-0","onUpdate:modelValue":u=>sA.value=u},[Object.values(eo).map(u=>G("option",{key:u,value:u},[t(u)||u]))]),[[vr,sA.value]]),G("button",{class:"btn join-item btn-sm",onClick:()=>{Y_.value=Y_.value===Qc.ASC?Qc.DESC:Qc.ASC}},[Y_.value===Qc.ASC?G(Rm,{class:"h-4 w-4"},null):G(sS,{class:"h-4 w-4"},null)])])]),a=G(Ye,null,[G("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[G(lS,{class:"h-4 w-4"},null)]),G(ip,{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u},{default:()=>[G("div",{class:"flex flex-col gap-4 p-2 text-sm"},[G("div",{class:"flex items-center gap-2"},[G("span",{class:"shrink-0"},[t("hideConnectionRegex")]),G(Zr,{class:"w-32 max-w-64 flex-1",modelValue:j1.value,"onUpdate:modelValue":u=>j1.value=u},null)]),G("div",{class:"flex items-center gap-2"},[t("hideConnection"),St(G("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":u=>aA.value=u},null),[[Bn,aA.value]]),G("div",{onMouseenter:u=>r(u,t("hideConnectionTip"),{appendTo:"parent"})},[G(E2,{class:"h-4 w-4"},null)])]),Mo.value?G(Wpe,null,null):G(Kpe,null,null)])]})]),s=G(Zr,{modelValue:X1.value,"onUpdate:modelValue":u=>X1.value=u,placeholder:t("search"),clearable:!0,"before-close":!0,class:e.horizontal&&!i.value?"w-32 max-w-80 flex-1":"w-full"},null),l=G(Ye,null,[G("button",{class:"btn btn-circle btn-sm",onClick:()=>{K_.value=!K_.value}},[K_.value?G(aV,{class:"h-4 w-4"},null):G(oV,{class:"h-4 w-4"},null)]),G("button",{class:"btn btn-circle btn-sm",onClick:tve},[G(Nf,{class:"h-4 w-4"},null)])]);return e.horizontal?i.value?G("div",{class:"flex flex-wrap items-center gap-2 p-2"},[G("div",{class:"flex w-full items-center justify-between gap-2"},[G(P0,null,null),!Mo.value&&G("div",{class:"flex items-center gap-1"},[a,l])]),Mo.value&&G("div",{class:"flex w-full items-center gap-2"},[o,a,l]),G("div",{class:"join w-full"},[G(M0,{class:"w-40"},null),s])]):G("div",{class:"flex items-center gap-2 p-2"},[G(P0,null,null),Mo.value&&o,G(M0,{class:"w-40"},null),G("div",{class:"flex flex-1"},[s]),a,l]):G("div",{class:"flex flex-wrap items-center gap-2 p-2"},[G(P0,{class:"w-full",horizental:!1},null),G("div",{class:"flex w-full items-center gap-2"},[G(M0,{class:"w-40 flex-1"},null),a,l]),s,Mo.value&&o])}}}),Xh=De([]),dg=De(""),f1=De(!1),FA=pt("config/log-level",Oi.Info);let O0,pb=[];const nve=mr.throttle(()=>{Xh.value=pb.concat(Xh.value).slice(0,UE.value),pb=[]},500),$A=[],rve=()=>{$A.length=0;for(const{key:e,label:t}of ia.value){if(e.startsWith("/"))continue;const n=new RegExp(e+":","ig");$A.push([n,`${e} (${t}) :`])}};Bt(ia,()=>{rve()},{immediate:!0});const J6=()=>{O0==null||O0(),Xh.value=[],pb=[];let e=1;const t=nse({level:FA.value}),n=Bt(t.data,r=>{if(r){if(f1.value){e++;return}for(const[i,o]of $A)r.payload=r.payload.replace(i,o);pb.unshift({...r,time:po().locale(Su.value).format("HH:mm:ss"),seq:e++}),nve()}});O0=()=>{n(),t.close()}},Q6=nt({props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),n=De(!1),r=mr.debounce(o=>{if(!o)return;const a=wd.value.indexOf(o);a!==-1&&wd.value.splice(a,1),wd.value.unshift(o),wd.value.length>5&&wd.value.pop()},1500);Bt(dg,r);const i=Ce(()=>_l.value?Object.values(Oi):[Oi.Debug,Oi.Info,Oi.Warning,Oi.Error,Oi.Silent]);return()=>{const o=St(G("select",{class:["join-item select select-sm",!e.horizontal&&"w-full"],"onUpdate:modelValue":u=>FA.value=u,onChange:J6},[i.value.map(u=>G("option",{key:u,value:u},[u]))]),[[vr,FA.value]]),a=G(Zr,{modelValue:dg.value,"onUpdate:modelValue":u=>dg.value=u,beforeClose:!0,class:"flex-1",placeholder:t("search"),clearable:!0,menus:wd.value},null),s=G(Ye,null,[G("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[G(lS,{class:"h-4 w-4"},null)]),G(ip,{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u},{default:()=>[G("div",{class:"flex flex-col gap-4 p-2 text-sm"},[G("div",{class:"flex items-center gap-2"},[t("logRetentionLimit"),St(G("input",{class:"input input-sm w-20",type:"number",max:"9999","onUpdate:modelValue":u=>UE.value=u},null),[[ki,UE.value]])])])]})]),l=G("div",{class:"flex items-center gap-2"},[s,G("button",{class:"btn btn-circle btn-sm",onClick:()=>f1.value=!f1.value},[f1.value?G(aV,{class:"h-4 w-4"},null):G(oV,{class:"h-4 w-4"},null)]),G("button",{class:"btn btn-circle btn-sm",onClick:()=>Xh.value=[]},[G(Nf,{class:"h-4 w-4"},null)])]);return e.horizontal?G("div",{class:"flex items-center justify-between gap-2 p-2"},[G("div",{class:"join max-w-96 flex-1"},[o,a]),l]):G("div",{class:"flex w-full flex-col items-center gap-2 p-2"},[G("div",{class:"flex w-full items-center gap-2"},[o,l]),G("div",{class:"w-full"},[a])])}}}),BA=Dne("collapsedBus"),e8=nt({name:"ProxiesCtrl",props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),{proxiesTabShow:n}=Kg(),r=De(!1),i=De(!1),o=De(!1),a=async()=>{if(!r.value){r.value=!0;try{await Promise.all(Tf.value.map(_=>CU(_.name))),await _a(),r.value=!1}catch{await _a(),r.value=!1}}},s=Ce(()=>Tf.value.length>0),l=Ce(()=>{var _,y;return((_=$r.value)==null?void 0:_["mode-list"])||((y=$r.value)==null?void 0:y.modes)||["direct","rule","global"]}),u=_=>{const y=_.target.value;X_({mode:y})},c=async()=>{if(!i.value){i.value=!0;try{await bse(),i.value=!1}catch{i.value=!1}}},{renderGroups:f}=Kg(),d=Ce(()=>f.value.some(_=>k_.value[_])),h=()=>{BA.emit({open:!d.value})},v=()=>{qv.value=k2(ef.value)},m=Ce(()=>Object.values(Wa).map(_=>({type:_,count:_===Wa.PROXIES?Y1.value.length:Tf.value.length})));return()=>{const _=G("div",{role:"tablist",class:"tabs-box tabs tabs-xs"},[m.value.map(({type:I,count:M})=>G("a",{role:"tab",key:I,class:["tab",n.value===I&&"tab-active",!e.horizontal&&"flex-1"],onClick:()=>n.value=I},[t(I),rt(" ("),M,rt(")")]))]),y=n.value===Wa.PROVIDER&&G("button",{class:"btn btn-sm",onClick:a},[r.value?G("span",{class:"loading loading-dots loading-md"},null):t("updateAllProviders")]),S=n.value===Wa.PROVIDER&&G("button",{class:"btn btn-circle btn-sm",onClick:a},[G(Im,{class:["h-4 w-4",r.value&&"animate-spin"]},null)]),b=$r.value&&St(G("select",{class:["select select-sm min-w-24",e.horizontal?"inline-block max-md:flex-1 md:min-w-40":"w-0 flex-1"],"onUpdate:modelValue":I=>$r.value.mode=I,onChange:u},[l.value.map(I=>G("option",{key:I,value:I},[t(I.toLowerCase())]))]),[[vr,$r.value.mode]]),w=St(G("select",{class:["select select-sm"],"onUpdate:modelValue":I=>kE.value=I},[Object.values(yu).map(I=>G("option",{key:I,value:I},[t(I)]))]),[[vr,kE.value]]),T=G("button",{class:"btn btn-circle btn-sm",onClick:c},[i.value?G("span",{class:"loading loading-spinner loading-sm"},null):G(Pm,{class:"h-4 w-4"},null)]),C=G("button",{class:["btn btn-circle btn-sm",Kv.value&&"max-sm:hidden"],onClick:h},[d.value?G(Kee,{class:"h-4 w-4"},null):G(Yee,{class:"h-4 w-4"},null)]),E=G(Zr,{class:e.horizontal&&!Hu.value?"w-32 max-w-80 flex-1":"w-80",modelValue:K1.value,"onUpdate:modelValue":I=>K1.value=I,placeholder:t("search"),clearable:!0},null),R=G(Ye,null,[G("button",{class:"btn btn-circle btn-sm",onClick:()=>o.value=!0},[G(lS,{class:"h-4 w-4"},null)]),G(ip,{modelValue:o.value,"onUpdate:modelValue":I=>o.value=I},{default:()=>[G("div",{class:"flex flex-col gap-4 p-2 text-sm"},[G("div",{class:"flex items-center gap-2"},[t("sortBy"),w]),G("div",{class:"flex items-center gap-2"},[t("unavailableProxy"),St(G("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":I=>$E.value=I},null),[[Bn,$E.value]])]),G("div",{class:"flex items-center gap-2"},[t("manageHiddenGroup"),St(G("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":I=>zg.value=I},null),[[Bn,zg.value]])]),G("div",{class:"flex items-center gap-2"},[t("automaticDisconnection"),St(G("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":I=>FE.value=I},null),[[Bn,FE.value]])]),G("div",{class:"flex items-center gap-2"},[t("minProxyCardWidth"),G("div",{class:"join"},[St(G("input",{class:"input input-sm join-item w-20",type:"number","onUpdate:modelValue":I=>qv.value=I},null),[[ki,qv.value]]),G("button",{class:"btn join-item btn-sm",onClick:v},[t("reset")])])])])]})]);return e.horizontal?Hu.value?G("div",{class:"flex flex-col gap-2 p-2"},[s.value&&G("div",{class:"flex gap-2"},[_,S]),G("div",{class:"flex w-full gap-2"},[b,E,R,C,T])]):G("div",{class:"flex gap-2 p-2"},[s.value&&_,b,G("div",{class:"flex flex-1"},[E]),S,R,C,T]):G("div",{class:"flex flex-col gap-2 p-2"},[y,s.value&&_,G("div",{class:"flex gap-2"},[b,R,C,T]),G("div",{class:"flex gap-2"},[E])])}}}),Ru=De(fl.RULES),Yh=De([]),ms=De([]),Kh=De(""),D0=Ce(()=>Kh.value===""?Yh.value:Yh.value.filter(e=>[e.type.toLowerCase(),e.payload.toLowerCase(),e.proxy.toLowerCase()].some(t=>t.includes(Kh.value.toLowerCase())))),ive=Ce(()=>Kh.value===""?ms.value:ms.value.filter(e=>[e.name.toLowerCase(),e.behavior.toLowerCase(),e.vehicleType.toLowerCase()].some(t=>t.includes(Kh.value.toLowerCase())))),im=async()=>{const{data:e}=await Xae(),{data:t}=await Yae();Yh.value=e.rules.map(n=>{const r=n.proxy,i=r.startsWith("route(")?r.substring(6,r.length-1):r;return{...n,proxy:i}}),ms.value=Object.values(t.providers)},t8=nt({name:"RulesCtrl",props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),n=De(!1),r=De(!1),i=Ce(()=>ms.value.length>0),{showNotification:o}=ed(),a=async()=>{if(!r.value){r.value=!0;try{let l=0;await Promise.all(ms.value.map(u=>TU(u.name).then(()=>{l++;const c=l===ms.value.length;o({content:"updateFinishedTip",params:{number:`${l}/${ms.value.length}`},type:c?"alert-success":"alert-warning",timeout:c?2e3:0})}))),await im(),r.value=!1}catch{await im(),r.value=!1}}},s=Ce(()=>Object.values(fl).map(l=>({type:l,count:l===fl.RULES?Yh.value.length:ms.value.length})));return()=>{const l=G("div",{role:"tablist",class:"tabs-box tabs tabs-xs"},[s.value.map(({type:h,count:v})=>G("a",{role:"tab",key:h,class:["tab",Ru.value===h&&"tab-active",!e.horizontal&&"flex-1"],onClick:()=>Ru.value=h},[t(h),rt(" ("),v,rt(")")]))]),u=Ru.value===fl.PROVIDER&&G("button",{class:"btn btn-sm",onClick:a},[r.value?G("span",{class:"loading loading-dots loading-md"},null):t("updateAllProviders")]),c=Ru.value===fl.PROVIDER&&G("button",{class:"btn btn-circle btn-sm",onClick:a},[G(Im,{class:["h-4 w-4",r.value&&"animate-spin"]},null)]),f=G(Zr,{class:"w-full md:w-80",modelValue:Kh.value,"onUpdate:modelValue":h=>Kh.value=h,placeholder:t("search"),clearable:!0},null),d=G(Ye,null,[G("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[G(lS,{class:"h-4 w-4"},null)]),G(ip,{modelValue:n.value,"onUpdate:modelValue":h=>n.value=h},{default:()=>[G("div",{class:"flex flex-col gap-4 p-2 text-sm"},[G("div",{class:"flex items-center gap-2"},[t("displaySelectedNode"),St(G("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":h=>BE.value=h},null),[[Bn,BE.value]])]),G("div",{class:"flex items-center gap-2"},[t("displayLatencyNumber"),St(G("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":h=>VE.value=h},null),[[Bn,VE.value]])])])]})]);return e.horizontal?Hu.value?G("div",{class:"flex flex-col gap-2 p-2"},[i.value&&G("div",{class:"flex gap-2"},[l,c]),G("div",{class:"flex w-full gap-2"},[f,d])]):G("div",{class:"flex flex-wrap gap-2 p-2"},[i.value&&l,f,G("div",{class:"flex-1"},null),c,d]):G("div",{class:"flex flex-col gap-2 p-2"},[u,i.value&&l,G("div",{class:"flex gap-2"},[f,d])])}}}),ove=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,ave="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e",sve={class:"flex items-center gap-1"},lve=["src"],KR=nt({__name:"BackendVersion",setup(e){return(t,n)=>(Y(),te("div",sve,[L("img",{src:B(_l)?B(ave):B(ove),class:"h-4 w-4 rounded-xs"},null,8,lve),rt(" "+ie(B(Oh)),1)]))}});var Hn=(e=>(e.CONNECTIONS="connections",e.DOWNLOAD="download",e.DL_SPEED="dlSpeed",e.MEMORY_USAGE="memoryUsage",e.UPLOAD="upload",e.UL_SPEED="ulSpeed",e))(Hn||{});const qc=Ce(()=>({connections:bs.value.length,memoryUsage:Gn(kU.value,{binary:!0}),download:Gn(iA.value),upload:Gn(oA.value),dlSpeed:Gn(FU.value)+"/s",ulSpeed:Gn($U.value)+"/s"})),ZR=nt({__name:"StatisticsStats",props:{type:{}},setup(e){const t=e,n={overview:{list:"grid grid-cols-2 gap-2 rounded-lg bg-base-200/50 px-4 py-2 lg:grid-cols-6",item:"flex h-12 flex-col items-start justify-center lg:gap-2 lg:h-24 lg:items-center",label:"text-sm lg:text-lg lg:font-bold max-lg:text-base-content/70",value:"text-lg lg:text-xl"},settings:{list:"grid w-full grid-cols-3 gap-1 rounded-lg bg-base-200/30 p-3",item:"flex flex-col items-start",label:"text-xs text-base-content/70",value:"text-base"},ctrl:{list:"grid w-full grid-cols-2 gap-1 rounded-lg",item:"flex gap-2 items-start",label:"text-sm",value:"text-sm"}},r={overview:[Hn.CONNECTIONS,Hn.MEMORY_USAGE,Hn.DOWNLOAD,Hn.DL_SPEED,Hn.UPLOAD,Hn.UL_SPEED],settings:[Hn.CONNECTIONS,Hn.DOWNLOAD,Hn.DL_SPEED,Hn.MEMORY_USAGE,Hn.UPLOAD,Hn.UL_SPEED],ctrl:[Hn.CONNECTIONS,Hn.MEMORY_USAGE,Hn.DOWNLOAD,Hn.DL_SPEED,Hn.UPLOAD,Hn.UL_SPEED]},i=Ce(()=>n[t.type]),o=Ce(()=>r[t.type]);return(a,s)=>(Y(),te("div",{class:gt(i.value.list)},[(Y(!0),te(Ye,null,fn(o.value,l=>(Y(),te("div",{key:l,class:gt(i.value.item)},[L("div",{class:gt(i.value.label)},ie(a.$t(l)),3),L("div",{class:gt(i.value.value)},ie(B(qc)[l]),3)],2))),128))],2))}}),uve={class:"join flex"},cve=["value"],n8=nt({__name:"BackendSwitch",setup(e){const t=Ce(()=>da.value.map(r=>({label:r.label||zu(r),value:r.uuid}))),n=()=>{vi.value=null,Ds.push({name:jt.setup})};return(r,i)=>(Y(),te("div",uve,[St(L("select",{class:"join-item select select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>ht(vi)?vi.value=o:null)},[(Y(!0),te(Ye,null,fn(t.value,o=>(Y(),te("option",{key:o.value,value:o.value},ie(o.label),9,cve))),128))],512),[[vr,B(vi)]]),L("button",{class:"btn join-item btn-sm",onClick:n},[G(B(T2),{class:"h-4 w-4"})])]))}}),fve={class:"flex flex-col gap-2 p-2 text-sm"},dve={class:"flex gap-2"},hve={class:"flex"},pve=nt({__name:"CommonCtrl",setup(e){return(t,n)=>(Y(),te("div",fve,[G(ZR,{type:"ctrl"}),L("div",dve,[rt(ie(t.$t("version"))+" ",1),G(KR)]),L("div",hve,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>Ua.value=!0)},[G(B(jee),{class:"h-5 w-5"})]),n[1]||(n[1]=L("div",{class:"flex-1"},null,-1)),G(n8)])]))}});/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var VA=function(e,t){return VA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},VA(e,t)};function st(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");VA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qR=12,vve="sans-serif",Wf=qR+"px "+vve,gve=20,mve=100,yve="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _ve(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-gve)/mve;t[r]=i}return t}var bve=_ve(yve),up={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=up.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Wf),e.measureText(n);n=n||"",r=r||Wf;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||qR,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=bve[n[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},r8=cp(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),i8=cp(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Xm=Object.prototype.toString,jS=Array.prototype,Sve=jS.forEach,wve=jS.filter,JR=jS.slice,xve=jS.map,_F=(function(){}).constructor,L0=_F?_F.prototype:null,QR="__proto__",Cve=2311;function o8(){return Cve++}function eP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function cn(e){if(e==null||typeof e!="object")return e;var t=e,n=Xm.call(e);if(n==="[object Array]"){if(!hg(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=cn(e[r])}}else if(i8[n]){if(!hg(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!r8[n]&&!hg(e)&&!om(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==QR&&(t[a]=cn(e[a]))}return t}function Sn(e,t,n){if(!Rt(t)||!Rt(e))return n?cn(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==QR){var i=e[r],o=t[r];Rt(o)&&Rt(i)&&!ft(o)&&!ft(i)&&!om(o)&&!om(i)&&!bF(o)&&!bF(i)&&!hg(o)&&!hg(i)?Sn(i,o,n):(n||!(r in e))&&(e[r]=cn(t[r]))}return e}function qe(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==QR&&(e[n]=t[n]);return e}function En(e,t,n){for(var r=Jn(t),i=0,o=r.length;i<o;i++){var a=r[i];e[a]==null&&(e[a]=t[a])}return e}function In(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Tve(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Ns(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else En(e,t)}function go(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function ee(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Sve)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Dt(e,t,n){if(!e)return[];if(!t)return tP(e);if(e.map&&e.map===xve)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function cp(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function Yr(e,t,n){if(!e)return[];if(!t)return tP(e);if(e.filter&&e.filter===wve)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Jn(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Eve(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(JR.call(arguments)))}}var Zn=L0&&Gt(L0.bind)?L0.call.bind(L0.bind):Eve;function Br(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(JR.call(arguments)))}}function ft(e){return Array.isArray?Array.isArray(e):Xm.call(e)==="[object Array]"}function Gt(e){return typeof e=="function"}function _t(e){return typeof e=="string"}function UA(e){return Xm.call(e)==="[object String]"}function Qn(e){return typeof e=="number"}function Rt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function bF(e){return!!r8[Xm.call(e)]}function mo(e){return!!i8[Xm.call(e)]}function om(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function XS(e){return e.colorStops!=null}function Ave(e){return e.image!=null}function vb(e){return e!==e}function am(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function an(e,t){return e??t}function d1(e,t,n){return e??t??n}function tP(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return JR.apply(e,t)}function a8(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ml(e,t){if(!e)throw new Error(t)}function Ss(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var s8="__ec_primitive__";function HA(e){e[s8]=!0}function hg(e){return e[s8]}var Ive=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Jn(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),l8=typeof Map=="function";function Rve(){return l8?new Map:new Ive}var Pve=function(){function e(t){var n=ft(t);this.data=Rve();var r=this;t instanceof e?t.each(i):t&&ee(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return l8?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Zt(e){return new Pve(e)}function Mve(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function YS(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&qe(n,t),n}function u8(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function jf(e,t){return e.hasOwnProperty(t)}function ho(){}var Ove=180/Math.PI,Dve=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Lve=function(){function e(){this.browser=new Dve,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Nt=new Lve;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Nt.wxa=!0,Nt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Nt.worker=!0:!Nt.hasGlobalWindow||"Deno"in window?(Nt.node=!0,Nt.svgSupported=!0):Nve(navigator.userAgent,Nt);function Nve(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var kve=".",wc="___EC__COMPONENT__CONTAINER___",c8="___EC__EXTENDED_CLASS___";function ws(e){var t={main:"",sub:""};if(e){var n=e.split(kve);t.main=n[0]||"",t.sub=n[1]||""}return t}function Fve(e){Ml(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function $ve(e){return!!(e&&e[c8])}function nP(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return Bve(r)?i=function(o){st(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},Tve(i,this)),qe(i.prototype,n),i[c8]=!0,i.extend=this.extend,i.superCall=Hve,i.superApply=zve,i.superClass=r,i}}function Bve(e){return Gt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function f8(e,t){e.extend=t.extend}var Vve=Math.round(Math.random()*10);function Uve(e){var t=["__\0is_clz",Vve++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function Hve(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function zve(e,t,n){return this.superClass.prototype[t].apply(e,n)}function KS(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){Fve(i),r.prototype.type=i;var o=ws(i);if(!o.sub)t[o.main]=r;else if(o.sub!==wc){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[wc]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=ws(r),o=[],a=t[i.main];return a&&a[wc]?ee(a,function(s,l){l!==wc&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=ws(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return ee(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=ws(r),o=t[i.main];return o&&o[wc]};function n(r){var i=t[r.main];return(!i||!i[wc])&&(i=t[r.main]={},i[wc]=!0),i}}function sm(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&In(i,l)>=0||o&&In(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var Gve=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Wve=sm(Gve),jve=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Wve(this,t,n)},e}(),d8=function(){function e(t){this.value=t}return e}(),Xve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new d8(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ym=function(){function e(t){this._list=new Xve,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new d8(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),zA=new Ym(50);function Yve(e){if(typeof e=="string"){var t=zA.get(e);return t&&t.image}else return e}function h8(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=zA.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!ZS(t)&&o.pending.push(a)):(t=up.loadImage(e,SF,SF),t.__zrImageSrc=e,zA.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function SF(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ZS(e){return e&&e.width&&e.height}function gh(){return[1,0,0,1,0,0]}function rP(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Kve(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function mh(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function GA(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function iP(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(a-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(a-r[0])+r[1],e}function Zve(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function oP(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var On=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e}(),N0=Math.min,k0=Math.max,xc=new On,Cc=new On,Tc=new On,Ec=new On,Jp=new On,Qp=new On,wn=function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=N0(t.x,this.x),r=N0(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=k0(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=k0(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,o=gh();return GA(o,o,[-n.x,-n.y]),Zve(o,o,[r,i]),GA(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<l||u<i||s<c||f<a);if(n){var h=1/0,v=0,m=Math.abs(o-l),_=Math.abs(u-i),y=Math.abs(s-c),S=Math.abs(f-a),b=Math.min(m,_),w=Math.min(y,S);o<l||u<i?b>v&&(v=b,m<_?On.set(Qp,-m,0):On.set(Qp,_,0)):b<h&&(h=b,m<_?On.set(Jp,m,0):On.set(Jp,-_,0)),s<c||f<a?w>v&&(v=w,y<S?On.set(Qp,0,-y):On.set(Qp,0,S)):b<h&&(h=b,y<S?On.set(Jp,0,y):On.set(Jp,0,-S))}return n&&On.copy(n,d?Jp:Qp),d},e.prototype.contain=function(t,n){var r=this;return t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}xc.x=Tc.x=n.x,xc.y=Ec.y=n.y,Cc.x=Ec.x=n.x+n.width,Cc.y=Tc.y=n.y+n.height,xc.transform(r),Ec.transform(r),Cc.transform(r),Tc.transform(r),t.x=N0(xc.x,Cc.x,Tc.x,Ec.x),t.y=N0(xc.y,Cc.y,Tc.y,Ec.y);var l=k0(xc.x,Cc.x,Tc.x,Ec.x),u=k0(xc.y,Cc.y,Tc.y,Ec.y);t.width=l-t.x,t.height=u-t.y},e}(),wF={};function ko(e,t){t=t||Wf;var n=wF[t];n||(n=wF[t]=new Ym(500));var r=n.get(e);return r==null&&(r=up.measureText(e,t).width,n.put(e,r)),r}function xF(e,t,n,r){var i=ko(e,t),o=sP(t),a=Mv(0,i,n),s=Jd(0,o,r),l=new wn(a,s,i,o);return l}function aP(e,t,n,r){var i=((e||"")+"").split(`
|
||
`),o=i.length;if(o===1)return xF(i[0],t,n,r);for(var a=new wn(0,0,0,0),s=0;s<i.length;s++){var l=xF(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function Mv(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Jd(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function sP(e){return ko("国",e)}function Xf(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function p8(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Xf(r[0],n.width),u+=Xf(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var WC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function qve(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
|
||
`);o=v8(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)g8(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
|
||
`),e.isTruncated=s}function v8(e,t,n,r){r=r||{};var i=qe({},r);i.font=t,n=an(n,"..."),i.maxIterations=an(r.maxIterations,2);var o=i.minChar=an(r.minChar,0);i.cnCharWidth=ko("国",t);var a=i.ascCharWidth=ko("a",t);i.placeholder=an(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=ko(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function g8(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=ko(t,i);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?Jve(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=ko(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Jve(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Qve(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,o=n==="truncate",a=sP(i),s=an(t.lineHeight,a),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,d;f!=null&&(n==="break"||n==="breakAll")?d=e?m8(e,t.font,f,n==="breakAll",0).lines:[]:d=e?e.split(`
|
||
`):[];var h=d.length*s,v=an(t.height,h);if(h>v&&u){var m=Math.floor(v/s);c=c||d.length>m,d=d.slice(0,m)}if(e&&o&&f!=null)for(var _=v8(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},S=0;S<d.length;S++)g8(y,d[S],_),d[S]=y.textLine,c=c||y.isTruncated;for(var b=v,w=0,S=0;S<d.length;S++)w=Math.max(ko(d[S],i),w);f==null&&(f=w);var T=w;return r&&(b+=r[0]+r[2],T+=r[1]+r[3],f+=r[1]+r[3]),l&&(T=f),{lines:d,height:v,outerWidth:T,outerHeight:b,lineHeight:s,calculatedLineHeight:a,contentWidth:w,contentHeight:h,width:f,isTruncated:c}}var ege=function(){function e(){}return e}(),CF=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),tge=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function nge(e,t){var n=new tge;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=WC.lastIndex=0,l;(l=WC.exec(e))!=null;){var u=l.index;u>s&&jC(n,e.substring(s,u),t,a),jC(n,l[2],t,a,l[1]),s=WC.lastIndex}s<e.length&&jC(n,e.substring(s,e.length),t,a);var c=[],f=0,d=0,h=t.padding,v=o==="truncate",m=t.lineOverflow==="truncate",_={};function y(ge,ye,Me){ge.width=ye,ge.lineHeight=Me,f+=Me,d=Math.max(d,ye)}e:for(var S=0;S<n.lines.length;S++){for(var b=n.lines[S],w=0,T=0,C=0;C<b.tokens.length;C++){var E=b.tokens[C],R=E.styleName&&t.rich[E.styleName]||{},I=E.textPadding=R.padding,M=I?I[1]+I[3]:0,P=E.font=R.font||t.font;E.contentHeight=sP(P);var D=an(R.height,E.contentHeight);if(E.innerHeight=D,I&&(D+=I[0]+I[2]),E.height=D,E.lineHeight=d1(R.lineHeight,t.lineHeight,D),E.align=R&&R.align||t.align,E.verticalAlign=R&&R.verticalAlign||"middle",m&&i!=null&&f+E.lineHeight>i){var k=n.lines.length;C>0?(b.tokens=b.tokens.slice(0,C),y(b,T,w),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S),n.isTruncated=n.isTruncated||n.lines.length<k;break e}var $=R.width,W=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")E.percentWidth=$,c.push(E),E.contentWidth=ko(E.text,P);else{if(W){var N=R.backgroundColor,K=N&&N.image;K&&(K=Yve(K),ZS(K)&&(E.width=Math.max(E.width,K.width*D/K.height)))}var X=v&&r!=null?r-T:null;X!=null&&X<E.width?!W||X<M?(E.text="",E.width=E.contentWidth=0):(qve(_,E.text,X-M,P,t.ellipsis,{minChar:t.truncateMinChar}),E.text=_.text,n.isTruncated=n.isTruncated||_.isTruncated,E.width=E.contentWidth=ko(E.text,P)):E.contentWidth=ko(E.text,P)}E.width+=M,T+=E.width,R&&(w=Math.max(w,E.lineHeight))}y(b,T,w)}n.outerWidth=n.width=an(r,d),n.outerHeight=n.height=an(i,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var S=0;S<c.length;S++){var E=c[S],ae=E.percentWidth;E.width=parseInt(ae,10)/100*n.width}return n}function jC(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,u=!1,c,f;if(r){var d=a.padding,h=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var v=Xf(a.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
|
||
`),u=!0),r.accumWidth=v}else{var m=m8(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(`
|
||
`);for(var _=0;_<c.length;_++){var y=c[_],S=new ege;if(S.styleName=i,S.text=y,S.isLineHolder=!y&&!o,typeof a.width=="number"?S.width=a.width:S.width=f?f[_]:ko(y,l),!_&&!u){var b=(s[s.length-1]||(s[0]=new CF)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=S:(y||!w||o)&&b.push(S)}else s.push(new CF([S]))}}function rge(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ige=cp(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function oge(e){return rge(e)?!!ige[e]:!0}function m8(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
||
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var h=ko(d,t),v=r?!1:!oge(d);if(o.length?c+h>n:i+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=h)):v?(o.push(l),a.push(u),l=d,u=h):(o.push(d),a.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function fp(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function age(e){return[e[0],e[1]]}function TF(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function sge(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function lge(e){return Math.sqrt(uge(e))}function uge(e){return e[0]*e[0]+e[1]*e[1]}function XC(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function cge(e,t){var n=lge(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function WA(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var fge=WA;function dge(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var yh=dge;function ma(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function nh(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function rh(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var EF=rP,hge=5e-5;function Ac(e){return e>hge||e<-5e-5}var Ic=[],Rd=[],YC=gh(),KC=Math.abs,lP=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Ac(this.rotation)||Ac(this.x)||Ac(this.y)||Ac(this.scaleX-1)||Ac(this.scaleY-1)||Ac(this.skewX)||Ac(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(EF(r),this.invTransform=null);return}r=r||gh(),n?this.getLocalTransform(r):EF(r),t&&(n?mh(r,t,r):Kve(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ic);var r=Ic[0]<0?-1:1,i=Ic[1]<0?-1:1,o=((Ic[0]-r)*n+r)/Ic[0]||0,a=((Ic[1]-i)*n+i)/Ic[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||gh(),oP(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||gh(),mh(Rd,t.invTransform,n),n=Rd);var r=this.originX,i=this.originY;(r||i)&&(YC[4]=r,YC[5]=i,mh(Rd,n,YC),Rd[4]-=r,Rd[5]-=i,n=Rd),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&ma(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&ma(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&KC(t[0]-1)>1e-10&&KC(t[3]-1)>1e-10?Math.sqrt(KC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){pge(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var v=r+s,m=i+l;n[4]=-v*o-d*m*a,n[5]=-m*a-h*v*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=d*a,u&&iP(n,n,u),n[4]+=r+c,n[5]+=i+f,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),lm=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function pge(e,t){for(var n=0;n<lm.length;n++){var r=lm[n];e[r]=t[r]}}var pg={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-pg.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?pg.bounceIn(e*2)*.5:pg.bounceOut(e*2-1)*.5+.5}},F0=Math.pow,ku=Math.sqrt,y8=1e-8,_8=1e-4,AF=ku(3),$0=1/3,ys=fp(),sa=fp(),_h=fp();function Pu(e){return e>-1e-8&&e<y8}function b8(e){return e>y8||e<-1e-8}function Kr(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function IF(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function gb(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,f=s*l-9*a*u,d=l*l-3*s*u,h=0;if(Pu(c)&&Pu(f))if(Pu(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(Pu(m)){var _=f/c,v=-s/a+_,y=-_/2;v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var S=ku(m),b=c*s+1.5*a*(-f+S),w=c*s+1.5*a*(-f-S);b<0?b=-F0(-b,$0):b=F0(b,$0),w<0?w=-F0(-w,$0):w=F0(w,$0);var v=(-s-(b+w))/(3*a);v>=0&&v<=1&&(o[h++]=v)}else{var T=(2*c*s-3*a*f)/(2*ku(c*c*c)),C=Math.acos(T)/3,E=ku(c),R=Math.cos(C),v=(-s-2*E*R)/(3*a),y=(-s+E*(R+AF*Math.sin(C)))/(3*a),I=(-s+E*(R-AF*Math.sin(C)))/(3*a);v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y),I>=0&&I<=1&&(o[h++]=I)}}return h}function S8(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Pu(a)){if(b8(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Pu(c))i[0]=-o/(2*a);else if(c>0){var f=ku(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function mb(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function vge(e,t,n,r,i,o,a,s,l,u,c){var f,d=.005,h=1/0,v,m,_,y;ys[0]=l,ys[1]=u;for(var S=0;S<1;S+=.05)sa[0]=Kr(e,n,i,a,S),sa[1]=Kr(t,r,o,s,S),_=yh(ys,sa),_<h&&(f=S,h=_);h=1/0;for(var b=0;b<32&&!(d<_8);b++)v=f-d,m=f+d,sa[0]=Kr(e,n,i,a,v),sa[1]=Kr(t,r,o,s,v),_=yh(sa,ys),v>=0&&_<h?(f=v,h=_):(_h[0]=Kr(e,n,i,a,m),_h[1]=Kr(t,r,o,s,m),y=yh(_h,ys),m<=1&&y<h?(f=m,h=y):d*=.5);return ku(h)}function gge(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,m=Kr(e,n,i,a,v),_=Kr(t,r,o,s,v),y=m-u,S=_-c;f+=Math.sqrt(y*y+S*S),u=m,c=_}return f}function ro(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function RF(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function mge(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(Pu(o)){if(b8(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Pu(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ku(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function w8(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function yb(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function yge(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;ys[0]=a,ys[1]=s;for(var d=0;d<1;d+=.05){sa[0]=ro(e,n,i,d),sa[1]=ro(t,r,o,d);var h=yh(ys,sa);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<_8);v++){var m=u-c,_=u+c;sa[0]=ro(e,n,i,m),sa[1]=ro(t,r,o,m);var h=yh(sa,ys);if(m>=0&&h<f)u=m,f=h;else{_h[0]=ro(e,n,i,_),_h[1]=ro(t,r,o,_);var y=yh(_h,ys);_<=1&&y<f?(u=_,f=y):c*=.5}}return ku(f)}function _ge(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,h=ro(e,n,i,d),v=ro(t,r,o,d),m=h-s,_=v-l;u+=Math.sqrt(m*m+_*_),s=h,l=v}return u}var bge=/cubic-bezier\(([0-9,\.e ]+)\)/;function x8(e){var t=e&&bge.exec(e);if(t){var n=t[1].split(","),r=+Ss(n[0]),i=+Ss(n[1]),o=+Ss(n[2]),a=+Ss(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:gb(0,r,o,1,l,s)&&Kr(0,i,a,1,s[0])}}}var Sge=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ho,this.ondestroy=t.ondestroy||ho,this.onrestart=t.onrestart||ho,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Gt(t)?t:pg[t]||x8(t)},e}(),PF={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Fu(e){return e=Math.round(e),e<0?0:e>255?255:e}function jA(e){return e<0?0:e>1?1:e}function ZC(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Fu(parseFloat(t)/100*255):Fu(parseInt(t,10))}function vg(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jA(parseFloat(t)/100):jA(parseFloat(t))}function qC(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function B0(e,t,n){return e+(t-e)*n}function ea(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function XA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var C8=new Ym(20),V0=null;function Pd(e,t){V0&&XA(V0,t),V0=C8.put(e,V0||t.slice())}function Cl(e,t){if(e){t=t||[];var n=C8.get(e);if(n)return XA(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in PF)return XA(t,PF[r]),Pd(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){ea(t,0,0,0,1);return}return ea(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Pd(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){ea(t,0,0,0,1);return}return ea(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Pd(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ea(t,+u[0],+u[1],+u[2],1):ea(t,0,0,0,1);c=vg(u.pop());case"rgb":if(u.length>=3)return ea(t,ZC(u[0]),ZC(u[1]),ZC(u[2]),u.length===3?c:vg(u[3])),Pd(e,t),t;ea(t,0,0,0,1);return;case"hsla":if(u.length!==4){ea(t,0,0,0,1);return}return u[3]=vg(u[3]),MF(u,t),Pd(e,t),t;case"hsl":if(u.length!==3){ea(t,0,0,0,1);return}return MF(u,t),Pd(e,t),t;default:return}}ea(t,0,0,0,1)}}function MF(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=vg(e[1]),i=vg(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],ea(t,Fu(qC(a,o,n+1/3)*255),Fu(qC(a,o,n)*255),Fu(qC(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function OF(e,t){var n=Cl(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return qS(n,n.length===4?"rgba":"rgb")}}function wge(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Cl(t[i]),s=Cl(t[o]),l=r-i,u=qS([Fu(B0(a[0],s[0],l)),Fu(B0(a[1],s[1],l)),Fu(B0(a[2],s[2],l)),jA(B0(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function qS(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function _b(e,t){var n=Cl(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var DF=new Ym(100);function LF(e){if(_t(e)){var t=DF.get(e);return t||(t=OF(e,-.1),DF.put(e,t)),t}else if(XS(e)){var n=qe({},e);return n.colorStops=Dt(e.colorStops,function(r){return{offset:r.offset,color:OF(r.color,-.1)}}),n}return e}function xge(e){return e.type==="linear"}function Cge(e){return e.type==="radial"}(function(){return Nt.hasGlobalWindow&&Gt(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var YA=Array.prototype.slice;function ol(e,t,n){return(t-e)*n+e}function JC(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=ol(t[o],n[o],r);return e}function Tge(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=ol(t[a][s],n[a][s],r)}return e}function U0(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function NF(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Ege(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Age(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:YA.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function h1(e){if(go(e)){var t=e.length;if(go(e[0])){for(var n=[],r=0;r<t;r++)n.push(YA.call(e[r]));return n}return YA.call(e)}return e}function p1(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Ige(e){return go(e&&e[0])?2:1}var H0=0,v1=1,T8=2,Ov=3,KA=4,ZA=5,kF=6;function FF(e){return e===KA||e===ZA}function z0(e){return e===v1||e===T8}var ev=[0,0,0,0],Rge=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=kF,l=n;if(go(n)){var u=Ige(n);s=u,(u===1&&!Qn(n[0])||u===2&&!Qn(n[0][0]))&&(a=!0)}else if(Qn(n)&&!vb(n))s=H0;else if(_t(n))if(!isNaN(+n))s=H0;else{var c=Cl(n);c&&(l=c,s=Ov)}else if(XS(n)){var f=qe({},l);f.colorStops=Dt(n.colorStops,function(h){return{offset:h.offset,color:Cl(h.color)}}),xge(n)?s=KA:Cge(n)&&(s=ZA),l=f}o===0?this.valType=s:(s!==this.valType||s===kF)&&(a=!0),this.discrete=this.discrete||a;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Gt(r)?r:pg[r]||x8(r)),i.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,_){return m.time-_.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=z0(i),u=FF(i),c=0;c<o;c++){var f=r[c],d=f.value,h=a.value;f.percent=f.time/t,s||(l&&c!==o-1?Age(d,h,i):u&&Ege(d.colorStops,h.colorStops))}if(!s&&i!==ZA&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var v=r[0].value,c=0;c<o;c++)i===H0?r[c].additiveValue=r[c].value-v:i===Ov?r[c].additiveValue=U0([],r[c].value,v,-1):z0(i)&&(r[c].additiveValue=i===v1?U0([],r[c].value,v,-1):NF([],r[c].value,v,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===Ov,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);c++);c=d(c-1,s-2)}v=a[c+1],h=a[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var _=v.percent-h.percent,y=_===0?1:d((n-h.percent)/_,1);v.easingFunc&&(y=v.easingFunc(y));var S=r?this._additiveValue:u?ev:t[l];if((z0(o)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:v.rawValue;else if(z0(o))o===v1?JC(S,h[i],v[i],y):Tge(S,h[i],v[i],y);else if(FF(o)){var b=h[i],w=v[i],T=o===KA;t[l]={type:T?"linear":"radial",x:ol(b.x,w.x,y),y:ol(b.y,w.y,y),colorStops:Dt(b.colorStops,function(E,R){var I=w.colorStops[R];return{offset:ol(E.offset,I.offset,y),color:p1(JC([],E.color,I.color,y))}}),global:w.global},T?(t[l].x2=ol(b.x2,w.x2,y),t[l].y2=ol(b.y2,w.y2,y)):t[l].r=ol(b.r,w.r,y)}else if(u)JC(S,h[i],v[i],y),r||(t[l]=p1(S));else{var C=ol(h[i],v[i],y);r?this._additiveValue=C:t[l]=C}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===H0?t[r]=t[r]+i:n===Ov?(Cl(t[r],ev),U0(ev,ev,i,1),t[r]=p1(ev)):n===v1?U0(t[r],t[r],i,1):n===T8&&NF(t[r],t[r],i,1)},e}(),uP=function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){eP("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,Jn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new Rge(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Ov&&u&&(u=p1(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,h1(u),i),this._trackKeys.push(s)}l.addKeyframe(t,h1(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new Sge({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var m=!1,_=0;_<v.length;_++)if(v[_]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var _=0;_<r.length;_++)r[_].step(n._target,h);var y=n._onframeCbs;if(y)for(var _=0;_<y.length;_++)y[_](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Dt(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=h1(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Jn(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),ks=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),E8=1;Nt.hasGlobalWindow&&(E8=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bb=E8,qA=.4,JA="#333",QA="#ccc",Pge="#eee",Ts=1,g1=2,Dv=4,QC="__zr_normal__",eT=lm.concat(["ignore"]),Mge=cp(lm,function(e,t){return e[t]=!0,e},{ignore:!1}),Md={},Oge=new wn(0,0,0,0),JS=function(){function e(t){this.id=o8(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var c=Oge;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Md,r,c):p8(Md,r,c),o.x=Md.x,o.y=Md.y,a=Md.align,s=Md.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Xf(f[0],c.width),h=Xf(f[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+h+(i?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var v=r.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var m=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,S=void 0,b=void 0;m&&this.canBeInsideText()?(y=r.insideFill,S=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(y),b=!0)):(y=r.outsideFill,S=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==_.fill||S!==_.stroke||b!==_.autoStroke||a!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=y,_.stroke=S,_.autoStroke=b,_.align=a,_.verticalAlign=s,n.setDefaultTextStyle(_)),n.__dirty|=Ts,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?QA:JA},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Cl(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,qS(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},qe(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Rt(t))for(var r=t,i=Jn(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==QC)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,eT)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(QC,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===QC,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(In(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){eP("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[a-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var m=this._textContent,_=this._textGuide;m&&m.useStates(t,n,d),_&&_.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=In(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=In(i,t),a=In(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i<t.length;i++){var o=t[i];qe(n,o),o.textConfig&&(r=r||{},qe(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=qe({},i?this.textConfig:r.textConfig),qe(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<eT.length;c++){var f=eT[c],d=o&&Mge[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new lP,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),qe(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ts;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new uP(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=In(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){tT(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){tT(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=tT(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ts;function n(r,i,o,a){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(c){l[a]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();Ns(JS,ks);Ns(JS,lP);function tT(e,t,n,r,i){n=n||{};var o=[];A8(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(v,m){n.during(m)});for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function nT(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Dge(e){return go(e[0])}function Lge(e,t,n){if(go(t[n]))if(go(e[n])||(e[n]=[]),mo(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),nT(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(Dge(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?nT(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else nT(o,i,a);o.length=i.length}else e[n]=t[n]}function Nge(e,t){return e===t||go(e)&&go(t)&&kge(e,t)}function kge(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function A8(e,t,n,r,i,o,a,s){for(var l=Jn(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Rt(o),v=e.animators,m=[],_=0;_<l.length;_++){var y=l[_],S=r[y];if(S!=null&&n[y]!=null&&(h||o[y]))if(Rt(S)&&!go(S)&&!XS(S)){if(t){s||(n[y]=S,e.updateDuringAnimation(t));continue}A8(e,y,n[y],S,i,o&&o[y],a,s)}else m.push(y);else s||(n[y]=S,e.updateDuringAnimation(t),m.push(y))}var b=m.length;if(!f&&b)for(var w=0;w<v.length;w++){var T=v[w];if(T.targetName===t){var C=T.stopTracks(m);if(C){var E=In(v,T);v.splice(E,1)}}}if(i.force||(m=Yr(m,function(P){return!Nge(r[P],n[P])}),b=m.length),b>0||i.force&&!a.length){var R=void 0,I=void 0,M=void 0;if(s){I={},d&&(R={});for(var w=0;w<b;w++){var y=m[w];I[y]=n[y],d?R[y]=r[y]:n[y]=r[y]}}else if(d){M={};for(var w=0;w<b;w++){var y=m[w];M[y]=h1(n[y]),Lge(n,r,y)}}var T=new uP(n,!1,!1,f?Yr(v,function(D){return D.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),d&&R&&T.whenWithKeys(0,R,m),M&&T.whenWithKeys(0,M,m),T.whenWithKeys(u??500,s?I:r,m).delay(c||0),e.addAnimator(T,t),a.push(T)}}var eI="__zr_style_"+Math.round(Math.random()*10),Pf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},QS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Pf[eI]=!0;var $F=["z","z2","invisible"],Fge=["invisible"],Km=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Jn(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&$ge(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new wn(0,0,0,0)),r?wn.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new wn(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:qe(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=g1,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&g1)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(n){return YS(Pf,n)},t.prototype.useStyle=function(n){n[eI]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[eI]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,$F)},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.style?a?o?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Jn(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Jn(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?Fge:$F,d=0;d<m.length;d++){var h=m[d];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return qe(n,r),n},t.prototype.getAnimationStyleProps=function(){return QS},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Ts|g1}(),t}(JS),rT=new wn(0,0,0,0),iT=new wn(0,0,0,0);function $ge(e,t,n){return rT.copy(e.getBoundingRect()),e.transform&&rT.applyTransform(e.transform),iT.width=t,iT.height=n,!rT.intersect(iT)}var la=Math.min,ua=Math.max,oT=Math.sin,aT=Math.cos,Rc=Math.PI*2,G0=fp(),W0=fp(),j0=fp();function BF(e,t,n,r,i,o){i[0]=la(e,n),i[1]=la(t,r),o[0]=ua(e,n),o[1]=ua(t,r)}var VF=[],UF=[];function Bge(e,t,n,r,i,o,a,s,l,u){var c=S8,f=Kr,d=c(e,n,i,a,VF);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,n,i,a,VF[h]);l[0]=la(v,l[0]),u[0]=ua(v,u[0])}d=c(t,r,o,s,UF);for(var h=0;h<d;h++){var m=f(t,r,o,s,UF[h]);l[1]=la(m,l[1]),u[1]=ua(m,u[1])}l[0]=la(e,l[0]),u[0]=ua(e,u[0]),l[0]=la(a,l[0]),u[0]=ua(a,u[0]),l[1]=la(t,l[1]),u[1]=ua(t,u[1]),l[1]=la(s,l[1]),u[1]=ua(s,u[1])}function Vge(e,t,n,r,i,o,a,s){var l=w8,u=ro,c=ua(la(l(e,n,i),1),0),f=ua(la(l(t,r,o),1),0),d=u(e,n,i,c),h=u(t,r,o,f);a[0]=la(e,i,d),a[1]=la(t,o,h),s[0]=ua(e,i,d),s[1]=ua(t,o,h)}function Uge(e,t,n,r,i,o,a,s,l){var u=nh,c=rh,f=Math.abs(i-o);if(f%Rc<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(G0[0]=aT(i)*n+e,G0[1]=oT(i)*r+t,W0[0]=aT(o)*n+e,W0[1]=oT(o)*r+t,u(s,G0,W0),c(l,G0,W0),i=i%Rc,i<0&&(i=i+Rc),o=o%Rc,o<0&&(o=o+Rc),i>o&&!a?o+=Rc:i<o&&a&&(i+=Rc),a){var d=o;o=i,i=d}for(var h=0;h<o;h+=Math.PI/2)h>i&&(j0[0]=aT(h)*n+e,j0[1]=oT(h)*r+t,u(s,j0,s),c(l,j0,l))}var _n={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pc=[],Mc=[],us=[],Jl=[],cs=[],fs=[],sT=Math.min,lT=Math.max,Oc=Math.cos,Dc=Math.sin,Qs=Math.abs,tI=Math.PI,lu=tI*2,uT=typeof Float32Array<"u",tv=[];function cT(e){var t=Math.round(e/tI*1e8)/1e8;return t%2*tI}function Hge(e,t){var n=cT(e[0]);n<0&&(n+=lu);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=lu?i=n+lu:t&&n-i>=lu?i=n-lu:!t&&n>i?i=n+(lu-cT(n-i)):t&&n<i&&(i=n-(lu-cT(i-n))),e[0]=n,e[1]=i}var Yf=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=Qs(r/bb/t)||0,this._uy=Qs(r/bb/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(_n.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Qs(t-this._xi),i=Qs(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(_n.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(_n.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(_n.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),tv[0]=i,tv[1]=o,Hge(tv,a),i=tv[0],o=tv[1];var s=o-i;return this.addData(_n.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=Oc(o)*r+t,this._yi=Dc(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(_n.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(_n.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&uT&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();uT&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,n,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,uT&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){us[0]=us[1]=cs[0]=cs[1]=Number.MAX_VALUE,Jl[0]=Jl[1]=fs[0]=fs[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case _n.M:n=i=t[a++],r=o=t[a++],cs[0]=i,cs[1]=o,fs[0]=i,fs[1]=o;break;case _n.L:BF(n,r,t[a],t[a+1],cs,fs),n=t[a++],r=t[a++];break;case _n.C:Bge(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],cs,fs),n=t[a++],r=t[a++];break;case _n.Q:Vge(n,r,t[a++],t[a++],t[a],t[a+1],cs,fs),n=t[a++],r=t[a++];break;case _n.A:var u=t[a++],c=t[a++],f=t[a++],d=t[a++],h=t[a++],v=t[a++]+h;a+=1;var m=!t[a++];l&&(i=Oc(h)*f+u,o=Dc(h)*d+c),Uge(u,c,f,d,h,v,m,cs,fs),n=Oc(v)*f+u,r=Dc(v)*d+c;break;case _n.R:i=n=t[a++],o=r=t[a++];var _=t[a++],y=t[a++];BF(i,o,i+_,o+y,cs,fs);break;case _n.Z:n=i,r=o;break}nh(us,us,cs),rh(Jl,Jl,fs)}return a===0&&(us[0]=us[1]=Jl[0]=Jl[1]=0),new wn(us[0],us[1],Jl[0]-us[0],Jl[1]-us[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=t[d++],v=d===1;v&&(o=t[d],a=t[d+1],s=o,l=a);var m=-1;switch(h){case _n.M:o=s=t[d++],a=l=t[d++];break;case _n.L:{var _=t[d++],y=t[d++],S=_-o,b=y-a;(Qs(S)>r||Qs(b)>i||d===n-1)&&(m=Math.sqrt(S*S+b*b),o=_,a=y);break}case _n.C:{var w=t[d++],T=t[d++],_=t[d++],y=t[d++],C=t[d++],E=t[d++];m=gge(o,a,w,T,_,y,C,E,10),o=C,a=E;break}case _n.Q:{var w=t[d++],T=t[d++],_=t[d++],y=t[d++];m=_ge(o,a,w,T,_,y,10),o=_,a=y;break}case _n.A:var R=t[d++],I=t[d++],M=t[d++],P=t[d++],D=t[d++],k=t[d++],$=k+D;d+=1,v&&(s=Oc(D)*M+R,l=Dc(D)*P+I),m=lT(M,P)*sT(lu,Math.abs(k)),o=Oc($)*M+R,a=Dc($)*P+I;break;case _n.R:{s=o=t[d++],l=a=t[d++];var W=t[d++],N=t[d++];m=W*2+N*2;break}case _n.Z:{var S=s-o,b=l-a;m=Math.sqrt(S*S+b*b),o=s,a=l;break}}m>=0&&(u[f++]=m,c+=m)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,d,h=n<1,v,m,_=0,y=0,S,b=0,w,T;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,S=n*m,!S)))e:for(var C=0;C<a;){var E=r[C++],R=C===1;switch(R&&(u=r[C],c=r[C+1],s=u,l=c),E!==_n.L&&b>0&&(t.lineTo(w,T),b=0),E){case _n.M:s=u=r[C++],l=c=r[C++],t.moveTo(u,c);break;case _n.L:{f=r[C++],d=r[C++];var I=Qs(f-u),M=Qs(d-c);if(I>i||M>o){if(h){var P=v[y++];if(_+P>S){var D=(S-_)/P;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}_+=P}t.lineTo(f,d),u=f,c=d,b=0}else{var k=I*I+M*M;k>b&&(w=f,T=d,b=k)}break}case _n.C:{var $=r[C++],W=r[C++],N=r[C++],K=r[C++],X=r[C++],ae=r[C++];if(h){var P=v[y++];if(_+P>S){var D=(S-_)/P;mb(u,$,N,X,D,Pc),mb(c,W,K,ae,D,Mc),t.bezierCurveTo(Pc[1],Mc[1],Pc[2],Mc[2],Pc[3],Mc[3]);break e}_+=P}t.bezierCurveTo($,W,N,K,X,ae),u=X,c=ae;break}case _n.Q:{var $=r[C++],W=r[C++],N=r[C++],K=r[C++];if(h){var P=v[y++];if(_+P>S){var D=(S-_)/P;yb(u,$,N,D,Pc),yb(c,W,K,D,Mc),t.quadraticCurveTo(Pc[1],Mc[1],Pc[2],Mc[2]);break e}_+=P}t.quadraticCurveTo($,W,N,K),u=N,c=K;break}case _n.A:var ge=r[C++],ye=r[C++],Me=r[C++],ke=r[C++],Ue=r[C++],Le=r[C++],je=r[C++],fe=!r[C++],Ae=Me>ke?Me:ke,Se=Qs(Me-ke)>.001,Te=Ue+Le,Ne=!1;if(h){var P=v[y++];_+P>S&&(Te=Ue+Le*(S-_)/P,Ne=!0),_+=P}if(Se&&t.ellipse?t.ellipse(ge,ye,Me,ke,je,Ue,Te,fe):t.arc(ge,ye,Ae,Ue,Te,fe),Ne)break e;R&&(s=Oc(Ue)*Me+ge,l=Dc(Ue)*ke+ye),u=Oc(Te)*Me+ge,c=Dc(Te)*ke+ye;break;case _n.R:s=u=r[C],l=c=r[C+1],f=r[C++],d=r[C++];var Be=r[C++],H=r[C++];if(h){var P=v[y++];if(_+P>S){var z=S-_;t.moveTo(f,d),t.lineTo(f+sT(z,Be),d),z-=Be,z>0&&t.lineTo(f+Be,d+sT(z,H)),z-=H,z>0&&t.lineTo(f+lT(Be-z,0),d+H),z-=Be,z>0&&t.lineTo(f,d+lT(H-z,0));break e}_+=P}t.rect(f,d,Be,H);break;case _n.Z:if(h){var P=v[y++];if(_+P>S){var D=(S-_)/P;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}_+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=_n,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Od(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function zge(e,t,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>i+f&&u>a+f||u<e-f&&u<n-f&&u<i-f&&u<a-f)return!1;var d=vge(e,t,n,r,i,o,a,s,u,c);return d<=f/2}function Gge(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=yge(e,t,n,r,i,o,s,l);return c<=u/2}var HF=Math.PI*2;function X0(e){return e%=HF,e<0&&(e+=HF),e}var nv=Math.PI*2;function Wge(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%nv<1e-4)return!0;if(o){var f=r;r=X0(i),i=X0(f)}else r=X0(r),i=X0(i);r>i&&(i+=nv);var d=Math.atan2(l,s);return d<0&&(d+=nv),d>=r&&d<=i||d+nv>=r&&d+nv<=i}function Lc(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Ql=Yf.CMD,Nc=Math.PI*2,jge=1e-4;function Xge(e,t){return Math.abs(e-t)<jge}var Mi=[-1,-1,-1],oa=[-1,-1];function Yge(){var e=oa[0];oa[0]=oa[1],oa[1]=e}function Kge(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=gb(t,r,o,s,u,Mi);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var _=Mi[m],y=_===0||_===1?.5:1,S=Kr(e,n,i,a,_);S<l||(d<0&&(d=S8(t,r,o,s,oa),oa[1]<oa[0]&&d>1&&Yge(),h=Kr(t,r,o,s,oa[0]),d>1&&(v=Kr(t,r,o,s,oa[1]))),d===2?_<oa[0]?f+=h<t?y:-y:_<oa[1]?f+=v<h?y:-y:f+=s<v?y:-y:_<oa[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function Zge(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=mge(t,r,o,s,Mi);if(l===0)return 0;var u=w8(t,r,o);if(u>=0&&u<=1){for(var c=0,f=ro(t,r,o,u),d=0;d<l;d++){var h=Mi[d]===0||Mi[d]===1?.5:1,v=ro(e,n,i,Mi[d]);v<a||(Mi[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}else{var h=Mi[0]===0||Mi[0]===1?.5:1,v=ro(e,n,i,Mi[0]);return v<a?0:o<t?h:-h}}function qge(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Mi[0]=-l,Mi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Nc-1e-4){r=0,i=Nc;var c=o?1:-1;return a>=Mi[0]+e&&a<=Mi[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Nc,i+=Nc);for(var d=0,h=0;h<2;h++){var v=Mi[h];if(v+e>a){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=Nc+m),(m>=r&&m<=i||m+Nc>=r&&m+Nc<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function I8(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<a;){var m=o[v++],_=v===1;switch(m===Ql.M&&v>1&&(n||(s+=Lc(l,u,c,f,r,i))),_&&(l=o[v],u=o[v+1],c=l,f=u),m){case Ql.M:c=o[v++],f=o[v++],l=c,u=f;break;case Ql.L:if(n){if(Od(l,u,o[v],o[v+1],t,r,i))return!0}else s+=Lc(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Ql.C:if(n){if(zge(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=Kge(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Ql.Q:if(n){if(Gge(l,u,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=Zge(l,u,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Ql.A:var y=o[v++],S=o[v++],b=o[v++],w=o[v++],T=o[v++],C=o[v++];v+=1;var E=!!(1-o[v++]);d=Math.cos(T)*b+y,h=Math.sin(T)*w+S,_?(c=d,f=h):s+=Lc(l,u,d,h,r,i);var R=(r-y)*w/b+y;if(n){if(Wge(y,S,w,T,T+C,E,t,R,i))return!0}else s+=qge(y,S,w,T,T+C,E,R,i);l=Math.cos(T+C)*b+y,u=Math.sin(T+C)*w+S;break;case Ql.R:c=l=o[v++],f=u=o[v++];var I=o[v++],M=o[v++];if(d=c+I,h=f+M,n){if(Od(c,f,d,f,t,r,i)||Od(d,f,d,h,t,r,i)||Od(d,h,c,h,t,r,i)||Od(c,h,c,f,t,r,i))return!0}else s+=Lc(d,f,d,h,r,i),s+=Lc(c,h,c,f,r,i);break;case Ql.Z:if(n){if(Od(l,u,c,f,t,r,i))return!0}else s+=Lc(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!Xge(u,f)&&(s+=Lc(l,u,c,f,r,i)||0),s!==0}function Jge(e,t,n){return I8(e,0,!1,t,n)}function Qge(e,t,n,r){return I8(e,t,!0,n,r)}var R8=En({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Pf),eme={style:En({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},QS.style)},fT=lm.concat(["invisible","culling","z","z2","zlevel","parent"]),Ln=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<fT.length;++s)i[fT[s]]=this[fT[s]];i.__dirty|=Ts}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Jn(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?qe(this.style,s):this.useStyle(s):a==="shape"?qe(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(_t(n)){var r=_b(n,0);return r>.5?JA:r>.2?Pge:QA}else if(n)return QA}return JA},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(_t(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=_b(n,0)<qA;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new Yf(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&Dv)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Qge(s,l/u,n,r)))return!0}if(this.hasFill())return Jge(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Dv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:qe(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Dv)},t.prototype.createStyle=function(n){return YS(R8,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=qe({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=qe({},i.shape),qe(u,r.shape)):(u=qe({},o?this.shape:i.shape),qe(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=qe({},this.shape);for(var c={},f=Jn(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return eme},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(o){st(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return cn(n.style)},a.prototype.getDefaultShape=function(){return cn(n.shape)},a}(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Ts|g1|Dv}(),t}(Km),tme=En({strokeFirst:!0,font:Wf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},R8),Sb=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return YS(tme,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=aP(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Km);Sb.prototype.type="tspan";var nme=En({x:0,y:0},Pf),rme={style:En({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},QS.style)};function ime(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var oc=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return YS(nme,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=ime(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return rme},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new wn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Km);oc.prototype.type="image";function ome(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-u),u!==0&&e.arc(n+i-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var ih=Math.round;function P8(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(ih(r*2)===ih(i*2)&&(e.x1=e.x2=lf(r,s,!0)),ih(o*2)===ih(a*2)&&(e.y1=e.y2=lf(o,s,!0))),e}}function M8(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=lf(r,s,!0),e.y=lf(i,s,!0),e.width=Math.max(lf(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(lf(i+a,s,!1)-e.y,a===0?0:1)),e}}function lf(e,t,n){if(!t)return e;var r=ih(e*2);return(r+ih(t))%2===0?r/2:(r+(n?1:-1))/2}var ame=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),sme={},qr=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ame},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=M8(sme,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?ome(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ln);qr.prototype.type="rect";var zF={fill:"#000"},GF=2,lme={style:En({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},QS.style)},yo=function(e){st(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=zF,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,hme(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new wn(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||zF},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return qe(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=Jn(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},qe(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return lme},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Wf,i=n.padding,o=qF(n),a=Qve(o,n),s=dT(n),l=!!n.backgroundColor,u=a.outerHeight,c=a.outerWidth,f=a.contentWidth,d=a.lines,h=a.lineHeight,v=this._defaultStyle;this.isTruncated=!!a.isTruncated;var m=n.x||0,_=n.y||0,y=n.align||v.align||"left",S=n.verticalAlign||v.verticalAlign||"top",b=m,w=Jd(_,a.contentHeight,S);if(s||i){var T=Mv(m,c,y),C=Jd(_,u,S);s&&this._renderBackground(n,n,T,C,c,u)}w+=h/2,i&&(b=ZF(m,y,i),S==="top"?w+=i[0]:S==="bottom"&&(w-=i[2]));for(var E=0,R=!1,I=KF("fill"in n?n.fill:(R=!0,v.fill)),M=YF("stroke"in n?n.stroke:!l&&(!v.autoStroke||R)?(E=GF,v.stroke):null),P=n.textShadowBlur>0,D=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),k=a.calculatedLineHeight,$=0;$<d.length;$++){var W=this._getOrCreateChild(Sb),N=W.createStyle();W.useStyle(N),N.text=d[$],N.x=b,N.y=w,N.textAlign=y,N.textBaseline="middle",N.opacity=n.opacity,N.strokeFirst=!0,P&&(N.shadowBlur=n.textShadowBlur||0,N.shadowColor=n.textShadowColor||"transparent",N.shadowOffsetX=n.textShadowOffsetX||0,N.shadowOffsetY=n.textShadowOffsetY||0),N.stroke=M,N.fill=I,M&&(N.lineWidth=n.lineWidth||E,N.lineDash=n.lineDash,N.lineDashOffset=n.lineDashOffset||0),N.font=r,jF(N,n),w+=h,D&&W.setBoundingRect(new wn(Mv(N.x,f,N.textAlign),Jd(N.y,k,N.textBaseline),f,k))}},t.prototype._updateRichTexts=function(){var n=this.style,r=qF(n),i=nge(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign;this.isTruncated=!!i.isTruncated;var v=Mv(u,a,d),m=Jd(c,s,h),_=v,y=m;l&&(_+=l[3],y+=l[0]);var S=_+o;dT(n)&&this._renderBackground(n,n,v,m,a,s);for(var b=!!n.backgroundColor,w=0;w<i.lines.length;w++){for(var T=i.lines[w],C=T.tokens,E=C.length,R=T.lineHeight,I=T.width,M=0,P=_,D=S,k=E-1,$=void 0;M<E&&($=C[M],!$.align||$.align==="left");)this._placeToken($,n,R,y,P,"left",b),I-=$.width,P+=$.width,M++;for(;k>=0&&($=C[k],$.align==="right");)this._placeToken($,n,R,y,D,"right",b),I-=$.width,D-=$.width,k--;for(P+=(o-(P-_)-(S-D)-I)/2;M<=k;)$=C[M],this._placeToken($,n,R,y,P+$.width/2,"center",b),P+=$.width,M++;y+=R}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var d=!n.isLineHolder&&dT(u);d&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,v=n.textPadding;v&&(a=ZF(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var m=this._getOrCreateChild(Sb),_=m.createStyle();m.useStyle(_);var y=this._defaultStyle,S=!1,b=0,w=KF("fill"in u?u.fill:"fill"in r?r.fill:(S=!0,y.fill)),T=YF("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||S)?(b=GF,y.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;_.text=n.text,_.x=a,_.y=f,C&&(_.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,_.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=n.font||Wf,_.opacity=d1(u.opacity,r.opacity,1),jF(_,u),T&&(_.lineWidth=d1(u.lineWidth,r.lineWidth,b),_.lineDash=an(u.lineDash,r.lineDash),_.lineDashOffset=r.lineDashOffset||0,_.stroke=T),w&&(_.fill=w);var E=n.contentWidth,R=n.contentHeight;m.setBoundingRect(new wn(Mv(_.x,E,_.textAlign),Jd(_.y,R,_.textBaseline),E,R))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,v=this,m,_;if(d||n.lineHeight||u&&c){m=this._getOrCreateChild(qr),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=h,m.dirtyShape()}if(d){var S=m.style;S.fill=l||null,S.fillOpacity=an(n.fillOpacity,1)}else if(f){_=this._getOrCreateChild(oc),_.onload=function(){v.dirtyStyle()};var b=_.style;b.image=l.image,b.x=i,b.y=o,b.width=a,b.height=s}if(u&&c){var S=m.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=an(n.strokeOpacity,1),S.lineDash=n.borderDash,S.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var w=(m||_).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=d1(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return dme(n)&&(r=[n.fontStyle,n.fontWeight,fme(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Ss(r)||n.textFont||n.font},t}(Km),ume={left:!0,right:1,center:1},cme={top:1,bottom:1,middle:1},WF=["fontStyle","fontWeight","fontSize","fontFamily"];function fme(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?qR+"px":e+"px"}function jF(e,t){for(var n=0;n<WF.length;n++){var r=WF[n],i=t[r];i!=null&&(e[r]=i)}}function dme(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function hme(e){return XF(e),ee(e.rich,XF),e}function XF(e){if(e){e.font=yo.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||ume[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||cme[n]?n:"top";var r=e.padding;r&&(e.padding=a8(e.padding))}}function YF(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function KF(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function ZF(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function qF(e){var t=e.text;return t!=null&&(t+=""),t}function dT(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var pme=1e-4,O8=20;function vme(e){return e.replace(/^\s+|\s+$/g,"")}function JF(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function Ni(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return _t(e)?vme(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Cr(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),O8),e=(+e).toFixed(t),n?e:+e}function pl(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return gme(e)}function gme(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function mme(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function yme(e,t){var n=Math.max(pl(e),pl(t)),r=e+t;return n>O8?r:Cr(r,n)}function D8(e){var t=Math.PI*2;return(e%t+t)%t}function wb(e){return e>-1e-4&&e<pme}var _me=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ol(e){if(e instanceof Date)return e;if(_t(e)){var t=_me.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function bme(e){return Math.pow(10,cP(e))}function cP(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function L8(e,t){var n=cP(e),r=Math.pow(10,n),i=e/r,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function xb(e){var t=parseFloat(e);return t==e&&(t!==0||!_t(e)||e.indexOf("x")<=0)?t:NaN}function Sme(e){return!isNaN(xb(e))}function N8(){return Math.round(Math.random()*9)}function k8(e,t){return t===0?e:k8(t,e%t)}function QF(e,t){return e==null?t:t==null?e:e*t/k8(e,t)}function io(e){throw new Error(e)}function e5(e,t,n){return(t-e)*n+e}var F8="series\0",wme="\0_ec_\0";function Bi(e){return e instanceof Array?e:e==null?[]:[e]}function t5(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var n5=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Zm(e){return Rt(e)&&!ft(e)&&!(e instanceof Date)?e.value:e}function xme(e){return Rt(e)&&!(e instanceof Array)}function Cme(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Zt();ee(t,function(l,u){if(!Rt(l)){t[u]=null;return}});var s=Tme(e,a,n);return(r||i)&&Eme(s,e,a,t),r&&Ame(s,t),r||i?Ime(s,t,i):o&&Rme(s,t),Pme(s),s}function Tme(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||um(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Eme(e,t,n,r){ee(r,function(i,o){if(!(!i||i.id==null)){var a=gg(i.id),s=n.get(a);if(s!=null){var l=e[s];Ml(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function Ame(e,t){ee(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!um(n)&&!um(o)&&$8("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function Ime(e,t,n){ee(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||um(i.existing)||i.existing&&r.id!=null&&!$8("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function Rme(e,t){ee(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function Pme(e){var t=Zt();ee(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),ee(e,function(n){var r=n.newOption;Ml(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),ee(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(Rt(o)){if(a.name=o.name!=null?gg(o.name):i?i.name:F8+r,i)a.id=gg(i.id);else if(o.id!=null)a.id=gg(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function $8(e,t,n){var r=Es(t[e],null),i=Es(n[e],null);return r!=null&&i!=null&&r===i}function gg(e){return Es(e,"")}function Es(e,t){return e==null?t:_t(e)?e:Qn(e)||UA(e)?e+"":t}function fP(e){var t=e.name;return!!(t&&t.indexOf(F8))}function um(e){return e&&e.id!=null&&gg(e.id).indexOf(wme)===0}function Mme(e,t,n){ee(e,function(r){var i=r.newOption;Rt(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=Ome(t,i,r.existing,n))})}function Ome(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function Kf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ft(t.dataIndex)?Dt(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ft(t.name)?Dt(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function Dr(){var e="__ec_inner_"+Dme++;return function(t){return t[e]||(t[e]={})}}var Dme=N8();function hT(e,t,n){var r=dP(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var f=qm(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function dP(e,t){var n;if(_t(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Zt(),o={},a=!1;return ee(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&In(t.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Ya={useDefault:!0,enableAll:!1,enableNone:!1};function qm(e,t,n,r){r=r||Ya;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(Ml(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ml(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function B8(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Lme(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Nme(e){return e==="auto"?Nt.domSupported?"html":"richText":e||"html"}function kme(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(Qn(r)){var a=e5(n||0,r,i);return Cr(a,o?Math.max(pl(n||0),pl(r)):t)}else{if(_t(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],a=e5(h,v,i);s[f]=Cr(a,o?Math.max(pl(h),pl(v)):t)}}return s}}var Dn=Dr(),Fme=function(e,t,n,r){if(r){var i=Dn(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Dn(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},r5=1,i5={},V8=Dr(),hP=Dr(),pP=0,ew=1,tw=2,Ms=["emphasis","blur","select"],o5=["normal","emphasis","blur","select"],$me=10,Bme=9,Mf="highlight",m1="downplay",mg="select",y1="unselect",yg="toggleSelect";function Dd(e){return e!=null&&e!=="none"}function nw(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function U8(e){nw(e,"emphasis",tw)}function H8(e){e.hoverState===tw&&nw(e,"normal",pP)}function vP(e){nw(e,"blur",ew)}function z8(e){e.hoverState===ew&&nw(e,"normal",pP)}function Vme(e){e.selected=!0}function Ume(e){e.selected=!1}function a5(e,t,n){t(e,n)}function Nl(e,t,n){a5(e,t,n),e.isGroup&&e.traverse(function(r){a5(r,t,n)})}function s5(e,t){switch(t){case"emphasis":e.hoverState=tw;break;case"normal":e.hoverState=pP;break;case"blur":e.hoverState=ew;break;case"select":e.selected=!0}}function Hme(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function zme(e,t,n,r){var i=n&&In(n,"select")>=0,o=!1;if(e instanceof Ln){var a=V8(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Dd(s)||Dd(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=qe({},r),u=qe({},u),u.fill=s):!Dd(u.fill)&&Dd(s)?(o=!0,r=qe({},r),u=qe({},u),u.fill=LF(s)):!Dd(u.stroke)&&Dd(l)&&(o||(r=qe({},r),u=qe({},u)),u.stroke=LF(l)),r.style=u}}if(r&&r.z2==null){o||(r=qe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??$me)}return r}function Gme(e,t,n){if(n&&n.z2==null){n=qe({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Bme)}return n}function Wme(e,t,n){var r=In(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:Hme(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=qe({},n),a=qe({opacity:r?i:o.opacity*.1},a),n.style=a),n}function pT(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return zme(this,e,t,n);if(e==="blur")return Wme(this,e,n);if(e==="select")return Gme(this,e,n)}return n}function jme(e){e.stateProxy=pT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=pT),n&&(n.stateProxy=pT)}function l5(e,t){!X8(e,t)&&!e.__highByOuter&&Nl(e,U8)}function u5(e,t){!X8(e,t)&&!e.__highByOuter&&Nl(e,H8)}function Cb(e,t){e.__highByOuter|=1<<(t||0),Nl(e,U8)}function Tb(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Nl(e,H8)}function Xme(e){Nl(e,vP)}function G8(e){Nl(e,z8)}function W8(e){Nl(e,Vme)}function j8(e){Nl(e,Ume)}function X8(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Y8(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=hP(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){z8(u)}),s&&n.push(o)),a.isBlured=!1}),ee(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function nI(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&G8(d)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(_){_.__highByOuter&&c&&t==="self"||vP(_)}),go(t))o(u.getData(),t);else if(Rt(t))for(var v=Jn(t),m=0;m<v.length;m++)o(u.getData(v[m]),t[v[m]]);l.push(u),hP(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function rI(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){hP(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){vP(o)})}}}function Yme(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Kf(i,t);o=(ft(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Dn(a);nI(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&nI(r,c,f,n)}}}function gP(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Dn(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Kme(e,t,n){var r=Dn(e),i=gP(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&rI(r.componentMainType,r.componentIndex,n),ee(o,function(s){return l5(s,t)})):(nI(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&rI(r.componentMainType,r.componentIndex,n),l5(e,t))}function Zme(e,t,n){Y8(n);var r=Dn(e),i=gP(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?ee(i,function(o){return u5(o,t)}):u5(e,t)}function qme(e,t,n){if(sI(t)){var r=t.dataType,i=e.getData(r),o=Kf(i,t);ft(o)||(o=[o]),e[t.type===yg?"toggleSelect":t.type===mg?"select":"unselect"](o,r)}}function c5(e){var t=e.getAllData();ee(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?W8(o):j8(o)})})}function Jme(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();ee(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function iI(e,t,n){K8(e,!0),Nl(e,jme),eye(e,t,n)}function Qme(e){K8(e,!1)}function oI(e,t,n,r){r?Qme(e):iI(e,t,n)}function eye(e,t,n){var r=Dn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var f5=["emphasis","blur","select"],tye={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function d5(e,t,n,r){n=n||"itemStyle";for(var i=0;i<f5.length;i++){var o=f5[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[tye[n]]()}}function K8(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function aI(e){return!!(e&&e.__highDownDispatcher)}function nye(e){var t=i5[e];return t==null&&r5<=32&&(t=i5[e]=r5++),t}function sI(e){var t=e.type;return t===mg||t===y1||t===yg}function h5(e){var t=e.type;return t===Mf||t===m1}function rye(e){var t=V8(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Ld=Yf.CMD,iye=[[],[],[]],p5=Math.sqrt,oye=Math.atan2;function aye(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,u,c=Ld.M,f=Ld.C,d=Ld.L,h=Ld.R,v=Ld.A,m=Ld.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case v:var _=t[4],y=t[5],S=p5(t[0]*t[0]+t[1]*t[1]),b=p5(t[2]*t[2]+t[3]*t[3]),w=oye(-t[1]/b,t[0]/S);n[a]*=S,n[a++]+=_,n[a]*=b,n[a++]+=y,n[a++]*=S,n[a++]*=b,n[a++]+=w,n[a++]+=w,a+=2,s=a;break;case h:u[0]=n[a++],u[1]=n[a++],ma(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],ma(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var T=iye[l];T[0]=n[a++],T[1]=n[a++],ma(T,T,t),n[s++]=T[0],n[s++]=T[1]}}e.increaseVersion()}}var vT=Math.sqrt,Y0=Math.sin,K0=Math.cos,rv=Math.PI;function v5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function lI(e,t){return(e[0]*t[0]+e[1]*t[1])/(v5(e)*v5(t))}function g5(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(lI(e,t))}function m5(e,t,n,r,i,o,a,s,l,u,c){var f=l*(rv/180),d=K0(f)*(e-n)/2+Y0(f)*(t-r)/2,h=-1*Y0(f)*(e-n)/2+K0(f)*(t-r)/2,v=d*d/(a*a)+h*h/(s*s);v>1&&(a*=vT(v),s*=vT(v));var m=(i===o?-1:1)*vT((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,_=m*a*h/s,y=m*-s*d/a,S=(e+n)/2+K0(f)*_-Y0(f)*y,b=(t+r)/2+Y0(f)*_+K0(f)*y,w=g5([1,0],[(d-_)/a,(h-y)/s]),T=[(d-_)/a,(h-y)/s],C=[(-1*d-_)/a,(-1*h-y)/s],E=g5(T,C);if(lI(T,C)<=-1&&(E=rv),lI(T,C)>=1&&(E=0),E<0){var R=Math.round(E/rv*1e6)/1e6;E=rv*2+R%2*rv}c.addData(u,S,b,a,s,w,E,f,o)}var sye=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lye=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uye(e){var t=new Yf;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=Yf.CMD,l=e.match(sye);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(lye)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var _=0;_<v;){var y=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,E=void 0,R=n,I=r,M=void 0,P=void 0;switch(f){case"l":n+=h[_++],r+=h[_++],d=s.L,t.addData(d,n,r);break;case"L":n=h[_++],r=h[_++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[_++],r+=h[_++],d=s.M,t.addData(d,n,r),i=n,o=r,f="l";break;case"M":n=h[_++],r=h[_++],d=s.M,t.addData(d,n,r),i=n,o=r,f="L";break;case"h":n+=h[_++],d=s.L,t.addData(d,n,r);break;case"H":n=h[_++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[_++],d=s.L,t.addData(d,n,r);break;case"V":r=h[_++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[_++],h[_++],h[_++],h[_++],h[_++],h[_++]),n=h[_-2],r=h[_-1];break;case"c":d=s.C,t.addData(d,h[_++]+n,h[_++]+r,h[_++]+n,h[_++]+r,h[_++]+n,h[_++]+r),n+=h[_-2],r+=h[_-1];break;case"S":y=n,S=r,M=t.len(),P=t.data,a===s.C&&(y+=n-P[M-4],S+=r-P[M-3]),d=s.C,R=h[_++],I=h[_++],n=h[_++],r=h[_++],t.addData(d,y,S,R,I,n,r);break;case"s":y=n,S=r,M=t.len(),P=t.data,a===s.C&&(y+=n-P[M-4],S+=r-P[M-3]),d=s.C,R=n+h[_++],I=r+h[_++],n+=h[_++],r+=h[_++],t.addData(d,y,S,R,I,n,r);break;case"Q":R=h[_++],I=h[_++],n=h[_++],r=h[_++],d=s.Q,t.addData(d,R,I,n,r);break;case"q":R=h[_++]+n,I=h[_++]+r,n+=h[_++],r+=h[_++],d=s.Q,t.addData(d,R,I,n,r);break;case"T":y=n,S=r,M=t.len(),P=t.data,a===s.Q&&(y+=n-P[M-4],S+=r-P[M-3]),n=h[_++],r=h[_++],d=s.Q,t.addData(d,y,S,n,r);break;case"t":y=n,S=r,M=t.len(),P=t.data,a===s.Q&&(y+=n-P[M-4],S+=r-P[M-3]),n+=h[_++],r+=h[_++],d=s.Q,t.addData(d,y,S,n,r);break;case"A":b=h[_++],w=h[_++],T=h[_++],C=h[_++],E=h[_++],R=n,I=r,n=h[_++],r=h[_++],d=s.A,m5(R,I,n,r,C,E,b,w,T,d,t);break;case"a":b=h[_++],w=h[_++],T=h[_++],C=h[_++],E=h[_++],R=n,I=r,n+=h[_++],r+=h[_++],d=s.A,m5(R,I,n,r,C,E,b,w,T,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=i,r=o),a=d}return t.toStatic(),t}var Z8=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(Ln);function q8(e){return e.setData!=null}function J8(e,t){var n=uye(e),r=qe({},t);return r.buildPath=function(i){if(q8(i)){i.setData(n.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;n.rebuildPath(o,1)}},r.applyTransform=function(i){aye(n,i),this.dirtyShape()},r}function cye(e,t){return new Z8(J8(e,t))}function fye(e,t){var n=J8(e,t),r=function(i){st(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o}(Z8);return r}function dye(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Ln(t);return a.createPathProxy(),a.buildPath=function(s){if(q8(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var wi=function(e){st(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=In(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=In(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new wn(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(wn.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},t}(JS);wi.prototype.type="group";var hye=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),rw=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new hye},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(Ln);rw.prototype.type="circle";var pye=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),mP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new pye},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},t}(Ln);mP.prototype.type="ellipse";var Q8=Math.PI,gT=Q8*2,kc=Math.sin,Nd=Math.cos,vye=Math.acos,ai=Math.atan2,y5=Math.abs,_g=Math.sqrt,Lv=Math.max,ds=Math.min,Fa=1e-4;function gye(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<Fa))return d=(c*(t-o)-f*(e-i))/d,[e+d*l,t+d*u]}function Z0(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/_g(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=n+c,m=r+f,_=(d+v)/2,y=(h+m)/2,S=v-d,b=m-h,w=S*S+b*b,T=i-o,C=d*m-v*h,E=(b<0?-1:1)*_g(Lv(0,T*T*w-C*C)),R=(C*b-S*E)/w,I=(-C*S-b*E)/w,M=(C*b+S*E)/w,P=(-C*S+b*E)/w,D=R-_,k=I-y,$=M-_,W=P-y;return D*D+k*k>$*$+W*W&&(R=M,I=P),{cx:R,cy:I,x0:-c,y0:-f,x1:R*(i/T-1),y1:I*(i/T-1)}}function mye(e){var t;if(ft(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function yye(e,t){var n,r=Lv(t.r,0),i=Lv(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=y5(u-l),v=h>gT&&h%gT;if(v>Fa&&(h=v),!(r>Fa))e.moveTo(c,f);else if(h>gT-Fa)e.moveTo(c+r*Nd(l),f+r*kc(l)),e.arc(c,f,r,l,u,!d),i>Fa&&(e.moveTo(c+i*Nd(u),f+i*kc(u)),e.arc(c,f,i,u,l,d));else{var m=void 0,_=void 0,y=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,E=void 0,R=void 0,I=void 0,M=void 0,P=void 0,D=void 0,k=void 0,$=void 0,W=r*Nd(l),N=r*kc(l),K=i*Nd(u),X=i*kc(u),ae=h>Fa;if(ae){var ge=t.cornerRadius;ge&&(n=mye(ge),m=n[0],_=n[1],y=n[2],S=n[3]);var ye=y5(r-i)/2;if(b=ds(ye,y),w=ds(ye,S),T=ds(ye,m),C=ds(ye,_),I=E=Lv(b,w),M=R=Lv(T,C),(E>Fa||R>Fa)&&(P=r*Nd(u),D=r*kc(u),k=i*Nd(l),$=i*kc(l),h<Q8)){var Me=gye(W,N,k,$,P,D,K,X);if(Me){var ke=W-Me[0],Ue=N-Me[1],Le=P-Me[0],je=D-Me[1],fe=1/kc(vye((ke*Le+Ue*je)/(_g(ke*ke+Ue*Ue)*_g(Le*Le+je*je)))/2),Ae=_g(Me[0]*Me[0]+Me[1]*Me[1]);I=ds(E,(r-Ae)/(fe+1)),M=ds(R,(i-Ae)/(fe-1))}}}if(!ae)e.moveTo(c+W,f+N);else if(I>Fa){var Se=ds(y,I),Te=ds(S,I),Ne=Z0(k,$,W,N,r,Se,d),Be=Z0(P,D,K,X,r,Te,d);e.moveTo(c+Ne.cx+Ne.x0,f+Ne.cy+Ne.y0),I<E&&Se===Te?e.arc(c+Ne.cx,f+Ne.cy,I,ai(Ne.y0,Ne.x0),ai(Be.y0,Be.x0),!d):(Se>0&&e.arc(c+Ne.cx,f+Ne.cy,Se,ai(Ne.y0,Ne.x0),ai(Ne.y1,Ne.x1),!d),e.arc(c,f,r,ai(Ne.cy+Ne.y1,Ne.cx+Ne.x1),ai(Be.cy+Be.y1,Be.cx+Be.x1),!d),Te>0&&e.arc(c+Be.cx,f+Be.cy,Te,ai(Be.y1,Be.x1),ai(Be.y0,Be.x0),!d))}else e.moveTo(c+W,f+N),e.arc(c,f,r,l,u,!d);if(!(i>Fa)||!ae)e.lineTo(c+K,f+X);else if(M>Fa){var Se=ds(m,M),Te=ds(_,M),Ne=Z0(K,X,P,D,i,-Te,d),Be=Z0(W,N,k,$,i,-Se,d);e.lineTo(c+Ne.cx+Ne.x0,f+Ne.cy+Ne.y0),M<R&&Se===Te?e.arc(c+Ne.cx,f+Ne.cy,M,ai(Ne.y0,Ne.x0),ai(Be.y0,Be.x0),!d):(Te>0&&e.arc(c+Ne.cx,f+Ne.cy,Te,ai(Ne.y0,Ne.x0),ai(Ne.y1,Ne.x1),!d),e.arc(c,f,i,ai(Ne.cy+Ne.y1,Ne.cx+Ne.x1),ai(Be.cy+Be.y1,Be.cx+Be.x1),d),Se>0&&e.arc(c+Be.cx,f+Be.cy,Se,ai(Be.y1,Be.x1),ai(Be.y0,Be.x0),!d))}else e.lineTo(c+K,f+X),e.arc(c,f,i,u,l,d)}e.closePath()}}}var _ye=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),iw=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new _ye},t.prototype.buildPath=function(n,r){yye(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ln);iw.prototype.type="sector";var bye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),yP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new bye},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t}(Ln);yP.prototype.type="ring";function Sye(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)nh(c,c,e[d]),rh(f,f,e[d]);nh(c,c,r[0]),rh(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(n)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(age(e[d]));continue}else l=e[d-1],u=e[d+1];sge(o,u,l),XC(o,o,t);var m=WA(v,l),_=WA(v,u),y=m+_;y!==0&&(m/=y,_/=y),XC(a,o,-m),XC(s,o,_);var S=TF([],v,a),b=TF([],v,s);r&&(rh(S,S,c),nh(S,S,f),rh(b,b,c),nh(b,b,f)),i.push(S),i.push(b)}return n&&i.push(i.shift()),i}function ez(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=Sye(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var wye=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),_P=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new wye},t.prototype.buildPath=function(n,r){ez(n,r,!0)},t}(Ln);_P.prototype.type="polygon";var xye=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),bP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xye},t.prototype.buildPath=function(n,r){ez(n,r,!1)},t}(Ln);bP.prototype.type="polyline";var Cye={},Tye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),ju=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tye},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=P8(Cye,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(Ln);ju.prototype.type="line";var Zi=[],Eye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function _5(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?IF:Kr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?IF:Kr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?RF:ro)(e.x1,e.cpx1,e.x2,t),(n?RF:ro)(e.y1,e.cpy1,e.y2,t)]}var SP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Eye},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(i,o),c==null||f==null?(d<1&&(yb(i,l,a,d,Zi),l=Zi[1],a=Zi[2],yb(o,u,s,d,Zi),u=Zi[1],s=Zi[2]),n.quadraticCurveTo(l,u,a,s)):(d<1&&(mb(i,l,c,a,d,Zi),l=Zi[1],c=Zi[2],a=Zi[3],mb(o,u,f,s,d,Zi),u=Zi[1],f=Zi[2],s=Zi[3]),n.bezierCurveTo(l,u,c,f,a,s)))},t.prototype.pointAt=function(n){return _5(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=_5(this.shape,n,!0);return cge(r,r)},t}(Ln);SP.prototype.type="bezier-curve";var Aye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ow=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Aye},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*a+i,f*a+o),n.arc(i,o,a,s,l,!u)},t}(Ln);ow.prototype.type="arc";var Iye=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ln.prototype.getBoundingRect.call(this)},t}(Ln),tz=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}(),wP=function(e){st(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(tz),Rye=function(e){st(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t}(tz),Fc=[0,0],$c=[0,0],q0=new On,J0=new On,Eb=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new On;for(var r=0;r<2;r++)this._axes[r]=new On;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);On.sub(i[0],r[1],r[0]),On.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,i=!n;return q0.set(1/0,1/0),J0.set(0,0),!this._intersectCheckOneSide(this,t,q0,J0,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,q0,J0,i,-1)&&(r=!1,i)||i||On.copy(n,r?q0:J0),r},e.prototype._intersectCheckOneSide=function(t,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Fc),this._getProjMinMaxOnAxis(l,n._corners,$c),Fc[1]<$c[0]||Fc[0]>$c[1]){if(s=!1,o)return s;var c=Math.abs($c[0]-Fc[1]),f=Math.abs(Fc[0]-$c[1]);Math.min(c,f)>i.len()&&(c<f?On.scale(i,u,-c*a):On.scale(i,u,f*a))}else if(r){var c=Math.abs($c[0]-Fc[1]),f=Math.abs(Fc[0]-$c[1]);Math.min(c,f)<r.len()&&(c<f?On.scale(r,u,c*a):On.scale(r,u,-f*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},e}(),Pye=[],Mye=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new wn(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(Pye)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t}(Km),Oye=Dr();function Dye(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=an(r.duration,200),c=an(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),Gt(f)&&(f=f(n,i)),Gt(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function xP(e,t,n,r,i,o,a){var s=!1,l;Gt(i)?(a=o,o=i,i=null):Rt(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Dye(e,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Xu(e,t,n,r,i,o){xP("update",e,t,n,r,i,o)}function Jm(e,t,n,r,i,o){xP("enter",e,t,n,r,i,o)}function bg(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function Ab(e,t,n,r,i,o){bg(e)||xP("leave",e,t,n,r,i,o)}function b5(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Ab(e,{style:{opacity:0}},t,n,r)}function Lye(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||b5(i,t,n,r)}):b5(e,t,n,r)}function Nye(e){Oye(e).oldStyle=e.style}var Ib=Math.max,Rb=Math.min,uI={};function kye(e){return Ln.extend(e)}var Fye=fye;function $ye(e,t){return Fye(e,t)}function ts(e,t){uI[e]=t}function Bye(e){if(uI.hasOwnProperty(e))return uI[e]}function CP(e,t,n,r){var i=cye(e,t);return n&&(r==="center"&&(n=rz(n,i.getBoundingRect())),iz(i,n)),i}function nz(e,t,n){var r=new oc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(rz(t,o))}}});return r}function rz(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var Vye=dye;function iz(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function cm(e,t){return P8(e,e,{lineWidth:t}),e}function Uye(e){return M8(e.shape,e.shape,e.style),e}var Hye=lf;function zye(e,t){for(var n=rP([]);e&&e!==t;)mh(n,e.getLocalTransform(),n),e=e.parent;return n}function TP(e,t,n){return t&&!go(t)&&(t=lP.getLocalTransform(t)),n&&(t=oP([],t)),ma([],e,t)}function Gye(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=TP(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function S5(e){return!e.isGroup}function Wye(e){return e.shape!=null}function oz(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){S5(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return Wye(a)&&(s.shape=qe({},a.shape)),s}var o=r(e);t.traverse(function(a){if(S5(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Xu(a,l,n,Dn(a).dataIndex)}}})}function jye(e,t){return Dt(e,function(n){var r=n[0];r=Ib(r,t.x),r=Rb(r,t.x+t.width);var i=n[1];return i=Ib(i,t.y),i=Rb(i,t.y+t.height),[r,i]})}function Xye(e,t){var n=Ib(e.x,t.x),r=Rb(e.x+e.width,t.x+t.width),i=Ib(e.y,t.y),o=Rb(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function EP(e,t,n){var r=qe({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),En(i,n),new oc(r)):CP(e.replace("path://",""),r,n,"center")}function Yye(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(az(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function az(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=mT(c,f,l,u);if(Kye(d))return!1;var h=e-i,v=t-o,m=mT(h,v,l,u)/d;if(m<0||m>1)return!1;var _=mT(h,v,c,f)/d;return!(_<0||_>1)}function mT(e,t,n,r){return e*r-n*t}function Kye(e){return e<=1e-6&&e>=-1e-6}function aw(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=_t(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&ee(Jn(l),function(c){jf(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Dn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:En({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function w5(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function AP(e,t){if(e)if(ft(e))for(var n=0;n<e.length;n++)w5(e[n],t);else w5(e,t)}ts("circle",rw);ts("ellipse",mP);ts("sector",iw);ts("ring",yP);ts("polygon",_P);ts("polyline",bP);ts("rect",qr);ts("line",ju);ts("bezierCurve",SP);ts("arc",ow);const Zye=Object.freeze(Object.defineProperty({__proto__:null,Arc:ow,BezierCurve:SP,BoundingRect:wn,Circle:rw,CompoundPath:Iye,Ellipse:mP,Group:wi,Image:oc,IncrementalDisplayable:Mye,Line:ju,LinearGradient:wP,OrientedBoundingRect:Eb,Path:Ln,Point:On,Polygon:_P,Polyline:bP,RadialGradient:Rye,Rect:qr,Ring:yP,Sector:iw,Text:yo,applyTransform:TP,clipPointsByRect:jye,clipRectByRect:Xye,createIcon:EP,extendPath:$ye,extendShape:kye,getShapeClass:Bye,getTransform:zye,groupTransition:oz,initProps:Jm,isElementRemoved:bg,lineLineIntersect:az,linePolygonIntersect:Yye,makeImage:nz,makePath:CP,mergePath:Vye,registerShape:ts,removeElement:Ab,removeElementWithFadeOut:Lye,resizePath:iz,setTooltipConfig:aw,subPixelOptimize:Hye,subPixelOptimizeLine:cm,subPixelOptimizeRect:Uye,transformDirection:Gye,traverseElements:AP,updateProps:Xu},Symbol.toStringTag,{value:"Module"}));var sw={};function qye(e,t){for(var n=0;n<Ms.length;n++){var r=Ms[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function x5(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=Gt(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},u=0;u<Ms.length;u++){var c=Ms[u],f=t[c];l[c]=an(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function IP(e,t,n,r){n=n||sw;for(var i=e instanceof yo,o=!1,a=0;a<o5.length;a++){var s=t[o5[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new yo,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=x5(n,t),c=t.normal,f=!!c.getShallow("show"),d=Zh(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||e.setTextConfig(C5(c,n,!1));for(var a=0;a<Ms.length;a++){var h=Ms[a],s=t[h];if(s){var v=l.ensureState(h),m=!!an(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Zh(s,r&&r[h],n,!0,!i),v.style.text=u[h],!i){var _=e.ensureState(h);_.textConfig=C5(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(sz(l).setLabelText=function(y){var S=x5(n,t,y);qye(l,S)})}else l&&(l.ignore=!0);e.dirty()}function RP(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Ms.length;r++){var i=Ms[r];n[i]=e.getModel([i,t])}return n}function Zh(e,t,n,r,i){var o={};return Jye(o,e,n,r,i),t&&qe(o,t),o}function C5(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=an(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function Jye(e,t,n,r,i){n=n||sw;var o=t.ecModel,a=o&&o.option.textStyle,s=Qye(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);I5(l[u]={},c,a,n,r,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),I5(e,t,a,n,r,i,!0,!1)}function Qye(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||sw).rich;if(n){t=t||{};for(var r=Jn(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var T5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],E5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],A5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function I5(e,t,n,r,i,o,a,s){n=!i&&n||sw;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=an(t.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),o||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=an(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=an(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=an(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(e.opacity=f),!i&&!o&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<T5.length;m++){var _=T5[m],y=an(t.getShallow(_),n[_]);y!=null&&(e[_]=y)}for(var m=0;m<E5.length;m++){var _=E5[m],y=t.getShallow(_);y!=null&&(e[_]=y)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!a||!r.disableBox){for(var m=0;m<A5.length;m++){var _=A5[m],y=t.getShallow(_);y!=null&&(e[_]=y)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function e0e(e,t){var n=t&&t.getModel("textStyle");return Ss([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var sz=Dr(),t0e=["textStyle","color"],yT=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],_T=new yo,n0e=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(t0e):null)},e.prototype.getFont=function(){return e0e({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<yT.length;r++)n[yT[r]]=this.getShallow(yT[r]);return _T.useStyle(n),_T.update(),_T.getBoundingRect()},e}(),lz=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],r0e=sm(lz),i0e=function(){function e(){}return e.prototype.getLineStyle=function(t){return r0e(this,t)},e}(),uz=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o0e=sm(uz),a0e=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return o0e(this,t,n)},e}(),ur=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){Sn(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(cn(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Nt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();nP(ur);Uve(ur);Ns(ur,i0e);Ns(ur,a0e);Ns(ur,jve);Ns(ur,n0e);function iv(e){return e==null?0:e.length||1}function R5(e){return e}var s0e=function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||R5,this._newKeyGetter=i||R5,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],u=iv(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=i[l],f=iv(u),d=iv(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=iv(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=iv(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e}(),cz=Zt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ca="original",_o="arrayRows",Fs="objectRows",kl="keyedColumns",$u="typedArray",fz="unknown",Tl="column",dp="row",Ro={Must:1,Might:2,Not:3},dz=Dr();function l0e(e){dz(e).datasetMap=Zt()}function u0e(e,t,n){var r={},i=hz(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=dz(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),ee(e,function(m,_){var y=Rt(m)?m:e[_]={name:m};y.type==="ordinal"&&c==null&&(c=_,f=v(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});ee(e,function(m,_){var y=m.name,S=v(m);if(c==null){var b=d.valueWayDim;h(r[y],b,S),h(a,b,S),d.valueWayDim+=S}else if(c===_)h(r[y],0,S),h(o,0,S);else{var b=d.categoryWayDim;h(r[y],b,S),h(a,b,S),d.categoryWayDim+=S}});function h(m,_,y){for(var S=0;S<y;S++)m.push(_+S)}function v(m){var _=m.dimsDef;return _?_.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function hz(e){var t=e.get("data",!0);if(!t)return qm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ya).models[0]}function c0e(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:qm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ya).models}function pz(e,t){return f0e(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function f0e(e,t,n,r,i,o){var a,s=5;if(mo(e))return Ro.Not;var l,u;if(r){var c=r[o];Rt(c)?(l=c.name,u=c.type):_t(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ro.Must:Ro.Not;if(t===_o){var f=e;if(n===dp){for(var d=f[o],h=0;h<(d||[]).length&&h<s;h++)if((a=w(d[i+h]))!=null)return a}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(a=w(v[o]))!=null)return a}}else if(t===Fs){var m=e;if(!l)return Ro.Not;for(var h=0;h<m.length&&h<s;h++){var _=m[h];if(_&&(a=w(_[l]))!=null)return a}}else if(t===kl){var y=e;if(!l)return Ro.Not;var d=y[l];if(!d||mo(d))return Ro.Not;for(var h=0;h<d.length&&h<s;h++)if((a=w(d[h]))!=null)return a}else if(t===Ca)for(var S=e,h=0;h<S.length&&h<s;h++){var _=S[h],b=Zm(_);if(!ft(b))return Ro.Not;if((a=w(b[o]))!=null)return a}function w(T){var C=_t(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return C?Ro.Might:Ro.Not;if(C&&T!=="-")return Ro.Must}return Ro.Not}var lw=function(){function e(t){this.data=t.data||(t.sourceFormat===kl?{}:[]),this.sourceFormat=t.sourceFormat||fz,this.seriesLayoutBy=t.seriesLayoutBy||Tl,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&pz(this,r)===Ro.Must&&(i.type="ordinal")}}return e}();function PP(e){return e instanceof lw}function cI(e,t,n){n=n||gz(e);var r=t.seriesLayoutBy,i=h0e(e,n,r,t.sourceHeader,t.dimensions),o=new lw({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:cn(t)});return o}function vz(e){return new lw({data:e,sourceFormat:mo(e)?$u:Ca})}function d0e(e){return new lw({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:cn(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function gz(e){var t=fz;if(mo(e))t=$u;else if(ft(e)){e.length===0&&(t=_o);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(ft(i)||mo(i)){t=_o;break}else if(Rt(i)){t=Fs;break}}}}else if(Rt(e)){for(var o in e)if(jf(e,o)&&go(e[o])){t=kl;break}}return t}function h0e(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:P5(i),startIndex:a,dimensionsDetectedCount:o};if(t===_o){var s=e;r==="auto"||r==null?M5(function(u){u!=null&&u!=="-"&&(_t(u)?a==null&&(a=1):a=0)},n,s,10):a=Qn(r)?r:r?1:0,!i&&a===1&&(i=[],M5(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===dp?s.length:s[0]?s[0].length:null}else if(t===Fs)i||(i=p0e(e));else if(t===kl)i||(i=[],ee(e,function(u,c){i.push(c)}));else if(t===Ca){var l=Zm(e[0]);o=ft(l)&&l.length||1}return{startIndex:a,dimensionsDefine:P5(i),dimensionsDetectedCount:o}}function p0e(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Jn(n)}function P5(e){if(e){var t=Zt();return Dt(e,function(n,r){n=Rt(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function M5(e,t,n,r){if(t===dp)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function mz(e){var t=e.sourceFormat;return t===Fs||t===kl}var Bc,Vc,Uc,O5,D5,yz=function(){function e(t,n){var r=PP(t)?t:vz(t);this._source=r;var i=this._data=r.data;r.sourceFormat===$u&&(this._offset=0,this._dimSize=n,this._data=i),D5(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;D5=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=O5[MP(u,c)];if(qe(a,h),u===$u)a.getItem=n,a.count=i,a.fillStorage=r;else{var v=_z(u,c);a.getItem=Zn(v,null,s,f,d);var m=bz(u,c);a.count=Zn(m,null,s,f,d)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],_=s-a,y=l[d],S=0;S<_;S++){var b=c[S*f+d];y[a+S]=b,b<v&&(v=b),b>m&&(m=b)}h[0]=v,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};O5=(t={},t[_o+"_"+Tl]={pure:!0,appendData:o},t[_o+"_"+dp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Fs]={pure:!0,appendData:o},t[kl]={pure:!0,appendData:function(a){var s=this._data;ee(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ca]={appendData:o},t[$u]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),e}(),L5=function(e,t,n,r){return e[r]},v0e=(Bc={},Bc[_o+"_"+Tl]=function(e,t,n,r){return e[r+t]},Bc[_o+"_"+dp]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Bc[Fs]=L5,Bc[kl]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=e[s];o[a]=l?l[r]:null}return o},Bc[Ca]=L5,Bc);function _z(e,t){var n=v0e[MP(e,t)];return n}var N5=function(e,t,n){return e.length},g0e=(Vc={},Vc[_o+"_"+Tl]=function(e,t,n){return Math.max(0,e.length-t)},Vc[_o+"_"+dp]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Vc[Fs]=N5,Vc[kl]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},Vc[Ca]=N5,Vc);function bz(e,t){var n=g0e[MP(e,t)];return n}var bT=function(e,t,n){return e[t]},m0e=(Uc={},Uc[_o]=bT,Uc[Fs]=function(e,t,n){return e[n]},Uc[kl]=bT,Uc[Ca]=function(e,t,n){var r=Zm(e);return r instanceof Array?r[t]:r},Uc[$u]=bT,Uc);function Sz(e){var t=m0e[e];return t}function MP(e,t){return e===_o?e+"_"+t:e}function qh(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return Sz(o)(r,a,s)}else{var l=r;return o===Ca&&(l=Zm(r)),l}}}}var y0e=function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function _0e(e,t){var n={},r=n.encode={},i=Zt(),o=[],a=[],s={};ee(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var m=h.coordDimIndex;ST(r,v)[m]=d,h.isExtraCoord||(i.set(v,1),S0e(h.type)&&(o[0]=d),ST(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(d)}cz.each(function(_,y){var S=ST(r,y),b=h.otherDims[y];b!=null&&b!==!1&&(S[b]=h.name)})});var l=[],u={};i.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Dt(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new y0e(s,t),n}function ST(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function b0e(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function S0e(e){return!(e==="ordinal"||e==="time")}var _1=function(){function e(t){this.otherDims={},t!=null&&qe(this,t)}return e}();function b1(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!Qn(e)&&e!=null&&e!=="-"&&(e=+Ol(e)),e==null||e===""?NaN:Number(e))}Zt({number:function(e){return parseFloat(e)},time:function(e){return+Ol(e)},trim:function(e){return _t(e)?Ss(e):e}});var w0e=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=Qn(t)?t:xb(t),i=Qn(n)?n:xb(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=_t(t),l=_t(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e}(),uw="undefined",x0e=typeof Uint32Array===uw?Array:Uint32Array,C0e=typeof Uint16Array===uw?Array:Uint16Array,wz=typeof Int32Array===uw?Array:Int32Array,k5=typeof Float64Array===uw?Array:Float64Array,xz={float:k5,int:wz,ordinal:Array,number:Array,time:k5},wT;function kd(e){return e>65535?x0e:C0e}function Fd(){return[1/0,-1/0]}function T0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function F5(e,t,n,r,i){var o=xz[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var fI=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Zt()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=wT[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],mz(i),this._dimensions=Dt(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new xz[n||"float"](this._rawCount),this._rawExtent[o]=Fd(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=Fd());for(var l=o[t],u=a;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=i[u];F5(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<o;v++){var c=i[v],m=wT.arrayRows.call(this,t[h]||f,c.property,h,v);r[v][d]=m;var _=a[v];m<_[0]&&(_[0]=m),m>_[1]&&(_[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Dt(a,function(S){return S.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=Fd()),F5(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var d=[],h=t;h<n;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var m=o[v],_=this._dimValueGetter(d,u[v],h,v);m[h]=_;var y=l[v];_<y[0]&&(y[0]=_),_>y[1]&&(y[1]=_)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=n-o[d],v=Math.abs(h);v<=r&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(a[u++]=c))}return a.length=u,a},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=kd(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=kd(r._rawCount),a=new o(i),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<i;d++){var h=void 0,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var m=f[c][v];h=n(m,d)}else{for(var _=0;_<l;_++)s[_]=f[t[_]][v];s[_]=d,h=n.apply(null,s)}h&&(a[u++]=v)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=Jn(t),o=i.length;if(!o)return this;var a=n.count(),s=kd(n._rawCount),l=new s(a),u=0,c=i[0],f=t[c][0],d=t[c][1],h=n._chunks,v=!1;if(!n._indices){var m=0;if(o===1){for(var _=h[i[0]],y=0;y<r;y++){var S=_[y];(S>=f&&S<=d||isNaN(S))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var _=h[i[0]],b=h[i[1]],w=t[i[1]][0],T=t[i[1]][1],y=0;y<r;y++){var S=_[y],C=b[y];(S>=f&&S<=d||isNaN(S))&&(C>=w&&C<=T||isNaN(C))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var y=0;y<a;y++){var E=n.getRawIndex(y),S=h[i[0]][E];(S>=f&&S<=d||isNaN(S))&&(l[u++]=E)}else for(var y=0;y<a;y++){for(var R=!0,E=n.getRawIndex(y),I=0;I<o;I++){var M=i[I],S=h[M][E];(S<t[M][0]||S>t[M][1])&&(R=!1)}R&&(l[u++]=n.getRawIndex(y))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Fd();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<a;h++)l[h]=i[n[h]][d];l[a]=f;var v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var m=n[c],_=v[c],y=u[m],S=i[m];S&&(S[d]=_),_<y[0]&&(y[0]=_),_>y[1]&&(y[1]=_)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(kd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=u;for(var v=1;v<a-1;v+=l){for(var m=Math.min(v+l,a-1),_=Math.min(v+l*2,a),y=(_+m)/2,S=0,b=m;b<_;b++){var w=this.getRawIndex(b),T=o[w];isNaN(T)||(S+=T)}S/=_-m;var C=v,E=Math.min(v+l,a),R=v-1,I=o[u];c=-1,d=C;for(var M=-1,P=0,b=C;b<E;b++){var w=this.getRawIndex(b),T=o[w];if(isNaN(T)){P++,M<0&&(M=w);continue}f=Math.abs((R-y)*(T-I)-(R-b)*(S-I)),f>c&&(c=f,d=w)}P>0&&P<E-C&&(h[s++]=Math.min(M,d),d=Math.max(M,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(a-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(kd(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,d=a[this.getRawIndex(f)],h=c,v=a[this.getRawIndex(h)],m=o;c+o>s&&(m=s-c);for(var _=0;_<m;_++){var y=this.getRawIndex(c+_),S=a[y];S<d&&(d=S,f=c+_),S>v&&(v=S,h=c+_)}var b=this.getRawIndex(f),w=this.getRawIndex(h);f<h?(l[u++]=b,l[u++]=w):(l[u++]=w,l[u++]=b)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[t],c=this.count(),f=o._rawExtent[t]=Fd(),d=new(kd(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var _=this.getRawIndex(v+m);s[m]=u[_]}var y=r(s),S=this.getRawIndex(Math.min(v+i(s,y)||0,c-1));u[S]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=S}return o._count=h,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=Fd();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&cp(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?T0e(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=cn(this._extent),t._rawExtent=cn(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,o){return b1(n[o],this._dimensions[o])}wT={arrayRows:t,objectRows:function(n,r,i,o){return b1(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return b1(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),E0e=Dr(),A0e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Cz=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Az(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return an(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=mz(this.source),r=!Iz(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=A0e[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:o,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Tz(e){return e instanceof Cz}function Ez(e){for(var t=Zt(),n=0;n<(e||[]).length;n++){var r=e[n],i=Rt(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Az(e){var t=E0e(e);return t.dimNameMap||(t.dimNameMap=Ez(e.dimensionsDefine))}function Iz(e){return e>30}var ov=Rt,eu=Dt,I0e=typeof Int32Array>"u"?Array:Int32Array,R0e="e\0\0",$5=-1,P0e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],M0e=["_approximateExtent"],B5,Q0,av,sv,xT,lv,CT,O0e=function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;Tz(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=_t(f)?new _1({name:f}):f instanceof _1?f:new _1(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};a.push(h),o[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Zt();ee(a,function(_){m.set(o[_].storeDimIndex,_)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Qn(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof fI&&(o=t),!o){var a=this.dimensions,s=PP(t)||go(t)?new yz(t,a.length):t;o=new fI;var l=eu(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=_0e(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&CT(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==$u&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Ca;if(l&&!i.pure)for(var u=[],c=t;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&xme(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=Es(d,null));var h=f.id;a[c]==null&&h!=null&&(a[c]=Es(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)CT(this,c);B5(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){ov(t)?qe(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=av(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return Q0(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return ft(t)?i.getValues(eu(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?$5:i},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){Gt(t)&&(r=n,n=t,t=[]);var i=r||this,o=eu(sv(t),this._getStoreDimIndex,this);this._store.each(o,i?Zn(n,i):n)},e.prototype.filterSelf=function(t,n,r){Gt(t)&&(r=n,n=t,t=[]);var i=r||this,o=eu(sv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Zn(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=Jn(t);return ee(i,function(o){var a=n._getStoreDimIndex(o);r[a]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){Gt(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var o=r||i||this,a=eu(sv(t),this._getStoreDimIndex,this),s=lv(this);return s._store=this._store.map(a,o?Zn(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=eu(sv(t),this._getStoreDimIndex,this);this._store.modify(a,o?Zn(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=lv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=lv(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=lv(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new ur(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new s0e(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Q0(t,r)},function(r){return Q0(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},ov(t)?qe(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),ft(o)?o=o.slice():ov(o)&&(o=qe({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ov(n)?qe(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){ov(t)?qe(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?qe(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Fme(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){ee(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:eu(this.dimensions,this._getDimInfo,this),this.hostModel)),xT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Gt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(tP(arguments)))})},e.internalField=function(){B5=function(t){var n=t._invertedIndicesMap;ee(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new I0e(a.categories.length);for(var l=0;l<r.length;l++)r[l]=$5;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},av=function(t,n,r){return Es(t._getCategory(n,r),null)},Q0=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=av(t,t._idDimIdx,n)),r==null&&(r=R0e+n),r},sv=function(t){return ft(t)||(t=t!=null?[t]:[]),t},lv=function(t){var n=new e(t._schema?t._schema:eu(t.dimensions,t._getDimInfo,t),t.hostModel);return xT(n,t),n},xT=function(t,n){ee(P0e.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,ee(M0e,function(r){t[r]=cn(n[r])}),t._calculationInfo=qe({},n._calculationInfo)},CT=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=av(t,o,n)),l==null&&a!=null&&(i[n]=l=av(t,a,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function D0e(e,t){PP(e)||(e=vz(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Zt(),o=[],a=N0e(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Iz(a),l=r===e.dimensionsDefine,u=l?Az(e):Ez(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Zt(c),d=new wz(a),h=0;h<d.length;h++)d[h]=-1;function v(I){var M=d[I];if(M<0){var P=r[I],D=Rt(P)?P:{name:P},k=new _1,$=D.name;$!=null&&u.get($)!=null&&(k.name=k.displayName=$),D.type!=null&&(k.type=D.type),D.displayName!=null&&(k.displayName=D.displayName);var W=o.length;return d[I]=W,k.storeDimIndex=I,o.push(k),k}return o[M]}if(!s)for(var h=0;h<a;h++)v(h);f.each(function(I,M){var P=Bi(I).slice();if(P.length===1&&!_t(P[0])&&P[0]<0){f.set(M,!1);return}var D=f.set(M,[]);ee(P,function(k,$){var W=_t(k)?u.get(k):k;W!=null&&W<a&&(D[$]=W,_(v(W),M,$))})});var m=0;ee(n,function(I){var M,P,D,k;if(_t(I))M=I,k={};else{k=I,M=k.name;var $=k.ordinalMeta;k.ordinalMeta=null,k=qe({},k),k.ordinalMeta=$,P=k.dimsDef,D=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var W=f.get(M);if(W!==!1){if(W=Bi(W),!W.length)for(var N=0;N<(P&&P.length||1);N++){for(;m<a&&v(m).coordDim!=null;)m++;m<a&&W.push(m++)}ee(W,function(K,X){var ae=v(K);if(l&&k.type!=null&&(ae.type=k.type),_(En(ae,k),M,X),ae.name==null&&P){var ge=P[X];!Rt(ge)&&(ge={name:ge}),ae.name=ae.displayName=ge.name,ae.defaultTooltip=ge.defaultTooltip}D&&En(ae.otherDims,D)})}});function _(I,M,P){cz.get(M)!=null?I.otherDims[M]=P:(I.coordDim=M,I.coordDimIndex=P,i.set(M,!0))}var y=t.generateCoord,S=t.generateCoordCount,b=S!=null;S=y?S||1:0;var w=y||"value";function T(I){I.name==null&&(I.name=I.coordDim)}if(s)ee(o,function(I){T(I)}),o.sort(function(I,M){return I.storeDimIndex-M.storeDimIndex});else for(var C=0;C<a;C++){var E=v(C),R=E.coordDim;R==null&&(E.coordDim=k0e(w,i,b),E.coordDimIndex=0,(!y||S<=0)&&(E.isExtraCoord=!0),S--),T(E),E.type==null&&(pz(e,C)===Ro.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return L0e(o),new Cz({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function L0e(e){for(var t=Zt(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function N0e(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return ee(t,function(o){var a;Rt(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function k0e(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var TT={},OP=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];ee(TT,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){ee(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){TT[t]=n},e.get=function(t){return TT[t]},e}(),F0e=function(){function e(t){this.coordSysDims=[],this.axisMap=Zt(),this.categoryAxisMap=Zt(),this.coordSysName=t}return e}();function $0e(e){var t=e.get("coordinateSystem"),n=new F0e(t),r=B0e[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var B0e={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ya).models[0],o=e.getReferringComponents("yAxis",Ya).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),$d(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),$d(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ya).models[0];t.coordSysDims=["single"],n.set("single",i),$d(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ya).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),$d(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),$d(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();ee(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),$d(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $d(e){return e.get("type")==="category"}function V0e(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;U0e(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(ee(o,function(S,b){_t(S)&&(o[b]=S={name:S}),l&&!S.isExtraCoord&&(!r&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;ee(o,function(S){S.coordDim===h&&m++});var _={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(_.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(_),a.appendCalculationDimension(y)):(o.push(_),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function U0e(e){return!Tz(e.schema)}function fm(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function H0e(e,t){return fm(e,t)?e.getCalculationInfo("stackResultDimension"):t}function z0e(e,t){var n=e.get("coordinateSystem"),r=OP.get(n),i;return t&&t.coordSysDims&&(i=Dt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=b0e(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function G0e(e,t,n){var r,i;return n&&ee(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function W0e(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===Ca;var a=$0e(t),s=z0e(t,a),l=n.useEncodeDefaulter,u=Gt(l)?l:l?Br(u0e,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=D0e(i,c),d=G0e(f.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(f),v=V0e(t,{schema:f,store:h}),m=new O0e(f,t);m.setCalculationInfo(v);var _=d!=null&&j0e(i)?function(y,S,b,w){return w===d?b:this.defaultDimValueGetter(y,S,b,w)}:null;return m.hasItemOption=!1,m.initData(o?i:h,null,_),m}function j0e(e){if(e.sourceFormat===Ca){var t=X0e(e.data||[]);return!ft(Zm(t))}}function X0e(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Y0e=Math.round(Math.random()*10);function cw(e){return[e||"",Y0e++].join("_")}function K0e(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=ws(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=ws(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function Z0e(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,d={};for(ee(o,function(S){d[S]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),ee(v.successor,m?y:_)}ee(d,function(){var S="";throw new Error(S)});function _(S){c[S].entryCount--,c[S].entryCount===0&&f.push(S)}function y(S){d[S]=!0,_(S)}};function n(o){var a={},s=[];return ee(o,function(l){var u=r(a,l),c=u.originalDeps=t(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),ee(f,function(d){In(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(a,d);In(h.successor,d)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return ee(o,function(l){In(a,l)>=0&&s.push(l)}),s}}function q0e(e,t){return Sn(Sn({},e,!0),t,!0)}var J0e=Math.log(2);function dI(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/J0e);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[n][d]*dI(e,t-1,c,u,i|v,o),h++)}return o[a]=f,f}function V5(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=dI(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*dI(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var U5="___zrEVENTSAVED",ET=[];function Q0e(e,t,n,r,i){return hI(ET,t,r,i,!0)&&hI(e,n,ET[0],ET[1])}function hI(e,t,n,r,i){if(t.getBoundingClientRect&&Nt.domSupported&&!Rz(t)){var o=t[U5]||(t[U5]={}),a=e_e(t,o),s=t_e(a,o,i);if(s)return s(e,n,r),!0}return!1}function e_e(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function t_e(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;a.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?V5(s,a):V5(a,s))}function Rz(e){return e.nodeName.toUpperCase()==="CANVAS"}var n_e=/([&<>"'])/g,r_e={"&":"&","<":"<",">":">",'"':""","'":"'"};function oo(e){return e==null?"":(e+"").replace(n_e,function(t,n){return r_e[n]})}const i_e={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},o_e={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Pb="ZH",DP="EN",bh=DP,S1={},LP={},Pz=Nt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bh).toUpperCase();return e.indexOf(Pb)>-1?Pb:bh}():bh;function Mz(e,t){e=e.toUpperCase(),LP[e]=new ur(t),S1[e]=t}function a_e(e){if(_t(e)){var t=S1[e.toUpperCase()]||{};return e===Pb||e===DP?cn(t):Sn(cn(t),cn(S1[bh]),!1)}else return Sn(cn(e),cn(S1[bh]),!1)}function s_e(e){return LP[e]}function l_e(){return LP[bh]}Mz(DP,i_e);Mz(Pb,o_e);var NP=1e3,kP=NP*60,Sg=kP*60,fa=Sg*24,H5=fa*365,Nv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},e_="{yyyy}-{MM}-{dd}",z5={year:"{yyyy}",month:"{yyyy}-{MM}",day:e_,hour:e_+" "+Nv.hour,minute:e_+" "+Nv.minute,second:e_+" "+Nv.second,millisecond:Nv.none},AT=["year","month","day","hour","minute","second","millisecond"],Oz=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tu(e,t){return e+="","0000".substr(0,t-e.length)+e}function Sh(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function u_e(e){return e===Sh(e)}function c_e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function fw(e,t,n,r){var i=Ol(e),o=i[FP(n)](),a=i[wh(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[dw(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[dm(n)](),f=(c-1)%12+1,d=i[hw(n)](),h=i[pw(n)](),v=i[vw(n)](),m=c>=12?"pm":"am",_=m.toUpperCase(),y=r instanceof ur?r:s_e(r||Pz)||l_e(),S=y.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),T=S.get("dayOfWeek"),C=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tu(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,w[a-1]).replace(/{MM}/g,tu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,tu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tu(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tu(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,tu(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tu(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,tu(v,3)).replace(/{S}/g,v+"")}function f_e(e,t,n,r,i){var o=null;if(_t(n))o=n;else if(Gt(n))o=n(e.value,t,{level:e.level});else{var a=qe({},Nv);if(e.level>0)for(var s=0;s<AT.length;++s)a[AT[s]]="{primary|"+a[AT[s]]+"}";var l=n?n.inherit===!1?n:En(n,a):a,u=Dz(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=Oz.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ft(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return fw(new Date(e.value),o,i,r)}function Dz(e,t){var n=Ol(e),r=n[wh(t)]()+1,i=n[dw(t)](),o=n[dm(t)](),a=n[hw(t)](),s=n[pw(t)](),l=n[vw(t)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,h=d&&i===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function G5(e,t,n){var r=Qn(e)?Ol(e):e;switch(t=t||Dz(e,n),t){case"year":return r[FP(n)]();case"half-year":return r[wh(n)]()>=6?1:0;case"quarter":return Math.floor((r[wh(n)]()+1)/4);case"month":return r[wh(n)]();case"day":return r[dw(n)]();case"half-day":return r[dm(n)]()/24;case"hour":return r[dm(n)]();case"minute":return r[hw(n)]();case"second":return r[pw(n)]();case"millisecond":return r[vw(n)]()}}function FP(e){return e?"getUTCFullYear":"getFullYear"}function wh(e){return e?"getUTCMonth":"getMonth"}function dw(e){return e?"getUTCDate":"getDate"}function dm(e){return e?"getUTCHours":"getHours"}function hw(e){return e?"getUTCMinutes":"getMinutes"}function pw(e){return e?"getUTCSeconds":"getSeconds"}function vw(e){return e?"getUTCMilliseconds":"getMilliseconds"}function d_e(e){return e?"setUTCFullYear":"setFullYear"}function Lz(e){return e?"setUTCMonth":"setMonth"}function Nz(e){return e?"setUTCDate":"setDate"}function kz(e){return e?"setUTCHours":"setHours"}function Fz(e){return e?"setUTCMinutes":"setMinutes"}function $z(e){return e?"setUTCSeconds":"setSeconds"}function Bz(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Vz(e){if(!Sme(e))return _t(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uz(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var gw=a8;function pI(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ss(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?Ol(e):e;if(isNaN(+l)){if(s)return"-"}else return fw(l,r,n)}if(t==="ordinal")return UA(e)?i(e):Qn(e)&&o(e)?e+"":"-";var u=xb(e);return o(u)?Vz(u):UA(e)?i(e):typeof e=="boolean"?e+"":"-"}var W5=["a","b","c","d","e","f","g"],IT=function(e,t){return"{"+e+(t??"")+"}"};function Hz(e,t,n){ft(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=W5[o];e=e.replace(IT(a),IT(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(IT(W5[l],s),n?oo(u):u)}return e}function h_e(e,t){var n=_t(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+oo(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+oo(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Zf(e,t){return t=t||"transparent",_t(e)?e:Rt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var w1=ee,p_e=["left","right","top","bottom","width","height"],t_=[["width","left","right"],["height","top","bottom"]];function $P(e,t,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>r||l.newline?(o=0,h=m,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(d?-d.y+c.y:0);v=a+_,v>i||l.newline?(o+=s+n,a=0,v=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=v+n)})}var wg=$P;Br($P,"vertical");Br($P,"horizontal");function Mb(e,t,n){n=gw(n||0);var r=t.width,i=t.height,o=Ni(e.left,r),a=Ni(e.top,i),s=Ni(e.right,r),l=Ni(e.bottom,i),u=Ni(e.width,r),c=Ni(e.height,i),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var v=new wn(o+n[3],a+n[0],u,c);return v.margin=n,v}function hm(e){var t=e.layoutMode||e.constructor.layoutMode;return Rt(t)?t:t?{type:t}:null}function Jh(e,t,n){var r=n&&n.ignoreSize;!ft(r)&&(r=[r,r]);var i=a(t_[0],0),o=a(t_[1],1);u(t_[0],e,i),u(t_[1],e,o);function a(c,f){var d={},h=0,v={},m=0,_=2;if(w1(c,function(b){v[b]=e[b]}),w1(c,function(b){s(t,b)&&(d[b]=v[b]=t[b]),l(d,b)&&h++,l(v,b)&&m++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===_||!h)return v;if(h>=_)return d;for(var y=0;y<c.length;y++){var S=c[y];if(!s(d,S)&&s(e,S)){d[S]=e[S];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){w1(c,function(h){f[h]=d[h]})}}function mw(e){return v_e({},e)}function v_e(e,t){return t&&e&&w1(p_e,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var g_e=Dr(),An=function(e){st(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=cw("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=hm(this),o=i?mw(n):{},a=r.getTheme();Sn(n,a.get(this.mainType)),Sn(n,this.getDefaultOption()),i&&Jh(n,o,i)},t.prototype.mergeOption=function(n,r){Sn(this.option,n,!0);var i=hm(this);i&&Jh(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!$ve(n))return n.defaultOption;var r=g_e(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Sn(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return qm(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(ur);f8(An,ur);KS(An);K0e(An);Z0e(An,m_e);function m_e(e){var t=[];return ee(An.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Dt(t,function(n){return ws(n).main}),e!=="dataset"&&In(t,"dataset")<=0&&t.unshift("dataset"),t}var j5=Dr();Dr();var BP=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Bi(this.get("color",!0)),o=this.get("colorLayer",!0);return __e(this,j5,i,o,t,n,r)},e.prototype.clearColorPalette=function(){b_e(this,j5)},e}();function y_e(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function __e(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:y_e(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function b_e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var S_e=/\{@(.+?)\}/g,w_e=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ft(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Gt(o))return l.status=n,l.dimensionIndex=i,o(l);if(_t(o)){var c=Hz(o,l);return c.replace(S_e,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var m=qh(s,t,v);if(a&&ft(a.interpolatedValue)){var _=s.getDimensionIndex(v);_>=0&&(m=a.interpolatedValue[_])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return qh(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function X5(e){var t,n;return Rt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function xg(e){return new x_e(e)}var x_e=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<v)){var m=this._progress;if(ft(m))for(var _=0;_<m.length;_++)this._doProgress(m[_],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){Y5.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:Y5.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ft(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Y5=function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),u=t>=e?null:l<r?l:t;return t++,u}}(),C_e=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return b1(t,n)},e}();function T_e(e,t){var n=new C_e,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Tl&&io(a);var s=[],l={},u=e.dimensionsDefine;if(u)ee(u,function(m,_){var y=m.name,S={index:_,name:y,displayName:m.displayName};if(s.push(S),y!=null){var b="";jf(l,y)&&io(b),l[y]=S}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=_z(i,Tl);t.__isBuiltIn&&(n.getRawDataItem=function(m){return f(r,o,s,m)},n.getRawData=Zn(E_e,null,e)),n.cloneRawData=Zn(A_e,null,e);var d=bz(i,Tl);n.count=Zn(d,null,r,o,s);var h=Sz(i);n.retrieveValue=function(m,_){var y=f(r,o,s,m);return v(y,_)};var v=n.retrieveValueFromItem=function(m,_){if(m!=null){var y=s[_];if(y)return h(m,_,y.name)}};return n.getDimensionInfo=Zn(I_e,null,s,l),n.cloneAllDimensionInfo=Zn(R_e,null,s),n}function E_e(e){var t=e.sourceFormat;if(!VP(t)){var n="";io(n)}return e.data}function A_e(e){var t=e.sourceFormat,n=e.data;if(!VP(t)){var r="";io(r)}if(t===_o){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===Fs){for(var i=[],o=0,a=n.length;o<a;o++)i.push(qe({},n[o]));return i}}function I_e(e,t,n){if(n!=null){if(Qn(n)||!isNaN(n)&&!jf(t,n))return e[n];if(jf(t,n))return t[n]}}function R_e(e){return cn(e)}var zz=Zt();function P_e(e){e=cn(e);var t=e.type,n="";t||io(n);var r=t.split(":");r.length!==2&&io(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,zz.set(t,e)}function M_e(e,t,n){var r=Bi(e),i=r.length,o="";i||io(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=O_e(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function O_e(e,t,n,r){var i="";t.length||io(i),Rt(e)||io(i);var o=e.type,a=zz.get(o);a||io(i);var s=Dt(t,function(u){return T_e(u,a)}),l=Bi(a.transform({upstream:s[0],upstreamList:s,config:cn(e.config)}));return Dt(l,function(u,c){var f="";Rt(u)||io(f),u.data||io(f);var d=gz(u.data);VP(d)||io(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var m=v.startIndex;m&&(u.data=v.data.slice(0,m).concat(u.data)),h={seriesLayoutBy:Tl,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:Tl,sourceHeader:0,dimensions:u.dimensions};return cI(u.data,h,null)})}function VP(e){return e===_o||e===Fs}var D_e=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(n_(t)){var a=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=mo(s)?$u:Ca,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=an(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=an(f.sourceHeader,d.sourceHeader),m=an(f.dimensions,d.dimensions),_=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;i=_?[cI(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var y=t;if(r){var S=this._applyTransform(n);i=S.sourceList,o=S.upstreamSignList}else{var b=y.get("source",!0);i=[cI(b,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&K5(o)}var a,s=[],l=[];return ee(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&K5(f),s.push(c),l.push(u._getVersionSign())}),r?a=M_e(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[d0e(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];n_(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new fI,s.initData(new yz(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(n_(t)){var n=hz(t);return n?[n.getSourceManager()]:[]}else return Dt(c0e(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(n_(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e}();function n_(e){return e.mainType==="series"}function K5(e){throw new Error(e)}var L_e="line-height:1";function Gz(e){var t=e.lineHeight;return t==null?L_e:"line-height:"+oo(t+"")+"px"}function Wz(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+oo(r+"")+"px;color:"+oo(n)+";font-weight:"+oo(i+""),valueStyle:"font-size:"+oo(a+"")+"px;color:"+oo(o)+";font-weight:"+oo(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var N_e=[0,10,20,30],k_e=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function pm(e,t){return t.type=e,t}function vI(e){return e.type==="section"}function jz(e){return vI(e)?F_e:$_e}function Xz(e){if(vI(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return ee(e.blocks,function(i){var o=Xz(i);o>=t&&(t=o+ +(r&&(!o||vI(i)&&!i.noHeader)))}),t}return 0}function F_e(e,t,n,r){var i=t.noHeader,o=B_e(Xz(t)),a=[],s=t.blocks||[];Ml(!s||ft(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(jf(u,l)){var c=new w0e(u[l],null);s.sort(function(m,_){return c.evaluate(m.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}ee(s,function(m,_){var y=t.valueFormatter,S=jz(m)(y?qe(qe({},e),{valueFormatter:y}):e,m,_>0?o.html:0,r);S!=null&&a.push(S)});var f=e.renderMode==="richText"?a.join(o.richText):gI(r,a.join(""),i?n:o.html);if(i)return f;var d=pI(t.header,"ordinal",e.useUTC),h=Wz(r,e.renderMode).nameStyle,v=Gz(r);return e.renderMode==="richText"?Yz(e,d,h)+o.richText+f:gI(r,'<div style="'+h+";"+v+';">'+oo(d)+"</div>"+f,n)}function $_e(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=ft(w)?w:[w],Dt(w,function(T,C){return pI(T,ft(h)?h[C]:h,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":pI(l,"ordinal",u),h=t.valueType,v=a?[]:c(t.value,t.dataIndex),m=!s||!o,_=!s&&o,y=Wz(r,i),S=y.nameStyle,b=y.valueStyle;return i==="richText"?(s?"":f)+(o?"":Yz(e,d,S))+(a?"":H_e(e,v,m,_,b)):gI(r,(s?"":f)+(o?"":V_e(d,!s,S))+(a?"":U_e(v,m,_,b)),n)}}function Z5(e,t,n,r,i,o){if(e){var a=jz(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function B_e(e){return{html:N_e[e],richText:k_e[e]}}function gI(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=Gz(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function V_e(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+oo(e)+"</span>"}function U_e(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ft(e)?e:[e],'<span style="'+o+";"+r+'">'+Dt(e,function(a){return oo(a)}).join(" ")+"</span>"}function Yz(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function H_e(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ft(t)?t.join(" "):t,o)}function z_e(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Zf(r)}function Kz(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var RT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=N8()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=h_e({color:n,type:t,renderMode:r,markerId:i});return _t(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ft(n)?ee(n,function(o){return qe(r,o)}):qe(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function G_e(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=ft(s),u=z_e(t,n),c,f,d,h;if(a>1||l&&!a){var v=W_e(s,t,n,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);h=c=qh(i,n,o[0]),f=m.type}else h=c=l?s[0]:s;var _=fP(t),y=_&&t.name||"",S=i.getName(n),b=r?y:S;return pm("section",{header:y,noHeader:r||!_,sortParam:h,blocks:[pm("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Ss(b),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function W_e(e,t,n,r,i){var o=t.getData(),a=cp(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?ee(r,function(f){c(qh(o,n,f),f)}):ee(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(a?u.push(pm("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var nu=Dr();function r_(e,t){return e.getName(t)||e.getId(t)}var j_e="__universalTransitionEnabled",Yu=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=xg({count:Y_e,reset:K_e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=nu(this).sourceManager=new D_e(this);o.prepareSource();var a=this.getInitialData(n,i);J5(a,this),this.dataTask.context.data=a,nu(this).dataBeforeProcessed=a,q5(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=hm(this),o=i?mw(n):{},a=this.subType;An.hasClass(a)&&(a+="Series"),Sn(n,r.getTheme().get(this.subType)),Sn(n,this.getDefaultOption()),t5(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Jh(n,o,i)},t.prototype.mergeOption=function(n,r){n=Sn(this.option,n,!0),this.fillDataTextStyle(n.data);var i=hm(this);i&&Jh(this.option,n,i);var o=nu(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);J5(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,nu(this).dataBeforeProcessed=a,q5(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!mo(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&t5(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=mI(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return nu(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=mI(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}nu(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Zt(n)},t.prototype.getSourceManager=function(){return nu(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return nu(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,i){return G_e({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Nt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=BP.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=r_(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Jn(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[r_(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[j_e])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Rt(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var f=r[c],d=r_(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=r_(n,h);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return An.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(An);Ns(Yu,w_e);Ns(Yu,BP);f8(Yu,An);function q5(e){var t=e.name;fP(e)||(e.name=X_e(e)||t)}function X_e(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return ee(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function Y_e(e){return e.model.getRawData().count()}function K_e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Z_e}function Z_e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function J5(e,t){ee(Mve(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Br(q_e,t))})}function q_e(e,t){var n=mI(e);return n&&n.setOutputEnd((t||this).count()),t}function mI(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var J_e=Ln.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),Q_e=Ln.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),e1e=Ln.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),d=Math.cos(u),h=a*.6,v=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),t1e=Ln.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),n1e={line:ju,rect:qr,roundRect:qr,square:qr,circle:rw,diamond:Q_e,pin:e1e,arrow:t1e,triangle:J_e},r1e={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},yI={};ee(n1e,function(e,t){yI[t]=new e});var i1e=Ln.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=p8(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=yI[r];i||(r="rect",i=yI[r]),r1e[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function o1e(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Qh(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=nz(e.slice(8),new wn(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=CP(e.slice(7),{},new wn(t,n,r,i),a?"center":"cover"):l=new i1e({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=o1e,o&&l.setColor(o),l}function a1e(e){return ft(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Zz(e,t){if(e!=null)return ft(e)||(e=[e,e]),[Ni(e[0],t[0])||0,Ni(an(e[1],e[0]),t[1])||0]}var s1e=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return W0e(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new wi,i=Qh("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=Qh(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Yu);function qz(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=qh(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(qh(e,t,n[a]));return o.join(" ")}}function l1e(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!ft(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var UP=function(e){st(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=Qh(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=u1e,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Cb(this.childAt(0))},t.prototype.downplay=function(){Tb(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Xu(d,h,s,r),Nye(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Jm(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,v,m,_,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,_=o.hoverScale,y=o.cursorStyle,v=o.emphasisDisabled),!o||n.hasItemOption){var S=o&&o.itemModel?o.itemModel:n.getItemModel(r),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),v=b.get("disabled"),m=RP(S),_=b.getShallow("scale"),y=S.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var T=Zz(n.getItemVisual(r,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),y&&s.attr("cursor",y);var C=n.getItemVisual(r,"style"),E=C.fill;if(s instanceof oc){var R=s.style;s.useStyle(qe({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},C))}else s.__isEmptyBrush?s.useStyle(qe({},C)):s.useStyle(C),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),M=this._z2;I!=null?M==null&&(this._z2=s.z2,s.z2+=I):M!=null&&(s.z2=M,this._z2=null);var P=a&&a.useNameLabel;IP(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:D,inheritColor:E,defaultOpacity:C.opacity});function D(W){return P?n.getName(W):qz(n,W)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var $=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;k.scaleX=this._sizeX*$,k.scaleY=this._sizeY*$,this.setSymbolScale(1),oI(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Dn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&Ab(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Ab(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return a1e(n.getItemVisual(r,"symbolSize"))},t}(wi);function u1e(e,t){this.parent.drift(e,t)}function PT(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Q5(e){return e!=null&&!Rt(e)&&(e={isIgnore:e}),e||{}}function e3(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:RP(t),cursorStyle:t.get("cursor")}}var c1e=function(){function e(t){this.group=new wi,this._SymbolCtor=t||UP}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Q5(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=e3(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var d=c(f);if(PT(t,d,f,n)){var h=new a(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!PT(t,v,f,n)){r.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",_=h&&h.getSymbolType&&h.getSymbolType();if(!h||_&&_!==m)r.remove(h),h=new a(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):Xu(h,y,i)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=e3(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Q5(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(PT(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){AP(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e}();function Jz(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=f1e(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=Dt(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return fm(t,f[0])&&(d=!0,f[0]=h),fm(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function f1e(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:Qn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Qz(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var eG=typeof Float32Array<"u",d1e=eG?Float32Array:Array;function oh(e){return ft(e)?eG?new Float32Array(e):e:new d1e(e)}function h1e(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function p1e(e,t,n,r,i,o,a,s){for(var l=h1e(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],_=Jz(i,t,a),y=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],T=!0,C=void 0,E=void 0;switch(w.cmd){case"=":C=w.idx*2,E=w.idx1*2;var R=y[C],I=y[C+1],M=S[E],P=S[E+1];(isNaN(R)||isNaN(I))&&(R=M,I=P),u.push(R,I),c.push(M,P),f.push(n[C],n[C+1]),d.push(r[E],r[E+1]),m.push(t.getRawIndex(w.idx1));break;case"+":var D=w.idx,k=_.dataDimsForPoint,$=i.dataToPoint([t.get(k[0],D),t.get(k[1],D)]);E=D*2,u.push($[0],$[1]),c.push(S[E],S[E+1]);var W=Qz(_,i,t,D);f.push(W[0],W[1]),d.push(r[E],r[E+1]),m.push(t.getRawIndex(D));break;case"-":T=!1}T&&(h.push(w),v.push(v.length))}v.sort(function(Le,je){return m[Le]-m[je]});for(var N=u.length,K=oh(N),X=oh(N),ae=oh(N),ge=oh(N),ye=[],b=0;b<v.length;b++){var Me=v[b],ke=b*2,Ue=Me*2;K[ke]=u[Ue],K[ke+1]=u[Ue+1],X[ke]=c[Ue],X[ke+1]=c[Ue+1],ae[ke]=f[Ue],ae[ke+1]=f[Ue+1],ge[ke]=d[Ue],ge[ke+1]=d[Ue+1],ye[b]=h[Me]}return{current:K,next:X,stackedOnCurrent:ae,stackedOnNext:ge,status:ye}}var ru=Math.min,iu=Math.max;function Of(e,t){return isNaN(e)||isNaN(t)}function _I(e,t,n,r,i,o,a,s,l){for(var u,c,f,d,h,v,m=n,_=0;_<r;_++){var y=t[m*2],S=t[m*2+1];if(m>=i||m<0)break;if(Of(y,S)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](y,S),f=y,d=S;else{var b=y-u,w=S-c;if(b*b+w*w<.5){m+=o;continue}if(a>0){for(var T=m+o,C=t[T*2],E=t[T*2+1];C===y&&E===S&&_<r;)_++,T+=o,m+=o,C=t[T*2],E=t[T*2+1],y=t[m*2],S=t[m*2+1],b=y-u,w=S-c;var R=_+1;if(l)for(;Of(C,E)&&R<r;)R++,T+=o,C=t[T*2],E=t[T*2+1];var I=.5,M=0,P=0,D=void 0,k=void 0;if(R>=r||Of(C,E))h=y,v=S;else{M=C-u,P=E-c;var $=y-u,W=C-y,N=S-c,K=E-S,X=void 0,ae=void 0;if(s==="x"){X=Math.abs($),ae=Math.abs(W);var ge=M>0?1:-1;h=y-ge*X*a,v=S,D=y+ge*ae*a,k=S}else if(s==="y"){X=Math.abs(N),ae=Math.abs(K);var ye=P>0?1:-1;h=y,v=S-ye*X*a,D=y,k=S+ye*ae*a}else X=Math.sqrt($*$+N*N),ae=Math.sqrt(W*W+K*K),I=ae/(ae+X),h=y-M*a*(1-I),v=S-P*a*(1-I),D=y+M*a*I,k=S+P*a*I,D=ru(D,iu(C,y)),k=ru(k,iu(E,S)),D=iu(D,ru(C,y)),k=iu(k,ru(E,S)),M=D-y,P=k-S,h=y-M*X/ae,v=S-P*X/ae,h=ru(h,iu(u,y)),v=ru(v,iu(c,S)),h=iu(h,ru(u,y)),v=iu(v,ru(c,S)),M=y-h,P=S-v,D=y+M*ae/X,k=S+P*ae/X}e.bezierCurveTo(f,d,h,v,y,S),f=D,d=k}else e.lineTo(y,S)}u=y,c=S,m+=o}return _}var tG=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),v1e=function(e){st(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tG},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&Of(i[a*2-2],i[a*2-1]);a--);for(;o<a&&Of(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=_I(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Yf.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],h=void 0,v=void 0,m=void 0,_=void 0,y=void 0,S=void 0,b=void 0;switch(d){case a.M:s=o[f++],l=o[f++];break;case a.L:if(h=o[f++],v=o[f++],b=u?(n-s)/(h-s):(n-l)/(v-l),b<=1&&b>=0){var w=u?(v-l)*b+l:(h-s)*b+s;return u?[n,w]:[w,n]}s=h,l=v;break;case a.C:h=o[f++],v=o[f++],m=o[f++],_=o[f++],y=o[f++],S=o[f++];var T=u?gb(s,h,m,y,n,c):gb(l,v,_,S,n,c);if(T>0)for(var C=0;C<T;C++){var E=c[C];if(E<=1&&E>=0){var w=u?Kr(l,v,_,S,E):Kr(s,h,m,y,E);return u?[n,w]:[w,n]}}s=y,l=S;break}}},t}(Ln),g1e=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tG),m1e=function(e){st(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new g1e},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Of(i[s*2-2],i[s*2-1]);s--);for(;a<s&&Of(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=_I(n,i,a,s,s,1,r.smooth,l,r.connectNulls);_I(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},t}(Ln);function nG(){var e=Dr();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var rG=Dr(),y1e=nG(),As=function(){function e(){this.group=new wi,this.uid=cw("viewChart"),this.renderTask=xg({plan:_1e,reset:b1e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&n3(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&n3(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){AP(this.group,t)},e.markUpdateMethod=function(t,n){rG(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function t3(e,t,n){e&&aI(e)&&(t==="emphasis"?Cb:Tb)(e,n)}function n3(e,t,n){var r=Kf(e,t),i=t&&t.highlightKey!=null?nye(t.highlightKey):null;r!=null?ee(Bi(r),function(o){t3(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){t3(o,n,i)})}nP(As);KS(As);function _1e(e){return y1e(e.model)}function b1e(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&rG(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),S1e[l]}var S1e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function w1e(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new qr({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=Gt(i)?function(_){i(_,f)}:null;Jm(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,m)}return f}function x1e(e,t,n){var r=e.getArea(),i=Cr(r.r0,1),o=Cr(r.r,1),a=new iw({shape:{cx:Cr(e.cx,1),cy:Cr(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,Jm(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function C1e(e,t){return e.type===t}function r3(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function i3(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function o3(e,t){var n=i3(e),r=n[0],i=n[1],o=i3(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function a3(e){return Qn(e)?e:e?.5:0}function T1e(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=oh(r*2),o=0;o<r;o++){var a=Qz(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function ou(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[a]=f[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var v=(c[a]+f[a])/2,m=[];u[a]=m[a]=v,u[1-a]=c[1-a],m[1-a]=f[1-a],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[a]=c[a],u[1-a]=f[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function E1e(e,t){var n=[],r=e.length,i,o;function a(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=wge(v,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function A1e(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),u=Dt(o.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=E1e(u,i==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,m=d[0].coord-v,_=d[h-1].coord+v,y=_-m;if(y<.001)return"transparent";ee(d,function(b){b.offset=(b.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var S=new wP(0,0,0,0,d,!0);return S[i]=m,S[i+"2"]=_,S}}}function I1e(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&R1e(o,t))){var a=t.mapDimension(o.dim),s={};return ee(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function R1e(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(UP.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function P1e(e,t){return isNaN(e)||isNaN(t)}function M1e(e){for(var t=e.length/2;t>0&&P1e(e[t*2-2],e[t*2-1]);t--);return t-1}function s3(e,t){return[e[t*2],e[t*2+1]]}function O1e(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=e[u*2+i],!(isNaN(a)||isNaN(e[u*2+1-i]))){if(u===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function iG(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ms.length;t++)if(e.get([Ms[t],"endLabel","show"]))return!0;return!1}function MT(e,t,n,r){if(C1e(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=iG(r)?function(h,v){e._endLabelOnDuring(h,v,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=w1e(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return x1e(t,n,r)}function D1e(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var L1e=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new wi,r=new c1e;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Zn(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],f=o.type==="polar",d=this._coordSys,h=this._symbolDraw,v=this._polyline,m=this._polygon,_=this._lineGroup,y=!r.ssr&&n.get("animation"),S=!u.isEmpty(),b=u.get("origin"),w=Jz(o,s,b),T=S&&T1e(o,s,w),C=n.get("showSymbol"),E=n.get("connectNulls"),R=C&&!f&&I1e(n,s,o),I=this._data;I&&I.eachItemGraphicEl(function(Le,je){Le.__temp&&(a.remove(Le),I.setItemGraphicEl(je,null))}),C||h.remove(),a.add(_);var M=f?!1:n.get("step"),P;o&&o.getArea&&n.get("clip",!0)&&(P=o.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var D=A1e(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&d.type===o.type&&M===this._step))C&&h.updateData(s,{isIgnore:R,clipShape:P,disableAnimation:!0,getSymbolPoint:function(Le){return[c[Le*2],c[Le*2+1]]}}),y&&this._initSymbolLabelAnimation(s,o,P),M&&(T&&(T=ou(T,c,o,M,E)),c=ou(c,null,o,M,E)),v=this._newPolyline(c),S?m=this._newPolygon(c,T):m&&(_.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,Zf(D)),_.setClipPath(MT(this,o,!0,n));else{S&&!m?m=this._newPolygon(c,T):m&&!S&&(_.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,Zf(D));var k=_.getClipPath();if(k){var $=MT(this,o,!1,n);Jm(k,{shape:$.shape},n)}else _.setClipPath(MT(this,o,!0,n));C&&h.updateData(s,{isIgnore:R,clipShape:P,disableAnimation:!0,getSymbolPoint:function(Le){return[c[Le*2],c[Le*2+1]]}}),(!r3(this._stackedOnPoints,T)||!r3(this._points,c))&&(y?this._doUpdateAnimation(s,T,o,i,M,b,E):(M&&(T&&(T=ou(T,c,o,M,E)),c=ou(c,null,o,M,E)),v.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:T})))}var W=n.getModel("emphasis"),N=W.get("focus"),K=W.get("blurScope"),X=W.get("disabled");if(v.useStyle(En(l.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),d5(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ae=v.getState("emphasis").style;ae.lineWidth=+v.style.lineWidth+1}Dn(v).seriesIndex=n.seriesIndex,oI(v,N,K,X);var ge=a3(n.get("smooth")),ye=n.get("smoothMonotone");if(v.setShape({smooth:ge,smoothMonotone:ye,connectNulls:E}),m){var Me=s.getCalculationInfo("stackedOnSeries"),ke=0;m.useStyle(En(u.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Me&&(ke=a3(Me.get("smooth"))),m.setShape({smooth:ge,stackedOnSmooth:ke,smoothMonotone:ye,connectNulls:E}),d5(m,n,"areaStyle"),Dn(m).seriesIndex=n.seriesIndex,oI(m,N,K,X)}var Ue=this._changePolyState;s.eachItemGraphicEl(function(Le){Le&&(Le.onHoverStateChange=Ue)}),this._polyline.onHoverStateChange=Ue,this._data=s,this._coordSys=o,this._stackedOnPoints=T,this._points=c,this._step=M,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){Dn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=Kf(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;u=new UP(a,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else As.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Kf(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else As.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;s5(this._polyline,n),r&&s5(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new v1e({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new m1e({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");Gt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Gt(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var m=h;if(m){var _=[h.x,h.y],y=void 0,S=void 0,b=void 0;if(i)if(a){var w=i,T=r.pointToCoord(_);o?(y=w.startAngle,S=w.endAngle,b=-T[1]/180*Math.PI):(y=w.r0,S=w.r,b=T[0])}else{var C=i;o?(y=C.x,S=C.x+C.width,b=h.x):(y=C.y+C.height,S=C.y,b=h.y)}var E=S===y?0:(b-y)/(S-y);l&&(E=1-E);var R=Gt(f)?f(v):c*E+d,I=m.getSymbolPath(),M=I.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:R}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:R}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(iG(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new yo({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=M1e(l);c>=0&&(IP(s,RP(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?l1e(a,h):qz(a,f)},enableTextSetter:!0},D1e(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,_=l.getBaseAxis(),y=_.isHorizontal(),S=_.inverse,b=r.shape,w=S?y?b.x:b.y+b.height:y?b.x+b.width:b.y,T=(y?m:0)*(S?-1:1),C=(y?0:-m)*(S?-1:1),E=y?"x":"y",R=O1e(f,w,E),I=R.range,M=I[1]-I[0],P=void 0;if(M>=1){if(M>1&&!h){var D=s3(f,I[0]);u.attr({x:D[0]+T,y:D[1]+C}),a&&(P=d.getRawValue(I[0]))}else{var D=c.getPointOn(w,E);D&&u.attr({x:D[0]+T,y:D[1]+C});var k=d.getRawValue(I[0]),$=d.getRawValue(I[1]);a&&(P=kme(i,v,k,$,R.t))}o.lastFrameIndex=I[0]}else{var W=n===1||o.lastFrameIndex>0?I[0]:0,D=s3(f,W);a&&(P=d.getRawValue(W)),u.attr({x:D[0]+T,y:D[1]+C})}if(a){var N=sz(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=p1e(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,_=d.stackedOnNext;if(a&&(v=ou(d.stackedOnCurrent,d.current,i,a,l),h=ou(d.current,null,i,a,l),_=ou(d.stackedOnNext,d.next,i,a,l),m=ou(d.next,null,i,a,l)),o3(h,m)>3e3||c&&o3(v,_)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:m}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),Xu(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Xu(c,{shape:{stackedOnPoints:_}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=d.status,w=0;w<b.length;w++){var T=b[w].cmd;if(T==="="){var C=n.getItemGraphicEl(b[w].idx1);C&&S.push({el:C,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var E=u.shape.__points,R=0;R<S.length;R++){var I=S[R].el,M=S[R].ptIdx*2;I.x=E[M],I.y=E[M+1],I.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(As);function N1e(e,t){return{seriesType:e,plan:nG(),reset:function(n){var r=n.getData(),i=n.coordinateSystem;if(n.pipelineContext,!!i){var o=Dt(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),a=o.length,s=r.getCalculationInfo("stackResultDimension");fm(r,o[0])&&(o[0]=s),fm(r,o[1])&&(o[1]=s);var l=r.getStore(),u=r.getDimensionIndex(o[0]),c=r.getDimensionIndex(o[1]);return a&&{progress:function(f,d){for(var h=f.end-f.start,v=oh(h*a),m=[],_=[],y=f.start,S=0;y<f.end;y++){var b=void 0;if(a===1){var w=l.get(u,y);b=i.dataToPoint(w,null,_)}else m[0]=l.get(u,y),m[1]=l.get(c,y),b=i.dataToPoint(m,null,_);v[S++]=b[0],v[S++]=b[1]}d.setLayout("points",v)}}}}}}var k1e={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},F1e=function(e){return Math.round(e.length/2)};function $1e(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var v=void 0;_t(o)?v=k1e[o]:Gt(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,F1e))}}}}}function B1e(e){e.registerChartView(L1e),e.registerSeriesModel(s1e),e.registerLayout(N1e("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$1e("line"))}var V1e="__ec_stack_";function U1e(e){return e.get("stack")||V1e+e.seriesIndex}function oG(e){return e.dim+e.index}function H1e(e,t){var n=[];return t.eachSeriesByType(e,function(r){X1e(r)&&n.push(r)}),n}function z1e(e){var t={};ee(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,_=v.count();m<_;++m){var y=v.get(h,m);t[d]?t[d].push(y):t[d]=[y]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function G1e(e){var t=z1e(e),n=[];return ee(e,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(a[1]-a[0])/h.count()}var v=Ni(r.get("barWidth"),s),m=Ni(r.get("barMaxWidth"),s),_=Ni(r.get("barMinWidth")||(Y1e(r)?.5:1),s),y=r.get("barGap"),S=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:_,barGap:y,barCategoryGap:S,axisKey:oG(o),stackId:U1e(r)})}),W1e(n)}function W1e(e){var t={};ee(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return ee(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Jn(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ni(s,a),c=Ni(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),ee(o,function(y){var S=y.maxWidth,b=y.minWidth;if(y.width){var w=y.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),y.width=w,f-=w+c*w,d--}else{var w=h;S&&S<w&&(w=Math.min(S,f)),b&&b>w&&(w=b),w!==h&&(y.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;ee(o,function(y,S){y.width||(y.width=h),m=y,v+=y.width*(1+c)}),m&&(v-=m.width*c);var _=-v/2;ee(o,function(y,S){n[i][S]=n[i][S]||{bandWidth:a,offset:_,width:y.width},_+=y.width*(1+c)})}),n}function j1e(e,t,n){if(e&&t){var r=e[oG(t)];return r}}function X1e(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Y1e(e){return e.pipelineContext&&e.pipelineContext.large}var Ob="\0__throttleOriginMethod",l3="\0__throttleRate",u3="\0__throttleType";function aG(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];r=new Date().getTime(),l=this,u=h;var m=c||t,_=c||n;c=null,s=r-(_?i:o)-m,clearTimeout(a),_?a=setTimeout(f,m):s>=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(h){c=h},d}function sG(e,t,n,r){var i=e[t];if(i){var o=i[Ob]||i,a=i[u3],s=i[l3];if(s!==n||a!==r){if(n==null)return e[t]=o;i=e[t]=aG(o,n,r==="debounce"),i[Ob]=o,i[u3]=r,i[l3]=n}return i}}function bI(e,t){var n=e[t];n&&n[Ob]&&(n.clear&&n.clear(),e[t]=n[Ob])}function Bd(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),d=Kf(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:ft(d)?f.getName(d[0]):f.getName(d),selected:_t(l)?l:qe({},l)})}})}function K1e(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Bd("map","selectchanged",t,i,r),Bd("pie","selectchanged",t,i,r)):r.fromAction==="select"?(Bd("map","selected",t,i,r),Bd("pie","selected",t,i,r)):r.fromAction==="unselect"&&(Bd("map","unselected",t,i,r),Bd("pie","unselected",t,i,r))})}function Z1e(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Eb(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function q1e(e){var t=[];e.sort(function(m,_){return _.priority-m.priority});var n=new wn(0,0,0,0);function r(m){if(!m.ignore){var _=m.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}m.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(n.intersect(v.rect)){if(a&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new Eb(v.localRect,v.transform)),f||(f=new Eb(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var Vd=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),J1e=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Vd(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new Vd(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Vd(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Vd(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Vd(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Vd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Q1e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,OT=[],ebe=Nt.browser.firefox&&+Nt.browser.version.split(".")[0]<39;function SI(e,t,n,r){return n=n||{},r?c3(e,t,n):ebe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):c3(e,t,n),n}function c3(e,t,n){if(Nt.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Rz(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(hI(OT,e,r,i)){n.zrX=OT[0],n.zrY=OT[1];return}}n.zrX=n.zrY=0}function HP(e){return e||window.event}function ta(e,t,n){if(t=HP(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&SI(e,a,t,n)}else{SI(e,t,t,n);var o=tbe(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Q1e.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function tbe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function nbe(e,t,n,r){e.addEventListener(t,n,r)}function rbe(e,t,n,r){e.removeEventListener(t,n,r)}var lG=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},ibe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a<s;a++){var l=i[a],u=SI(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in DT)if(DT.hasOwnProperty(n)){var r=DT[n](this._track,t);if(r)return r}},e}();function f3(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function obe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var DT={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=f3(r)/f3(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=obe(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},uG="silent";function abe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:sbe}}function sbe(){lG(this.event)}var lbe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ks),uv=function(){function e(t,n){this.x=t,this.y=n}return e}(),ube=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],LT=new wn(0,0,0,0),cG=function(e){st(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new uv(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new lbe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new J1e(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(ee(ube,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=fG(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new uv(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new uv(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=abe(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new uv(n,r);if(d3(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new wn(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(LT.copy(d.getBoundingRect()),d.transform&<.applyTransform(d.transform),LT.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,_=0;_<u;_+=h)for(var y=0;y<m;y+=v){var S=n+_*Math.cos(y),b=r+_*Math.sin(y);if(d3(s,a,S,b,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new ibe);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new uv;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(ks);ee(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){cG.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=fG(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||fge(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function cbe(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?uG:!0}return!1}function d3(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=cbe(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==uG)){t.target=a;break}}}function fG(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var dG=32,cv=7;function fbe(e){for(var t=0;e>=dG;)t|=e&1,e>>=1;return e+t}function h3(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;dbe(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function dbe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function p3(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function NT(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function kT(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function hbe(e,t){var n=cv,r,i,o=0,a=[];r=[],i=[];function s(h,v){r[o]=h,i[o]=v,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=r[h],m=i[h],_=r[h+1],y=i[h+1];i[h]=m+y,h===o-3&&(r[h+1]=r[h+2],i[h+1]=i[h+2]),o--;var S=kT(e[_],e,v,m,0,t);v+=S,m-=S,m!==0&&(y=NT(e[v+m-1],e,_,y,y-1,t),y!==0&&(m<=y?f(v,m,_,y):d(v,m,_,y)))}function f(h,v,m,_){var y=0;for(y=0;y<v;y++)a[y]=e[h+y];var S=0,b=m,w=h;if(e[w++]=e[b++],--_===0){for(y=0;y<v;y++)e[w+y]=a[S+y];return}if(v===1){for(y=0;y<_;y++)e[w+y]=e[b+y];e[w+_]=a[S];return}for(var T=n,C,E,R;;){C=0,E=0,R=!1;do if(t(e[b],a[S])<0){if(e[w++]=e[b++],E++,C=0,--_===0){R=!0;break}}else if(e[w++]=a[S++],C++,E=0,--v===1){R=!0;break}while((C|E)<T);if(R)break;do{if(C=kT(e[b],a,S,v,0,t),C!==0){for(y=0;y<C;y++)e[w+y]=a[S+y];if(w+=C,S+=C,v-=C,v<=1){R=!0;break}}if(e[w++]=e[b++],--_===0){R=!0;break}if(E=NT(a[S],e,b,_,0,t),E!==0){for(y=0;y<E;y++)e[w+y]=e[b+y];if(w+=E,b+=E,_-=E,_===0){R=!0;break}}if(e[w++]=a[S++],--v===1){R=!0;break}T--}while(C>=cv||E>=cv);if(R)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),v===1){for(y=0;y<_;y++)e[w+y]=e[b+y];e[w+_]=a[S]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[w+y]=a[S+y]}}function d(h,v,m,_){var y=0;for(y=0;y<_;y++)a[y]=e[m+y];var S=h+v-1,b=_-1,w=m+_-1,T=0,C=0;if(e[w--]=e[S--],--v===0){for(T=w-(_-1),y=0;y<_;y++)e[T+y]=a[y];return}if(_===1){for(w-=v,S-=v,C=w+1,T=S+1,y=v-1;y>=0;y--)e[C+y]=e[T+y];e[w]=a[b];return}for(var E=n;;){var R=0,I=0,M=!1;do if(t(a[b],e[S])<0){if(e[w--]=e[S--],R++,I=0,--v===0){M=!0;break}}else if(e[w--]=a[b--],I++,R=0,--_===1){M=!0;break}while((R|I)<E);if(M)break;do{if(R=v-kT(a[b],e,h,v,v-1,t),R!==0){for(w-=R,S-=R,v-=R,C=w+1,T=S+1,y=R-1;y>=0;y--)e[C+y]=e[T+y];if(v===0){M=!0;break}}if(e[w--]=a[b--],--_===1){M=!0;break}if(I=_-NT(e[S],a,0,_,_-1,t),I!==0){for(w-=I,b-=I,_-=I,C=w+1,T=b+1,y=0;y<I;y++)e[C+y]=a[T+y];if(_<=1){M=!0;break}}if(e[w--]=e[S--],--v===0){M=!0;break}E--}while(R>=cv||I>=cv);if(M)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),_===1){for(w-=v,S-=v,C=w+1,T=S+1,y=v-1;y>=0;y--)e[C+y]=e[T+y];e[w]=a[b]}else{if(_===0)throw new Error;for(T=w-(_-1),y=0;y<_;y++)e[T+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function x1(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<dG){o=h3(e,n,r,t),p3(e,n,r,n+o,t);return}var a=hbe(e,t),s=fbe(i);do{if(o=h3(e,n,r,t),o<s){var l=i;l>s&&(l=s),p3(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var v3=!1;function FT(){v3||(v3=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function g3(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var pbe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=g3}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,x1(r,g3)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ts),this._updateAndAddDisplayable(u,n,r)}t.__dirty=0}else{var c=t;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(FT(),c.z=0),isNaN(c.z2)&&(FT(),c.z2=0),isNaN(c.zlevel)&&(FT(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var i=In(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Db;Db=Nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function ah(){return new Date().getTime()}var vbe=function(e){st(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=ah()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Db(r),!n._paused&&n.update())}Db(r)},t.prototype.start=function(){this._running||(this._time=ah(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ah(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ah()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new uP(n,r.loop);return this.addAnimator(i),i},t}(ks),gbe=300,$T=Nt.domSupported,BT=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Dt(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),m3={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},y3=!1;function wI(e){var t=e.pointerType;return t==="pen"||t==="touch"}function mbe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function VT(e){e&&(e.zrByTouch=!0)}function ybe(e,t){return ta(e.dom,new _be(e,t),!0)}function hG(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var _be=function(){function e(t,n){this.stopPropagation=ho,this.stopImmediatePropagation=ho,this.preventDefault=ho,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ba={mousedown:function(e){e=ta(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ta(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ta(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ta(this.dom,e);var t=e.toElement||e.relatedTarget;hG(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){y3=!0,e=ta(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){y3||(e=ta(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ta(this.dom,e),VT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ba.mousemove.call(this,e),Ba.mousedown.call(this,e)},touchmove:function(e){e=ta(this.dom,e),VT(e),this.handler.processGesture(e,"change"),Ba.mousemove.call(this,e)},touchend:function(e){e=ta(this.dom,e),VT(e),this.handler.processGesture(e,"end"),Ba.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<gbe&&Ba.click.call(this,e)},pointerdown:function(e){Ba.mousedown.call(this,e)},pointermove:function(e){wI(e)||Ba.mousemove.call(this,e)},pointerup:function(e){Ba.mouseup.call(this,e)},pointerout:function(e){wI(e)||Ba.mouseout.call(this,e)}};ee(["click","dblclick","contextmenu"],function(e){Ba[e]=function(t){t=ta(this.dom,t),this.trigger(e,t)}});var xI={pointermove:function(e){wI(e)||xI.mousemove.call(this,e)},pointerup:function(e){xI.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function bbe(e,t){var n=t.domHandlers;Nt.pointerEventsSupported?ee(BT.pointer,function(r){C1(t,r,function(i){n[r].call(e,i)})}):(Nt.touchEventsSupported&&ee(BT.touch,function(r){C1(t,r,function(i){n[r].call(e,i),mbe(t)})}),ee(BT.mouse,function(r){C1(t,r,function(i){i=HP(i),t.touching||n[r].call(e,i)})}))}function Sbe(e,t){Nt.pointerEventsSupported?ee(m3.pointer,n):Nt.touchEventsSupported||ee(m3.mouse,n);function n(r){function i(o){o=HP(o),hG(e,o.target)||(o=ybe(e,o),t.domHandlers[r].call(e,o))}C1(t,r,i,{capture:!0})}}function C1(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,nbe(e.domTarget,t,n,r)}function UT(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&rbe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var _3=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),wbe=function(e){st(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new _3(n,Ba),$T&&(i._globalHandlerScope=new _3(document,xI)),bbe(i,i._localHandlerScope),i}return t.prototype.dispose=function(){UT(this._localHandlerScope),$T&&UT(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,$T&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?Sbe(this,r):UT(r)}},t}(ks);/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var T1={},pG={};function xbe(e){delete pG[e]}function Cbe(e){if(!e)return!1;if(typeof e=="string")return _b(e,1)<qA;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=_b(t[i].color,1);return n/=r,n<qA}return!1}var Tbe=function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new pbe,a=r.renderer||"canvas";T1[a]||(a=Jn(T1)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new T1[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Nt.node&&!Nt.worker&&!l?new wbe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Nt.touchEventsSupported:!!c,d=44,h;f&&(h=an(r.pointerSize,d)),this.handler=new cG(o,s,u,s.root,h),this.animation=new vbe({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Cbe(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=ah();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=ah();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof wi&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,xbe(this.id))},e}();function b3(e,t){var n=new Tbe(o8(),e,t);return pG[n.id]=n,n}function Ebe(e,t){T1[e]=t}var vG="";typeof navigator<"u"&&(vG=navigator.platform||"");var Ud="rgba(0, 0, 0, 0.2)";const Abe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ud,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ud,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ud,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ud,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ud,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ud,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vG.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Ibe=Zt();function Rbe(e,t,n){var r=Ibe.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var i_,fv,S3,w3="\0_ec_inner",Pbe=1,zP=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new ur(o),this._locale=new ur(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=T3(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,T3(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?S3(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&ee(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Zt(),u=r&&r.replaceMergeMainTypeMap;l0e(this),ee(n,function(f,d){f!=null&&(An.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?cn(f):Sn(i[d],f,!0))}),u&&u.each(function(f,d){An.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),An.topologicalTravel(s,An.getAllClassMainTypes(),c,this);function c(f){var d=Rbe(this,f,Bi(n[f])),h=o.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=Cme(h,d,v);Mme(m,f,An),i[f]=null,o.set(f,null),a.set(f,0);var _=[],y=[],S=0,b;ee(m,function(w,T){var C=w.existing,E=w.newOption;if(!E)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var R=f==="series",I=An.getClass(f,w.keyInfo.subType,!R);if(!I)return;if(f==="tooltip"){if(b)return;b=!0}if(C&&C.constructor===I)C.name=w.keyInfo.name,C.mergeOption(E,this),C.optionUpdated(E,!1);else{var M=qe({componentIndex:T},w.keyInfo);C=new I(E,this,this,M),qe(C,M),w.brandNew&&(C.__requireNewView=!0),C.init(E,this,this),C.optionUpdated(null,!0)}}C?(_.push(C.option),y.push(C),S++):(_.push(void 0),y.push(void 0))},this),i[f]=_,o.set(f,y),a.set(f,S),f==="series"&&i_(this)}this._seriesIndices||i_(this)},t.prototype.getOption=function(){var n=cn(this.option);return ee(n,function(r,i){if(An.hasClass(i)){for(var o=Bi(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!um(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[w3],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],ee(Bi(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=x3("id",o,s):a!=null?l=x3("name",a,s):l=Yr(s,function(u){return!!u}),C3(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Yr(this._componentsMap.get(i),function(u){return!!u});return l(C3(a,n));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?Yr(u,n.filter):u}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(Gt(n)){var a=r,s=n;o.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(a,d,v,v.componentIndex)}})}else for(var l=_t(n)?o.get(n):Rt(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=Es(n,null);return Yr(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return Yr(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return Yr(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){fv(this),ee(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){ee(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){fv(this),ee(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return ee(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return fv(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){fv(this);var i=[];ee(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Zt(i)},t.prototype.restoreData=function(n){i_(this);var r=this._componentsMap,i=[];r.each(function(o,a){An.hasClass(a)&&i.push(a)}),An.topologicalTravel(i,An.getAllClassMainTypes(),function(o){ee(r.get(o),function(a){a&&(o!=="series"||!Mbe(a,n))&&a.restoreData()})})},t.internalField=function(){i_=function(n){var r=n._seriesIndices=[];ee(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Zt(r)},fv=function(n){},S3=function(n,r){n.option={},n.option[w3]=Pbe,n._componentsMap=Zt({series:[]}),n._componentsCount=Zt();var i=r.aria;Rt(i)&&i.enabled==null&&(i.enabled=!0),Obe(r,n._theme.option),Sn(r,Abe,!1),n._mergeOption(r,null)}}(),t}(ur);function Mbe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Obe(e,t){var n=e.color&&!e.colorLayer;ee(t,function(r,i){i==="colorLayer"&&n||An.hasClass(i)||(typeof r=="object"?e[i]=e[i]?Sn(e[i],r,!1):cn(r):e[i]==null&&(e[i]=r))})}function x3(e,t,n){if(ft(t)){var r=Zt();return ee(t,function(o){if(o!=null){var a=Es(o,null);a!=null&&r.set(o,!0)}}),Yr(n,function(o){return o&&r.get(o[e])})}else{var i=Es(t,null);return Yr(n,function(o){return o&&i!=null&&o[e]===i})}}function C3(e,t){return t.hasOwnProperty("subType")?Yr(e,function(n){return n&&n.subType===t.subType}):e}function T3(e){var t=Zt();return e&&ee(Bi(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Ns(zP,BP);var Dbe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gG=function(){function e(t){ee(Dbe,function(n){this[n]=Zn(t[n],t)},this)}return e}(),Lbe=/^(min|max)?(.+)$/,Nbe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(ee(Bi(t.series),function(a){a&&a.data&&mo(a.data)&&HA(a.data)}),ee(Bi(t.dataset),function(a){a&&a.source&&mo(a.source)&&HA(a.source)})),t=cn(t);var i=this._optionBackup,o=kbe(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],cn(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=cn(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)Fbe(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!Bbe(a,this._currentMediaIndices)&&(s=Dt(a,function(c){return cn(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},e}();function kbe(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&ft(u)&&ee(u,function(h){h&&h.option&&(h.query?r.push(h):i||(i=h))}),d(o),ee(l,function(h){return d(h)}),ee(r,function(h){return d(h.option)});function d(h){ee(t,function(v){v(h,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function Fbe(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return ee(e,function(o,a){var s=a.match(Lbe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();$be(r[u],o,l)||(i=!1)}}),i}function $be(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function Bbe(e,t){return e.join(",")===t.join(",")}var La=ee,vm=Rt,E3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function HT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=E3.length;n<r;n++){var i=E3[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?Sn(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?Sn(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function ci(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,En(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function kv(e){ci(e,"itemStyle"),ci(e,"lineStyle"),ci(e,"areaStyle"),ci(e,"label"),ci(e,"labelLine"),ci(e,"upperLabel"),ci(e,"edgeLabel")}function hr(e,t){var n=vm(e)&&e[t],r=vm(n)&&n.textStyle;if(r)for(var i=0,o=n5.length;i<o;i++){var a=n5[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function na(e){e&&(kv(e),hr(e,"label"),e.emphasis&&hr(e.emphasis,"label"))}function Vbe(e){if(vm(e)){HT(e),kv(e),hr(e,"label"),hr(e,"upperLabel"),hr(e,"edgeLabel"),e.emphasis&&(hr(e.emphasis,"label"),hr(e.emphasis,"upperLabel"),hr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(HT(t),na(t));var n=e.markLine;n&&(HT(n),na(n));var r=e.markArea;r&&na(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!mo(o))for(var a=0;a<o.length;a++)na(o[a]);ee(e.categories,function(u){kv(u)})}if(i&&!mo(i))for(var a=0;a<i.length;a++)na(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)na(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)ft(l[a])?(na(l[a][0]),na(l[a][1])):na(l[a]);e.type==="gauge"?(hr(e,"axisLabel"),hr(e,"title"),hr(e,"detail")):e.type==="treemap"?(ci(e.breadcrumb,"itemStyle"),ee(e.levels,function(u){kv(u)})):e.type==="tree"&&kv(e.leaves)}}function el(e){return ft(e)?e:e?[e]:[]}function A3(e){return(ft(e)?e[0]:e)||{}}function Ube(e,t){La(el(e.series),function(r){vm(r)&&Vbe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),La(n,function(r){La(el(e[r]),function(i){i&&(hr(i,"axisLabel"),hr(i.axisPointer,"label"))})}),La(el(e.parallel),function(r){var i=r&&r.parallelAxisDefault;hr(i,"axisLabel"),hr(i&&i.axisPointer,"label")}),La(el(e.calendar),function(r){ci(r,"itemStyle"),hr(r,"dayLabel"),hr(r,"monthLabel"),hr(r,"yearLabel")}),La(el(e.radar),function(r){hr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),La(el(e.geo),function(r){vm(r)&&(na(r),La(el(r.regions),function(i){na(i)}))}),La(el(e.timeline),function(r){na(r),ci(r,"label"),ci(r,"itemStyle"),ci(r,"controlStyle",!0);var i=r.data;ft(i)&&ee(i,function(o){Rt(o)&&(ci(o,"label"),ci(o,"itemStyle"))})}),La(el(e.toolbox),function(r){ci(r,"iconStyle"),La(r.feature,function(i){ci(i,"iconStyle")})}),hr(A3(e.axisPointer),"label"),hr(A3(e.tooltip).axisPointer,"label")}function Hbe(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function zbe(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function I3(e){e&&ee(Gbe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Gbe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Wbe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],zT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function dv(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<zT.length;n++){var r=zT[n][1],i=zT[n][0];t[r]!=null&&(t[i]=t[r])}}function R3(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function P3(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function jbe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function mG(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&mG(e[n].children,t)}function yG(e,t){Ube(e,t),e.series=Bi(e.series),ee(e.series,function(n){if(Rt(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),R3(n.label);var i=n.data;if(i&&!mo(i))for(var o=0;o<i.length;o++)R3(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=Hbe(n,"pointer.color");a!=null&&zbe(n,"itemStyle.color",a)}else if(r==="bar"){dv(n),dv(n.backgroundStyle),dv(n.emphasis);var i=n.data;if(i&&!mo(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(dv(i[o]),dv(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),P3(n),mG(n.data,P3)}else r==="graph"||r==="sankey"?jbe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&En(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),I3(n)}}),e.dataRange&&(e.visualMap=e.dataRange),ee(Wbe,function(n){var r=e[n];r&&(ft(r)||(r=[r]),ee(r,function(i){I3(i)}))})}function Xbe(e){var t=Zt();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(Ybe)}function Ybe(e){ee(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var d=a.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=a.getRawIndex(f):h=a.get(t.stackedByDimension,f);for(var m=NaN,_=n-1;_>=0;_--){var y=e[_];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var S=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&d>=0&&S>0||l==="samesign"&&d<=0&&S<0){d=yme(d,S),m=S;break}}}return r[0]=d,r[1]=m,r})})}var Os=function(){function e(){this.group=new wi,this.uid=cw("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();nP(Os);KS(Os);var M3=Dr(),O3={itemStyle:sm(uz,!0),lineStyle:sm(lz,!0)},Kbe={lineStyle:"stroke",itemStyle:"fill"};function _G(e,t){var n=e.visualStyleMapper||O3[t];return n||(console.warn("Unknown style type '"+t+"'."),O3.itemStyle)}function bG(e,t){var n=e.visualDrawType||Kbe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Zbe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=_G(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=bG(e,r),u=a[l],c=Gt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Gt(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Gt(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),_=qe({},a);_[l]=c(m),h.setItemVisual(v,"style",_)}}}},hv=new ur,qbe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=_G(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){hv.option=l[r];var u=i(hv),c=a.ensureUniqueItemVisual(s,"style");qe(c,u),hv.option.decal&&(a.setItemVisual(s,"decal",hv.option.decal),hv.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Jbe={performRawSeries:!0,overallReset:function(e){var t=Zt();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),M3(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=M3(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=bG(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(h,a,v)}})}})}},o_=Math.PI;function Qbe(e,t){t=t||{},En(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new wi,r=new qr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new yo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new qr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new ow({shape:{startAngle:-o_/2,endAngle:-o_/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:o_*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:o_*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var SG=function(){function e(t,n,r,i){this._stageTaskMap=Zt(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Zt();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;ee(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Ml(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;ee(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(_){s(i,_)&&(_.dirty(),h=!0)}),h&&d.dirty(),a.updatePayload(d,r);var m=a.getPerformArgs(d,i.block);v.each(function(_){_.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(_,y){s(i,_)&&_.dirty();var S=a.getPerformArgs(_,i.block);S.skip=!l.performRawSeries&&n.isSeriesFiltered(_.context.model),a.updatePayload(_,r),_.perform(S)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Zt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var d=f.uid,h=s.set(d,a&&a.get(d)||xg({plan:iSe,reset:oSe,count:sSe}));h.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||xg({reset:eSe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Zt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Ml(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,i).each(v):(f=!1,ee(r.getSeries(),v));function v(m){var _=m.uid,y=l.set(_,s&&s.get(_)||(d=!0,xg({reset:tSe,onDirty:rSe})));y.context={model:m,overallProgress:f},y.agent=a,y.__block=f,o._pipe(m,y)}d&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return Gt(t)&&(t={overallReset:t,seriesType:lSe(t)}),t.uid=cw("stageHandler"),n&&(t.visualType=n),t},e}();function eSe(e){e.overallReset(e.ecModel,e.api,e.payload)}function tSe(e){return e.overallProgress&&nSe}function nSe(){this.agent.dirty(),this.getDownstream().dirty()}function rSe(){this.agent&&this.agent.dirty()}function iSe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function oSe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Bi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Dt(t,function(n,r){return wG(r)}):aSe}var aSe=wG(0);function wG(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function sSe(e){return e.data.count()}function lSe(e){Lb=null;try{e(gm,xG)}catch{}return Lb}var gm={},xG={},Lb;CG(gm,zP);CG(xG,gG);gm.eachSeriesByType=gm.eachRawSeriesByType=function(e){Lb=e};gm.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Lb=e.subType)};function CG(e,t){for(var n in t.prototype)e[n]=ho}var D3=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const uSe={color:D3,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],D3]};var li="#B9B8CE",L3="#100C2A",a_=function(){return{axisLine:{lineStyle:{color:li}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},N3=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],TG={darkMode:!0,color:N3,backgroundColor:L3,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:li},pageTextStyle:{color:li}},textStyle:{color:li},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:li}},dataZoom:{borderColor:"#71708A",textStyle:{color:li},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:li}},timeline:{lineStyle:{color:li},label:{color:li},controlStyle:{color:li,borderColor:li}},calendar:{itemStyle:{color:L3},dayLabel:{color:li},monthLabel:{color:li},yearLabel:{color:li}},timeAxis:a_(),logAxis:a_(),valueAxis:a_(),categoryAxis:a_(),line:{symbol:"circle"},graph:{color:N3},gauge:{title:{color:li},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:li},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};TG.categoryAxis.splitLine.show=!1;var cSe=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(_t(t)){var o=ws(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ee(t,function(l,u){for(var c=!1,f=0;f<a.length;f++){var d=a[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),CI=["symbol","symbolSize","symbolRotate","symbolOffset"],k3=CI.concat(["symbolKeepAspect"]),fSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<CI.length;a++){var s=CI[a],l=e.get(s);Gt(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(qe({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Jn(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var _=u[m];f.setItemVisual(d,_,i[_](h,v))}}return{dataEach:o?c:null}}},dSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<k3.length;s++){var l=k3[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function hSe(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function pSe(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Fv(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var vSe=Math.round(Math.random()*9),gSe=typeof Object.defineProperty=="function",mSe=function(){function e(){this._id="__ec_inner_"+vSe++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return gSe?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();function uf(e){return isFinite(e)}function ySe(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=uf(r)?r:0,i=uf(i)?i:1,o=uf(o)?o:0,a=uf(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function _Se(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=uf(a)?a:.5,s=uf(s)?s:.5,l=l>=0&&uf(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function TI(e,t,n){for(var r=t.type==="radial"?_Se(e,t,n):ySe(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function bSe(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function s_(e){return parseInt(e,10)}function l_(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||s_(s[r])||s_(e.style[r]))-(s_(s[o])||0)-(s_(s[a])||0)|0}function SSe(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Qn(e)?[e]:ft(e)?e:null}function EG(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&SSe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Dt(n,function(o){return o/i}),r/=i)}return[n,r]}var wSe=new Yf(!0);function Nb(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function F3(e){return typeof e=="string"&&e!=="none"}function kb(e){var t=e.fill;return t!=null&&t!=="none"}function $3(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function B3(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function EI(e,t,n){var r=h8(t.image,t.__image,n);if(ZS(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Ove),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function xSe(e,t,n,r){var i,o=Nb(n),a=kb(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||wSe,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=a&&!!d.colorStops,m=o&&!!h.colorStops,_=a&&!!d.image,y=o&&!!h.image,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0;(v||m)&&(C=t.getBoundingRect()),v&&(S=f?TI(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=S),m&&(b=f?TI(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(w=f||!t.__canvasFillPattern?EI(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(T=f||!t.__canvasStrokePattern?EI(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:_&&(w?e.fillStyle=w:a=!1),m?e.strokeStyle=b:y&&(T?e.strokeStyle=T:o=!1)}var E=t.getGlobalScale();c.setScale(E[0],E[1],t.segmentIgnoreThreshold);var R,I;e.setLineDash&&n.lineDash&&(i=EG(t),R=i[0],I=i[1]);var M=!0;(u||f&Dv)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),R&&(e.setLineDash(R),e.lineDashOffset=I),r||(n.strokeFirst?(o&&B3(e,n),a&&$3(e,n)):(a&&$3(e,n),o&&B3(e,n))),R&&e.setLineDash([])}function CSe(e,t,n){var r=t.__image=h8(n.image,t.__image,t,t.onload);if(!(!r||!ZS(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,d=s-c;e.drawImage(r,u,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function TSe(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||Wf,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=EG(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Nb(n)&&e.strokeText(i,n.x,n.y),kb(n)&&e.fillText(i,n.x,n.y)):(kb(n)&&e.fillText(i,n.x,n.y),Nb(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var V3=["shadowBlur","shadowOffsetX","shadowOffsetY"],U3=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function AG(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){ao(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Pf.opacity:a}(r||t.blend!==n.blend)&&(o||(ao(e,i),o=!0),e.globalCompositeOperation=t.blend||Pf.blend);for(var s=0;s<V3.length;s++){var l=V3[s];(r||t[l]!==n[l])&&(o||(ao(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(ao(e,i),o=!0),e.shadowColor=t.shadowColor||Pf.shadowColor),o}function H3(e,t,n,r,i){var o=mm(t,i.inHover),a=r?null:n&&mm(n,i.inHover)||{};if(o===a)return!1;var s=AG(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(ao(e,i),s=!0),F3(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(ao(e,i),s=!0),F3(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(ao(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ao(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<U3.length;c++){var f=U3[c],d=f[0];(r||o[d]!==a[d])&&(s||(ao(e,i),s=!0),e[d]=o[d]||f[1])}return s}function ESe(e,t,n,r,i){return AG(e,mm(t,i.inHover),n&&mm(n,i.inHover),r,i)}function IG(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function ASe(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),IG(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function ISe(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var z3=1,G3=2,W3=3,j3=4;function RSe(e){var t=kb(e),n=Nb(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ao(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function mm(e,t){return t&&e.__hoverStyle||e.style}function RG(e,t){cf(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cf(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||bSe(o,a))&&(a&&a.length&&(ao(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(ao(e,n),e.save(),ASe(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Ln&&t.autoBatch&&RSe(t.style);s||ISe(i,u.transform)?(ao(e,n),IG(e,t)):c||ao(e,n);var f=mm(t,n.inHover);t instanceof Ln?(n.lastDrawType!==z3&&(l=!0,n.lastDrawType=z3),H3(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),xSe(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Sb?(n.lastDrawType!==W3&&(l=!0,n.lastDrawType=W3),H3(e,t,u,l,n),TSe(e,t,f)):t instanceof oc?(n.lastDrawType!==G3&&(l=!0,n.lastDrawType=G3),ESe(e,t,u,l,n),CSe(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==j3&&(l=!0,n.lastDrawType=j3),PSe(e,t,n)),c&&r&&ao(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function PSe(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cf(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cf(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var GT=new mSe,X3=new Ym(100),Y3=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function AI(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&>.delete(e);var o=GT.get(e);if(o)return o;var a=En(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,GT.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<Y3.length;++d){var h=a[Y3[d]];if(h!=null&&!ft(h)&&!_t(h)&&!Qn(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var m=X3.get(v);m&&(i?u.svgElement=m:u.image=m)}var _=MG(a.dashArrayX),y=MSe(a.dashArrayY),S=PG(a.symbol),b=OSe(_),w=OG(y),T=!i&&up.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=I(),R;T&&(T.width=E.width*n,T.height=E.height*n,R=T.getContext("2d")),M(),f&&X3.put(v,T||C),u.image=T,u.svgElement=C,u.svgWidth=E.width,u.svgHeight=E.height;function I(){for(var P=1,D=0,k=b.length;D<k;++D)P=QF(P,b[D]);for(var $=1,D=0,k=S.length;D<k;++D)$=QF($,S[D].length);P*=$;var W=w*b.length*S.length;return{width:Math.max(1,Math.min(P,a.maxTileWidth)),height:Math.max(1,Math.min(W,a.maxTileHeight))}}function M(){R&&(R.clearRect(0,0,T.width,T.height),a.backgroundColor&&(R.fillStyle=a.backgroundColor,R.fillRect(0,0,T.width,T.height)));for(var P=0,D=0;D<y.length;++D)P+=y[D];if(P<=0)return;for(var k=-w,$=0,W=0,N=0;k<E.height;){if($%2===0){for(var K=W/2%S.length,X=0,ae=0,ge=0;X<E.width*2;){for(var ye=0,D=0;D<_[N].length;++D)ye+=_[N][D];if(ye<=0)break;if(ae%2===0){var Me=(1-a.symbolSize)*.5,ke=X+_[N][ae]*Me,Ue=k+y[$]*Me,Le=_[N][ae]*a.symbolSize,je=y[$]*a.symbolSize,fe=ge/2%S[K].length;Ae(ke,Ue,Le,je,S[K][fe])}X+=_[N][ae],++ge,++ae,ae===_[N].length&&(ae=0)}++N,N===_.length&&(N=0)}k+=y[$],++W,++$,$===y.length&&($=0)}function Ae(Se,Te,Ne,Be,H){var z=i?1:n,ue=Qh(H,Se*z,Te*z,Ne*z,Be*z,a.color,a.symbolKeepAspect);if(i){var we=r.painter.renderOneToVNode(ue);we&&C.children.push(we)}else RG(R,ue)}}}}function PG(e){if(!e||e.length===0)return[["rect"]];if(_t(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!_t(e[n])){t=!1;break}if(t)return PG([e]);for(var r=[],n=0;n<e.length;++n)_t(e[n])?r.push([e[n]]):r.push(e[n]);return r}function MG(e){if(!e||e.length===0)return[[0,0]];if(Qn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Qn(e[r])){n=!1;break}if(n)return MG([e]);for(var i=[],r=0;r<e.length;++r)if(Qn(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Dt(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function MSe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Qn(e)){var t=Math.ceil(e);return[t,t]}var n=Dt(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function OSe(e){return Dt(e,function(t){return OG(t)})}function OG(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function DSe(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=AI(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=AI(i,t)}}})}var Va=new ks,DG={};function LSe(e,t){DG[e]=t}function NSe(e){return DG[e]}var kSe=1,FSe=800,$Se=900,BSe=1e3,VSe=2e3,USe=5e3,LG=1e3,HSe=1100,GP=2e3,NG=3e3,zSe=4e3,yw=4500,GSe=4600,WSe=5e3,jSe=6e3,kG=7e3,XSe={PROCESSOR:{FILTER:BSe,SERIES_FILTER:FSe,STATISTIC:USe},VISUAL:{LAYOUT:LG,PROGRESSIVE_LAYOUT:HSe,GLOBAL:GP,CHART:NG,POST_CHART_LAYOUT:GSe,COMPONENT:zSe,BRUSH:WSe,CHART_ITEM:yw,ARIA:jSe,DECAL:kG}},si="__flagInMainProcess",qi="__pendingUpdate",WT="__needsUpdateStatus",K3=/^[a-zA-Z0-9_]+$/,jT="__connectUpdateStatus",Z3=0,YSe=1,KSe=2;function FG(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return BG(this,e,t)}}function $G(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return BG(this,e,t)}}function BG(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ks.prototype[t].apply(e,n)}var VG=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ks),UG=VG.prototype;UG.on=$G("on");UG.off=$G("off");var Hd,XT,u_,au,YT,KT,ZT,pv,vv,q3,J3,qT,Q3,c_,e4,HG,Jo,t4,zG=function(e){st(t,e);function t(n,r,i){var o=e.call(this,new cSe)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},_t(r)&&(r=GG[r]),o._dom=n;var a="canvas",s="auto",l=!1;i.ssr;var u=o._zr=b3(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:an(i.useDirtyRect,l),useCoarsePointer:an(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=aG(Zn(u.flush,u),17),r=cn(r),r&&yG(r,!0),o._theme=r,o._locale=a_e(i.locale||Pz),o._coordSysMgr=new OP;var c=o._api=e4(o);function f(d,h){return d.__prio-h.__prio}return x1($b,f),x1(II,f),o._scheduler=new SG(o,c,II,$b),o._messageCenter=new VG,o._initEvents(),o.resize=Zn(o.resize,o),u.animation.on("frame",o._onframe,o),q3(u,o),J3(u,o),HA(o),o}return t.prototype._onframe=function(){if(!this._disposed){t4(this);var n=this._scheduler;if(this[qi]){var r=this[qi].silent;this[si]=!0;try{Hd(this),au.update.call(this,null,this[qi].updateParams)}catch(l){throw this[si]=!1,this[qi]=null,l}this._zr.flush(),this[si]=!1,this[qi]=null,pv.call(this,r),vv.call(this,r)}else if(n.unfinished){var i=kSe,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),KT(this,o),n.performVisualTasks(o),c_(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[si]){if(this._disposed){this.id;return}var o,a,s;if(Rt(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[si]=!0,!this._model||r){var l=new Nbe(this._api),u=this._theme,c=this._model=new zP;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},RI);var f={seriesTransition:s,optionChanged:!0};if(i)this[qi]={silent:o,updateParams:f},this[si]=!1,this.getZr().wakeUp();else{try{Hd(this),au.update.call(this,null,f)}catch(d){throw this[qi]=null,this[si]=!1,d}this._ssr||this._zr.flush(),this[qi]=null,this[si]=!1,pv.call(this,o),vv.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Nt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Nt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return ee(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;ee(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return ee(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(n4[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();ee(Tg,function(b,w){if(b.group===i){var T=r?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(cn(n)),C=b.getDom().getBoundingClientRect();l=o(C.left,l),u=o(C.top,u),c=a(C.right,c),f=a(C.bottom,f),d.push({dom:T,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,_=up.createCanvas(),y=b3(_,{renderer:r?"svg":"canvas"});if(y.resize({width:v,height:m}),r){var S="";return ee(d,function(b){var w=b.left-l,T=b.top-u;S+='<g transform="translate('+w+","+T+')">'+b.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=S,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new qr({shape:{x:0,y:0,width:v,height:m},style:{fill:n.connectedBackgroundColor}})),ee(d,function(b){var w=new oc({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});y.add(w)}),y.refreshImmediately(),_.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return YT(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return YT(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=hT(i,n);return ee(a,function(s,l){l.indexOf("Models")>=0&&ee(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(o=o||f.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=hT(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?hSe(s,l,r):pSe(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;ee(ZSe,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Fv(s,function(v){var m=Dn(v);if(m&&m.dataIndex!=null){var _=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=_&&_.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=qe({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),ee(Cg,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),ee(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),K1e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&B8(this.getDom(),jP,"");var r=this,i=r._api,o=r._model;ee(r._componentsViews,function(a){a.dispose(o,i)}),ee(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Tg[r.id]},t.prototype.resize=function(n){if(!this[si]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[qi]&&(o==null&&(o=this[qi].silent),i=!0,this[qi]=null),this[si]=!0;try{i&&Hd(this),au.update.call(this,{type:"resize",animation:qe({duration:0},n&&n.animation)})}catch(a){throw this[si]=!1,a}this[si]=!1,pv.call(this,o),vv.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Rt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!PI[n]){var i=PI[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=qe({},n);return r.type=Cg[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Rt(r)||(r={silent:!!r}),!!Fb[n.type]&&this._model){if(this[si]){this._pendingActions.push(n);return}var i=r.silent;ZT.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Nt.browser.weChat&&this._throttledZrFlush(),pv.call(this,i),vv.call(this,i)}},t.prototype.updateLabelLayout=function(){Va.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Hd=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),XT(f,!0),XT(f,!1),d.plan()},XT=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,_=d?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,b=0;b<m.length;b++)m[b].__alive=!1;d?h.eachComponent(function(C,E){C!=="series"&&w(E)}):h.eachSeries(w);function w(C){var E=C.__requireNewView;C.__requireNewView=!1;var R="_ec_"+C.id+"_"+C.type,I=!E&&_[R];if(!I){var M=ws(C.type),P=d?Os.getClass(M.main,M.sub):As.getClass(M.sub);I=new P,I.init(h,S),_[R]=I,m.push(I),y.add(I.group)}C.__viewId=I.__id=R,I.__alive=!0,I.__model=C,I.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(I,C,h,S)}for(var b=0;b<m.length;){var T=m[b];T.__alive?b++:(!d&&T.renderTask.dispose(),y.remove(T.group),T.dispose(h,S),m.splice(b,1),_[T.__id]===T&&delete _[T.__id],T.__id=T.group.__ecComponentInfo=null)}},u_=function(f,d,h,v,m){var _=f._model;if(_.setUpdatePayload(h),!v){ee([].concat(f._componentsViews).concat(f._chartsViews),T);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var S={mainType:v,query:y};m&&(S.subType=m);var b=h.excludeSeriesId,w;b!=null&&(w=Zt(),ee(Bi(b),function(C){var E=Es(C,null);E!=null&&w.set(E,!0)})),_&&_.eachComponent(S,function(C){var E=w&&w.get(C.id)!=null;if(!E)if(h5(h))if(C instanceof Yu)h.type===Mf&&!h.notBlur&&!C.get(["emphasis","disabled"])&&Yme(C,h,f._api);else{var R=gP(C.mainType,C.componentIndex,h.name,f._api),I=R.focusSelf,M=R.dispatchers;h.type===Mf&&I&&!h.notBlur&&rI(C.mainType,C.componentIndex,f._api),M&&ee(M,function(P){h.type===Mf?Cb(P):Tb(P)})}else sI(h)&&C instanceof Yu&&(qme(C,h,f._api),c5(C),Jo(f))},f),_&&_.eachComponent(S,function(C){var E=w&&w.get(C.id)!=null;E||T(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function T(C){C&&C.__alive&&C[d]&&C[d](C.__model,_,f._api,h)}},au={prepareAndUpdate:function(f){Hd(this),au.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,m=this._zr,_=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),_.create(h,v),y.performDataProcessorTasks(h,f),KT(this,h),_.update(h,v),n(h),y.performVisualTasks(h,f),qT(this,h,v,f,d);var S=h.get("backgroundColor")||"transparent",b=h.get("darkMode");m.setBackgroundColor(S),b!=null&&b!=="auto"&&m.setDarkMode(b),Va.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,S){if(y!=="series"){var b=d.getViewOfComponentModel(S);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(S,h,v,f);w&&w.update&&m.push(b)}else m.push(b)}});var _=Zt();h.eachSeries(function(y){var S=d._chartsMap[y.__viewId];if(S.updateTransform){var b=S.updateTransform(y,h,v,f);b&&b.update&&_.set(y.uid,1)}else _.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:_}),c_(this,h,v,f,{},_),Va.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),As.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),qT(this,d,this._api,f,{}),Va.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),As.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var _=d.getViewOfComponentModel(m);_&&_.__alive&&_.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),Va.trigger("afterupdate",h,this._api))},updateLayout:function(f){au.update.call(this,f)}},YT=function(f,d,h,v){if(f._disposed){f.id;return}for(var m=f._model,_=f._coordSysMgr.getCoordinateSystems(),y,S=hT(m,h),b=0;b<_.length;b++){var w=_[b];if(w[d]&&(y=w[d](m,S,v))!=null)return y}},KT=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},ZT=function(f,d){var h=this,v=this.getModel(),m=f.type,_=f.escapeConnect,y=Fb[m],S=y.actionInfo,b=(S.update||"update").split(":"),w=b.pop(),T=b[0]!=null&&ws(b[0]);this[si]=!0;var C=[f],E=!1;f.batch&&(E=!0,C=Dt(f.batch,function($){return $=En(qe({},$),f),$.batch=null,$}));var R=[],I,M=sI(f),P=h5(f);if(P&&Y8(this._api),ee(C,function($){if(I=y.action($,h._model,h._api),I=I||qe({},$),I.type=S.event||I.type,R.push(I),P){var W=dP(f),N=W.queryOptionMap,K=W.mainTypeSpecified,X=K?N.keys()[0]:"series";u_(h,w,$,X),Jo(h)}else M?(u_(h,w,$,"series"),Jo(h)):T&&u_(h,w,$,T.main,T.sub)}),w!=="none"&&!P&&!M&&!T)try{this[qi]?(Hd(this),au.update.call(this,f),this[qi]=null):au[w].call(this,f)}catch($){throw this[si]=!1,$}if(E?I={type:S.event||m,escapeConnect:_,batch:R}:I=R[0],this[si]=!1,!d){var D=this._messageCenter;if(D.trigger(I.type,I),M){var k={type:"selectchanged",escapeConnect:_,selected:Jme(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};D.trigger(k.type,k)}}},pv=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();ZT.call(this,h,f)}},vv=function(f){!f&&this.trigger("updated")},q3=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[qi]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},J3=function(f,d){f.on("mouseover",function(h){var v=h.target,m=Fv(v,aI);m&&(Kme(m,h,d._api),Jo(d))}).on("mouseout",function(h){var v=h.target,m=Fv(v,aI);m&&(Zme(m,h,d._api),Jo(d))}).on("click",function(h){var v=h.target,m=Fv(v,function(S){return Dn(S).dataIndex!=null},!0);if(m){var _=m.selected?"unselect":"select",y=Dn(m);d._api.dispatchAction({type:_,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],v=!1;if(f.eachComponent(function(S,b){var w=b.get("zlevel")||0,T=b.get("z")||0,C=b.getZLevelKey();v=v||!!C,(S==="series"?h:d).push({zlevel:w,z:T,idx:b.componentIndex,type:S,key:C})}),v){var m=d.concat(h),_,y;x1(m,function(S,b){return S.zlevel===b.zlevel?S.z-b.z:S.zlevel-b.zlevel}),ee(m,function(S){var b=f.getComponent(S.type,S.idx),w=S.zlevel,T=S.key;_!=null&&(w=Math.max(_,w)),T?(w===_&&T!==y&&w++,y=T):y&&(w===_&&w++,y=""),_=w,b.setZLevel(w)})}}qT=function(f,d,h,v,m){r(d),Q3(f,d,h,v,m),ee(f._chartsViews,function(_){_.__alive=!1}),c_(f,d,h,v,m),ee(f._chartsViews,function(_){_.__alive||_.remove(d,h)})},Q3=function(f,d,h,v,m,_){ee(_||f._componentsViews,function(y){var S=y.__model;u(S,y),y.render(S,d,h,v),s(S,y),c(S,y)})},c_=function(f,d,h,v,m,_){var y=f._scheduler;m=qe(m||{},{updatedSeries:d.getSeries()}),Va.trigger("series:beforeupdate",d,h,m);var S=!1;d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var T=w.renderTask;y.updatePayload(T,v),u(b,w),_&&_.get(b.uid)&&T.dirty(),T.perform(y.getPerformArgs(T))&&(S=!0),w.group.silent=!!b.get("silent"),a(b,w),c5(b)}),y.unfinished=S||y.unfinished,Va.trigger("series:layoutlabels",d,h,m),Va.trigger("series:transition",d,h,m),d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];s(b,w),c(b,w)}),o(f,d),Va.trigger("series:afterupdate",d,h,m)},Jo=function(f){f[WT]=!0,f.getZr().wakeUp()},t4=function(f){f[WT]&&(f.getZr().storage.traverse(function(d){bg(d)||i(d)}),f[WT]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===tw&&f.states.emphasis?d.push("emphasis"):f.hoverState===ew&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,v=h.storage,m=0;v.traverse(function(_){_.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!Nt.node&&!Nt.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var y=f._chartsMap[_.__viewId];y.__alive&&y.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),_=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),b=0;b<S.length;b++)v=Math.max(l(S[b],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),_){var w=f.textGuideLineConfig;_.z=d,_.zlevel=h,isFinite(v)&&(_.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!bg(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),m=h.get("duration"),_=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(bg(y))return;if(y instanceof Ln&&rye(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(v){y.stateTransition=_;var b=y.getTextContent(),w=y.getTextGuideLine();b&&(b.stateTransition=_),w&&(w.stateTransition=_)}y.__dirty&&i(y)}})}e4=function(f){return new(function(d){st(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){Cb(v,m),Jo(f)},h.prototype.leaveEmphasis=function(v,m){Tb(v,m),Jo(f)},h.prototype.enterBlur=function(v){Xme(v),Jo(f)},h.prototype.leaveBlur=function(v){G8(v),Jo(f)},h.prototype.enterSelect=function(v){W8(v),Jo(f)},h.prototype.leaveSelect=function(v){j8(v),Jo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(gG))(f)},HG=function(f){function d(h,v){for(var m=0;m<h.length;m++){var _=h[m];_[jT]=v}}ee(Cg,function(h,v){f._messageCenter.on(v,function(m){if(n4[f.group]&&f[jT]!==Z3){if(m&&m.escapeConnect)return;var _=f.makeActionFromEvent(m),y=[];ee(Tg,function(S){S!==f&&S.group===f.group&&y.push(S)}),d(y,Z3),ee(y,function(S){S[jT]!==YSe&&S.dispatchAction(_)}),d(y,KSe)}})})}}(),t}(ks),WP=zG.prototype;WP.on=FG("on");WP.off=FG("off");WP.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var ZSe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Fb={},Cg={},II=[],RI=[],$b=[],GG={},PI={},Tg={},n4={},qSe=+new Date-0,jP="_echarts_instance_";function JSe(e,t,n){{var r=QSe(e);if(r)return r}var i=new zG(e,t,n);return i.id="ec_"+qSe++,Tg[i.id]=i,B8(e,jP,i.id),HG(i),Va.trigger("afterinit",i),i}function QSe(e){return Tg[Lme(e,jP)]}function WG(e,t){GG[e]=t}function jG(e){In(RI,e)<0&&RI.push(e)}function XG(e,t){YP(II,e,t,VSe)}function ewe(e){XP("afterinit",e)}function twe(e){XP("afterupdate",e)}function XP(e,t){Va.on(e,t)}function hp(e,t,n){Gt(t)&&(n=t,t="");var r=Rt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Cg[t]&&(Ml(K3.test(r)&&K3.test(t)),Fb[r]||(Fb[r]={action:n,actionInfo:e}),Cg[t]=r)}function nwe(e,t){OP.register(e,t)}function rwe(e,t){YP($b,e,t,LG,"layout")}function td(e,t){YP($b,e,t,NG,"visual")}var r4=[];function YP(e,t,n,r,i){if((Gt(t)||Rt(t))&&(n=t,t=r),!(In(r4,n)>=0)){r4.push(n);var o=SG.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function YG(e,t){PI[e]=t}function iwe(e,t,n){var r=NSe("registerMap");r&&r(e,t,n)}var owe=P_e;td(GP,Zbe);td(yw,qbe);td(yw,Jbe);td(GP,fSe);td(yw,dSe);td(kG,DSe);jG(yG);XG($Se,Xbe);YG("default",Qbe);hp({type:Mf,event:Mf,update:Mf},ho);hp({type:m1,event:m1,update:m1},ho);hp({type:mg,event:mg,update:mg},ho);hp({type:y1,event:y1,update:y1},ho);hp({type:yg,event:yg,update:yg},ho);WG("light",uSe);WG("dark",TG);var i4=[],awe={registerPreprocessor:jG,registerProcessor:XG,registerPostInit:ewe,registerPostUpdate:twe,registerUpdateLifecycle:XP,registerAction:hp,registerCoordinateSystem:nwe,registerLayout:rwe,registerVisual:td,registerTransform:owe,registerLoading:YG,registerMap:iwe,registerImpl:LSe,PRIORITY:XSe,ComponentModel:An,ComponentView:Os,SeriesModel:Yu,ChartView:As,registerComponentModel:function(e){An.registerClass(e)},registerComponentView:function(e){Os.registerClass(e)},registerSeriesModel:function(e){Yu.registerClass(e)},registerChartView:function(e){As.registerClass(e)},registerSubTypeDefaulter:function(e,t){An.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ebe(e,t)}};function Ku(e){if(ft(e)){ee(e,function(t){Ku(t)});return}In(i4,e)>=0||(i4.push(e),Gt(e)&&(e={install:e}),e.install(awe))}var swe=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(An),lwe=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),MI=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ya).models[0]},t.type="cartesian2dAxis",t}(An);Ns(MI,lwe);var KG={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},uwe=Sn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},KG),KP=Sn({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},KG),cwe=Sn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},KP),fwe=En({logBase:10},KP);const dwe={category:uwe,value:KP,time:cwe,log:fwe};var hwe=0,OI=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++hwe}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Dt(r,pwe);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!_t(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Zt(this.categories))},e}();function pwe(e){return Rt(e)&&e.value!=null?e.value:e+""}var vwe={value:1,category:1,time:1,log:1};function o4(e,t,n,r){ee(vwe,function(i,o){var a=Sn(Sn({},dwe[o],!0),r,!0),s=function(l){st(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=hm(this),h=d?mw(c):{},v=f.getTheme();Sn(c,v.get(o+"Axis")),Sn(c,this.getDefaultOption()),c.type=a4(c),d&&Jh(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=OI.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",a4)}function a4(e){return e.type||(e.data?"category":"value")}var $s=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();KS($s);function DI(e){return e.type==="interval"||e.type==="log"}function gwe(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=L8(o/t);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=ZG(a),l=i.niceTickExtent=[Cr(Math.ceil(e[0]/a)*a,s),Cr(Math.floor(e[1]/a)*a,s)];return mwe(l,e),i}function JT(e){var t=Math.pow(10,cP(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Cr(n*t)}function ZG(e){return pl(e)+2}function s4(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function mwe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s4(e,0,t),s4(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function _w(e,t){return e>=t[0]&&e<=t[1]}function bw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Sw(e,t){return e*(t[1]-t[0])+t[0]}var ZP=function(e){st(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new OI({})),ft(i)&&(i=new OI({categories:Dt(i,function(o){return Rt(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:_t(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),_w(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),bw(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(Sw(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var u=r[a];i[a]=u,o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i.push(c),o[c]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}($s);$s.registerClass(ZP);var Hc=Cr,pp=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return _w(n,this._extent)},t.prototype.normalize=function(n){return bw(n,this._extent)},t.prototype.scale=function(n){return Sw(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=ZG(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<o[0]&&(n?s.push({value:Hc(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Hc(u+r,a),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:Hc(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<r.length;a++){for(var s=r[a],l=r[a-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=Hc(l.value+(u+1)*d);h>o[0]&&h<o[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=pl(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=Hc(n.value,i,!0);return Vz(o)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=gwe(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval;n.fixMin||(r[0]=Hc(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=Hc(Math.ceil(r[1]/a)*a))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}($s);$s.registerClass(pp);var ywe=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},qG=function(e){st(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return fw(n.value,z5[c_e(Sh(this._minLevelUnit))]||z5.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return f_e(n,r,i,a,o)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=Twe(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=fa,r[1]+=fa),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-fa}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=f_.length,l=Math.min(ywe(f_,this._approxInterval,0,s),s-1);this._interval=f_[l][1],this._minLevelUnit=f_[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Qn(n)?n:+Ol(n)},t.prototype.contain=function(n){return _w(this.parse(n),this._extent)},t.prototype.normalize=function(n){return bw(this.parse(n),this._extent)},t.prototype.scale=function(n){return Sw(n,this._extent)},t.type="time",t}(pp),f_=[["second",NP],["minute",kP],["hour",Sg],["quarter-day",Sg*6],["half-day",Sg*12],["day",fa*1.2],["half-week",fa*3.5],["week",fa*7],["month",fa*31],["quarter",fa*95],["half-year",H5/2],["year",H5]];function _we(e,t,n,r){var i=Ol(t),o=Ol(n),a=function(v){return G5(i,v,r)===G5(o,v,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")},h=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function bwe(e,t){return e/=fa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Swe(e){var t=30*fa;return e/=t,e>6?6:e>3?3:e>2?2:1}function wwe(e){return e/=Sg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function l4(e,t){return e/=t?kP:NP,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function xwe(e){return L8(e)}function Cwe(e,t,n){var r=new Date(e);switch(Sh(t)){case"year":case"month":r[Lz(n)](0);case"day":r[Nz(n)](1);case"hour":r[kz(n)](0);case"minute":r[Fz(n)](0);case"second":r[$z(n)](0),r[Bz(n)](0)}return r.getTime()}function Twe(e,t,n,r){var i=1e4,o=Oz,a=0;function s(M,P,D,k,$,W,N){for(var K=new Date(P),X=P,ae=K[k]();X<D&&X<=r[1];)N.push({value:X}),ae+=M,K[$](ae),X=K.getTime();N.push({value:X,notAdd:!0})}function l(M,P,D){var k=[],$=!P.length;if(!_we(Sh(M),r[0],r[1],n)){$&&(P=[{value:Cwe(new Date(r[0]),M,n)},{value:r[1]}]);for(var W=0;W<P.length-1;W++){var N=P[W].value,K=P[W+1].value;if(N!==K){var X=void 0,ae=void 0,ge=void 0,ye=!1;switch(M){case"year":X=Math.max(1,Math.round(t/fa/365)),ae=FP(n),ge=d_e(n);break;case"half-year":case"quarter":case"month":X=Swe(t),ae=wh(n),ge=Lz(n);break;case"week":case"half-week":case"day":X=bwe(t),ae=dw(n),ge=Nz(n),ye=!0;break;case"half-day":case"quarter-day":case"hour":X=wwe(t),ae=dm(n),ge=kz(n);break;case"minute":X=l4(t,!0),ae=hw(n),ge=Fz(n);break;case"second":X=l4(t,!1),ae=pw(n),ge=$z(n);break;case"millisecond":X=xwe(t),ae=vw(n),ge=Bz(n);break}s(X,N,K,ae,ge,ye,k),M==="year"&&D.length>1&&W===0&&D.unshift({value:D[0].value-X})}}for(var W=0;W<k.length;W++)D.push(k[W]);return k}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&a++<i;++h){var v=Sh(o[h]);if(u_e(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?Sh(o[h+1]):null;if(v!==m){if(c.length){d=f,c.sort(function(M,P){return M.value-P.value});for(var _=[],y=0;y<c.length;++y){var S=c[y].value;(y===0||c[y-1].value!==S)&&(_.push(c[y]),S>=r[0]&&S<=r[1]&&f++)}var b=(r[1]-r[0])/t;if(f>b*1.5&&d>b/1.5||(u.push(_),f>b||e===o[h]))break}c=[]}}}for(var w=Yr(Dt(u,function(M){return Yr(M,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(M){return M.length>0}),T=[],C=w.length-1,h=0;h<w.length;++h)for(var E=w[h],R=0;R<E.length;++R)T.push({value:E[R].value,level:C-h});T.sort(function(M,P){return M.value-P.value});for(var I=[],h=0;h<T.length;++h)(h===0||T[h].value!==T[h-1].value)&&I.push(T[h]);return I}$s.registerClass(qG);var u4=$s.prototype,Eg=pp.prototype,Ewe=Cr,Awe=Math.floor,Iwe=Math.ceil,d_=Math.pow,Na=Math.log,qP=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new pp,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=Eg.getTicks.call(this,n);return Dt(a,function(s){var l=s.value,u=Cr(d_(this.base,l));return u=l===i[0]&&this._fixMin?h_(u,o[0]):u,u=l===i[1]&&this._fixMax?h_(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var i=Na(this.base);n=Na(Math.max(0,n))/i,r=Na(Math.max(0,r))/i,Eg.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=u4.getExtent.call(this);r[0]=d_(n,r[0]),r[1]=d_(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=h_(r[0],o[0])),this._fixMax&&(r[1]=h_(r[1],o[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Na(n[0])/Na(r),n[1]=Na(n[1])/Na(r),u4.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=bme(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Cr(Iwe(r[0]/o)*o),Cr(Awe(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Eg.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Na(n)/Na(this.base),_w(n,this._extent)},t.prototype.normalize=function(n){return n=Na(n)/Na(this.base),bw(n,this._extent)},t.prototype.scale=function(n){return n=Sw(n,this._extent),d_(this.base,n)},t.type="log",t}($s),JG=qP.prototype;JG.getMinorTicks=Eg.getMinorTicks;JG.getLabel=Eg.getLabel;function h_(e,t){return Ewe(e,pl(t))}$s.registerClass(qP);var Rwe=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;Gt(a)?this._modelMinNum=p_(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=p_(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(Gt(s)?this._modelMaxNum=p_(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=p_(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=ft(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Xf(u[0],1),Xf(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:n-o[0]*a),l==null&&(l=t?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=vb(s)||vb(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Mwe[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Pwe[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Pwe={min:"_determinedMin",max:"_determinedMax"},Mwe={min:"_dataMin",max:"_dataMax"};function Owe(e,t,n){var r=e.rawExtentInfo;return r||(r=new Rwe(e,t,n),e.rawExtentInfo=r,r)}function p_(e,t){return t==null?null:vb(t)?NaN:e.parse(t)}function QG(e,t){var n=e.type,r=Owe(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=H1e("bar",a),l=!1;if(ee(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=G1e(s),c=Dwe(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Dwe(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=j1e(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;ee(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;ee(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function c4(e,t){var n=t,r=QG(e,n),i=r.extent,o=n.get("splitNumber");e instanceof qP&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Lwe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ZP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new qG({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new($s.getClass(t)||pp)}}function Nwe(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function vp(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}}(t):_t(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):Gt(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(JP(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function JP(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function kwe(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof ZP?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=vp(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=r?r[c]:{value:o[0]+c},d=s(f,c),h=a.getTextRect(d),v=Fwe(h,a.get("rotate")||0);l?l.union(v):l=v}return l}}function Fwe(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new wn(e.x,e.y,o,a);return s}function QP(e){var t=e.get("interval");return t??"auto"}function e7(e){return e.type==="category"&&QP(e.getLabelModel())===0}function $we(e,t){var n={};return ee(e.mapDimensionsAll(t),function(r){n[H0e(e,r)]=!0}),Jn(n)}var Bwe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Dt(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Yr(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),LI=["x","y"];function f4(e){return e.type==="interval"||e.type==="time"}var Vwe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=LI,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!f4(n)||!f4(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,h=a[1]-o[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=oP([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new wn(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return ma(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return ma(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new wn(o,a,s,l)},t}(Bwe),ym=Dr();function t7(e,t){var n=Dt(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Uwe(e){var t=e.getLabelModel().get("customValues");if(t){var n=vp(e),r=e.scale.getExtent(),i=t7(e,t),o=Yr(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Dt(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?zwe(e):Wwe(e)}function Hwe(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=t7(e,n);return{ticks:Yr(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?Gwe(e,t):{ticks:Dt(e.scale.getTicks(),function(o){return o.value})}}function zwe(e){var t=e.getLabelModel(),n=n7(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function n7(e,t){var n=r7(e,"labels"),r=QP(t),i=i7(n,r);if(i)return i;var o,a;return Gt(r)?o=s7(e,r):(a=r==="auto"?jwe(e):r,o=a7(e,a)),o7(n,r,{labels:o,labelCategoryInterval:a})}function Gwe(e,t){var n=r7(e,"ticks"),r=QP(t),i=i7(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Gt(r))o=s7(e,r,!0);else if(r==="auto"){var s=n7(e,e.getLabelModel());a=s.labelCategoryInterval,o=Dt(s.labels,function(l){return l.tickValue})}else a=r,o=a7(e,a,!0);return o7(n,r,{ticks:o,tickCategoryInterval:a})}function Wwe(e){var t=e.scale.getTicks(),n=vp(e);return{labels:Dt(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function r7(e,t){return ym(e)[t]||(ym(e)[t]=[])}function i7(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function o7(e,t,n){return e.push({key:t,value:n}),n}function jwe(e){var t=ym(e).autoInterval;return t??(ym(e).autoInterval=e.calculateCategoryInterval())}function Xwe(e){var t=Ywe(e),n=vp(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,_=aP(n({value:l}),t.font,"center","top");v=_.width*1.3,m=_.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var y=d/c,S=h/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(y,S))),w=ym(e.model),T=e.getExtent(),C=w.lastAutoInterval,E=w.lastTickCount;return C!=null&&E!=null&&Math.abs(C-b)<=1&&Math.abs(E-a)<=1&&C>b&&w.axisExtent0===T[0]&&w.axisExtent1===T[1]?b=C:(w.lastTickCount=a,w.lastAutoInterval=b,w.axisExtent0=T[0],w.axisExtent1=T[1]),b}function Ywe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function a7(e,t,n){var r=vp(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=e7(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(_){var y={value:_};s.push(n?_:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:_})}return s}function s7(e,t,n){var r=e.scale,i=vp(e),o=[];return ee(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var d4=[0,1],Kwe=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return mme(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),h4(r,i.count())),JF(t,d4,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),h4(r,i.count()));var o=JF(t,r,d4,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Hwe(this,n),i=r.ticks,o=Dt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Zwe(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=Dt(r,function(o){return Dt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Uwe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return Xwe(this)},e}();function h4(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Zwe(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;ee(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s,tickValue:c[1]+1},t.push(a)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&d(a.coord,o[1])&&t.push({coord:o[1]});function d(h,v){return h=Cr(h),v=Cr(v),f?h>v:h<v}}var qwe=function(e){st(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(Kwe);function NI(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=a?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),am(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function p4(e){return e.get("coordinateSystem")==="cartesian2d"}function v4(e){var t={xAxisModel:null,yAxisModel:null};return ee(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ya).models[0];t[r]=o}),t}var QT=Math.log;function Jwe(e,t,n){var r=pp.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=QG(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=QT(e.base);u=[QT(u[0])/d,QT(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=r.getInterval.call(e),m=u[0],_=u[1];if(c&&f)v=(_-m)/a;else if(c)for(_=u[0]+v*a;_<u[1]&&isFinite(_)&&isFinite(u[1]);)v=JT(v),_=u[0]+v*a;else if(f)for(m=u[1]-v*a;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=JT(v),m=u[1]-v*a;else{var y=e.getTicks().length-1;y>a&&(v=JT(v));var S=v*a;_=Math.ceil(u[1]/v)*v,m=Cr(_-S),m<0&&u[0]>=0?(m=0,_=Cr(S)):_>0&&u[1]<=0&&(_=0,m=-Cr(S))}var b=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+v*b,_+v*w),r.setInterval.call(e,v),(b||w)&&r.setNiceExtent.call(e,m+v,_-v)}var Qwe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=LI,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=Jn(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=a[d],v=h.model,m=h.scale;DI(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(c4(m,v),DI(m)&&(s=h))}c.length&&(s||(s=c.pop(),c4(s.scale,s.model)),ee(c,function(_){Jwe(_.scale,_.model,s.scale)}))}}i(r.x),i(r.y);var o={};ee(r.x,function(a){g4(r,"y",a,o)}),ee(r.y,function(a){g4(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=Mb(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(ee(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=kwe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),ee(this._coordsList,function(u){u.calcAffineTransform()});function l(){ee(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),exe(u,c?a.x:a.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Rt(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Ya).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",Ya).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,In(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ee(s.x,function(c,f){ee(s.y,function(d,h){var v="x"+f+"y"+h,m=new Vwe(v);m.master=i,m.model=t,i._coordsMap[v]=m,i._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(eE(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var v=new qwe(c,Lwe(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){ee(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(p4(i)){var o=v4(i),a=o.xAxisModel,s=o.yAxisModel;if(!eE(a,n)||!eE(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(i,o){ee($we(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return ee(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);In(n,o)<0&&n.push(o),In(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(i){if(p4(i)){var o=v4(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},e.dimensions=LI,e}();function eE(e,t){return e.getCoordSysModel()===t}function g4(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)m4(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&m4(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function m4(e){return e&&e.type!=="category"&&e.type!=="time"&&Nwe(e)}function exe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}var Mu=Math.PI,Bu=function(){function e(t,n){this.group=new wi,this.opt=n,this.axisModel=t,En(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new wi({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!y4[t]},e.prototype.add=function(t){y4[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=D8(n-t),o,a;return wb(i)?(a=r>0?"top":"bottom",o="center"):wb(i-Mu)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<Mu?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),y4={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ma(s,s,a),ma(l,l,a));var c=qe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ju({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});cm(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);_t(d)&&(d=[d,d]),(_t(h)||Qn(h))&&(h=[h,h]);var v=Zz(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],_=h[1];ee([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,S){if(d[S]!=="none"&&d[S]!=null){var b=Qh(d[S],-m/2,-_/2,m,_,c.stroke,!0),w=y.r+y.offset,T=u?l:s;b.attr({rotation:y.rotate,x:T[0]+w*Math.cos(e.rotation),y:T[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabel:function(e,t,n,r){var i=rxe(n,r,t,e),o=oxe(n,r,t,e);if(nxe(t,o,i),ixe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Z1e(Dt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));q1e(a)}},axisName:function(e,t,n,r){var i=am(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,b4(o)?e.labelOffset+a*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Mu/180);var v;b4(o)?d=Bu.innerTextLayout(e.rotation,h??e.rotation,a):(d=txe(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),_=t.get("nameTruncate",!0)||{},y=_.ellipsis,S=am(e.nameTruncateMaxWidth,_.maxWidth,v),b=new yo({x:f[0],y:f[1],rotation:d.rotation,silent:Bu.isLabelSilent(t),style:Zh(s,{text:i,font:m,overflow:"truncate",width:S,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(aw({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=Bu.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Dn(b).eventData=w}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function txe(e,t,n,r){var i=D8(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return wb(i-Mu/2)?(a=l?"bottom":"top",o="center"):wb(i-Mu*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<Mu*1.5&&i>Mu/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function nxe(e,t,n){if(!e7(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(Qo(o),Qo(u)):_4(o,a)&&(r?(Qo(a),Qo(c)):(Qo(o),Qo(u))),i===!1?(Qo(s),Qo(f)):_4(l,s)&&(i?(Qo(l),Qo(d)):(Qo(s),Qo(f)))}}function Qo(e){e&&(e.ignore=!0)}function _4(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=rP([]);return iP(i,i,-e.rotation),n.applyTransform(mh([],i,e.getLocalTransform())),r.applyTransform(mh([],i,t.getLocalTransform())),n.intersect(r)}}function b4(e){return e==="middle"||e==="center"}function l7(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(ma(a,a,t),ma(s,s,t));var c=new ju({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});cm(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function rxe(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=l7(u,t.transform,l,En(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function ixe(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=En(s.getLineStyle(),En(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=l7(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function oxe(e,t,n,r){var i=n.axis,o=am(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(am(r.labelRotate,a.get("rotate"))||0)*Mu/180,c=Bu.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Bu.isLabelSilent(n),v=n.get("triggerEvent");return ee(l,function(m,_){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,S=m.formattedLabel,b=m.rawLabel,w=a;if(f&&f[y]){var T=f[y];Rt(T)&&T.textStyle&&(w=new ur(T.textStyle,a,n.ecModel))}var C=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(y),R=w.getShallow("align",!0)||c.textAlign,I=an(w.getShallow("alignMinLabel",!0),R),M=an(w.getShallow("alignMaxLabel",!0),R),P=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,D=an(w.getShallow("verticalAlignMinLabel",!0),P),k=an(w.getShallow("verticalAlignMaxLabel",!0),P),$=new yo({x:E,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Zh(w,{text:S,align:_===0?I:_===l.length-1?M:R,verticalAlign:_===0?D:_===l.length-1?k:P,fill:Gt(C)?C(i.type==="category"?b:i.type==="value"?y+"":y,_):C})});if($.anid="label_"+y,aw({el:$,componentModel:n,itemName:S,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:b,tickIndex:_}}),v){var W=Bu.makeAxisEventDataBase(n);W.targetType="axisLabel",W.value=b,W.tickIndex=_,i.type==="category"&&(W.dataIndex=y),Dn($).eventData=W}t.add($),$.updateTransform(),d.push($),e.add($),$.decomposeTransform()}),d}}function axe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sxe(n,e,t),n.seriesInvolved&&uxe(n,e),n}function sxe(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];ee(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=_m(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(ee(s.getAxes(),Br(m,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&ee(v.baseAxes,Br(m,h?"cross":!0,d)),h&&ee(v.otherAxes,Br(m,"cross",!1))}function m(_,y,S){var b=S.model.getModel("axisPointer",i),w=b.get("show");if(!(!w||w==="auto"&&!_&&!kI(b))){y==null&&(y=b.get("triggerTooltip")),b=_?lxe(S,f,i,t,_,y):b;var T=b.get("snap"),C=b.get("triggerEmphasis"),E=_m(S.model),R=y||T||S.type==="category",I=e.axesInfo[E]={key:E,axis:S,coordSys:s,axisPointerModel:b,triggerTooltip:y,triggerEmphasis:C,involveSeries:R,snap:T,useHandle:kI(b),seriesModels:[],linkGroup:null};u[E]=I,e.seriesInvolved=e.seriesInvolved||R;var M=cxe(o,S);if(M!=null){var P=a[M]||(a[M]={axesInfo:{}});P.axesInfo[E]=I,P.mapper=o[M].mapper,I.linkGroup=P}}}})}function lxe(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};ee(s,function(d){l[d]=cn(a.get(d))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=a.get("crossStyle");f&&En(u,f.textStyle)}}return e.model.getModel("axisPointer",new ur(l,n,r))}function uxe(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||ee(e.coordSysAxesInfo[_m(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function cxe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(tE(o[r+"AxisId"],n.id)||tE(o[r+"AxisIndex"],n.componentIndex)||tE(o[r+"AxisName"],n.name))return i}}function tE(e,t){return e==="all"||ft(e)&&In(e,t)>=0||e===t}function fxe(e){var t=eM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=kI(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function eM(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[_m(e)]}function dxe(e){var t=eM(e);return t&&t.axisPointerModel}function kI(e){return!!e.get(["handle","show"])}function _m(e){return e.type+"||"+e.id}var S4={},u7=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.axisPointerClass&&fxe(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=dxe(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){S4[n]=r},t.getAxisPointerClass=function(n){return n&&S4[n]},t.type="axis",t}(Os),FI=Dr();function hxe(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=FI(e).splitAreaColors,d=Zt(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var _=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=ft(s)?s:[s];for(var v=1;v<u.length;v++){var S=i.toGlobalCoord(u[v].coord),b=void 0,w=void 0,T=void 0,C=void 0;i.isHorizontal()?(b=_,w=l.y,T=S-b,C=l.height,_=b+T):(b=l.x,w=_,T=l.width,C=S-w,_=w+C);var E=u[v-1].tickValue;E!=null&&d.set(E,h),t.add(new qr({anid:E!=null?"area_"+E:null,shape:{x:b,y:w,width:T,height:C},style:En({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}FI(e).splitAreaColors=d}}}function pxe(e){FI(e).splitAreaColors=null}var vxe=["axisLine","axisTickLabel","axisName"],gxe=["splitArea","splitLine","minorSplitLine"],c7=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new wi,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=NI(s,n),u=new Bu(n,qe({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(DI(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));ee(vxe,u.add,u),this._axisGroup.add(u.getGroup()),ee(gxe,function(f){n.get([f,"show"])&&mxe[f](this,this._axisGroup,n,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||oz(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){pxe(this)},t.type="cartesianAxis",t}(u7),mxe={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;s=ft(s)?s:[s];for(var c=r.coordinateSystem.getRect(),f=i.isHorizontal(),d=0,h=i.getTicksCoords({tickModel:o}),v=[],m=[],_=a.getLineStyle(),y=0;y<h.length;y++){var S=i.toGlobalCoord(h[y].coord);if(!(y===0&&!l||y===h.length-1&&!u)){var b=h[y].tickValue;f?(v[0]=S,v[1]=c.y,m[0]=S,m[1]=c.y+c.height):(v[0]=c.x,v[1]=S,m[0]=c.x+c.width,m[1]=S);var w=d++%s.length,T=new ju({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:En({stroke:s[w]},_),silent:!0});cm(T.shape,_.lineWidth),t.add(T)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=a.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var m=i.toGlobalCoord(u[h][v].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var _=new ju({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});cm(_.shape,d.lineWidth),t.add(_)}},splitArea:function(e,t,n,r){hxe(e,t,n,r)}},f7=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(c7),yxe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=f7.type,n}return t.type="yAxis",t}(c7),_xe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new qr({shape:n.coordinateSystem.getRect(),style:En({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Os),w4={offset:0};function bxe(e){e.registerComponentView(_xe),e.registerComponentModel(swe),e.registerCoordinateSystem("cartesian2d",Qwe),o4(e,"x",MI,w4),o4(e,"y",MI,w4),e.registerComponentView(f7),e.registerComponentView(yxe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Jc=Dr(),x4=cn,nE=Zn,Sxe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new wi,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Br(C4,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}E4(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=eM(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=Jc(t).pointerEl=new Zye[o.type](x4(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Jc(t).labelEl=new yo(x4(n.label));t.add(o),T4(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Jc(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=Jc(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),T4(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=EP(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){lG(u.event)},onmousedown:nE(this._onHandleDragMove,this,0,0),drift:nE(this._onHandleDragMove,this),ondragend:nE(this._onHandleDragEnd,this)}),r.add(i)),E4(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ft(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sG(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){C4(this._axisPointerModel,!n&&this._moveAnimation,this._handle,rE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(rE(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(rE(i)),Jc(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),bI(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function C4(e,t,n,r){d7(Jc(n).lastProp,r)||(Jc(n).lastProp=r,t?Xu(n,r,e):(n.stopAnimation(),n.attr(r)))}function d7(e,t){if(Rt(e)&&Rt(t)){var n=!0;return ee(t,function(r,i){n=n&&d7(e[i],r)}),!!n}else return e===t}function T4(e,t){e[t.get(["label","show"])?"show":"hide"]()}function rE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function E4(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function wxe(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function xxe(e,t,n,r,i){var o=n.get("value"),a=h7(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=gw(s.get("padding")||0),u=s.getFont(),c=aP(a,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=i.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),Cxe(f,d,h,r);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Zh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function Cxe(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function h7(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:JP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ee(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),_t(a)?o=a.replace("{value}",o):Gt(a)&&(o=a(s))}return o}function p7(e,t,n){var r=gh();return iP(r,r,n.rotation),GA(r,r,n.position),TP([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Txe(e,t,n,r,i,o){var a=Bu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),xxe(t,r,i,o,{position:p7(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Exe(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Axe(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Ixe=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=A4(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=wxe(o),h=Rxe[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=NI(l.model,i);Txe(r,n,v,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=NI(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=p7(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=A4(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(Sxe);function A4(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Rxe={line:function(e,t,n){var r=Exe([t,n[0]],[t,n[1]],I4(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Axe([t-r/2,n[0]],[r,i],I4(e))}}};function I4(e){return e.dim==="x"?0:1}var Pxe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(An),vl=Dr(),Mxe=ee;function v7(e,t,n){if(!Nt.node){var r=t.getZr();vl(r).records||(vl(r).records={}),Oxe(r,t);var i=vl(r).records[e]||(vl(r).records[e]={});i.handler=n}}function Oxe(e,t){if(vl(e).initialized)return;vl(e).initialized=!0,n("click",Br(R4,"click")),n("mousemove",Br(R4,"mousemove")),n("globalout",Lxe);function n(r,i){e.on(r,function(o){var a=Nxe(t);Mxe(vl(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Dxe(a.pendings,t)})}}function Dxe(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Lxe(e,t,n){e.handler("leave",null,n)}function R4(e,t,n,r){t.handler(e,n,r)}function Nxe(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function $I(e,t){if(!Nt.node){var n=t.getZr(),r=(vl(n).records||{})[e];r&&(vl(n).records[e]=null)}}var kxe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";v7("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){$I("axisPointer",r)},t.prototype.dispose=function(n,r){$I("axisPointer",r)},t.type="axisPointer",t}(Os);function g7(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Kf(o,e);if(a==null||a<0||ft(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Dt(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),n=[_.x+_.width/2,_.y+_.height/2]}return{point:n,el:s}}var P4=Dr();function Fxe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Zn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){E1(i)&&(i=g7({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=E1(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||E1(i),d={},h={},v={list:[],map:{}},m={showPointer:Br(Bxe,h),showTooltip:Br(Vxe,v)};ee(s.coordSysMap,function(y,S){var b=l||y.containPoint(i);ee(s.coordSysAxesInfo[S],function(w,T){var C=w.axis,E=Gxe(u,w);if(!f&&b&&(!u||E)){var R=E&&E.value;R==null&&!l&&(R=C.pointToData(i)),R!=null&&M4(w,R,m,!1,d)}})});var _={};return ee(c,function(y,S){var b=y.linkGroup;b&&!h[S]&&ee(b.axesInfo,function(w,T){var C=h[T];if(w!==y&&C){var E=C.value;b.mapper&&(E=y.axis.scale.parse(b.mapper(E,O4(w),O4(y)))),_[y.key]=E}})}),ee(_,function(y,S){M4(c[S],y,m,!0,d)}),Uxe(h,c,d),Hxe(v,i,e,a),zxe(c,a,n),d}}function M4(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=$xe(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&qe(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function $xe(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return ee(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,m=Math.abs(v);m<=a&&((m<a||v>=0&&s<0)&&(a=m,s=v,i=f,o.length=0),ee(d,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:i}}function Bxe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Vxe(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=_m(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Uxe(e,t,n){var r=n.axesInfo=[];ee(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Hxe(e,t,n,r){if(E1(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function zxe(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=P4(r)[i]||{},a=P4(r)[i]={};ee(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&ee(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;a[h]=d})});var s=[],l=[];ee(o,function(u,c){!a[c]&&l.push(u)}),ee(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Gxe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function O4(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function E1(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function m7(e){u7.registerAxisPointerClass("CartesianAxisPointer",Ixe),e.registerComponentModel(Pxe),e.registerComponentView(kxe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ft(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=axe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Fxe)}function Wxe(e){Ku(bxe),Ku(m7)}function jxe(e,t){var n=gw(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new qr({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Xxe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(An);function y7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function _7(e){if(Nt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var b7=_7(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Yxe=_7(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function S7(e,t){if(!e)return t;t=Uz(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function Kxe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var Zxe=S7(Yxe,"transition"),tM=S7(b7,"transform"),qxe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Nt.transform3dSupported?"will-change:transform;":"");function Jxe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Qxe(e,t,n){if(!_t(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Zf(t);var o=Jxe(n),a=Math.max(Math.round(i)*1.5,6),s="",l=tM+":",u;In(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+h+"px";var v=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'<div style="'+m.join("")+'"></div>'}function eCe(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Nt.transformSupported?","+tM+r:",left"+r+",top"+r),Zxe+":"+i}function D4(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Nt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Nt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+tM+":"+a+";":[["top",0],["left",0],[b7,a]]}function tCe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=an(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),ee(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function nCe(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=Kz(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(eCe(i,n)),o&&r.push("background-color:"+o),ee(["width","color","radius"],function(h){var v="border-"+h,m=Uz(v),_=e.get(m);_!=null&&r.push(v+":"+_+(h==="color"?"":"px"))}),r.push(tCe(c)),f!=null&&r.push("padding:"+gw(f).join("px ")+"px"),r.join(";")+";"}function L4(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Q0e(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var rCe=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Nt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(_t(o)?document.querySelector(o):om(o)?o:Gt(o)&&o(t.getDom()));L4(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();ta(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Kxe(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=qxe+nCe(t,!this._firstShow,this._longHide)+D4(o[0],o[1],!0)+("border-color:"+Zf(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(_t(o)&&r.get("trigger")==="item"&&!y7(r)&&(s=Qxe(r,i,o)),_t(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ft(t)||(t=[t]);for(var l=0;l<t.length;l++)om(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(L4(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=D4(r[0],r[1]);ee(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Nt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Zn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),iCe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),k4(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;Rt(t)&&io(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new yo({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Kz(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),ee(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),ee(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=N4(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;k4(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=uu(o.borderWidth||0),s=N4(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Zn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function uu(e){return Math.max(0,e)}function N4(e){var t=uu(e.shadowBlur||0),n=uu(e.shadowOffsetX||0),r=uu(e.shadowOffsetY||0);return{left:uu(t-n),right:uu(t+n),top:uu(t-r),bottom:uu(t+r)}}function k4(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var oCe=new qr({shape:{x:-1,y:-1,width:2,height:2}}),aCe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(Nt.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=Nme(i.get("renderMode"));this._tooltipContent=o==="richText"?new iCe(r):new rCe(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(Nt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?sG(this,"_updatePosition",50,"fixRate"):bI(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");v7("itemTooltip",this._api,Zn(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||Nt.node||!i.getDom())){var a=F4(o,i);this._ticket="";var s=o.dataByCoordSys,l=cCe(o,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=oCe;c.x=o.x,c.y=o.y,c.update(),Dn(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=g7(o,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(F4(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=gv([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=Dn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Fv(i,function(c){if(Dn(c).dataIndex!=null)return l=c,!0;if(Dn(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Zn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=gv([r.tooltipOption],o),l=this._renderMode,u=[],c=pm("section",{blocks:[],noHeader:!0}),f=[],d=new RT;ee(n,function(S){ee(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),T=b.value;if(!(!w||T==null)){var C=h7(T,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),E=pm("section",{header:C,noHeader:!Ss(C),sortBlocks:!0,blocks:[]});c.blocks.push(E),ee(b.seriesDataIndices,function(R){var I=i.getSeriesByIndex(R.seriesIndex),M=R.dataIndexInside,P=I.getDataParams(M);if(!(P.dataIndex<0)){P.axisDim=b.axisDim,P.axisIndex=b.axisIndex,P.axisType=b.axisType,P.axisId=b.axisId,P.axisValue=JP(w.axis,{value:T}),P.axisValueLabel=C,P.marker=d.makeTooltipMarker("item",Zf(P.color),l);var D=X5(I.formatTooltip(M,!0,null)),k=D.frag;if(k){var $=gv([I],o).get("valueFormatter");E.blocks.push($?qe({valueFormatter:$},k):k)}D.text&&f.push(D.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),m=Z5(c,d,l,v,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var _=l==="richText"?`
|
||
|
||
`:"<br/>",y=f.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Dn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),h=this._renderMode,v=n.positionDefault,m=gv([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),_=m.get("trigger");if(!(_!=null&&_!=="item")){var y=u.getDataParams(c,f),S=new RT;y.marker=S.makeTooltipMarker("item",Zf(y.color),h);var b=X5(u.formatTooltip(c,!1,f)),w=m.get("order"),T=m.get("valueFormatter"),C=b.frag,E=C?Z5(T?qe({valueFormatter:T},C):C,S,h,w,o.get("useUTC"),m.get("textStyle")):b.text,R="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,E,y,R,n.offsetX,n.offsetY,n.position,n.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Dn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(_t(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=cn(l),l.content=oo(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,v=gv(f,this._tooltipModel,h?{position:h}:null),m=v.get("content"),_=Math.random()+"",y=new RT;this._showOrMove(v,function(){var S=cn(v.get("formatterParams")||{});this._showTooltipContent(v,m,S,_,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=v.color;if(d)if(_t(d)){var _=n.ecModel.get("useUTC"),y=ft(i)?i[0]:i,S=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,S&&(h=fw(y.axisValue,h,_)),h=Hz(h,i,!0)}else if(Gt(d)){var b=Zn(function(w,T){w===this._ticket&&(f.setContent(T,c,n,m,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,h=d(i,o,b)}else h=d;f.setContent(h,c,n,m,l),f.show(n,m),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ft(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ft(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),d=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Gt(r)&&(r=r([i,o],s,a.el,v,{viewSize:[u,c],contentSize:f.slice()})),ft(r))i=Ni(r[0],u),o=Ni(r[1],c);else if(Rt(r)){var m=r;m.width=f[0],m.height=f[1];var _=Mb(m,{width:u,height:c});i=_.x,o=_.y,d=null,h=null}else if(_t(r)&&l){var y=uCe(r,v,f,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=sCe(i,o,a,u,c,d?null:20,h?null:20);i=y[0],o=y[1]}if(d&&(i-=$4(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=$4(h)?f[1]/2:h==="bottom"?f[1]:0),y7(n)){var y=lCe(i,o,a,u,c);i=y[0],o=y[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&ee(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&ee(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],_=v.seriesDataIndices||[];a=a&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===_.length,a&&ee(m,function(y,S){var b=_[S];a=a&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),o&&ee(d.seriesDataIndices,function(y){var S=y.seriesIndex,b=r[S],w=o[S];b&&w&&w.data!==b.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Nt.node||!r.getDom()||(bI(this,"_updatePosition"),this._tooltipContent.dispose(),$I("itemTooltip",r))},t.type="tooltip",t}(Os);function gv(e,t,n){var r=t.ecModel,i;n?(i=new ur(n,r,r),i=new ur(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof ur&&(a=a.get("tooltip",!0)),_t(a)&&(a={formatter:a}),a&&(i=new ur(a,i,r)))}return i}function F4(e,t){return e.dispatchAction||Zn(t.dispatchAction,t)}function sCe(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function lCe(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function uCe(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function $4(e){return e==="center"||e==="middle"}function cCe(e,t,n){var r=dP(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=qm(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=Dn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function fCe(e){Ku(m7),e.registerComponentModel(Xxe),e.registerComponentView(aCe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ho),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ho)}var dCe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},BI=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ft(r)&&ee(r,function(o,a){_t(o)&&(o={type:o}),r[a]=Sn(o,dCe(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&fP(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Zt(),s=Dt(o,function(l){return(_t(l)||Qn(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new ur(l,this,this.ecModel))},this);this._data=Yr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;ee(o,function(a){r[a.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;ee(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;ee(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&In(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(An),zd=Br,VI=ee,v_=wi,w7=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new v_),this.group.add(this._selectorGroup=new v_),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=n.get("padding"),h=Mb(c,f,d),v=this.layoutInner(n,a,h,o,l,u),m=Mb(En({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jxe(v,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Zt(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),VI(r.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
||
`)){var _=new v_;_.newline=!0,u.add(_);return}var y=i.getSeriesByName(m)[0];if(!c.get(m))if(y){var S=y.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(y,m,v,h,r,n,b,T,w,f,o);C.on("click",zd(B4,m,null,o,d)).on("mouseover",zd(UI,y.name,null,o,d)).on("mouseout",zd(HI,y.name,null,o,d)),i.ssr&&C.eachChild(function(E){var R=Dn(E);R.seriesIndex=y.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),c.set(m,!0)}else i.eachRawSeries(function(E){if(!c.get(m)&&E.legendVisualProvider){var R=E.legendVisualProvider;if(!R.containName(m))return;var I=R.indexOfName(m),M=R.getItemVisual(I,"style"),P=R.getItemVisual(I,"legendIcon"),D=Cl(M.fill);D&&D[3]===0&&(D[3]=.2,M=qe(qe({},M),{fill:qS(D,"rgba")}));var k=this._createItem(E,m,v,h,r,n,{},M,P,f,o);k.on("click",zd(B4,null,m,o,d)).on("mouseover",zd(UI,null,m,o,d)).on("mouseout",zd(HI,null,m,o,d)),i.ssr&&k.eachChild(function($){var W=Dn($);W.seriesIndex=E.seriesIndex,W.dataIndex=v,W.ssrType="legend"}),c.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();VI(n,function(u){var c=u.type,f=new yo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);IP(f,{normal:d,emphasis:h},{defaultText:u.title}),iI(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var h=n.visualDrawType,v=a.get("itemWidth"),m=a.get("itemHeight"),_=a.isSelected(r),y=o.get("symbolRotate"),S=o.get("symbolKeepAspect"),b=o.get("icon");c=b||c||"roundRect";var w=hCe(c,o,l,u,h,_,d),T=new v_,C=o.getModel("textStyle");if(Gt(n.getLegendIcon)&&(!b||b==="inherit"))T.add(n.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var E=b==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;T.add(pCe({itemWidth:v,itemHeight:m,icon:c,iconRotate:E,itemStyle:w.itemStyle,symbolKeepAspect:S}))}var R=s==="left"?v+5:-5,I=s,M=a.get("formatter"),P=r;_t(M)&&M?P=M.replace("{name}",r??""):Gt(M)&&(P=M(r));var D=_?C.getTextColor():o.get("inactiveColor");T.add(new yo({style:Zh(C,{text:P,x:R,y:m/2,fill:D,align:I,verticalAlign:"middle"},{inheritColor:D})}));var k=new qr({shape:T.getBoundingRect(),style:{fill:"transparent"}}),$=o.getModel("tooltip");return $.get("show")&&aw({el:k,componentModel:a,itemName:r,itemTooltipOption:$.option}),T.add(k),T.eachChild(function(W){W.silent=!0}),k.silent=!f,this.getContentGroup().add(T),iI(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wg(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){wg("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),m=n.getOrient().index,_=m===0?"width":"height",y=m===0?"height":"width",S=m===0?"y":"x";s==="end"?h[m]+=c[_]+v:f[m]+=d[_]+v,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[_]=c[_]+v+d[_],b[y]=Math.max(c[y],d[y]),b[S]=Math.min(0,d[S]+h[1-m]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Os);function hCe(e,t,n,r,i,o,a){function s(_,y){_.lineWidth==="auto"&&(_.lineWidth=y.lineWidth>0?2:0),VI(_,function(S,b){_[b]==="inherit"&&(_[b]=y[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:AI(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function pCe(e){var t=e.icon||"roundRect",n=Qh(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function B4(e,t,n,r){HI(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),UI(e,t,n,r)}function x7(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function UI(e,t,n,r){x7(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function HI(e,t,n,r){x7(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function vCe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function mv(e,t,n){var r=e==="allSelect"||e==="inverseSelect",i={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),V4(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){ee(i,function(l,u){s[l?"select":"unSelect"](u)}),V4(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function V4(e,t){var n=t||{};return ee(e.getData(),function(r){var i=r.get("name");if(!(i===`
|
||
`||i==="")){var o=e.isSelected(i);jf(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function gCe(e){e.registerAction("legendToggleSelect","legendselectchanged",Br(mv,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Br(mv,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Br(mv,"inverseSelect")),e.registerAction("legendSelect","legendselected",Br(mv,"select")),e.registerAction("legendUnSelect","legendunselected",Br(mv,"unSelect"))}function C7(e){e.registerComponentModel(BI),e.registerComponentView(w7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,vCe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),gCe(e)}var mCe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var o=mw(n);e.prototype.init.call(this,n,r,i),U4(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),U4(this,this.option,n)},t.type="legend.scroll",t.defaultOption=q0e(BI.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(BI);function U4(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Jh(t,n,{type:"box",ignoreSize:!!i})}var H4=wi,iE=["width","height"],oE=["x","y"],yCe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new H4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new H4)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this;e.prototype.renderInner.call(this,n,r,i,o,a,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=ft(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new yo({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,_){var y=m+"DataIndex",S=EP(r.get("pageIcons",!0)[r.getOrient().name][_],{onclick:Zn(u._pageGo,u,y,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});S.name=m,c.add(S)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=iE[u],f=oE[u],d=iE[1-u],h=oE[1-u];a&&wg("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),_=[-m.x,-m.y],y=cn(i);a&&(y[c]=i[c]-m[c]-v);var S=this._layoutContentAndController(n,o,y,u,c,d,h,f);if(a){if(s==="end")_[u]+=S[c]+v;else{var b=m[c]+v;_[u]-=b,S[f]-=b}S[c]+=m[c]+v,_[1-u]+=S[h]+S[d]/2-m[d]/2,S[d]=Math.max(S[d],m[d]),S[h]=Math.min(S[h],m[h]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return S},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;wg(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),wg("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[a]>i[a],_=[-h.x,-h.y];r||(_[o]=c[u]);var y=[0,0],S=[-v.x,-v.y],b=an(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var w=n.get("pageButtonPosition",!0);w==="end"?S[o]+=i[a]-v[a]:y[o]+=v[a]+b}S[1-o]+=h[s]/2-v[s]/2,c.setPosition(_),f.setPosition(y),d.setPosition(S);var T={x:0,y:0};if(T[a]=m?i[a]:h[a],T[s]=Math.max(h[s],v[s]),T[l]=Math.min(0,v[l]+S[1-o]),f.__rectSize=i[a],m){var C={x:0,y:0};C[a]=Math.max(i[a]-v[a]-b,0),C[s]=T[s],f.setClipPath(new qr({shape:C})),f.__rectSize=C[a]}else d.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(n);return E.pageIndex!=null&&Xu(c,{x:E.contentPosition[0],y:E.contentPosition[1]},m?n:null),this._updatePageInfoView(n,E),T},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;ee(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",_t(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=iE[a],l=oE[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=w(f);v.contentPosition[a]=-m.s;for(var _=u+1,y=m,S=m,b=null;_<=d;++_)b=w(c[_]),(!b&&S.e>y.s+o||b&&!T(b,y.s))&&(S.i>y.i?y=S:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),S=b;for(var _=u-1,y=m,S=m,b=null;_>=-1;--_)b=w(c[_]),(!b||!T(S,b.s))&&y.i<S.i&&(S=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=b;return v;function w(C){if(C){var E=C.getBoundingRect(),R=E[l]+C[l];return{s:R,e:R+E[s],i:C.__legendDataIndex}}}function T(C,E){return C.e>=E&&C.s<=E+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(w7);function _Ce(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function bCe(e){Ku(C7),e.registerComponentModel(mCe),e.registerComponentView(yCe),_Ce(e)}function SCe(e){Ku(C7),Ku(bCe)}function z4(e,t,n){var r=up.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var aE=function(e){st(t,e);function t(n,r,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||bb,typeof n=="string"?a=z4(n,r,i):Rt(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(u8(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=z4("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new wn(0,0,0,0);function c(S){if(!(!S.isFinite()||S.isZero()))if(a.length===0){var b=new wn(0,0,0,0);b.copy(S),a.push(b)}else{for(var w=!1,T=1/0,C=0,E=0;E<a.length;++E){var R=a[E];if(R.intersect(S)){var I=new wn(0,0,0,0);I.copy(R),I.union(S),a[E]=I,w=!0;break}else if(l){u.copy(S),u.union(R);var M=S.width*S.height,P=R.width*R.height,D=u.width*u.height,k=D-M-P;k<T&&(T=k,C=E)}}if(l&&(a[C].union(S),w=!0),!w){var b=new wn(0,0,0,0);b.copy(S),a.push(b)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(i,o,!0,!0),v=d.__isRendered&&(d.__dirty&Ts||!h)?d.getPrevPaintRect():null;v&&c(v);var m=h&&(d.__dirty&Ts||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d&&d.shouldBePainted(i,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var _;do{_=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var y=f+1;y<a.length;)a[f].intersect(a[y])?(_=!0,a[f].union(a[y]),a.splice(y,1)):y++;f++}}while(_);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var h=this.domBack;function v(m,_,y,S){if(a.clearRect(m,_,y,S),r&&r!=="transparent"){var b=void 0;if(XS(r)){var w=r.global||r.__width===y&&r.__height===S;b=w&&r.__canvasGradient||TI(a,r,{x:0,y:0,width:y,height:S}),r.__canvasGradient=b,r.__width=y,r.__height=S}else Ave(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,b=EI(a,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=b||r,a.fillRect(m,_,y,S),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(h,m,_,y,S),a.restore())}!i||u?v(0,0,s,l):i.length&&ee(i,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(ks),G4=1e5,zc=314159,g_=.01,wCe=.001;function xCe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function CCe(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var TCe=function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=qe({},r||{}),this.dpr=r.devicePixelRatio||bb,this._singleCanvas=o,this.root=t;var a=t.style;a&&(u8(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new aE(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[zc]=h,h.zlevel=zc,s.push(zc),this._domRoot=t}else{this._width=l_(t,0,r),this._height=l_(t,1,r);var u=this._domRoot=CCe(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(G4)),o||(o=r.ctx,o.save()),cf(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(G4)},e.prototype.paintOne=function(t,n){RG(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Db(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(zc).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,d=function(m){var _=o[m],y=_.ctx,S=a&&_.createRepaintRects(t,n,h._width,h._height),b=r?_.__startIndex:_.__drawIndex,w=!r&&_.incremental&&Date.now,T=w&&Date.now(),C=_.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,C,S);else if(b===_.__startIndex){var E=t[b];(!E.incremental||!E.notClear||r)&&_.clear(!1,C,S)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=_.__startIndex);var R,I=function(k){var $={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(R=b;R<_.__endIndex;R++){var W=t[R];if(W.__inHover&&(f=!0),i._doPaintEl(W,_,a,k,$,R===_.__endIndex-1),w){var N=Date.now()-T;if(N>15)break}}$.prevElClipPaths&&y.restore()};if(S)if(S.length===0)R=_.__endIndex;else for(var M=h.dpr,P=0;P<S.length;++P){var D=S[P];y.save(),y.beginPath(),y.rect(D.x*M,D.y*M,D.width*M,D.height*M),y.clip(),I(D),y.restore()}else y.save(),I(),y.restore();_.__drawIndex=R,_.__drawIndex<_.__endIndex&&(c=!1)},h=this,v=0;v<o.length;v++)d(v);return Nt.wxa&&ee(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,i,o,a){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(cf(s,t,o,a),t.setPrevPaintRect(l))}else cf(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=zc);var r=this._layers[t];return r||(r=new aE("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Sn(r,this._layerConfig[t],!0):this._layerConfig[t-g_]&&Sn(r,this._layerConfig[t-g_],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&xCe(n)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+wCe,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?g_:0),this._needsManuallyCompositing),c.__builtin__||eP("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&Ts&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ee(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Sn(r[t],n,!0):r[t]=n;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+g_){var a=this._layers[o];Sn(a,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(In(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=l_(o,0,i),n=l_(o,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(zc).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[zc].dom;var n=new aE("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,i,o):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];cf(r,c,a,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function ECe(e){e.registerPainter("canvas",TCe)}const ACe={class:"relative h-28 w-full overflow-hidden"},nM=nt({__name:"BasicCharts",props:{data:{},labelFormatter:{type:Function},toolTipFormatter:{type:Function},min:{}},setup(e){Ku([B1e,Wxe,SCe,fCe,ECe]);const t=e,n=De(),r=De(),i=De(!1),o=De();return Vo(()=>{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,f=a.fontFamily,d=s.color,h=s.backgroundColor,v=s.borderBottomColor,m=s.borderTopColor;Bt(()=>NE.value,()=>{const w=getComputedStyle(n.value),T=getComputedStyle(r.value);l=w.color,u=w.backgroundColor,c=w.borderColor,d=T.color,h=T.backgroundColor,v=T.borderBottomColor,m=T.borderTopColor}),Bt(()=>Yv.value,()=>{f=getComputedStyle(n.value).fontFamily});const _=Ce(()=>({legend:{bottom:0,data:t.data.map(w=>w.name),textStyle:{color:l,fontFamily:f}},grid:{left:60,top:15,right:10,bottom:25},tooltip:{show:!0,trigger:"axis",backgroundColor:u,borderColor:u,confine:!0,padding:[0,5],textStyle:{color:l,fontFamily:f},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:w=>Math.max(w.max,t.min),axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:c}},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:t.labelFormatter,color:l,fontFamily:f}},series:t.data.map((w,T)=>{const C=T===t.data.length-1?d:h,E=T===t.data.length-1?v:m;return{name:w.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:w.data,areaStyle:{color:new wP(0,0,0,1,[{offset:0,color:C},{offset:1,color:E}])},type:"line",color:C,smooth:!0}})})),y=JSe(o.value);y.setOption(_.value),Bt(_,()=>{i.value||y==null||y.setOption(_.value)});const{width:S}=N2(o),b=mr.debounce(()=>{y.resize()},100);Bt(()=>S.value,()=>{b()})}),(a,s)=>(Y(),te("div",ACe,[L("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),L("span",{class:"border-base-content/10 bg-base-100/70 text-base-content hidden",ref_key:"baseColorRef",ref:n},null,512),L("span",{class:"border-b-primary/30 border-t-info/30 bg-info/60 text-primary/60 hidden",ref_key:"themeColorRef",ref:r},null,512),L("button",{class:"btn btn-ghost btn-xs absolute right-1 bottom-0",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(Y(),yt(ml(i.value?B(nte):B(tte)),{class:"h-4 w-4"}))])]))}}),rM=nt({__name:"ConnectionsCharts",setup(e){const{t}=Qr(),n=Ce(()=>[{name:t("connections"),data:Z_.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name<rf+1))return`
|
||
<div class="flex items-center my-2 gap-1">
|
||
<div class="w-4 h-4 rounded-full" style="background-color: ${a.color}"></div>
|
||
${a.seriesName}
|
||
(${po(a.data.name).format("HH:mm:ss")}): ${a.data.value}
|
||
</div>`}).join(`
|
||
`);return(o,a)=>(Y(),yt(nM,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),iM=nt({__name:"MemoryCharts",setup(e){const{t}=Qr(),n=Ce(()=>[{name:t("memoryUsage"),data:xv.value}]),r=o=>`${Gn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>zU(o[0],{binary:!0,suffix:""});return(o,a)=>(Y(),yt(nM,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),oM=nt({__name:"SpeedCharts",setup(e){const t=De(),{t:n}=Qr(),r=Ce(()=>[{name:n("ulSpeed"),data:Tv.value},{name:n("dlSpeed"),data:Cv.value}]),i=a=>`${Gn(a,{maximumFractionDigits:1,binary:!1})}/s`,o=a=>a.map(s=>zU(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(Y(),yt(nM,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),ICe={class:"card carousel carousel-vertical hover:scrollbar-thin h-28 shrink-0 overflow-x-hidden text-sm"},RCe=nt({__name:"OverviewCarousel",setup(e){return(t,n)=>(Y(),te("div",ICe,[G(oM,{class:"carousel-item box-border"}),G(iM,{class:"carousel-item box-border"}),G(rM,{class:"carousel-item box-border"})]))}}),PCe={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},MCe={class:"flex flex-col items-center justify-center"},OCe={class:"flex flex-col items-center justify-center"},DCe={class:"flex flex-col items-center justify-center"},LCe={class:"flex flex-col items-center justify-center"},NCe={class:"flex flex-col items-center justify-center"},kCe=nt({__name:"VerticalInfos",setup(e){return(t,n)=>(Y(),te("div",PCe,[L("div",MCe,[G(B(tV),{class:"h-4 w-4"}),rt(" "+ie(B(qc)[B(Hn).CONNECTIONS]),1)]),L("div",OCe,[G(B(sS),{class:"h-4 w-4"}),rt(" "+ie(B(qc)[B(Hn).DOWNLOAD])+" ",1),L("span",null,ie(B(qc)[B(Hn).DL_SPEED]),1)]),L("div",DCe,[G(B(Rm),{class:"h-4 w-4"}),rt(" "+ie(B(qc)[B(Hn).UPLOAD])+" ",1),L("span",null,ie(B(qc)[B(Hn).UL_SPEED]),1)]),L("div",LCe,[G(B(qee),{class:"h-4 w-4"}),rt(" "+ie(B(qc)[B(Hn).MEMORY_USAGE]),1)]),L("div",NCe,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>Ua.value=!1)},[G(B(Rl),{class:"h-5 w-5"})])])]))}}),FCe={class:"menu w-full flex-1"},$Ce=["onMouseenter"],BCe=["onClick"],VCe={key:1,class:"flex w-full items-center justify-center"},UCe={class:"card"},HCe=nt({__name:"SideBar",setup(e){const{showTip:t}=Ls(),{t:n}=Qr(),r=(s,l)=>{Ua.value&&t(s,n(l),{placement:"right"})},i={[jt.connections]:q6,[jt.logs]:Q6,[jt.proxies]:e8,[jt.rules]:t8},o=Ce(()=>a.name?i[a.name]:null),a=M2();return(s,l)=>(Y(),te("div",{class:gt(["bg-base-200 text-base-content scrollbar-hidden h-full overflow-x-hidden p-2 transition-all",B(Ua)?"w-18 px-0":"w-[21rem]"])},[L("div",{class:gt(B(_i)("flex h-full flex-col gap-2",B(Ua)?"w-18":"w-xs"))},[L("ul",FCe,[(Y(!0),te(Ye,null,fn(B(af),u=>(Y(),te("li",{key:u,onMouseenter:c=>r(c,u)},[L("a",{class:gt([u===B(a).name?"menu-active":"",B(Ua)&&"justify-center","py-2"]),onClick:()=>B(Ds).push({name:u})},[(Y(),yt(ml(B(SV)[u]),{class:"h-5 w-5"})),B(Ua)?at("",!0):(Y(),te(Ye,{key:0},[rt(ie(s.$t(u)),1)],64))],10,BCe)],40,$Ce))),128))]),B(Ua)?(Y(),te(Ye,{key:0},[B(N_)?(Y(),yt(kCe,{key:0})):(Y(),te("div",VCe,[L("button",{class:"btn btn-circle btn-sm bg-base-300",onClick:l[0]||(l[0]=u=>Ua.value=!1)},[G(B(Rl),{class:"h-5 w-5"})])]))],64)):(Y(),te(Ye,{key:1},[B(a).name!==B(jt).overview?(Y(),yt(RCe,{key:0,class:"w-xs"})):at("",!0),L("div",UCe,[o.value?(Y(),yt(ml(o.value),{key:0})):at("",!0),G(pve)])],64))],2)],2))}}),sE=De(!1),T7=()=>({isUIUpdateAvailable:sE,checkUIUpdate:async()=>{sE.value=await ose(),sE.value&&M_.value&&EU()}}),zI=De(!1),zCe=()=>{const e=M2(),t=_V(),{proxiesTabShow:n}=Kg(),r=De(),{direction:i}=Lne(r,{threshold:75}),o=Ce(()=>mr.flatten(af.value.map(c=>{if(O_.value){if(c===jt.proxies&&Tf.value.length>0)return Object.values(Wa).map(f=>[()=>e.name===jt.proxies&&n.value===f,()=>{t.push({name:jt.proxies}),n.value=f}]);if(c===jt.connections)return Object.values(Mm).map(f=>[()=>e.name===jt.connections&&hh.value===f,()=>{t.push({name:jt.connections}),hh.value=f}]);if(c===jt.rules&&ms.value.length>0)return Object.values(fl).map(f=>[()=>e.name===jt.rules&&Ru.value===f,()=>{t.push({name:jt.rules}),Ru.value=f}])}return[[()=>e.name===c,()=>t.push({name:c})]]}))),a=()=>o.value.findIndex(c=>c[0]()),s=()=>{var f,d;return e.name===jt.setup?t.push({name:jt.proxies}):(d=(f=o.value[(a()+1)%o.value.length])==null?void 0:f[1])==null?void 0:d.call(f)},l=()=>{var f,d;return e.name===jt.setup?t.push({name:jt.proxies}):(d=(f=o.value[(a()-1+o.value.length)%o.value.length])==null?void 0:f[1])==null?void 0:d.call(f)},u=()=>{const c=document.activeElement;return c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA")};return Bt(i,()=>{var c,f;document.querySelector("dialog:modal")||u()||(f=(c=window.getSelection())==null?void 0:c.toString())!=null&&f.length||zI.value||(i.value==="right"?l():i.value==="left"&&s())}),{swiperRef:r}},GCe={class:"bg-base-200/50 home-page flex size-full"},WCe={key:0,class:"bg-base-100 w-full"},jCe={class:"relative h-0 flex-1"},XCe={class:"absolute flex h-full w-full flex-col overflow-y-auto"},YCe=["onClick"],KCe={class:"dock-label"},ZCe={class:"text-lg font-bold"},qCe={class:"flex justify-end gap-2"},JCe=nt({__name:"HomePage",setup(e){const t={[jt.connections]:q6,[jt.logs]:Q6,[jt.proxies]:e8,[jt.rules]:t8},n=_V(),r=M2(),i=Ce(()=>t[r.name]),{proxiesTabShow:o}=Kg(),{swiperRef:a}=zCe();Bt(vi,()=>{vi.value&&(Ru.value=fl.RULES,o.value=Wa.PROXIES,J2(),_a(),im(),vse(),J6(),Tse())},{immediate:!0});const s=De(!1),{showNotification:l}=ed(),u=async()=>{const d=da.value.filter(v=>v.uuid!==vi.value);s.value=!1;const h=await Promise.race(d.map(v=>new Promise((m,_)=>{setTimeout(()=>{_()},1e4),XN(v).then(y=>{y&&m(v)})})));h&&(vi.value=h.uuid,l({content:"backendSwitchTo",params:{backend:zu(h)}}))},c=Mne();Bt(c,async()=>{if(!(!Lo.value||da.value.length<2||c.value!=="visible"))try{const d=Lo.value.uuid,h=await XN(Lo.value);if(d!==vi.value)return;h||(s.value=!0)}catch{s.value=!0}},{immediate:!0});const{checkUIUpdate:f}=T7();return f(),(d,h)=>(Y(),te("div",GCe,[B(Hu)?at("",!0):(Y(),yt(HCe,{key:0})),L("div",{class:"flex flex-1 flex-col overflow-hidden",ref_key:"swiperRef",ref:a},[i.value&&B(Ua)?(Y(),te("div",WCe,[(Y(),yt(ml(i.value),{horizontal:!0}))])):at("",!0),L("div",jCe,[L("div",XCe,[G(B(P2),null,{default:qn(({Component:v,route:m})=>[G(kB,{name:m.meta.transition||"fade"},{default:qn(()=>[(Y(),yt(ml(v)))]),_:2},1032,["name"])]),_:1})])]),B(Hu)?(Y(),te(Ye,{key:1},[L("div",{class:gt(["shrink-0",B(LE)?"h-[5.5rem]":"h-14"])},null,2),L("div",{class:gt(["dock dock-sm bg-base-200 z-30",B(LE)?"h-[5.5rem] pb-8":"h-14"])},[(Y(!0),te(Ye,null,fn(B(af),v=>(Y(),te("button",{key:v,onClick:m=>B(n).push({name:v}),class:gt(v===B(r).name&&"dock-active")},[(Y(),yt(ml(B(SV)[v]),{class:"size-[1.2em]"})),L("span",KCe,ie(d.$t(v)),1)],10,YCe))),128))],2)],64)):at("",!0)],512),G(ip,{modelValue:s.value,"onUpdate:modelValue":h[1]||(h[1]=v=>s.value=v)},{default:qn(()=>[L("h3",ZCe,ie(d.$t("currentBackendUnavailable")),1),L("div",qCe,[L("button",{class:"btn btn-sm",onClick:h[0]||(h[0]=v=>s.value=!1)},ie(d.$t("cancel")),1),L("button",{class:"btn btn-primary btn-sm",onClick:u},ie(d.$t("confirm")),1)])]),_:1},8,["modelValue"])]))}}),QCe={class:"size-full overflow-x-hidden"},eTe={key:0,class:"card m-2 flex-row p-2 text-sm"},tTe={class:"card mb-1 block p-2 text-sm break-all"},nTe={class:"text-primary mx-2"},rTe={class:"ml-2"},iTe=nt({__name:"LogsPage",setup(e){const t={[Oi.Trace]:"text-success",[Oi.Debug]:"text-accent",[Oi.Info]:"text-info",[Oi.Warning]:"text-warning",[Oi.Error]:"text-error",[Oi.Fatal]:"text-error",[Oi.Panic]:"text-error"},n=Ce(()=>{if(dg.value){const r=new RegExp(dg.value,"i");return Xh.value.filter(i=>[i.payload,i.time,i.type].some(o=>r.test(o)))}return Xh.value});return(r,i)=>(Y(),te("div",QCe,[n.value.length?(Y(),yt(eR,{key:1,data:n.value,size:B(Hu)?96:64,class:"p-2"},{default:qn(({item:o})=>[L("div",tTe,[L("span",null,ie(o.seq),1),L("span",nTe,ie(o.time),1),L("span",{class:gt(t[o.type])},ie(o.type),3),L("span",rTe,ie(o.payload),1)])]),_:1},8,["data","size"])):(Y(),te("div",eTe,ie(r.$t("noContent")),1))]))}}),oTe={class:"card w-full"},aTe={class:"card-title px-4 pt-4"},sTe={class:"card-body gap-4"},lTe={class:"grid grid-cols-1 gap-2 lg:grid-cols-3"},uTe=nt({__name:"ChartsCard",setup(e){return(t,n)=>(Y(),te("div",oTe,[L("div",aTe,ie(t.$t("overview")),1),L("div",sTe,[G(ZR,{type:"overview"}),L("div",lTe,[G(oM,{class:"xl:h-64"}),G(iM,{class:"xl:h-64"}),G(rM,{class:"xl:h-64"})])])]))}}),cTe={class:"card w-full"},fTe={class:"card-title px-4 pt-4"},dTe={class:"text-base-content/80 font-normal"},hTe={class:"card-body gap-4"},pTe={class:"bg-base-200/50 grid grid-cols-1 gap-2 rounded-lg px-4 py-2 lg:grid-cols-3"},vTe={class:"flex h-14 flex-col items-start justify-center gap-1"},gTe={class:"text-sm"},mTe={class:"text-base"},yTe={class:"flex h-14 flex-col items-start justify-center gap-1"},_Te={class:"text-sm"},bTe={class:"text-base"},STe={class:"flex h-14 flex-col items-start justify-center gap-1"},wTe={class:"text-sm"},xTe={class:"text-base"},CTe={class:"flex h-14 flex-col items-start justify-center gap-1"},TTe={class:"text-sm"},ETe={class:"text-base"},ATe={class:"flex h-14 flex-col items-start justify-center gap-1"},ITe={class:"text-sm"},RTe={class:"text-base"},PTe={class:"flex h-14 flex-col items-start justify-center gap-1"},MTe={class:"text-sm"},OTe={class:"text-base"},DTe=nt({__name:"ConnectionHistory",setup(e){const t=Ce(()=>bs.value.concat(eg.value)),n=Ce(()=>{const u={},c={},f={},d=m=>{var S;const y=((S=m.metadata.host||m.metadata.sniffHost)==null?void 0:S.split(".").slice(-2).join("."))||m.metadata.destinationIP;y in u?(u[y].download+=m.download,u[y].upload+=m.upload):u[y]={key:y,download:m.download,upload:m.upload}},h=m=>{const _=m.chains[0];_ in c?(c[_].download+=m.download,c[_].upload+=m.upload):c[_]={key:_,download:m.download,upload:m.upload}},v=m=>{const _=m.metadata.sourceIP;_ in f?(f[_].download+=m.download,f[_].upload+=m.upload):f[_]={key:_,download:m.download,upload:m.upload}};return t.value.forEach(m=>{d(m),h(m),v(m)}),{hostMap:u,proxyMap:c,sourceIPMap:f}}),r=Ce(()=>{var c;const u=(c=Object.entries(n.value.hostMap).sort((f,d)=>d[1].download-f[1].download))==null?void 0:c[0];return u?{host:u[0],download:Gn(u[1].download)}:{host:"",download:0}}),i=Ce(()=>{var c;const u=(c=Object.entries(n.value.hostMap).sort((f,d)=>d[1].upload-f[1].upload))==null?void 0:c[0];return u?{host:u[0],upload:Gn(u[1].upload)}:{host:"",upload:0}}),o=Ce(()=>{var c;const u=(c=Object.entries(n.value.sourceIPMap).sort((f,d)=>d[1].download-f[1].download))==null?void 0:c[0];return u?{sourceIP:u[0],download:Gn(u[1].download)}:{sourceIP:"",download:0}}),a=Ce(()=>{var c;const u=(c=Object.entries(n.value.sourceIPMap).sort((f,d)=>d[1].upload-f[1].upload))==null?void 0:c[0];return u?{sourceIP:u[0],upload:Gn(u[1].upload)}:{sourceIP:"",upload:0}}),s=Ce(()=>{var c;const u=(c=Object.entries(n.value.proxyMap).sort((f,d)=>d[1].download-f[1].download))==null?void 0:c[0];return u?{proxy:u[0],download:Gn(u[1].download)}:{proxy:"",download:0}}),l=Ce(()=>{var c;const u=(c=Object.entries(n.value.proxyMap).sort((f,d)=>d[1].upload-f[1].upload))==null?void 0:c[0];return u?{proxy:u[0],upload:Gn(u[1].upload)}:{proxy:"",upload:0}});return(u,c)=>(Y(),te("div",cTe,[L("div",fTe,[rt(ie(u.$t("totalConnections"))+" ",1),L("span",dTe," ("+ie(t.value.length)+") ",1)]),L("div",hTe,[L("div",pTe,[L("div",vTe,[L("div",gTe,ie(u.$t("mostDownloadHost")),1),L("div",mTe,ie(r.value.host)+" = "+ie(r.value.download),1)]),L("div",yTe,[L("div",_Te,ie(u.$t("mostDownloadSourceIP")),1),L("div",bTe,ie(o.value.sourceIP)+" = "+ie(o.value.download),1)]),L("div",STe,[L("div",wTe,ie(u.$t("mostDownloadProxy")),1),L("div",xTe,ie(s.value.proxy)+" = "+ie(s.value.download),1)]),L("div",CTe,[L("div",TTe,ie(u.$t("mostUploadHost")),1),L("div",ETe,ie(i.value.host)+" = "+ie(i.value.upload),1)]),L("div",ATe,[L("div",ITe,ie(u.$t("mostUploadSourceIP")),1),L("div",RTe,ie(a.value.sourceIP)+" = "+ie(a.value.upload),1)]),L("div",PTe,[L("div",MTe,ie(u.$t("mostUploadProxy")),1),L("div",OTe,ie(l.value.proxy)+" = "+ie(l.value.upload),1)])])])]))}}),Gc=De({ip:[],ipWithPrivacy:[]}),Wc=De({ip:[],ipWithPrivacy:[]}),m_=De(""),y_=De(""),__=De(""),b_=De(""),LTe={class:"bg-base-200/50 relative h-28 rounded-lg p-2 text-sm"},NTe={class:"flex h-full flex-col justify-between"},E7=nt({__name:"ConnectionStatus",setup(e){const t=async()=>{fse().then(n=>{m_.value=n.toFixed(0)}),lse().then(n=>{b_.value=n.toFixed(0)}),cse().then(n=>{y_.value=n.toFixed(0)}),use().then(n=>{__.value=n.toFixed(0)})};return Vo(()=>{L_.value&&[m_,b_,y_,__].some(n=>n.value==="")&&t()}),(n,r)=>(Y(),te("div",LTe,[L("div",NTe,[L("div",null,[r[0]||(r[0]=L("span",{class:"inline-block w-20"},"Baidu ",-1)),r[1]||(r[1]=rt(" : ")),L("span",{class:gt(B(Cu)(Number(B(m_))))},ie(B(m_))+"ms ",3)]),L("div",null,[r[2]||(r[2]=L("span",{class:"inline-block w-20"},"Cloudflare ",-1)),r[3]||(r[3]=rt(" : ")),L("span",{class:gt(B(Cu)(Number(B(b_))))},ie(B(b_))+"ms ",3)]),L("div",null,[r[4]||(r[4]=L("span",{class:"inline-block w-20"},"Github ",-1)),r[5]||(r[5]=rt(" : ")),L("span",{class:gt(B(Cu)(Number(B(y_))))},ie(B(y_))+"ms ",3)]),L("div",null,[r[6]||(r[6]=L("span",{class:"inline-block w-20"},"YouTube ",-1)),r[7]||(r[7]=rt(" : ")),L("span",{class:gt(B(Cu)(Number(B(__))))},ie(B(__))+"ms ",3)])]),L("button",{class:"btn btn-circle btn-sm absolute right-2 bottom-2",onClick:t},[G(B(Pm),{class:"h-4 w-4"})])]))}}),kTe={class:"bg-base-200/50 relative flex h-28 flex-col gap-1 rounded-lg p-2"},FTe={class:"tooltip tooltip-bottom text-left text-sm","data-tip":"ipip.net"},$Te={key:0,class:"text-xs"},BTe={class:"tooltip tooltip-bottom text-left text-sm","data-tip":"api.ip.sb"},VTe={key:0,class:"text-xs"},UTe={class:"absolute right-2 bottom-2 flex items-center gap-2"},A7=nt({__name:"IPCheck",setup(e){const{t}=Qr(),n=De(!1),{showTip:r}=Ls(),i=a=>{r(a,t("ipScreenshotTip"))},o=()=>{q2().then(a=>{Gc.value={ipWithPrivacy:[`${a.country} ${a.asn_organization}`,a.ip],ip:[`${a.country} ${a.asn_organization}`,"***.***.***.***"]}}),sse().then(a=>{Wc.value={ipWithPrivacy:[a.data.location.join(" "),a.data.ip],ip:[`${a.data.location[0]} ** ** **`,"***.***.***.***"]}})};return Vo(()=>{D_.value&&[Gc,Wc].some(a=>a.value.ip.length===0)&&o()}),(a,s)=>(Y(),te("div",kTe,[L("div",FTe,[rt(ie(a.$t("chinaIP"))+" : "+ie(n.value?B(Wc).ipWithPrivacy[0]:B(Wc).ip[0])+" ",1),B(Wc).ip[1]?(Y(),te("span",$Te," ("+ie(n.value?B(Wc).ipWithPrivacy[1]:B(Wc).ip[1])+") ",1)):at("",!0)]),L("div",BTe,[rt(ie(a.$t("globalIP"))+" : "+ie(n.value?B(Gc).ipWithPrivacy[0]:B(Gc).ip[0])+" ",1),B(Gc).ip[1]?(Y(),te("span",VTe," ("+ie(n.value?B(Gc).ipWithPrivacy[1]:B(Gc).ip[1])+") ",1)):at("",!0)]),L("div",UTe,[L("button",{class:"btn btn-circle btn-sm flex items-center justify-center",onClick:s[0]||(s[0]=l=>n.value=!n.value),onMouseenter:i},[n.value?(Y(),yt(B(C2),{key:0,class:"h-4 w-4"})):(Y(),yt(B(x2),{key:1,class:"h-4 w-4"}))],32),L("button",{class:"btn btn-circle btn-sm",onClick:o},[G(B(Pm),{class:"h-4 w-4"})])])]))}}),HTe={class:"card w-full"},zTe={class:"card-title px-4 pt-4"},GTe={class:"card-body gap-4"},WTe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},jTe=nt({__name:"NetworkCard",setup(e){return(t,n)=>(Y(),te("div",HTe,[L("div",zTe,ie(t.$t("networkInfo")),1),L("div",GTe,[L("div",WTe,[G(A7),G(E7)])])]))}}),XTe={class:"flex h-full flex-col gap-2 overflow-x-hidden overflow-y-auto p-2"},YTe={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},KTe=nt({__name:"OverviewPage",setup(e){return(t,n)=>(Y(),te("div",XTe,[G(uTe),G(jTe),G(DTe),n[0]||(n[0]=L("div",{class:"flex-1"},null,-1)),L("div",YTe,[rt(ie(B(zu)(B(Lo)))+" ",1),G(KR)])]))}});function aM(e,t){const n=Ce(()=>Mse(e.value,t)),r=Ce(()=>n.value.filter(o=>km(o,t)!==Fi).length),i=Ce(()=>{const o=e.value.length;return Qv.value===Hg.FILTERED_TOTAL?n.value.length:Qv.value===Hg.TOTAL||r.value===o?o:`${r.value}/${o}`});return{renderProxies:n,proxiesCount:i}}const I7=nt({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Ce({get(){return k_.value[t.name]},set(l){l?(i.value=!1,r.value=!0,Qa(()=>{k_.value[t.name]=!0})):k_.value[t.name]=!1}}),r=De(n.value),i=De(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)},s=({open:l})=>{n.value=l};return BA.on(s),Qf(()=>{BA.off(s)}),(l,u)=>(Y(),te("div",{class:gt(`collapse ${n.value?"collapse-open":"collapse-close"}`)},[L("div",{class:"collapse-title cursor-pointer pr-4 select-none",onClick:u[0]||(u[0]=c=>n.value=!n.value)},[yf(l.$slots,"title"),i.value?yf(l.$slots,"preview",{key:0}):at("",!0)]),L("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionstart:o,onTransitionend:a},[r.value?yf(l.$slots,"content",{key:0}):at("",!0)],32)],2))}});var Bb=function(){return Bb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Bb.apply(this,arguments)},ZTe=function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){i.startTime||(i.startTime=o);var a=o-i.startTime;i.remaining=i.duration-a,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(a,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(a,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(a/i.duration);var s=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(o){var a,s,l,u,c=o<0?"-":"";a=Math.abs(o).toFixed(i.options.decimalPlaces);var f=(a+="").split(".");if(s=f[0],l=f.length>1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var d=3,h=0,v=0,m=s.length;v<m;++v)i.options.useIndianSeparators&&v===4&&(d=2,h=1),v!==0&&h%d==0&&(u=i.options.separator+u),h++,u=s[m-v-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(_){return i.options.numerals[+_]}),l=l.replace(/[0-9]/g,function(_){return i.options.numerals[+_]})),c+i.options.prefix+s+l+i.options.suffix},this.easeOutExpo=function(o,a,s,l){return s*(1-Math.pow(2,-10*o/l))*1024/1023+a},this.options=Bb(Bb({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,o=r.top+r.height+window.pageYOffset;o<n&&o>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const qTe={key:0,class:"loading loading-dots loading-xs text-base-content/80"},sM=nt({__name:"LatencyTag",props:{name:{},loading:{type:Boolean},groupName:{}},setup(e){const{showTip:t}=Ls(),n=l=>{const u=IU(r.name??"",r.groupName);if(!u.length)return;const c=document.createElement("div");c.classList.add("flex","flex-col","gap-1");for(const f of u){const d=document.createElement("div"),h=document.createElement("div"),v=document.createElement("div");h.textContent=po(f.time).format("YYYY-MM-DD HH:mm:ss"),v.textContent=f.delay+"ms",v.className=Cu(f.delay),d.classList.add("flex","items-center","gap-2"),d.append(h,v),c.append(d)}t(l,c,{delay:[1e3,0],trigger:"mouseenter",touch:!1})},r=e,i=De(),o=Ce(()=>km(r.name??"",r.groupName));let a=null;Vo(()=>{Bt(o,(l,u)=>{a?a==null||a.update(l):Qa(()=>{a=new ZTe(i.value,o.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:u}),a==null||a.update(l)})})}),Qf(()=>{a=null});const s=Ce(()=>Cu(o.value));return(l,u)=>(Y(),te("div",{class:gt(B(_i)("latency-tag bg-base-100 md:hover:bg-base-200 flex h-5 w-10 items-center justify-center rounded-xl text-xs select-none",s.value)),onMouseenter:n},[l.loading?(Y(),te("span",qTe)):o.value===B(Fi)||!o.value?(Y(),yt(B(Pm),{key:1,class:"text-base-content h-3 w-3"})):at("",!0),St(L("div",{ref_key:"latencyRef",ref:i},ie(o.value),513),[[b2,o.value!==B(Fi)&&!l.loading]])],34))}}),JTe={class:"flex w-full flex-1 items-center gap-1"},QTe={class:"flex h-4 w-full items-center justify-between select-none"},eEe=nt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean},groupName:{}},setup(e){const t=e,{showTip:n}=Ls(),r=c=>{const f=c.target,{scrollWidth:d,clientWidth:h}=f;d>h&&n(c,f.innerText,{delay:[1e3,0],trigger:"mouseenter",touch:["hold",500]})},i=Ce(()=>Jr.value[t.name]),o=De(!1),a=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),s=Ce(()=>ef.value===Om.SMALL),l=Ce(()=>{const c=a(i.value.type),f=xf.value&&mse(i.value.name)?"IPv6":"",d=i.value.xudp?"xudp":i.value.udp?"udp":"";return[c,d,f].filter(Boolean).join(s.value?"/":" / ")}),u=async()=>{if(!o.value){o.value=!0;try{await yse(t.name,Q2(t.groupName)),o.value=!1}catch{o.value=!1}}};return(c,f)=>(Y(),te("div",{ref:"cardRef",class:gt(B(_i)("bg-base-200 flex cursor-pointer flex-col items-start gap-[2px] rounded-md",c.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",s.value?"p-1":"p-2")),onContextmenu:gr(u,["stop","prevent"])},[L("div",JTe,[i.value.icon?(Y(),yt(nR,{key:0,class:"shrink-0",size:"small",icon:i.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):at("",!0),L("span",{class:gt(B(_i)("text-sm",B(F_)&&"truncate")),onMouseenter:r},ie(i.value.name),35)]),L("div",QTe,[L("span",{class:gt(`truncate text-xs tracking-tight ${c.active?"text-primary-content":"text-base-content/60"}`),onMouseenter:r},ie(l.value),35),G(sM,{class:gt([s.value&&"h-4! w-8!","shrink-0"]),name:i.value.name,loading:o.value,"group-name":c.groupName,onClick:gr(u,["stop"])},null,8,["class","name","loading","group-name"])])],34))}}),R7=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},lM=R7(eEe,[["__scopeId","data-v-e2d0d531"]]),P7=nt({__name:"ProxyNodeGrid",setup(e){return(t,n)=>(Y(),te("div",{class:"grid max-h-96 gap-2 overflow-x-hidden overflow-y-auto",style:pr(`grid-template-columns: repeat(auto-fill, minmax(${B(qv)}px, 1fr));`)},[yf(t.$slots,"default")],4))}}),tEe=["onMouseenter","onClick"],nEe={key:0,class:"h-2 w-2 rounded-full bg-white"},rEe={key:1,class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl *:h-2"},iEe=nt({__name:"ProxyPreview",props:{nodes:{},now:{},groupName:{}},setup(e){const t=e,{showTip:n}=Ls(),r=De(null),{width:i}=N2(r),o=Ce(()=>i.value>20*t.nodes.length),a=(v,m)=>{const _=document.createElement("div"),y=document.createElement("div");if(y.textContent=m.name,_.append(y),m.latency!==Fi){const S=document.createElement("div");S.textContent=`${m.latency}ms`,S.classList.add(Cu(m.latency)),_.append(S)}_.classList.add("flex","items-center","gap-2"),n(v,_)},s=Ce(()=>Zv.value===Vg.DOTS||Zv.value===Vg.AUTO&&o.value),l=Ce(()=>t.nodes.map(v=>({latency:km(v,t.groupName),name:v}))),u=v=>v===Fi?"bg-base-content/60":v<wu.value?"bg-low-latency":v<ul.value?"bg-medium-latency":"bg-high-latency",c=Ce(()=>l.value.filter(v=>v.latency<wu.value&&v.latency>Fi).length),f=Ce(()=>l.value.filter(v=>v.latency>=wu.value&&v.latency<ul.value).length),d=Ce(()=>l.value.filter(v=>v.latency>=ul.value).length),h=Ce(()=>l.value.filter(v=>v.latency===Fi).length);return(v,m)=>(Y(),te("div",{ref_key:"previewRef",ref:r,class:gt(["flex flex-wrap",[s.value?"gap-1 pt-3":"gap-2 pt-4 pb-1"]])},[s.value?(Y(!0),te(Ye,{key:0},fn(l.value,_=>(Y(),te("div",{key:_.name,class:gt(["flex h-4 w-4 items-center justify-center rounded-full transition hover:scale-110",u(_.latency)]),ref_for:!0,ref:"dotsRef",onMouseenter:y=>a(y,_),onClick:gr(y=>v.$emit("nodeclick",_.name),["stop"])},[v.now===_.name?(Y(),te("div",nEe)):at("",!0)],42,tEe))),128)):(Y(),te("div",rEe,[L("div",{class:gt(u(B(wu)-1)),style:pr({width:`${c.value*100/v.nodes.length}%`})},null,6),L("div",{class:gt(u(B(ul)-1)),style:pr({width:`${f.value*100/v.nodes.length}%`})},null,6),L("div",{class:gt(u(B(ul)+1)),style:pr({width:`${d.value*100/v.nodes.length}%`})},null,6),L("div",{class:gt(u(B(Fi))),style:pr({width:`${h.value*100/v.nodes.length}%`})},null,6)]))],2))}}),M7=R7(iEe,[["__scopeId","data-v-51b6cabc"]]),oEe={class:"flex flex-1 items-center gap-1"},aEe={class:"text-base-content/60 text-xs"},sEe={class:"flex flex-1 items-center gap-1 text-sm"},lEe={class:"min-w-12 shrink-0 text-right text-xs"},uEe=nt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Ce(()=>Jr.value[t.name]),r=Ce(()=>n.value.all??[]),{proxiesCount:i,renderProxies:o}=aM(r,t.name),a=De(!1),s=async()=>{if(!a.value){a.value=!0;try{await DU(t.name),a.value=!1}catch{a.value=!1}}},l=Ce(()=>bs.value.filter(_=>_.chains.includes(t.name)).reduce((_,y)=>_+y.downloadSpeed,0)),u=()=>{bl.value[t.name]=!bl.value[t.name]},{showTip:c}=Ls(),f=m=>{const _=$f(t.name);!_||_===n.value.now||c(m,_,{delay:[500,0]})},{t:d}=Qr(),h=m=>{c(m,d("tipForFixed"),{delay:[500,0]})},v=async m=>{n.value.type.toLowerCase()!==Xr.LoadBalance&&(n.value.now===m&&(await _a(),n.value.now===m)||RU(t.name,m))};return(m,_)=>(Y(),yt(I7,{name:n.value.name},{title:qn(()=>[L("div",{class:"relative flex items-center gap-2",onContextmenu:gr(s,["prevent","stop"])},[L("div",oEe,[G(Bf,{name:n.value.name,size:"large"},null,8,["name"]),L("span",aEe," : "+ie(n.value.type)+" ("+ie(B(i))+") ",1),B(zg)?(Y(),te("button",{key:0,class:"btn btn-circle btn-xs z-10 ml-1",onClick:gr(u,["stop"])},[B(bl)[n.value.name]?(Y(),yt(B(x2),{key:1,class:"h-3 w-3"})):(Y(),yt(B(C2),{key:0,class:"h-3 w-3"}))])):at("",!0)]),G(sM,{class:gt(B(_i)("bg-base-200/50 z-10 hover:shadow-sm")),loading:a.value,name:n.value.now,"group-name":n.value.name,onClick:gr(s,["stop"])},null,8,["class","loading","name","group-name"])],32),L("div",{class:"text-base-content/80 mt-[2px] flex items-center gap-2",onContextmenu:gr(s,["prevent","stop"])},[L("div",sEe,[n.value.now?(Y(),te(Ye,{key:0},[n.value.fixed===n.value.now?(Y(),yt(B(iV),{key:0,class:"h-4 w-4 shrink-0",onMouseenter:h})):(Y(),yt(B(Rl),{key:1,class:"h-4 w-4 shrink-0"})),G(Bf,{name:n.value.now,onMouseenter:f},null,8,["name"])],64)):n.value.type.toLowerCase()===B(Xr).LoadBalance?(Y(),te(Ye,{key:1},[G(B(nV),{class:"h-4 w-4 shrink-0"}),rt(" "+ie(m.$t("loadBalance")),1)],64)):at("",!0)]),L("div",lEe,ie(B(Gn)(l.value))+"/s ",1)],32)]),preview:qn(()=>[G(M7,{nodes:B(o),now:n.value.now,groupName:n.value.name,onNodeclick:_[0]||(_[0]=y=>v(y))},null,8,["nodes","now","groupName"])]),content:qn(()=>[G(P7,null,{default:qn(()=>[(Y(!0),te(Ye,null,fn(B(o),y=>(Y(),yt(lM,{key:y,name:y,"group-name":n.value.name,active:y===n.value.now,onClick:S=>v(y)},null,8,["name","group-name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),cEe={class:"flex h-20 shrink-0 flex-col gap-1 p-2"},fEe={class:"text-md truncate"},dEe={class:"text-base-content/80 flex h-4 gap-1 truncate text-xs"},hEe={class:"flex h-4 items-center justify-between gap-1"},pEe={class:"text-base-content/60 text-xs"},vEe={key:0,class:"grid flex-1 grid-cols-2 gap-2 overflow-x-hidden overflow-y-auto p-2",style:{"max-height":"calc(50dvh - 5rem)"}},gEe=nt({__name:"ProxyGroupForMobile",props:{name:{}},setup(e){const t=e,n=Ce(()=>Jr.value[t.name]),r=Ce(()=>n.value.all??[]),{proxiesCount:i,renderProxies:o}=aM(r,t.name),a=De(!1),s=De(!1),l=De(s.value),u=De(s.value),c=De(),f=De(0),d=De(0),h=De(!1),v=De({}),m=I=>new Promise(M=>setTimeout(M,I)),_=De(()=>{}),y=()=>{_.value()},S=async()=>{const{innerHeight:I,innerWidth:M}=window,{x:P,y:D,width:k,height:$}=c.value.getBoundingClientRect(),W=P<M/3?"left":"right",N=D<I/2?"top":"bottom",K=N==="top"?D:I-D-$;_.value=()=>{},u.value=!1,h.value=!1,s.value?(h.value=!0,l.value=!1,v.value={[W]:"0.5rem",[N]:K+"px"},_.value=async()=>{h.value=!1,s.value=!1}):(v.value={[W]:"0.5rem",[N]:K+"px"},f.value=k,d.value=$,s.value=!0,await m(50),h.value=!0,K<I*.15&&(v.value[N]=I*.15+"px"),l.value=!0,_.value=()=>{u.value=!0})},b=async()=>{if(!a.value){a.value=!0;try{await DU(t.name),a.value=!1}catch{a.value=!1}}},w=()=>{bl.value[t.name]=!bl.value[t.name]},T=I=>{n.value.type.toLowerCase()!==Xr.LoadBalance&&RU(t.name,I)},{showTip:C}=Ls(),{t:E}=Qr(),R=I=>{C(I,E("tipForFixed"),{delay:[500,0]})};return(I,M)=>(Y(),te("div",{class:"relative h-20 cursor-pointer",ref_key:"cardRef",ref:c,onClick:S},[s.value?(Y(),te("div",{key:0,class:gt(["fixed inset-0 z-40 transition-all duration-200",l.value&&"bg-black/30"])},null,2)):at("",!0),L("div",{class:gt(["card overflow-hidden will-change-[height,width,transform]",[s.value?"fixed z-50":"absolute top-0 left-0 h-auto w-full",h.value&&"transition-all duration-200",l.value&&"w-[calc(100vw-1rem)]"]]),style:pr([s.value&&{background:"var(--color-base-100)"},s.value&&v.value,s.value&&!l.value&&{width:f.value+"px",height:d.value+"px"}]),onContextmenu:gr(b,["prevent","stop"]),onTransitionend:y},[L("div",cEe,[n.value.icon?(Y(),yt(nR,{key:0,icon:n.value.icon,size:"small",class:"absolute top-2 right-2 z-[-1] h-10 w-10!"},null,8,["icon"])):at("",!0),L("div",fEe,ie(n.value.name),1),L("div",dEe,[n.value.now?(Y(),te(Ye,{key:0},[n.value.fixed===n.value.now?(Y(),yt(B(iV),{key:0,class:"h-4 w-4 shrink-0",onMouseenter:R})):at("",!0),rt(" "+ie(n.value.now),1)],64)):n.value.type.toLowerCase()===B(Xr).LoadBalance?(Y(),te(Ye,{key:1},[G(B(nV),{class:"h-4 w-4 shrink-0"}),rt(" "+ie(I.$t("loadBalance")),1)],64)):at("",!0)]),L("div",hEe,[L("span",pEe,ie(n.value.type)+" ("+ie(B(i))+") ",1),B(zg)?(Y(),te("button",{key:0,class:"btn btn-circle btn-xs z-10 ml-1",onClick:gr(w,["stop"])},[B(bl)[n.value.name]?(Y(),yt(B(x2),{key:1,class:"h-3 w-3"})):(Y(),yt(B(C2),{key:0,class:"h-3 w-3"}))])):at("",!0),M[0]||(M[0]=L("div",{class:"flex-1"},null,-1)),G(sM,{class:gt(B(_i)("bg-base-200/50 z-10 hover:shadow-sm")),loading:a.value,name:n.value.now,"group-name":n.value.name,onClick:gr(b,["stop"])},null,8,["class","loading","name","group-name"])])]),l.value?(Y(),te("div",vEe,[(Y(!0),te(Ye,null,fn(u.value?B(o):B(o).slice(0,16),P=>(Y(),yt(lM,{key:P,name:P,"group-name":n.value.name,active:P===n.value.now,onClick:gr(D=>T(P),["stop"])},null,8,["name","group-name","active","onClick"]))),128))])):at("",!0)],38)],512))}}),mEe={class:"flex items-center justify-between gap-2"},yEe={class:"text-xl font-medium"},_Ee={class:"text-base-content/60 text-sm font-normal"},bEe={class:"flex gap-2"},SEe={key:0,class:"loading loading-spinner loading-xs"},wEe={class:"text-base-content/60 flex items-end justify-between text-sm max-sm:flex-col max-sm:items-start"},xEe={key:0},CEe={key:1},TEe=nt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=Ce(()=>Tf.value.find(f=>f.name===t.name)),r=Ce(()=>n.value.proxies.map(f=>f.name)??[]),{renderProxies:i,proxiesCount:o}=aM(r),a=Ce(()=>{const f=n.value.subscriptionInfo;if(f){const{Download:d=0,Upload:h=0,Total:v=0,Expire:m=0}=f;if(d===0&&h===0&&v===0&&m===0)return null;const{t:_}=Qr(),y=Gn(v,{binary:!0}),S=Gn(d+h,{binary:!0}),b=mr.toFinite(((d+h)/v*100).toFixed(2)),w=m===0?`${_("expire")}: ${_("noExpire")}`:`${_("expire")}: ${po(m*1e3).format("YYYY-MM-DD")}`,T=`${S} / ${y} ( ${b}% )`;return{expireStr:w,usageStr:T}}return null}),s=De(!1),l=De(!1),u=async()=>{if(!l.value){l.value=!0;try{await jae(t.name),await _a(),l.value=!1}catch{l.value=!1}}},c=async()=>{if(!s.value){s.value=!0;try{await CU(t.name),await _a(),s.value=!1}catch{s.value=!1}}};return(f,d)=>(Y(),yt(I7,{name:n.value.name},{title:qn(()=>[L("div",mEe,[L("div",yEe,[rt(ie(n.value.name)+" ",1),L("span",_Ee," ("+ie(B(o))+") ",1)]),L("div",bEe,[L("button",{class:gt(B(_i)("btn btn-circle btn-sm z-30")),onClick:gr(u,["stop"])},[l.value?(Y(),te("span",SEe)):(Y(),yt(B(Pm),{key:1,class:"h-4 w-4"}))],2),n.value.vehicleType!=="Inline"?(Y(),te("button",{key:0,class:gt(B(_i)("btn btn-circle btn-sm z-30",s.value?"animate-spin":"")),onClick:gr(c,["stop"])},[G(B(Im),{class:"h-4 w-4"})],2)):at("",!0)])]),L("div",wEe,[L("div",null,[a.value?(Y(),te("div",xEe,ie(a.value.expireStr),1)):at("",!0),a.value?(Y(),te("div",CEe,ie(a.value.usageStr),1)):at("",!0)]),L("div",null,ie(f.$t("updated"))+" "+ie(B(TS)(n.value.updatedAt)),1)])]),preview:qn(()=>[G(M7,{nodes:B(i)},null,8,["nodes"])]),content:qn(()=>[G(P7,null,{default:qn(()=>[(Y(!0),te(Ye,null,fn(B(i),h=>(Y(),yt(lM,{key:h,name:h},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),EEe={key:0,class:"grid grid-cols-2 gap-1"},AEe={key:1,class:"grid grid-cols-1 gap-1"},IEe=nt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=Kg(),r=De(),{width:i}=N2(r),o=Ce(()=>i.value<640),a=Ce(()=>i.value>720),s=Ce(()=>t.value===Wa.PROVIDER?TEe:o.value&&l.value?gEe:uEe),l=Ce(()=>(a.value||o.value&&t.value===Wa.PROXIES)&&Kv.value&&n.value.length>1),u=(c,f)=>c.filter((d,h)=>h%2===f);return _a(),(c,f)=>(Y(),te("div",{class:"max-sm:scrollbar-hidden h-full overflow-y-scroll p-2 sm:pr-1",ref_key:"proxiesRef",ref:r},[l.value?(Y(),te("div",EEe,[(Y(),te(Ye,null,fn([0,1],d=>L("div",{key:d,class:"flex flex-1 flex-col gap-1"},[(Y(!0),te(Ye,null,fn(u(B(n),d),h=>(Y(),yt(ml(s.value),{key:h,name:h},null,8,["name"]))),128))])),64))])):(Y(),te("div",AEe,[(Y(!0),te(Ye,null,fn(B(n),d=>(Y(),yt(ml(s.value),{key:d,name:d},null,8,["name"]))),128))]))],512))}}),REe={class:"card gap-2 p-2 text-sm"},PEe={class:"mr-2"},MEe={class:"mr-2"},OEe={key:0,class:"text-primary mr-2"},DEe={key:1,class:"badge badge-sm bg-base-200"},LEe={class:"text-base-content/80 flex items-center gap-1"},W4=nt({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,n=Ce(()=>Jr.value[t.rule.proxy]),r=Ce(()=>km(t.rule.proxy,t.rule.proxy)),i=Ce(()=>Cu(Number(r.value))),o=Ce(()=>{var a;return t.rule.type==="RuleSet"?(a=ms.value.find(s=>s.name===t.rule.payload))==null?void 0:a.ruleCount:t.rule.size});return(a,s)=>{var l;return Y(),te("div",REe,[L("div",null,[L("span",PEe,ie(a.index)+".",1),L("span",MEe,ie(a.rule.type),1),a.rule.payload?(Y(),te("span",OEe,ie(a.rule.payload),1)):at("",!0),typeof o.value=="number"&&o.value!==-1?(Y(),te("span",DEe,ie(o.value),1)):at("",!0)]),L("div",LEe,[G(Bf,{name:a.rule.proxy,class:"text-xs"},null,8,["name"]),(l=n.value)!=null&&l.now&&B(BE)?(Y(),te(Ye,{key:0},[G(B(Rl),{class:"h-4 w-4"}),G(Bf,{name:B($f)(a.rule.proxy),class:"text-xs"},null,8,["name"])],64)):at("",!0),r.value!==B(Fi)&&B(VE)?(Y(),te("span",{key:1,class:gt([i.value,"ml-1 text-xs"])},ie(r.value),3)):at("",!0)])])}}}),NEe={class:"card w-full gap-2 p-2 text-sm"},kEe={class:"flex flex-1 items-center gap-2"},FEe={class:"text-primary"},$Ee={class:"badge badge-sm bg-base-200"},BEe={class:"text-base-content/80 flex h-4 items-center gap-2 text-xs"},VEe=nt({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=De(!1),n=e,r=async()=>{t.value||(t.value=!0,await TU(n.ruleProvider.name),im(),t.value=!1)};return(i,o)=>(Y(),te("div",NEe,[L("div",kEe,[L("span",null,ie(i.index)+".",1),L("span",FEe,ie(i.ruleProvider.name),1),L("span",$Ee,ie(i.ruleProvider.ruleCount),1)]),L("div",BEe,[L("span",null,ie(i.ruleProvider.behavior),1),L("span",null,ie(i.ruleProvider.vehicleType),1),L("span",null,ie(i.$t("updated"))+" "+ie(B(TS)(i.ruleProvider.updatedAt)),1),i.ruleProvider.vehicleType!=="Inline"?(Y(),te("button",{key:0,class:gt(B(_i)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:r},[G(B(Im),{class:"h-4 w-4"})],2)):at("",!0)])]))}}),UEe=nt({__name:"RulesPage",setup(e){return(t,n)=>(Y(),te("div",{class:gt(["flex flex-col gap-1 overflow-x-hidden",B(D0).length<200&&"p-2"])},[B(Ru)===B(fl).PROVIDER?(Y(!0),te(Ye,{key:0},fn(B(ive),(r,i)=>(Y(),yt(VEe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128)):B(D0).length<200?(Y(!0),te(Ye,{key:1},fn(B(D0),r=>(Y(),yt(W4,{key:r.payload,rule:r,index:B(Yh).indexOf(r)+1},null,8,["rule","index"]))),128)):(Y(),yt(eR,{key:2,data:B(D0),size:64,class:"p-2"},{default:qn(({item:r})=>[(Y(),yt(W4,{class:"mb-1",key:r.payload,rule:r,index:B(Yh).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))],2))}}),HEe={class:"join w-96 max-sm:w-full"},zEe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},GEe={key:0,class:"flex gap-1"},WEe=nt({__name:"DnsQuery",setup(e){const t=qa({name:"www.google.com",type:"A"}),n=De(null),r=De([]),i=async()=>{var a;const{data:o}=await ese(t);r.value=o.Answer,(a=r.value)!=null&&a.length?n.value=await q2(r.value[0].data):n.value=null};return(o,a)=>{var s,l,u,c;return Y(),te(Ye,null,[L("div",HEe,[G(Zr,{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=f=>t.name=f),placeholder:"Domain Name",clearable:!0},null,8,["modelValue"]),St(L("select",{"onUpdate:modelValue":a[1]||(a[1]=f=>t.type=f),class:"join-item select select-sm"},a[2]||(a[2]=[L("option",{value:"A"},"A",-1),L("option",{value:"AAAA"},"AAAA",-1),L("option",{value:"MX"},"MX",-1)]),512),[[vr,t.type]]),L("button",{class:"btn join-item btn-sm",onClick:i},ie(o.$t("DNSQuery")),1)]),L("div",zEe,[(Y(!0),te(Ye,null,fn(r.value,f=>(Y(),te("div",{class:"flex gap-1",key:f.data},[L("div",null,ie(f.name),1),a[3]||(a[3]=rt(" : ")),L("div",null,ie(f.data),1)]))),128))]),n.value?(Y(),te("div",GEe,ie((s=n.value)==null?void 0:s.ip)+": AS"+ie((l=n.value)==null?void 0:l.asn)+" "+ie((u=n.value)==null?void 0:u.asn_organization)+" "+ie((c=n.value)==null?void 0:c.country),1)):at("",!0)],64)}}}),jEe={class:"card"},XEe={class:"card-title px-4 pt-4"},YEe={class:"indicator"},KEe={key:0,class:"indicator-item top-1 -right-1 flex"},ZEe=["href"],qEe={class:"card-body gap-4"},JEe={class:"grid max-w-3xl grid-cols-2 gap-2 lg:grid-cols-3"},QEe={class:"shrink-0"},eAe=["onUpdate:modelValue","onChange"],tAe={class:"grid max-w-3xl grid-cols-2 gap-2 lg:grid-cols-4"},nAe={key:0,class:"flex items-center gap-2"},rAe={class:"flex items-center gap-2"},iAe={class:"flex items-center gap-2"},oAe={key:0,class:"flex items-center gap-2"},aAe={key:1,class:"grid max-w-4xl grid-cols-2 gap-2 md:grid-cols-3 lg:grid-cols-5"},sAe=nt({__name:"BackendSettings",setup(e){const t=[{label:"mixedPort",key:"mixed-port"},{label:"httpPort",key:"port"},{label:"socksPort",key:"socks-port"},{label:"redirPort",key:"redir-port"},{label:"tproxyPort",key:"tproxy-port"}],n=()=>{J2(),im(),_a()},r=De(!1),i=async()=>{if(!r.value){r.value=!0;try{await Qae(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=De(!1),a=async()=>{if(!o.value){o.value=!0;try{await AU(),n(),o.value=!1}catch{o.value=!1}}},s=De(!1),l=async()=>{if(!s.value){s.value=!0;try{await qae(),n(),s.value=!1}catch{s.value=!1}}},u=De(!1),c=async()=>{if(!u.value){u.value=!0;try{await Jae(),n(),u.value=!1}catch{u.value=!1}}},f=()=>{Xd.value||(wv.value=!1,W1.value=!1)},d=async()=>{var v;await X_({tun:{enable:(v=$r.value)==null?void 0:v.tun.enable}})},h=async()=>{var v;await X_({"allow-lan":(v=$r.value)==null?void 0:v["allow-lan"]})};return(v,m)=>{var _,y,S;return Y(),te("div",jEe,[L("div",XEe,[L("div",YEe,[B(W1)?(Y(),te("span",KEe,m[5]||(m[5]=[L("span",{class:"bg-secondary absolute h-2 w-2 animate-ping rounded-full"},null,-1),L("span",{class:"bg-secondary h-2 w-2 rounded-full"},null,-1)]))):at("",!0),L("a",{class:"flex cursor-pointer items-center gap-2",href:B(_l)?"https://github.com/sagernet/sing-box":"https://github.com/metacubex/mihomo",target:"_blank"},[rt(ie(v.$t("backend"))+" ",1),G(KR,{class:"text-sm font-normal"})],8,ZEe)])]),L("div",qEe,[G(n8),!B(_l)&&B($r)?(Y(),te(Ye,{key:0},[m[6]||(m[6]=L("div",{class:"divider"},null,-1)),L("div",JEe,[(Y(),te(Ye,null,fn(t,b=>L("div",{class:"flex items-center gap-2",key:b.key},[L("span",QEe,ie(v.$t(b.label)),1),St(L("input",{class:"input input-sm w-20 sm:w-24",type:"number","onUpdate:modelValue":w=>B($r)[b.key]=w,onChange:w=>B(X_)({[b.key]:Number(B($r)[b.key])})},null,40,eAe),[[ki,B($r)[b.key]]])])),64))]),L("div",tAe,[(_=B($r))!=null&&_.tun?(Y(),te("div",nAe,[rt(ie(v.$t("tunMode"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[0]||(m[0]=b=>B($r).tun.enable=b),onChange:d},null,544),[[Bn,B($r).tun.enable]])])):at("",!0),L("div",rAe,[rt(ie(v.$t("allowLan"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[1]||(m[1]=b=>B($r)["allow-lan"]=b),onChange:h},null,544),[[Bn,B($r)["allow-lan"]]])]),(y=B(Lo))!=null&&y.disableUpgradeCore?at("",!0):(Y(),te(Ye,{key:1},[L("div",iAe,[rt(ie(v.$t("checkUpgrade"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[2]||(m[2]=b=>ht(Xd)?Xd.value=b:null),onChange:f},null,544),[[Bn,B(Xd)]])]),B(Xd)?(Y(),te("div",oAe,[rt(ie(v.$t("autoUpgrade"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[3]||(m[3]=b=>ht(wv)?wv.value=b:null)},null,512),[[Bn,B(wv)]])])):at("",!0)],64))])],64)):at("",!0),B(Oh)?(Y(),te("div",aAe,[B(_l)?at("",!0):(Y(),te(Ye,{key:0},[(S=B(Lo))!=null&&S.disableUpgradeCore?at("",!0):(Y(),te("button",{key:0,class:gt(B(_i)("btn btn-primary btn-sm",o.value?"animate-pulse":"")),onClick:a},ie(v.$t("upgradeCore")),3)),L("button",{class:gt(B(_i)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},ie(v.$t("restartCore")),3),L("button",{class:gt(B(_i)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},ie(v.$t("reloadConfigs")),3),L("button",{class:gt(B(_i)("btn btn-sm",u.value?"animate-pulse":"")),onClick:c},ie(v.$t("updateGeoDatabase")),3)],64)),L("button",{class:"btn btn-sm",onClick:m[4]||(m[4]=(...b)=>B(jN)&&B(jN)(...b))},ie(v.$t("flushFakeIP")),1)])):at("",!0),m[7]||(m[7]=L("div",{class:"divider"},null,-1)),G(WEe)])])}}}),lAe={class:"flex flex-col gap-2 p-1 pr-0"},uAe=["onClick"],cAe={class:"flex w-full items-center gap-2"},fAe=nt({__name:"SourceIPLabels",setup(e){const t=Ce(()=>mr.uniq(ph.value.map(a=>a.metadata.sourceIP)).filter(Boolean).filter(a=>!ia.value.find(s=>s.key===a)).sort()),n=qa({key:"",label:""}),r=()=>{!n.key||!n.label||(ia.value.push({key:n.key,label:n.label,id:$2()}),n.key="",n.label="")},i=a=>{ia.value.splice(ia.value.findIndex(s=>s.id===a),1)},o=(a,s,l)=>{const u=l,c=ia.value.find(f=>f.id===a);c&&(c[s]=u)};return(a,s)=>(Y(),te(Ye,null,[L("div",null,ie(a.$t("sourceIPLabels")),1),L("div",lAe,[G(B(jh),{class:"flex flex-1 flex-col gap-2",modelValue:B(ia),"onUpdate:modelValue":s[0]||(s[0]=l=>ht(ia)?ia.value=l:null),group:"list",animation:150,handle:".drag-handle","item-key":"uuid",onStart:s[1]||(s[1]=l=>zI.value=!0),onEnd:s[2]||(s[2]=l=>zI.value=!1)},{item:qn(({element:{id:l,key:u,label:c}})=>[(Y(),te("div",{key:l,class:"flex items-center gap-2"},[G(B(rV),{class:"drag-handle h-4 w-4 shrink-0 cursor-grab"}),G(Zr,{class:"w-36 max-w-64 flex-1",modelValue:u,menus:t.value,onChange:f=>o(l,"key",f)},null,8,["modelValue","menus","onChange"]),G(B(Rl),{class:"h-4 w-4 shrink-0"}),G(Zr,{class:"w-28 sm:w-40",modelValue:c,onChange:f=>o(l,"label",f)},null,8,["modelValue","onChange"]),L("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:()=>i(l)},[G(B(A2),{class:"h-4 w-4"})],8,uAe)]))]),_:1},8,["modelValue"]),L("div",cAe,[G(B(ote),{class:"h-4 w-4 shrink-0"}),G(Zr,{class:"w-36 max-w-64 flex-1",menus:t.value,modelValue:n.key,"onUpdate:modelValue":s[3]||(s[3]=l=>n.key=l),placeholder:"IP | eui64 | /Regex"},null,8,["menus","modelValue"]),G(B(Rl),{class:"h-4 w-4 shrink-0"}),G(Zr,{class:"w-28 sm:w-40",modelValue:n.label,"onUpdate:modelValue":s[4]||(s[4]=l=>n.label=l),placeholder:a.$t("label"),onKeypress:w2(r,["enter"])},null,8,["modelValue","placeholder"]),L("button",{class:"btn btn-circle btn-sm",onClick:r},[G(B(T2),{class:"h-4 w-4"})])])])],64))}}),dAe={class:"card"},hAe={class:"card-title px-4 pt-4"},pAe={class:"card-body"},vAe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},gAe={class:"flex items-center gap-2"},mAe={class:"whitespace-nowrap"},yAe={value:!1},_Ae={value:!0},bAe={class:"flex items-center gap-2"},SAe=["value"],wAe={key:0,class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},xAe={class:"flex items-center gap-2"},CAe=["value"],TAe={class:"flex items-center gap-2"},EAe=["value"],AAe=nt({__name:"ConnectionsSettings",setup(e){return(t,n)=>(Y(),te("div",dAe,[L("div",hAe,ie(t.$t("connections")),1),L("div",pAe,[L("div",vAe,[L("div",gAe,[L("span",mAe,ie(t.$t("connectionStyle")),1),St(L("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[0]||(n[0]=r=>ht(Mo)?Mo.value=r:null)},[L("option",yAe,ie(t.$t("table")),1),L("option",_Ae,ie(t.$t("card")),1)],512),[[vr,B(Mo)]])]),L("div",bAe,[rt(ie(t.$t("proxyChainDirection"))+" ",1),St(L("select",{class:"select select-sm w-24","onUpdate:modelValue":n[1]||(n[1]=r=>ht(dh)?dh.value=r:null)},[(Y(!0),te(Ye,null,fn(Object.values(B(tp)),r=>(Y(),te("option",{key:r,value:r},ie(t.$t(r)),9,SAe))),128))],512),[[vr,B(dh)]])])]),B(Mo)?at("",!0):(Y(),te("div",wAe,[L("div",xAe,[L("div",null,ie(t.$t("tableWidthMode")),1),St(L("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[2]||(n[2]=r=>ht(U_)?U_.value=r:null)},[(Y(!0),te(Ye,null,fn(Object.values(B(fS)),r=>(Y(),te("option",{key:r,value:r},ie(t.$t(r)),9,CAe))),128))],512),[[vr,B(U_)]])]),L("div",TAe,[L("div",null,ie(t.$t("tableSize")),1),St(L("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[3]||(n[3]=r=>ht(V_)?V_.value=r:null)},[(Y(!0),te(Ye,null,fn(Object.values(B(Ug)),r=>(Y(),te("option",{key:r,value:r},ie(t.$t(r)),9,EAe))),128))],512),[[vr,B(V_)]])])])),n[4]||(n[4]=L("div",{class:"divider"},null,-1)),G(fAe)])]))}}),IAe={class:"card"},RAe={class:"card-title px-4 pt-4"},PAe={class:"card-body"},MAe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},OAe={class:"flex w-full items-center gap-2"},DAe={class:"flex w-full items-center gap-2"},LAe={class:"flex items-center gap-2"},NAe={class:"flex items-center gap-2"},kAe={class:"flex w-full items-center gap-2"},FAe={class:"flex items-center gap-2"},$Ae={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},BAe={class:"flex items-center gap-2"},VAe={class:"flex items-center gap-2"},UAe=["value"],HAe={class:"flex items-center gap-2"},zAe=["value"],GAe={class:"flex items-center gap-2"},WAe=["value"],jAe={class:"flex items-center gap-2"},XAe={class:"flex items-center gap-2"},YAe={class:"flex items-center gap-2"},KAe={class:"flex items-center gap-2"},ZAe=nt({__name:"ProxiesSettings",setup(e){const{showTip:t}=Ls(),{t:n}=Qr(),r=a=>t(a,n("independentLatencyTestTip")),i=Ce(()=>Object.values(Jr.value).some(a=>!!a.icon)),o=()=>{qv.value=k2(ef.value)};return(a,s)=>(Y(),te("div",IAe,[L("div",RAe,ie(a.$t("proxies")),1),L("div",PAe,[L("div",MAe,[L("div",OAe,[L("span",null,ie(a.$t("speedtestUrl")),1),G(Zr,{class:"w-36 flex-1 sm:max-w-80",modelValue:B(wf),"onUpdate:modelValue":s[0]||(s[0]=l=>ht(wf)?wf.value=l:null),clearable:!0},null,8,["modelValue"])]),L("div",DAe,[L("span",null,ie(a.$t("speedtestTimeout")),1),St(L("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[1]||(s[1]=l=>ht(Lu)?Lu.value=l:null)},null,512),[[ki,B(Lu)]]),s[14]||(s[14]=rt(" ms "))]),L("div",LAe,[L("span",null,ie(a.$t("lowLatencyDesc")),1),St(L("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[2]||(s[2]=l=>ht(wu)?wu.value=l:null)},null,512),[[ki,B(wu)]]),s[15]||(s[15]=rt(" ms "))]),L("div",NAe,[L("span",null,ie(a.$t("mediumLatencyDesc")),1),St(L("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[3]||(s[3]=l=>ht(ul)?ul.value=l:null)},null,512),[[ki,B(ul)]]),s[16]||(s[16]=rt(" ms "))]),L("div",kAe,[L("span",null,ie(a.$t("independentLatencyTest")),1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=l=>ht(fh)?fh.value=l:null)},null,512),[[Bn,B(fh)]]),G(B(E2),{class:"h-4 w-4",onMouseenter:r})]),L("div",FAe,[rt(ie(a.$t("ipv6Test"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[5]||(s[5]=l=>ht(xf)?xf.value=l:null)},null,512),[[Bn,B(xf)]])])]),s[17]||(s[17]=L("div",{class:"divider"},null,-1)),L("div",$Ae,[L("div",BAe,[rt(ie(a.$t("twoColumnProxyGroup"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[6]||(s[6]=l=>ht(Kv)?Kv.value=l:null)},null,512),[[Bn,B(Kv)]])]),L("div",VAe,[rt(ie(a.$t("proxyPreviewType"))+" ",1),St(L("select",{class:"select select-sm min-w-24","onUpdate:modelValue":s[7]||(s[7]=l=>ht(Zv)?Zv.value=l:null)},[(Y(!0),te(Ye,null,fn(Object.values(B(Vg)),l=>(Y(),te("option",{key:l,value:l},ie(a.$t(l)),9,UAe))),128))],512),[[vr,B(Zv)]])]),L("div",HAe,[rt(ie(a.$t("proxyCountMode"))+" ",1),St(L("select",{class:"select select-sm min-w-24","onUpdate:modelValue":s[8]||(s[8]=l=>ht(Qv)?Qv.value=l:null)},[(Y(!0),te(Ye,null,fn(Object.values(B(Hg)),l=>(Y(),te("option",{key:l,value:l},ie(a.$t(l)),9,zAe))),128))],512),[[vr,B(Qv)]])]),L("div",GAe,[rt(ie(a.$t("proxyCardSize"))+" ",1),St(L("select",{class:"select select-sm min-w-24","onUpdate:modelValue":s[9]||(s[9]=l=>ht(ef)?ef.value=l:null),onChange:o},[(Y(!0),te(Ye,null,fn(Object.values(B(Om)),l=>(Y(),te("option",{key:l,value:l},ie(a.$t(l)),9,WAe))),128))],544),[[vr,B(ef)]])]),L("div",jAe,[rt(ie(a.$t("truncateProxyName"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[10]||(s[10]=l=>ht(F_)?F_.value=l:null)},null,512),[[Bn,B(F_)]])]),L("div",XAe,[rt(ie(a.$t("displayGlobalByMode"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[11]||(s[11]=l=>ht($_)?$_.value=l:null)},null,512),[[Bn,B($_)]])]),i.value?(Y(),te(Ye,{key:0},[L("div",YAe,[rt(ie(a.$t("iconSize"))+" ",1),St(L("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[12]||(s[12]=l=>ht(Jv)?Jv.value=l:null)},null,512),[[ki,B(Jv)]])]),L("div",KAe,[rt(ie(a.$t("iconMarginRight"))+" ",1),St(L("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[13]||(s[13]=l=>ht(B_)?B_.value=l:null)},null,512),[[ki,B(B_)]])])],64)):at("",!0)])])]))}}),qAe={class:"flex items-center gap-2"},JAe=["value"],GI=nt({__name:"LanguageSelect",setup(e){const t={[_s.EN_US]:"English",[_s.ZH_CN]:"简体中文",[_s.RU_RU]:"Русский"};return(n,r)=>(Y(),te("div",qAe,[rt(ie(n.$t("language"))+" ",1),St(L("select",{class:"select select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>ht(Su)?Su.value=i:null),onChange:r[1]||(r[1]=()=>B(Dm).global.locale=B(Su))},[(Y(!0),te(Ye,null,fn(Object.values(B(_s)),i=>(Y(),te("option",{key:i,value:i},ie(t[i]||i),9,JAe))),128))],544),[[vr,B(Su)]])]))}}),WI=nt({__name:"ImportSettings",setup(e){const t=De(),n=()=>{var i;(i=t.value)==null||i.click()},r=()=>{var s,l;const{showNotification:i}=ed();i({content:Dm.global.t("importing")});const o=(l=(s=t.value)==null?void 0:s.files)==null?void 0:l[0];if(!o)return;const a=new FileReader;a.onload=async()=>{const u=JSON.parse(a.result);for(const c in u)localStorage.setItem(c,u[c]);location.reload()},a.readAsText(o)};return(i,o)=>(Y(),te(Ye,null,[L("button",{class:"btn btn-sm",onClick:n},ie(i.$t("importSettings")),1),L("input",{ref_key:"inputRef",ref:t,type:"file",accept:".json",class:"hidden",onChange:r},null,544)],64))}}),QAe={class:"card"},eIe={class:"card-title px-4 pt-4"},tIe={class:"indicator"},nIe={key:0,class:"indicator-item top-1 -right-1 flex"},rIe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},iIe={class:"text-sm font-normal"},oIe={class:"card-body gap-4"},aIe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},sIe={class:"flex items-center gap-2"},lIe={class:"flex items-center gap-2"},uIe=["value"],cIe={key:0,class:"flex items-center gap-2"},fIe=["value"],dIe={class:"flex items-center gap-2"},hIe=["value"],pIe={class:"flex items-center gap-2"},vIe={class:"shrink-0"},gIe={class:"join"},mIe={key:1,class:"flex items-center gap-2"},yIe={class:"flex items-center gap-2 md:hidden"},_Ie={key:0,class:"flex items-center gap-2"},bIe={class:"grid max-w-3xl grid-cols-2 gap-2 sm:grid-cols-4"},SIe=nt({__name:"ZashboardSettings",setup(e){const t=De(),n=()=>{var c;(c=t.value)==null||c.click()},r=()=>{za.value.includes(U1)||Vne()},i=c=>{var h;const f=(h=c.target.files)==null?void 0:h[0];if(!f)return;const d=new FileReader;d.onload=()=>{za.value=U1+"-"+Date.now(),$ne(d.result)},d.readAsDataURL(f)},{isUIUpdateAvailable:o}=T7(),a=De(!1),s=async()=>{if(!a.value){a.value=!0;try{await EU(),a.value=!1,window.location.reload()}catch{a.value=!1}}},l=["light","dark","light-legacy","dark-legacy","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"],u=async()=>{const c=await navigator.serviceWorker.getRegistrations();for(const f of c)f.unregister();window.location.reload()};return(c,f)=>(Y(),te("div",QAe,[L("div",eIe,[L("div",tIe,[B(o)?(Y(),te("span",nIe,f[12]||(f[12]=[L("span",{class:"bg-secondary absolute h-2 w-2 animate-ping rounded-full"},null,-1),L("span",{class:"bg-secondary h-2 w-2 rounded-full"},null,-1)]))):at("",!0),L("a",rIe,[f[13]||(f[13]=L("span",null," zashboard ",-1)),L("span",iIe,ie(B(xU)),1)])]),B(LE)?(Y(),te("button",{key:0,class:"btn btn-sm absolute top-2 right-2",onClick:u},[rt(ie(c.$t("refresh"))+" ",1),G(B(Im),{class:"h-4 w-4"})])):at("",!0)]),L("div",oIe,[L("div",aIe,[G(GI),L("div",sIe,[rt(ie(c.$t("autoSwitchTheme"))+" ",1),St(L("input",{type:"checkbox","onUpdate:modelValue":f[0]||(f[0]=d=>ht(Sv)?Sv.value=d:null),class:"toggle"},null,512),[[Bn,B(Sv)]])]),L("div",lIe,[rt(ie(c.$t("defaultTheme"))+" ",1),St(L("select",{class:"select select-sm w-48","onUpdate:modelValue":f[1]||(f[1]=d=>ht(uh)?uh.value=d:null)},[(Y(),te(Ye,null,fn(l,d=>L("option",{key:d,value:d},ie(d),9,uIe)),64))],512),[[vr,B(uh)]])]),B(Sv)?(Y(),te("div",cIe,[rt(ie(c.$t("darkTheme"))+" ",1),St(L("select",{class:"select select-sm w-48","onUpdate:modelValue":f[2]||(f[2]=d=>ht(ch)?ch.value=d:null)},[(Y(),te(Ye,null,fn(l,d=>L("option",{key:d,value:d},ie(d),9,fIe)),64))],512),[[vr,B(ch)]])])):at("",!0),L("div",dIe,[rt(ie(c.$t("fonts"))+" ",1),St(L("select",{class:"select select-sm w-48","onUpdate:modelValue":f[3]||(f[3]=d=>ht(Yv)?Yv.value=d:null)},[(Y(!0),te(Ye,null,fn(Object.values(B(mu)),d=>(Y(),te("option",{key:d,value:d},ie(d),9,hIe))),128))],512),[[vr,B(Yv)]])]),L("div",pIe,[L("span",vIe,ie(c.$t("customBackgroundURL")),1),L("div",gIe,[G(Zr,{class:"join-item max-w-64 flex-1",modelValue:B(za),"onUpdate:modelValue":[f[4]||(f[4]=d=>ht(za)?za.value=d:null),r],clearable:!0},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:n},[G(B(Rm),{class:"h-4 w-4"})])]),L("input",{ref_key:"inputFileRef",ref:t,type:"file",accept:"image/*",class:"hidden",onChange:i},null,544)]),B(za)?(Y(),te("div",mIe,[rt(ie(c.$t("transparent"))+" ",1),St(L("input",{type:"range",min:"0",max:"100","onUpdate:modelValue":f[5]||(f[5]=d=>ht(P_)?P_.value=d:null),class:"range max-w-64",onTouchstart:f[6]||(f[6]=gr(()=>{},["stop"])),onTouchmove:f[7]||(f[7]=gr(()=>{},["stop"])),onTouchend:f[8]||(f[8]=gr(()=>{},["stop"]))},null,544),[[ki,B(P_)]])])):at("",!0),L("div",yIe,[rt(ie(c.$t("swipeInTabs"))+" ",1),St(L("input",{type:"checkbox","onUpdate:modelValue":f[9]||(f[9]=d=>ht(O_)?O_.value=d:null),class:"toggle"},null,512),[[Bn,B(O_)]])])]),B(_l)?at("",!0):(Y(),te("div",_Ie,[rt(ie(c.$t("autoUpgrade"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":f[10]||(f[10]=d=>ht(M_)?M_.value=d:null)},null,512),[[Bn,B(M_)]])])),L("div",bIe,[B(_l)?at("",!0):(Y(),te(Ye,{key:0},[L("button",{class:gt(B(_i)("btn btn-primary btn-sm",a.value?"animate-pulse":"")),onClick:s},ie(c.$t("upgradeUI")),3),f[14]||(f[14]=L("div",{class:"sm:hidden"},null,-1))],64)),L("button",{class:"btn btn-sm",onClick:f[11]||(f[11]=(...d)=>B(QN)&&B(QN)(...d))},ie(c.$t("exportSettings")),1),G(WI)])])]))}}),wIe={class:"grid grid-cols-1 gap-2 overflow-x-hidden p-2"},xIe={key:0,class:"card"},CIe={class:"card-title px-4 pt-4"},TIe={class:"card"},EIe={class:"card-title px-4 pt-4"},AIe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},IIe={class:"flex items-center gap-2"},RIe={key:0,class:"flex items-center gap-2"},PIe={class:"flex items-center gap-2"},MIe={class:"flex items-center gap-2"},OIe={class:"flex items-center gap-2 max-md:hidden"},DIe=nt({__name:"SettingsPage",setup(e){return(t,n)=>(Y(),te("div",wIe,[G(SIe),B(Yd)?at("",!0):(Y(),te("div",xIe,[L("div",CIe,ie(t.$t("overview")),1),L("div",{class:gt(["card-body grid grid-cols-1 gap-2",B(Ua)?["md:grid-cols-2",B(Sd)?"lg:grid-cols-3":"xl:grid-cols-4"]:["lg:grid-cols-2",B(Sd)?"xl:grid-cols-3":"2xl:grid-cols-4"]])},[G(ZR,{type:"settings"}),B(Sd)?(Y(),te(Ye,{key:0},[G(A7),G(E7)],64)):at("",!0),G(oM),G(iM),G(rM)],2)])),G(sAe),G(ZAe),G(AAe),L("div",TIe,[L("div",EIe,ie(t.$t("overview")),1),L("div",AIe,[L("div",IIe,[rt(ie(t.$t("splitOverviewPage"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>ht(Yd)?Yd.value=r:null)},null,512),[[Bn,B(Yd)]])]),B(Yd)?at("",!0):(Y(),te("div",RIe,[rt(ie(t.$t("showIPAndConnectionInfo"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>ht(Sd)?Sd.value=r:null)},null,512),[[Bn,B(Sd)]])])),L("div",PIe,[rt(ie(t.$t("autoIPCheckWhenStart"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=r=>ht(D_)?D_.value=r:null)},null,512),[[Bn,B(D_)]])]),L("div",MIe,[rt(ie(t.$t("autoConnectionCheckWhenStart"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=r=>ht(L_)?L_.value=r:null)},null,512),[[Bn,B(L_)]])]),L("div",OIe,[rt(ie(t.$t("showStatisticsWhenSidebarCollapsed"))+" ",1),St(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=r=>ht(N_)?N_.value=r:null)},null,512),[[Bn,B(N_)]])])])])]))}}),LIe={class:"absolute top-4 right-4 max-sm:hidden"},NIe={class:"absolute right-4 bottom-4 max-sm:hidden"},kIe={class:"card mx-auto w-96 max-w-[90%] gap-2 px-6 py-2 max-sm:my-4"},FIe={class:"text-2xl font-semibold"},$Ie={class:"form-control"},BIe={class:"label"},VIe={class:"label-text"},UIe={class:"form-control"},HIe={class:"label"},zIe={class:"label-text"},GIe={class:"form-control"},WIe={class:"label"},jIe={class:"label-text"},XIe={class:"form-control"},YIe={class:"label flex items-center justify-start gap-1"},KIe={class:"label-text"},ZIe=["data-tip"],qIe={class:"form-control"},JIe={class:"label"},QIe={class:"label-text"},e2e={class:"form-control"},t2e={class:"label"},n2e={class:"label-text"},r2e={class:"btn btn-circle btn-ghost btn-sm"},i2e=["onClick"],o2e=["onClick"],a2e={class:"absolute top-2 right-2 sm:hidden"},s2e=nt({__name:"SetupPage",setup(e){var a,s;const t=qa({protocol:"http",host:"127.0.0.1",port:"9090",secondaryPath:"",password:"",label:""}),{showNotification:n}=ed(),r=l=>{vi.value=l,Ds.push({name:jt.proxies})},i=async(l,u=!1)=>{const{protocol:c,host:f,port:d,password:h}=l;if(!c||!f||!d){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&c==="http"&&!["::1","0.0.0.0","127.0.0.1","localhost"].includes(f)&&!u&&n({content:"protocolTips"});try{const v=await fetch(`${zu(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${h}`}});if(v.status!==200){u||alert(v.statusText);return}const{version:m,message:_}=await v.json();if(!m){u||alert(_);return}loe(l),Ds.push({name:jt.proxies})}catch(v){u||alert(v)}},o=new URLSearchParams(window.location.search||((s=(a=location.hash.match(/\?.*$/))==null?void 0:a[0])==null?void 0:s.replace("?","")));return o.has("hostname")?i({protocol:o.get("http")?"http":o.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:o.get("secondaryPath")||"",host:o.get("hostname"),port:o.get("port"),password:o.get("secret")||"",label:o.get("label")||"",disableUpgradeCore:o.get("disableUpgradeCore")==="1"||o.get("disableUpgradeCore")==="core"}):da.value.length===0&&i(t,!0),(l,u)=>(Y(),te("div",{class:"bg-base-200/50 h-full w-full items-center justify-center overflow-auto sm:flex",onKeydown:u[8]||(u[8]=w2(c=>i(t),["enter"]))},[L("div",LIe,[G(WI)]),L("div",NIe,[G(GI)]),L("div",kIe,[L("h1",FIe,ie(l.$t("setup")),1),L("div",$Ie,[L("label",BIe,[L("span",VIe,ie(l.$t("protocol")),1)]),St(L("select",{class:"select select-sm w-full","onUpdate:modelValue":u[0]||(u[0]=c=>t.protocol=c)},u[9]||(u[9]=[L("option",{value:"http"},"HTTP",-1),L("option",{value:"https"},"HTTPS",-1)]),512),[[vr,t.protocol]])]),L("div",UIe,[L("label",HIe,[L("span",zIe,ie(l.$t("host")),1)]),G(Zr,{class:"w-full",name:"username",autocomplete:"username",modelValue:t.host,"onUpdate:modelValue":u[1]||(u[1]=c=>t.host=c)},null,8,["modelValue"])]),L("div",GIe,[L("label",WIe,[L("span",jIe,ie(l.$t("port")),1)]),G(Zr,{class:"w-full",modelValue:t.port,"onUpdate:modelValue":u[2]||(u[2]=c=>t.port=c)},null,8,["modelValue"])]),L("div",XIe,[L("label",YIe,[L("span",KIe,ie(l.$t("secondaryPath"))+" ("+ie(l.$t("optional"))+")",1),L("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[G(B(E2),{class:"h-4 w-4"})],8,ZIe)]),G(Zr,{class:"w-full",modelValue:t.secondaryPath,"onUpdate:modelValue":u[3]||(u[3]=c=>t.secondaryPath=c)},null,8,["modelValue"])]),L("div",qIe,[L("label",JIe,[L("span",QIe,ie(l.$t("password")),1)]),St(L("input",{type:"password",class:"input input-sm w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.password=c)},null,512),[[ki,t.password]])]),L("div",e2e,[L("label",t2e,[L("span",n2e,ie(l.$t("label"))+" ("+ie(l.$t("optional"))+")",1)]),G(Zr,{class:"w-full",modelValue:t.label,"onUpdate:modelValue":u[5]||(u[5]=c=>t.label=c)},null,8,["modelValue"])]),L("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>i(t))},ie(l.$t("submit")),1),G(B(jh),{class:"flex flex-1 flex-col gap-2",modelValue:B(da),"onUpdate:modelValue":u[7]||(u[7]=c=>ht(da)?da.value=c:null),group:"list",animation:150,"item-key":"uuid"},{item:qn(({element:c})=>[(Y(),te("div",{key:c.uuid,class:"flex items-center gap-2"},[L("button",r2e,[G(B(rV),{class:"h-4 w-4 cursor-grab"})]),L("button",{class:"btn btn-sm flex-1",onClick:f=>r(c.uuid)},ie(c.label||B(zu)(c)),9,i2e),L("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:()=>B(JV)(c.uuid)},[G(B(A2),{class:"h-4 w-4"})],8,o2e)]))]),_:1},8,["modelValue"]),G(GI,{class:"mt-4 sm:hidden"}),L("div",a2e,[G(WI)])])],32))}}),l2e=[{path:"proxies",name:jt.proxies,component:IEe},{path:"overview",name:jt.overview,component:KTe},{path:"connections",name:jt.connections,component:xce},{path:"logs",name:jt.logs,component:iTe},{path:"rules",name:jt.rules,component:UEe},{path:"settings",name:jt.settings,component:DIe}],Ds=lne({history:$te("./"),routes:[{path:"/",redirect:jt.proxies,component:JCe,children:l2e},{path:"/setup",name:jt.setup,component:s2e},{path:"/:catchAll(.*)",redirect:jt.proxies}]}),j4=Nne("zashboard"),O7=e=>{typeof e=="string"&&Lo.value?j4.value=`zashboard | ${Dm.global.t(e)}`:j4.value="zashboard"};Ds.beforeEach((e,t)=>{const n=af.value.findIndex(i=>i===e.name),r=af.value.findIndex(i=>i===t.name);n===0&&r===af.value.length-1?e.meta.transition="slide-left":n===af.value.length-1&&r===0?e.meta.transition="slide-right":n!==r&&(e.meta.transition=n<r?"slide-right":"slide-left"),!Lo.value&&e.name!==jt.setup&&Ds.push({name:jt.setup})});Ds.afterEach(e=>{O7(e.name)});Bt(Su,()=>{O7(Ds.currentRoute.value.name)});{const e=t=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.media="print",n.onload=()=>{n.media="all"},document.head.appendChild(n)};e("https://unpkg.com/subsetted-fonts@latest/MiSans-VF/MiSans-VF.css"),e("https://unpkg.com/subsetted-fonts@latest/SarasaUiSC-Regular/SarasaUiSC-Regular.css"),e("https://unpkg.com/subsetted-fonts@latest/PingFangSC-Regular/PingFangSC-Regular.css"),e("https://unpkg.com/@fontsource/fira-sans")}const uM=V1(soe);po.extend(YZ);po.extend(JZ);po.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});uM.use(Ds);uM.use(Dm);uM.mount("#app");
|