small-package/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-f1V50AYQ.js

180 lines
1.3 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var HZ=Object.defineProperty;var LD=e=>{throw TypeError(e)};var zZ=(e,t,n)=>t in e?HZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bx=(e,t,n)=>zZ(e,typeof t!="symbol"?t+"":t,n),ND=(e,t,n)=>t.has(e)||LD("Cannot "+n);var as=(e,t,n)=>(ND(e,t,"read from private field"),n?n.call(e):t.get(e)),Xy=(e,t,n)=>t.has(e)?LD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ys=(e,t,n,r)=>(ND(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Vx=(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 Yy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ub(e){if(Object.prototype.hasOwnProperty.call(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 w_={exports:{}},GZ=w_.exports,kD;function q2(){return kD||(kD=1,function(e,t){(function(n,r){e.exports=r()})(GZ,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",v="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,b={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])+"]"}},S=function($,W,N){var K=String($);return!K||K.length>=W?$:""+Array(W+1-K.length).join(N)+$},w={s:S,z:function($){var W=-$.utcOffset(),N=Math.abs(W),K=Math.floor(N/60),Y=N%60;return(W<=0?"+":"-")+S(K,2,"0")+":"+S(Y,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()),Y=W.clone().add(K,f),ae=N-Y<0,ge=W.clone().add(K+(ae?-1:1),f);return+(-(K+(N-Y)/(ae?Y-ge:ge-Y))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:d,w:c,d:u,D:v,h:l,m:s,s:a,ms:o,Q:h}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},T="en",C={};C[T]=b;var E="$isDayjsObject",R=function($){return $ instanceof L||!(!$||!$[E])},I=function $(W,N,K){var Y;if(!W)return T;if(typeof W=="string"){var ae=W.toLowerCase();C[ae]&&(Y=ae),N&&(C[ae]=N,Y=ae);var ge=W.split("-");if(!Y&&ge.length>1)return $(ge[0])}else{var ye=W.name;C[ye]=W,Y=ye}return!K&&Y&&(T=Y),Y||!K&&T},P=function($,W){if(R($))return $.clone();var N=typeof W=="object"?W:{};return N.date=$,N.args=arguments,new L(N)},M=w;M.l=I,M.i=R,M.w=function($,W){return P($,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var L=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 Y=K.date,ae=K.utc;if(Y===null)return new Date(NaN);if(M.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ge=Y.match(y);if(ge){var ye=ge[2]-1||0,Oe=(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,Oe)):new Date(ge[1],ye,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Oe)}}return new Date(Y)}(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 M},W.isValid=function(){return this.$d.toString()!==m},W.isSame=function(N,K){var Y=P(N);return this.startOf(K)<=Y&&Y<=this.endOf(K)},W.isAfter=function(N,K){return P(N)<this.startOf(K)},W.isBefore=function(N,K){return this.endOf(K)<P(N)},W.$g=function(N,K,Y){return M.u(N)?this[K]:this.set(Y,N)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(N,K){var Y=this,ae=!!M.u(K)||K,ge=M.p(N),ye=function(Se,Te){var Ne=M.w(Y.$u?Date.UTC(Y.$y,Te,Se):new Date(Y.$y,Te,Se),Y);return ae?Ne:Ne.endOf(u)},Oe=function(Se,Te){return M.w(Y.toDate()[Se].apply(Y.toDate("s"),(ae?[0,0,0,0]:[23,59,59,999]).slice(Te)),Y)},ke=this.$W,Ue=this.$M,Le=this.$D,Xe="set"+(this.$u?"UTC":"");switch(ge){case d: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 Oe(Xe+"Hours",0);case l:return Oe(Xe+"Minutes",1);case s:return Oe(Xe+"Seconds",2);case a:return Oe(Xe+"Milliseconds",3);default:return this.clone()}},W.endOf=function(N){return this.startOf(N,!1)},W.$set=function(N,K){var Y,ae=M.p(N),ge="set"+(this.$u?"UTC":""),ye=(Y={},Y[u]=ge+"Date",Y[v]=ge+"Date",Y[f]=ge+"Month",Y[d]=ge+"FullYear",Y[l]=ge+"Hours",Y[s]=ge+"Minutes",Y[a]=ge+"Seconds",Y[o]=ge+"Milliseconds",Y)[ae],Oe=ae===u?this.$D+(K-this.$W):K;if(ae===f||ae===d){var ke=this.clone().set(v,1);ke.$d[ye](Oe),ke.init(),this.$d=ke.set(v,Math.min(this.$D,ke.daysInMonth())).$d}else ye&&this.$d[ye](Oe);return this.init(),this},W.set=function(N,K){return this.clone().$set(N,K)},W.get=function(N){return this[M.p(N)]()},W.add=function(N,K){var Y,ae=this;N=Number(N);var ge=M.p(K),ye=function(Ue){var Le=P(ae);return M.w(Le.date(Le.date()+Math.round(Ue*N)),ae)};if(ge===f)return this.set(f,this.$M+N);if(ge===d)return this.set(d,this.$y+N);if(ge===u)return ye(1);if(ge===c)return ye(7);var Oe=(Y={},Y[s]=r,Y[l]=i,Y[a]=n,Y)[ge]||1,ke=this.$d.getTime()+N*Oe;return M.w(ke,this)},W.subtract=function(N,K){return this.add(-1*N,K)},W.format=function(N){var K=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||m;var ae=N||"YYYY-MM-DDTHH:mm:ssZ",ge=M.z(this),ye=this.$H,Oe=this.$m,ke=this.$M,Ue=Y.weekdays,Le=Y.months,Xe=Y.meridiem,fe=function(Te,Ne,Be,H){return Te&&(Te[Ne]||Te(K,ae))||Be[Ne].slice(0,H)},Ae=function(Te){return M.s(ye%12||12,Te,"0")},Se=Xe||function(Te,Ne,Be){var H=Te<12?"AM":"PM";return Be?H.toLowerCase():H};return ae.replace(_,function(Te,Ne){return Ne||function(Be){switch(Be){case"YY":return String(K.$y).slice(-2);case"YYYY":return M.s(K.$y,4,"0");case"M":return ke+1;case"MM":return M.s(ke+1,2,"0");case"MMM":return fe(Y.monthsShort,ke,Le,3);case"MMMM":return fe(Le,ke);case"D":return K.$D;case"DD":return M.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return fe(Y.weekdaysMin,K.$W,Ue,2);case"ddd":return fe(Y.weekdaysShort,K.$W,Ue,3);case"dddd":return Ue[K.$W];case"H":return String(ye);case"HH":return M.s(ye,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return Se(ye,Oe,!0);case"A":return Se(ye,Oe,!1);case"m":return String(Oe);case"mm":return M.s(Oe,2,"0");case"s":return String(K.$s);case"ss":return M.s(K.$s,2,"0");case"SSS":return M.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,Y){var ae,ge=this,ye=M.p(K),Oe=P(N),ke=(Oe.utcOffset()-this.utcOffset())*r,Ue=this-Oe,Le=function(){return M.m(ge,Oe)};switch(ye){case d:ae=Le()/12;break;case f:ae=Le();break;case h: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 Y?ae:M.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 Y=this.clone(),ae=I(N,K,!0);return ae&&(Y.$L=ae),Y},W.clone=function(){return M.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=L.prototype;return P.prototype=k,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",v]].forEach(function($){k[$[1]]=function(W){return this.$g(W,$[0],$[1])}}),P.extend=function($,W){return $.$i||($(W,L,P),$.$i=!0),P},P.locale=I,P.isDayjs=R,P.unix=function($){return P(1e3*$)},P.en=C[T],P.Ls=C,P.p={},P})}(w_)),w_.exports}var WZ=q2();const po=Sm(WZ);var x_={exports:{}},jZ=x_.exports,FD;function XZ(){return FD||(FD=1,function(e,t){(function(n,r){e.exports=r(q2())})(jZ,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,y){var _,b;return y==="m"?m?"минута":"минуту":v+" "+(_=+v,b={mm:m?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",MM:"месяц_месяцаесяцев",yy:"год_годает"}[y].split("_"),_%10==1&&_%100!=11?b[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?b[1]:b[2])}var f=function(v,m){return u.test(m)?o[v.month()]:a[v.month()]};f.s=a,f.f=o;var h=function(v,m){return u.test(m)?s[v.month()]:l[v.month()]};h.s=l,h.f=s;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:h,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(d,null,!0),d})}(x_)),x_.exports}XZ();var C_={exports:{}},YZ=C_.exports,$D;function KZ(){return $D||($D=1,function(e,t){(function(n,r){e.exports=r(q2())})(YZ,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})}(C_)),C_.exports}KZ();var T_={exports:{}},ZZ=T_.exports,BD;function qZ(){return BD||(BD=1,function(e,t){(function(n,r){e.exports=r()})(ZZ,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,h){return o.fromToBase(u,c,f,h)}i.en.relativeTime=a,o.fromToBase=function(u,c,f,h,d){for(var v,m,y,_=f.$locale().relativeTime||a,b=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"}],S=b.length,w=0;w<S;w+=1){var T=b[w];T.d&&(v=h?i(u).diff(f,T.d,!0):f.diff(u,T.d,!0));var C=(n.rounding||Math.round)(Math.abs(v));if(y=v>0,C<=T.r||!T.r){C<=1&&w>0&&(T=b[w-1]);var E=_[T.l];d&&(C=d(""+C)),m=typeof E=="string"?E.replace("%d",C):E(C,c,T.l,y);break}}if(c)return m;var R=y?_.future:_.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)}}})}(T_)),T_.exports}var JZ=qZ();const QZ=Sm(JZ);var E_={exports:{}},eq=E_.exports,VD;function tq(){return VD||(VD=1,function(e,t){(function(n,r){e.exports=r()})(eq,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}}})}(E_)),E_.exports}var nq=tq();const rq=Sm(nq);/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Hr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const en={},vf=[],Ur=()=>{},rh=()=>!1,Ju=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hb=e=>e.startsWith("onUpdate:"),nn=Object.assign,zb=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},iq=Object.prototype.hasOwnProperty,dn=(e,t)=>iq.call(e,t),et=Array.isArray,gf=e=>ed(e)==="[object Map]",Qu=e=>ed(e)==="[object Set]",dE=e=>ed(e)==="[object Date]",Z4=e=>ed(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",Gb=e=>(mn(e)||Ct(e))&&Ct(e.then)&&Ct(e.catch),J2=Object.prototype.toString,ed=e=>J2.call(e),q4=e=>ed(e).slice(8,-1),wm=e=>ed(e)==="[object Object]",Wb=e=>Mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gl=Hr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),J4=Hr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),jb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oq=/-(\w)/g,Vn=jb(e=>e.replace(oq,(t,n)=>n?n.toUpperCase():"")),aq=/\B([A-Z])/g,pi=jb(e=>e.replace(aq,"-$1").toLowerCase()),ec=jb(e=>e.charAt(0).toUpperCase()+e.slice(1)),mf=jb(e=>e?`on${ec(e)}`:""),fi=(e,t)=>!Object.is(e,t),yf=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Q2=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ig=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rg=e=>{const t=Mt(e)?Number(e):NaN;return isNaN(t)?e:t};let UD;const xm=()=>UD||(UD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),sq=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function lq(e){return sq.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function uq(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const cq={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"},fq={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"},dq={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"},hq={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},pq={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},vq="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",eI=Hr(vq),gq=eI,HD=2;function Q4(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-HD;l<=s+HD||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 h=t-(o-(c+f)),d=Math.max(1,n>o?c-h:n-t);a.push(" | "+" ".repeat(h)+"^".repeat(d))}else if(l>s){if(n>o){const h=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(h))}o+=c+f}}break}return a.join(`
`)}function lr(e){if(et(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Mt(r)?tI(r):lr(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(Mt(e)||mn(e))return e}const mq=/;(?![^(]*\))/g,yq=/:([^]+)/,_q=/\/\*[^]*?\*\//g;function tI(e){const t={};return e.replace(_q,"").split(mq).forEach(n=>{if(n){const r=n.split(yq);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function bq(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 mt(e){let t="";if(Mt(e))t=e;else if(et(e))for(let n=0;n<e.length;n++){const r=mt(e[n]);r&&(t+=r+" ")}else if(mn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function e$(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Mt(t)&&(e.class=mt(t)),n&&(e.style=lr(n)),e}const Sq="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",wq="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",xq="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",Cq="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",t$=Hr(Sq),n$=Hr(wq),r$=Hr(xq),i$=Hr(Cq),o$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a$=Hr(o$),Tq=Hr(o$+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function nI(e){return!!e||e===""}const Eq=/[>/="'\u0009\u000a\u000c\u0020]/,Ux={};function Aq(e){if(Ux.hasOwnProperty(e))return Ux[e];const t=Eq.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Ux[e]=!t}const Iq={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Rq=Hr("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"),Pq=Hr("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"),Mq=Hr("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 Oq(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const Dq=/["'&<>]/;function Lq(e){const t=""+e,n=Dq.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="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";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 Nq=/^-?>|<!--|-->|--!>|<!-$/g;function kq(e){return e.replace(Nq,"")}const s$=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Fq(e,t){return e.replace(s$,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function $q(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=dE(e),r=dE(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=et(e),r=et(t),n||r)return n&&r?$q(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 Cm(e,t){return e.findIndex(n=>El(n,t))}const l$=e=>!!(e&&e.__v_isRef===!0),ne=e=>Mt(e)?e:e==null?"":et(e)||mn(e)&&(e.toString===J2||!Ct(e.toString))?l$(e)?ne(e.value):JSON.stringify(e,u$,2):String(e),u$=(e,t)=>l$(t)?u$(e,t.value):gf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[Hx(r,o)+" =>"]=i,n),{})}:Qu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hx(n))}:Vi(t)?Hx(t):mn(t)&&!et(t)&&!wm(t)?String(t):t,Hx=(e,t="")=>{var n;return Vi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},Bq=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:vf,EMPTY_OBJ:en,NO:rh,NOOP:Ur,PatchFlagNames:fq,PatchFlags:cq,ShapeFlags:dq,SlotFlags:hq,camelize:Vn,capitalize:ec,cssVarNameEscapeSymbolsRE:s$,def:Q2,escapeHtml:Lq,escapeHtmlComment:kq,extend:nn,genCacheKey:uq,genPropsAccessExp:lq,generateCodeFrame:Q4,getEscapedCssVarName:Fq,getGlobalThis:xm,hasChanged:fi,hasOwn:dn,hyphenate:pi,includeBooleanAttr:nI,invokeArrayFns:yf,isArray:et,isBooleanAttr:Tq,isBuiltInDirective:J4,isDate:dE,isFunction:Ct,isGloballyAllowed:eI,isGloballyWhitelisted:gq,isHTMLTag:t$,isIntegerKey:Wb,isKnownHtmlAttr:Rq,isKnownMathMLAttr:Mq,isKnownSvgAttr:Pq,isMap:gf,isMathMLTag:r$,isModelListener:Hb,isObject:mn,isOn:Ju,isPlainObject:wm,isPromise:Gb,isRegExp:Z4,isRenderableAttrValue:Oq,isReservedProp:gl,isSSRSafeAttrName:Aq,isSVGTag:n$,isSet:Qu,isSpecialBooleanAttr:a$,isString:Mt,isSymbol:Vi,isVoidTag:i$,looseEqual:El,looseIndexOf:Cm,looseToNumber:Ig,makeMap:Hr,normalizeClass:mt,normalizeProps:e$,normalizeStyle:lr,objectToString:J2,parseStringStyle:tI,propsToAttrMap:Iq,remove:zb,slotFlagsText:pq,stringifyStyle:bq,toDisplayString:ne,toHandlerKey:mf,toNumber:Rg,toRawType:q4,toTypeString:ed},Symbol.toStringTag,{value:"Module"}));/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Mi;class rI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Mi,!t&&Mi&&(this.index=(Mi.scopes||(Mi.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=Mi;try{return Mi=this,t()}finally{Mi=n}}}on(){Mi=this}off(){Mi=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 c$(e){return new rI(e)}function Xb(){return Mi}function iI(e,t=!1){Mi&&Mi.cleanups.push(e)}let Bn;const zx=new WeakSet;class Pg{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,Mi&&Mi.active&&Mi.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zx.has(this)&&(zx.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||d$(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,zD(this),h$(this);const t=Bn,n=Za;Bn=this,Za=!0;try{return this.fn()}finally{p$(this),Bn=t,Za=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)sI(t);this.deps=this.depsTail=void 0,zD(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zx.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){hE(this)&&this.run()}get dirty(){return hE(this)}}let f$=0,Vv,Uv;function d$(e,t=!1){if(e.flags|=8,t){e.next=Uv,Uv=e;return}e.next=Vv,Vv=e}function oI(){f$++}function aI(){if(--f$>0)return;if(Uv){let t=Uv;for(Uv=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vv;){let t=Vv;for(Vv=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 h$(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function p$(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),sI(r),Vq(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function hE(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(v$(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function v$(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Mg))return;e.globalVersion=Mg;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!hE(e)){e.flags&=-3;return}const n=Bn,r=Za;Bn=e,Za=!0;try{h$(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{Bn=n,Za=r,p$(e),e.flags&=-3}}function sI(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)sI(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Vq(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Uq(e,t){e.effect instanceof Pg&&(e=e.effect.fn);const n=new Pg(e);t&&nn(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function Hq(e){e.effect.stop()}let Za=!0;const g$=[];function tc(){g$.push(Za),Za=!1}function nc(){const e=g$.pop();Za=e===void 0?!0:e}function zD(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Bn;Bn=void 0;try{t()}finally{Bn=n}}}let Mg=0;class zq{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 Yb{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(!Bn||!Za||Bn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Bn)n=this.activeLink=new zq(Bn,this),Bn.deps?(n.prevDep=Bn.depsTail,Bn.depsTail.nextDep=n,Bn.depsTail=n):Bn.deps=Bn.depsTail=n,m$(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=Bn.depsTail,n.nextDep=void 0,Bn.depsTail.nextDep=n,Bn.depsTail=n,Bn.deps===n&&(Bn.deps=r)}return n}trigger(t){this.version++,Mg++,this.notify(t)}notify(t){oI();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{aI()}}}function m$(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)m$(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const A1=new WeakMap,_f=Symbol(""),pE=Symbol(""),Og=Symbol("");function di(e,t,n){if(Za&&Bn){let r=A1.get(e);r||A1.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Yb),i.map=r,i.key=n),i.track()}}function al(e,t,n,r,i,o){const a=A1.get(e);if(!a){Mg++;return}const s=l=>{l&&l.trigger()};if(oI(),t==="clear")a.forEach(s);else{const l=et(e),u=l&&Wb(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,h)=>{(h==="length"||h===Og||!Vi(h)&&h>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(Og)),t){case"add":l?u&&s(a.get("length")):(s(a.get(_f)),gf(e)&&s(a.get(pE)));break;case"delete":l||(s(a.get(_f)),gf(e)&&s(a.get(pE)));break;case"set":gf(e)&&s(a.get(_f));break}}aI()}function Gq(e,t){const n=A1.get(e);return n&&n.get(t)}function xd(e){const t=cn(e);return t===e?t:(di(t,"iterate",Og),Do(e)?t:t.map(hi))}function Kb(e){return di(e=cn(e),"iterate",Og),e}const Wq={__proto__:null,[Symbol.iterator](){return Gx(this,Symbol.iterator,hi)},concat(...e){return xd(this).concat(...e.map(t=>et(t)?xd(t):t))},entries(){return Gx(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 Wx(this,"includes",e)},indexOf(...e){return Wx(this,"indexOf",e)},join(e){return xd(this).join(e)},lastIndexOf(...e){return Wx(this,"lastIndexOf",e)},map(e,t){return Ks(this,"map",e,t,void 0,arguments)},pop(){return Fp(this,"pop")},push(...e){return Fp(this,"push",e)},reduce(e,...t){return GD(this,"reduce",e,t)},reduceRight(e,...t){return GD(this,"reduceRight",e,t)},shift(){return Fp(this,"shift")},some(e,t){return Ks(this,"some",e,t,void 0,arguments)},splice(...e){return Fp(this,"splice",e)},toReversed(){return xd(this).toReversed()},toSorted(e){return xd(this).toSorted(e)},toSpliced(...e){return xd(this).toSpliced(...e)},unshift(...e){return Fp(this,"unshift",e)},values(){return Gx(this,"values",hi)}};function Gx(e,t,n){const r=Kb(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 jq=Array.prototype;function Ks(e,t,n,r,i,o){const a=Kb(e),s=a!==e&&!Do(e),l=a[t];if(l!==jq[t]){const f=l.apply(e,o);return s?hi(f):f}let u=n;a!==e&&(s?u=function(f,h){return n.call(this,hi(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function GD(e,t,n,r){const i=Kb(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 Wx(e,t,n){const r=cn(e);di(r,"iterate",Og);const i=r[t](...n);return(i===-1||i===!1)&&Jb(n[0])?(n[0]=cn(n[0]),r[t](...n)):i}function Fp(e,t,n=[]){tc(),oI();const r=cn(e)[t].apply(e,n);return aI(),nc(),r}const Xq=Hr("__proto__,__v_isRef,__isVue"),y$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vi));function Yq(e){Vi(e)||(e=String(e));const t=cn(this);return di(t,"has",e),t.hasOwnProperty(e)}class _${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?T$:C$:o?x$:w$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=et(t);if(!i){let l;if(a&&(l=Wq[n]))return l;if(n==="hasOwnProperty")return Yq}const s=Reflect.get(t,n,pt(t)?t:r);return(Vi(n)?y$.has(n):Xq(n))||(i||di(t,"get",n),o)?s:pt(s)?a&&Wb(n)?s:s.value:mn(s)?i?Tm(s):_a(s):s}}class b$ extends _${constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=Hu(o);if(!Do(r)&&!Hu(r)&&(o=cn(o),r=cn(r)),!et(t)&&pt(o)&&!pt(r))return l?!1:(o.value=r,!0)}const a=et(t)&&Wb(n)?Number(n)<t.length:dn(t,n),s=Reflect.set(t,n,r,pt(t)?t:i);return t===cn(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)||!y$.has(n))&&di(t,"has",n),r}ownKeys(t){return di(t,"iterate",et(t)?"length":_f),Reflect.ownKeys(t)}}class S$ extends _${constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Kq=new b$,Zq=new S$,qq=new b$(!0),Jq=new S$(!0),vE=e=>e,Ky=e=>Reflect.getPrototypeOf(e);function Qq(e,t,n){return function(...r){const i=this.__v_raw,o=cn(i),a=gf(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?vE:t?gE:hi;return!t&&di(o,"iterate",l?pE:_f),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:s?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function Zy(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eJ(e,t){const n={get(i){const o=this.__v_raw,a=cn(o),s=cn(i);e||(fi(i,s)&&di(a,"get",i),di(a,"get",s));const{has:l}=Ky(a),u=t?vE:e?gE: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(cn(i),"iterate",_f),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=cn(o),s=cn(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=cn(s),u=t?vE:e?gE:hi;return!e&&di(l,"iterate",_f),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return nn(n,e?{add:Zy("add"),set:Zy("set"),delete:Zy("delete"),clear:Zy("clear")}:{add(i){!t&&!Do(i)&&!Hu(i)&&(i=cn(i));const o=cn(this);return Ky(o).has.call(o,i)||(o.add(i),al(o,"add",i,i)),this},set(i,o){!t&&!Do(o)&&!Hu(o)&&(o=cn(o));const a=cn(this),{has:s,get:l}=Ky(a);let u=s.call(a,i);u||(i=cn(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=cn(this),{has:a,get:s}=Ky(o);let l=a.call(o,i);l||(i=cn(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=cn(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]=Qq(i,e,t)}),n}function Zb(e,t){const n=eJ(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 tJ={get:Zb(!1,!1)},nJ={get:Zb(!1,!0)},rJ={get:Zb(!0,!1)},iJ={get:Zb(!0,!0)},w$=new WeakMap,x$=new WeakMap,C$=new WeakMap,T$=new WeakMap;function oJ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aJ(e){return e.__v_skip||!Object.isExtensible(e)?0:oJ(q4(e))}function _a(e){return Hu(e)?e:qb(e,!1,Kq,tJ,w$)}function lI(e){return qb(e,!1,qq,nJ,x$)}function Tm(e){return qb(e,!0,Zq,rJ,C$)}function sJ(e){return qb(e,!0,Jq,iJ,T$)}function qb(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=aJ(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 Hu(e)?Ou(e.__v_raw):!!(e&&e.__v_isReactive)}function Hu(e){return!!(e&&e.__v_isReadonly)}function Do(e){return!!(e&&e.__v_isShallow)}function Jb(e){return e?!!e.__v_raw:!1}function cn(e){const t=e&&e.__v_raw;return t?cn(t):e}function E$(e){return!dn(e,"__v_skip")&&Object.isExtensible(e)&&Q2(e,"__v_skip",!0),e}const hi=e=>mn(e)?_a(e):e,gE=e=>mn(e)?Tm(e):e;function pt(e){return e?e.__v_isRef===!0:!1}function Me(e){return A$(e,!1)}function Si(e){return A$(e,!0)}function A$(e,t){return pt(e)?e:new lJ(e,t)}class lJ{constructor(t,n){this.dep=new Yb,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:cn(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)||Hu(t);t=r?t:cn(t),fi(t,n)&&(this._rawValue=t,this._value=r?t:hi(t),this.dep.trigger())}}function mE(e){e.dep&&e.dep.trigger()}function B(e){return pt(e)?e.value:e}function pa(e){return Ct(e)?e():B(e)}const uJ={get:(e,t,n)=>t==="__v_raw"?e:B(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return pt(i)&&!pt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function uI(e){return Ou(e)?e:new Proxy(e,uJ)}class cJ{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Yb,{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 cI(e){return new cJ(e)}function fJ(e){const t=et(e)?new Array(e.length):{};for(const n in e)t[n]=R$(e,n);return t}class dJ{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 Gq(cn(this._object),this._key)}}class hJ{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 I$(e,t,n){return pt(e)?e:Ct(e)?new hJ(e):mn(e)&&arguments.length>1?R$(e,t,n):Me(e)}function R$(e,t,n){const r=e[t];return pt(r)?r:new dJ(e,t,n)}class pJ{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Yb(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Mg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Bn!==this)return d$(this,!0),!0}get value(){const t=this.dep.track();return v$(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vJ(e,t,n=!1){let r,i;return Ct(e)?r=e:(r=e.get,i=e.set),new pJ(r,i,n)}const gJ={GET:"get",HAS:"has",ITERATE:"iterate"},mJ={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},qy={},I1=new WeakMap;let cu;function yJ(){return cu}function P$(e,t=!1,n=cu){if(n){let r=I1.get(n);r||I1.set(n,r=[]),r.push(e)}}function _J(e,t,n=en){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,h,d,v=!1,m=!1;if(pt(e)?(f=()=>e.value,v=Do(e)):Ou(e)?(f=()=>u(e),v=!0):et(e)?(m=!0,v=e.some(w=>Ou(w)||Do(w)),f=()=>e.map(w=>{if(pt(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(h){tc();try{h()}finally{nc()}}const w=cu;cu=c;try{return l?l(e,3,[d]):e(d)}finally{cu=w}}:f=Ur,t&&i){const w=f,T=i===!0?1/0:i;f=()=>sl(w(),T)}const y=Xb(),_=()=>{c.stop(),y&&y.active&&zb(y.effects,c)};if(o&&t){const w=t;t=(...T)=>{w(...T),_()}}let b=m?new Array(e.length).fill(qy):qy;const S=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const T=c.run();if(i||v||(m?T.some((C,E)=>fi(C,b[E])):fi(T,b))){h&&h();const C=cu;cu=c;try{const E=[T,b===qy?void 0:m&&b[0]===qy?[]:b,d];l?l(t,3,E):t(...E),b=T}finally{cu=C}}}else c.run()};return s&&s(S),c=new Pg(f),c.scheduler=a?()=>a(S,!1):S,d=w=>P$(w,!1,c),h=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?S(!0):b=c.run():a?a(S.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}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--,pt(e))sl(e.value,t,n);else if(et(e))for(let r=0;r<e.length;r++)sl(e[r],t,n);else if(Qu(e)||gf(e))e.forEach(r=>{sl(r,t,n)});else if(wm(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 M$=[];function bJ(e){M$.push(e)}function SJ(){M$.pop()}function wJ(e,t){}const xJ={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"},CJ={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 rp(e,t,n,r){try{return r?e(...r):e()}catch(i){td(i,t,n)}}function ba(e,t,n,r){if(Ct(e)){const i=rp(e,t,n,r);return i&&Gb(i)&&i.catch(o=>{td(o,t,n)}),i}if(et(e)){const i=[];for(let o=0;o<e.length;o++)i.push(ba(e[o],t,n,r));return i}}function td(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||en;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){tc(),rp(o,null,10,[e,l,u]),nc();return}}TJ(e,n,i,r,a)}function TJ(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Li=[];let ps=-1;const fh=[];let fu=null,Yd=0;const O$=Promise.resolve();let R1=null;function Qa(e){const t=R1||O$;return e?t.then(this?e.bind(this):e):t}function EJ(e){let t=ps+1,n=Li.length;for(;t<n;){const r=t+n>>>1,i=Li[r],o=Lg(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function fI(e){if(!(e.flags&1)){const t=Lg(e),n=Li[Li.length-1];!n||!(e.flags&2)&&t>=Lg(n)?Li.push(e):Li.splice(EJ(t),0,e),e.flags|=1,D$()}}function D$(){R1||(R1=O$.then(L$))}function Dg(e){et(e)?fh.push(...e):fu&&e.id===-1?fu.splice(Yd+1,0,e):e.flags&1||(fh.push(e),e.flags|=1),D$()}function WD(e,t,n=ps+1){for(;n<Li.length;n++){const r=Li[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Li.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function P1(e){if(fh.length){const t=[...new Set(fh)].sort((n,r)=>Lg(n)-Lg(r));if(fh.length=0,fu){fu.push(...t);return}for(fu=t,Yd=0;Yd<fu.length;Yd++){const n=fu[Yd];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}fu=null,Yd=0}}const Lg=e=>e.id==null?e.flags&2?-1:1/0:e.id;function L$(e){try{for(ps=0;ps<Li.length;ps++){const t=Li[ps];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rp(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ps<Li.length;ps++){const t=Li[ps];t&&(t.flags&=-2)}ps=-1,Li.length=0,P1(),R1=null,(Li.length||fh.length)&&L$()}}let Kd,Jy=[];function N$(e,t){var n,r;Kd=e,Kd?(Kd.enabled=!0,Jy.forEach(({event:i,args:o})=>Kd.emit(i,...o)),Jy=[]):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=>{N$(o,t)}),setTimeout(()=>{Kd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Jy=[])},3e3)):Jy=[]}let Mr=null,Qb=null;function Ng(e){const t=Mr;return Mr=e,Qb=e&&e.type.__scopeId||null,t}function AJ(e){Qb=e}function IJ(){Qb=null}const RJ=e=>jn;function jn(e,t=Mr,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&TE(-1);const o=Ng(t);let a;try{a=e(...i)}finally{Ng(o),r._d&&TE(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function gt(e,t){if(Mr===null)return e;const n=Im(Mr),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=en]=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&&(tc(),ba(l,n,8,[e.el,s,e,t]),nc())}}const k$=Symbol("_vte"),F$=e=>e.__isTeleport,Hv=e=>e&&(e.disabled||e.disabled===""),jD=e=>e&&(e.defer||e.defer===""),XD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,YD=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yE=(e,t)=>{const n=e&&e.to;return Mt(n)?t?t(n):null:n},$$={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:h,o:{insert:d,querySelector:v,createText:m,createComment:y}}=u,_=Hv(t.props);let{shapeFlag:b,children:S,dynamicChildren:w}=t;if(e==null){const T=t.el=m(""),C=t.anchor=m("");d(T,n,r),d(C,n,r);const E=(I,P)=>{b&16&&(i&&i.isCE&&(i.ce._teleportTarget=I),c(S,I,P,i,o,a,s,l))},R=()=>{const I=t.target=yE(t.props,v),P=B$(I,t,m,d);I&&(a!=="svg"&&XD(I)?a="svg":a!=="mathml"&&YD(I)&&(a="mathml"),_||(E(I,P),A_(t,!1)))};_&&(E(n,C),A_(t,!0)),jD(t.props)?Rr(()=>{R(),t.el.__isMounted=!0},o):R()}else{if(jD(t.props)&&!e.el.__isMounted){Rr(()=>{$$.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=Hv(e.props),I=R?n:C,P=R?T:E;if(a==="svg"||XD(C)?a="svg":(a==="mathml"||YD(C))&&(a="mathml"),w?(h(e.dynamicChildren,w,I,i,o,a,s),wI(e,t,!0)):l||f(e,t,I,P,i,o,a,s,!1),_)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qy(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=yE(t.props,v);M&&Qy(t,M,null,u,0)}else R&&Qy(t,C,E,u,1);A_(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:h}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const d=o||!Hv(h);for(let v=0;v<s.length;v++){const m=s[v];r(m,t,n,d,!!m.dynamicChildren)}}},move:Qy,hydrate:PJ};function Qy(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||Hv(c))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,n,2);f&&r(s,t,n)}function PJ(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},f){const h=t.target=yE(t.props,l);if(h){const d=Hv(t.props),v=h._lpa||h.firstChild;if(t.shapeFlag&16)if(d)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,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}m=a(m)}t.targetAnchor||B$(h,t,c,u),f(v&&a(v),t,h,n,r,i,o)}A_(t,d)}return t.anchor&&a(t.anchor)}const MJ=$$;function A_(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 B$(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[k$]=o,e&&(r(i,e),r(o,e)),o}const du=Symbol("_leaveCb"),e0=Symbol("_enterCb");function dI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vo(()=>{e.isMounted=!0}),rS(()=>{e.isUnmounting=!0}),e}const Zo=[Function,Array],hI={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},V$=e=>{const t=e.subTree;return t.component?V$(t.component):t},OJ={name:"BaseTransition",props:hI,setup(e,{slots:t}){const n=Er(),r=dI();return()=>{const i=t.default&&eS(t.default(),!0);if(!i||!i.length)return;const o=U$(i),a=cn(e),{mode:s}=a;if(r.isLeaving)return jx(o);const l=KD(o);if(!l)return jx(o);let u=Th(l,a,r,n,f=>u=f);l.type!==Sr&&Al(l,u);let c=n.subTree&&KD(n.subTree);if(c&&c.type!==Sr&&!ja(l,c)&&V$(n).type!==Sr){let f=Th(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},jx(o);s==="in-out"&&l.type!==Sr?f.delayLeave=(h,d,v)=>{const m=z$(r,c);m[String(c.key)]=c,h[du]=()=>{d(),h[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 U$(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Sr){t=n;break}}return t}const H$=OJ;function z$(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 Th(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:y,onAppear:_,onAfterAppear:b,onAppearCancelled:S}=t,w=String(e.key),T=z$(n,e),C=(I,P)=>{I&&ba(I,r,9,P)},E=(I,P)=>{const M=P[1];C(I,P),et(I)?I.every(L=>L.length<=1)&&M():I.length<=1&&M()},R={mode:a,persisted:s,beforeEnter(I){let P=l;if(!n.isMounted)if(o)P=y||l;else return;I[du]&&I[du](!0);const M=T[w];M&&ja(e,M)&&M.el[du]&&M.el[du](),C(P,[I])},enter(I){let P=u,M=c,L=f;if(!n.isMounted)if(o)P=_||u,M=b||c,L=S||f;else return;let k=!1;const $=I[e0]=W=>{k||(k=!0,W?C(L,[I]):C(M,[I]),R.delayedLeave&&R.delayedLeave(),I[e0]=void 0)};P?E(P,[I,$]):$()},leave(I,P){const M=String(e.key);if(I[e0]&&I[e0](!0),n.isUnmounting)return P();C(h,[I]);let L=!1;const k=I[du]=$=>{L||(L=!0,P(),$?C(m,[I]):C(v,[I]),I[du]=void 0,T[M]===e&&delete T[M])};T[M]=e,d?E(d,[I,k]):k()},clone(I){const P=Th(I,t,n,r,i);return i&&i(P),P}};return R}function jx(e){if(Em(e))return e=Is(e),e.children=null,e}function KD(e){if(!Em(e))return F$(e.type)&&e.children?U$(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 eS(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===Ge?(a.patchFlag&128&&i++,r=r.concat(eS(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 tt(e,t){return Ct(e)?nn({name:e.name},t,{setup:e}):e}function DJ(){const e=Er();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function pI(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function LJ(e){const t=Er(),n=Si(null);if(t){const i=t.refs===en?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function kg(e,t,n,r,i=!1){if(et(e)){e.forEach((v,m)=>kg(v,t&&(et(t)?t[m]:t),n,r,i));return}if(Du(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&kg(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Im(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===en?s.refs={}:s.refs,f=s.setupState,h=cn(f),d=f===en?()=>!1:v=>dn(h,v);if(u!=null&&u!==l&&(Mt(u)?(c[u]=null,d(u)&&(f[u]=null)):pt(u)&&(u.value=null)),Ct(l))rp(l,s,12,[a,c]);else{const v=Mt(l),m=pt(l);if(v||m){const y=()=>{if(e.f){const _=v?d(l)?f[l]:c[l]:l.value;i?et(_)&&zb(_,o):et(_)?_.includes(o)||_.push(o):v?(c[l]=[o],d(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=a,d(l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(y.id=-1,Rr(y,n)):y()}}}let ZD=!1;const Cd=()=>{ZD||(console.error("Hydration completed but contains mismatches."),ZD=!0)},NJ=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",kJ=e=>e.namespaceURI.includes("MathML"),t0=e=>{if(e.nodeType===1){if(NJ(e))return"svg";if(kJ(e))return"mathml"}},ih=e=>e.nodeType===8;function FJ(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(S,w)=>{if(!w.hasChildNodes()){n(null,S,w),P1(),w._vnode=S;return}f(w.firstChild,S,null,null,null),P1(),w._vnode=S},f=(S,w,T,C,E,R=!1)=>{R=R||!!w.dynamicChildren;const I=ih(S)&&S.data==="[",P=()=>m(S,w,T,C,E,I),{type:M,ref:L,shapeFlag:k,patchFlag:$}=w;let W=S.nodeType;w.el=S,$===-2&&(R=!1,w.dynamicChildren=null);let N=null;switch(M){case yl:W!==3?w.children===""?(l(w.el=i(""),a(S),S),N=S):N=P():(S.data!==w.children&&(Cd(),S.data=w.children),N=o(S));break;case Sr:b(S)?(N=o(S),_(w.el=S.content.firstChild,S,T)):W!==8||I?N=P():N=o(S);break;case wf:if(I&&(S=o(S),W=S.nodeType),W===1||W===3){N=S;const K=!w.children.length;for(let Y=0;Y<w.staticCount;Y++)K&&(w.children+=N.nodeType===1?N.outerHTML:N.data),Y===w.staticCount-1&&(w.anchor=N),N=o(N);return I?o(N):N}else P();break;case Ge:I?N=v(S,w,T,C,E,R):N=P();break;default:if(k&1)(W!==1||w.type.toLowerCase()!==S.tagName.toLowerCase())&&!b(S)?N=P():N=h(S,w,T,C,E,R);else if(k&6){w.slotScopeIds=E;const K=a(S);if(I?N=y(S):ih(S)&&S.data==="teleport start"?N=y(S,S.data,"teleport end"):N=o(S),t(w,K,null,T,C,t0(K),R),Du(w)&&!w.type.__asyncResolved){let Y;I?(Y=z(Ge),Y.anchor=N?N.previousSibling:K.lastChild):Y=S.nodeType===3?qe(""):z("div"),Y.el=S,w.component.subTree=Y}}else k&64?W!==8?N=P():N=w.type.hydrate(S,w,T,C,E,R,e,d):k&128&&(N=w.type.hydrate(S,w,T,C,t0(a(S)),E,R,e,f))}return L!=null&&kg(L,null,C,w),N},h=(S,w,T,C,E,R)=>{R=R||!!w.dynamicChildren;const{type:I,props:P,patchFlag:M,shapeFlag:L,dirs:k,transition:$}=w,W=I==="input"||I==="option";if(W||M!==-1){k&&vs(w,null,T,"created");let N=!1;if(b(S)){N=pB(null,$)&&T&&T.vnode.props&&T.vnode.props.appear;const Y=S.content.firstChild;N&&$.beforeEnter(Y),_(Y,S,T),w.el=S=Y}if(L&16&&!(P&&(P.innerHTML||P.textContent))){let Y=d(S.firstChild,w,S,T,C,E,R);for(;Y;){n0(S,1)||Cd();const ae=Y;Y=Y.nextSibling,s(ae)}}else if(L&8){let Y=w.children;Y[0]===`
`&&(S.tagName==="PRE"||S.tagName==="TEXTAREA")&&(Y=Y.slice(1)),S.textContent!==Y&&(n0(S,0)||Cd(),S.textContent=w.children)}if(P){if(W||!R||M&48){const Y=S.tagName.includes("-");for(const ae in P)(W&&(ae.endsWith("value")||ae==="indeterminate")||Ju(ae)&&!gl(ae)||ae[0]==="."||Y)&&r(S,ae,null,P[ae],void 0,T)}else if(P.onClick)r(S,"onClick",null,P.onClick,void 0,T);else if(M&4&&Ou(P.style))for(const Y in P.style)P.style[Y]}let K;(K=P&&P.onVnodeBeforeMount)&&Qi(K,T,w),k&&vs(w,null,T,"beforeMount"),((K=P&&P.onVnodeMounted)||k||N)&&xB(()=>{K&&Qi(K,T,w),N&&$.enter(S),k&&vs(w,null,T,"mounted")},C)}return S.nextSibling},d=(S,w,T,C,E,R,I)=>{I=I||!!w.dynamicChildren;const P=w.children,M=P.length;for(let L=0;L<M;L++){const k=I?P[L]:P[L]=no(P[L]),$=k.type===yl;S?($&&!I&&L+1<M&&no(P[L+1]).type===yl&&(l(i(S.data.slice(k.children.length)),T,o(S)),S.data=k.children),S=f(S,k,C,E,R,I)):$&&!k.children?l(k.el=i(""),T):(n0(T,1)||Cd(),n(null,k,T,null,C,E,t0(T),R))}return S},v=(S,w,T,C,E,R)=>{const{slotScopeIds:I}=w;I&&(E=E?E.concat(I):I);const P=a(S),M=d(o(S),w,P,T,C,E,R);return M&&ih(M)&&M.data==="]"?o(w.anchor=M):(Cd(),l(w.anchor=u("]"),P,M),M)},m=(S,w,T,C,E,R)=>{if(n0(S.parentElement,1)||Cd(),w.el=null,R){const M=y(S);for(;;){const L=o(S);if(L&&L!==M)s(L);else break}}const I=o(S),P=a(S);return s(S),n(null,w,P,I,T,C,t0(P),E),T&&(T.vnode.el=w.el,sS(T,w.el)),I},y=(S,w="[",T="]")=>{let C=0;for(;S;)if(S=o(S),S&&ih(S)&&(S.data===w&&C++,S.data===T)){if(C===0)return o(S);C--}return S},_=(S,w,T)=>{const C=w.parentNode;C&&C.replaceChild(S,w);let E=T;for(;E;)E.vnode.el===w&&(E.vnode.el=E.subTree.el=S),E=E.parent},b=S=>S.nodeType===1&&S.tagName==="TEMPLATE";return[c,f]}const qD="data-allow-mismatch",$J={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function n0(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(qD);)e=e.parentElement;const n=e&&e.getAttribute(qD);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes($J[t])}}const BJ=xm().requestIdleCallback||(e=>setTimeout(e,1)),VJ=xm().cancelIdleCallback||(e=>clearTimeout(e)),UJ=(e=1e4)=>t=>{const n=BJ(t,{timeout:e});return()=>VJ(n)};function HJ(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 zJ=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(HJ(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},GJ=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},WJ=(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 jJ(e,t){if(ih(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ih(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 XJ(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 h=()=>(f++,u=null,d()),d=()=>{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,()=>y(h()),()=>_(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 tt({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(v,m,y){const _=o?()=>{const b=o(y,S=>jJ(v,S));b&&(m.bum||(m.bum=[])).push(b)}:y;c?_():d().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const v=Pr;if(pI(v),c)return()=>Xx(c,v);const m=S=>{u=null,td(S,v,13,!r)};if(s&&v.suspense||Eh)return d().then(S=>()=>Xx(S,v)).catch(S=>(m(S),()=>r?z(r,{error:S}):null));const y=Me(!1),_=Me(),b=Me(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!y.value&&!_.value){const S=new Error(`Async component timed out after ${a}ms.`);m(S),_.value=S}},a),d().then(()=>{y.value=!0,v.parent&&Em(v.parent.vnode)&&v.parent.update()}).catch(S=>{m(S),_.value=S}),()=>{if(y.value&&c)return Xx(c,v);if(_.value&&r)return z(r,{error:_.value});if(n&&!b.value)return z(n)}}})}function Xx(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=z(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const Em=e=>e.type.__isKeepAlive,YJ={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Er(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};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,h=f("div");r.activate=(b,S,w,T,C)=>{const E=b.component;u(b,S,w,0,s),l(E.vnode,b,S,w,E,s,T,b.slotScopeIds,C),Rr(()=>{E.isDeactivated=!1,E.a&&yf(E.a);const R=b.props&&b.props.onVnodeMounted;R&&Qi(R,E.parent,b)},s)},r.deactivate=b=>{const S=b.component;D1(S.m),D1(S.a),u(b,h,null,1,s),Rr(()=>{S.da&&yf(S.da);const w=b.props&&b.props.onVnodeUnmounted;w&&Qi(w,S.parent,b),S.isDeactivated=!0},s)};function d(b){Yx(b),c(b,n,s,!0)}function v(b){i.forEach((S,w)=>{const T=PE(S.type);T&&!b(T)&&m(w)})}function m(b){const S=i.get(b);S&&(!a||!ja(S,a))?d(S):a&&Yx(a),i.delete(b),o.delete(b)}Bt(()=>[e.include,e.exclude],([b,S])=>{b&&v(w=>bv(b,w)),S&&v(w=>!bv(S,w))},{flush:"post",deep:!0});let y=null;const _=()=>{y!=null&&(L1(n.subTree.type)?Rr(()=>{i.set(y,r0(n.subTree))},n.subTree.suspense):i.set(y,r0(n.subTree)))};return Vo(_),nS(_),rS(()=>{i.forEach(b=>{const{subTree:S,suspense:w}=n,T=r0(S);if(b.type===T.type&&b.key===T.key){Yx(T);const C=T.component.da;C&&Rr(C,w);return}d(b)})}),()=>{if(y=null,!t.default)return a=null;const b=t.default(),S=b[0];if(b.length>1)return a=null,b;if(!Il(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return a=null,S;let w=r0(S);if(w.type===Sr)return a=null,w;const T=w.type,C=PE(Du(w)?w.type.__asyncResolved||{}:T),{include:E,exclude:R,max:I}=e;if(E&&(!C||!bv(E,C))||R&&C&&bv(R,C))return w.shapeFlag&=-257,a=w,S;const P=w.key==null?T:w.key,M=i.get(P);return w.el&&(w=Is(w),S.shapeFlag&128&&(S.ssContent=w)),y=P,M?(w.el=M.el,w.component=M.component,w.transition&&Al(w,w.transition),w.shapeFlag|=512,o.delete(P),o.add(P)):(o.add(P),I&&o.size>parseInt(I,10)&&m(o.values().next().value)),w.shapeFlag|=256,a=w,L1(S.type)?S:w}}},KJ=YJ;function bv(e,t){return et(e)?e.some(n=>bv(n,t)):Mt(e)?e.split(",").includes(t):Z4(e)?(e.lastIndex=0,e.test(t)):!1}function G$(e,t){j$(e,"a",t)}function W$(e,t){j$(e,"da",t)}function j$(e,t,n=Pr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(tS(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Em(i.parent.vnode)&&ZJ(r,t,n,i),i=i.parent}}function ZJ(e,t,n,r){const i=tS(t,e,r,!0);nd(()=>{zb(r[t],i)},n)}function Yx(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function r0(e){return e.shapeFlag&128?e.ssContent:e}function tS(e,t,n=Pr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{tc();const s=Ff(n),l=ba(t,n,e,a);return s(),nc(),l});return r?i.unshift(o):i.push(o),o}}const Dl=e=>(t,n=Pr)=>{(!Eh||e==="sp")&&tS(e,(...r)=>t(...r),n)},X$=Dl("bm"),Vo=Dl("m"),vI=Dl("bu"),nS=Dl("u"),rS=Dl("bum"),nd=Dl("um"),Y$=Dl("sp"),K$=Dl("rtg"),Z$=Dl("rtc");function q$(e,t=Pr){tS("ec",e,t)}const gI="components",qJ="directives";function JJ(e,t){return mI(gI,e,!0,t)||e}const J$=Symbol.for("v-ndc");function ml(e){return Mt(e)?mI(gI,e,!1)||e:e||J$}function QJ(e){return mI(qJ,e)}function mI(e,t,n=!0,r=!1){const i=Mr||Pr;if(i){const o=i.type;if(e===gI){const s=PE(o,!1);if(s&&(s===t||s===Vn(t)||s===ec(Vn(t))))return o}const a=JD(i[e]||o[e],t)||JD(i.appContext[e],t);return!a&&r?o:a}}function JD(e,t){return e&&(e[t]||e[Vn(t)]||e[ec(Vn(t))])}function qt(e,t,n,r){let i;const o=n&&n[r],a=et(e);if(a||Mt(e)){const s=a&&Ou(e);let l=!1;s&&(l=!Do(e),e=Kb(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 eQ(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(et(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 bf(e,t,n={},r,i){if(Mr.ce||Mr.parent&&Du(Mr.parent)&&Mr.parent.ce)return t!=="default"&&(n.name=t),X(),_t(Ge,null,[z("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),X();const a=o&&yI(o(n)),s=n.key||a&&a.key,l=_t(Ge,{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 yI(e){return e.some(t=>Il(t)?!(t.type===Sr||t.type===Ge&&!yI(t.children)):!0)?e:null}function tQ(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:mf(r)]=e[r];return n}const _E=e=>e?PB(e)?Im(e):_E(e.parent):null,zv=nn(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=>_E(e.parent),$root:e=>_E(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_I(e),$forceUpdate:e=>e.f||(e.f=()=>{fI(e.update)}),$nextTick:e=>e.n||(e.n=Qa.bind(e.proxy)),$watch:e=>PQ.bind(e)}),Kx=(e,t)=>e!==en&&!e.__isScriptSetup&&dn(e,t),bE={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 d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Kx(r,t))return a[t]=1,r[t];if(i!==en&&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!==en&&dn(n,t))return a[t]=4,n[t];SE&&(a[t]=0)}}const c=zv[t];let f,h;if(c)return t==="$attrs"&&di(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==en&&dn(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,dn(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Kx(i,t)?(i[t]=n,!0):r!==en&&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!==en&&dn(e,a)||Kx(t,a)||(s=o[0])&&dn(s,a)||dn(r,a)||dn(zv,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)}},nQ=nn({},bE,{get(e,t){if(t!==Symbol.unscopables)return bE.get(e,t,e)},has(e,t){return t[0]!=="_"&&!eI(t)}});function rQ(){return null}function iQ(){return null}function oQ(e){}function aQ(e){}function sQ(){return null}function lQ(){}function uQ(e,t){return null}function cQ(){return Q$().slots}function fQ(){return Q$().attrs}function Q$(){const e=Er();return e.setupContext||(e.setupContext=DB(e))}function Fg(e){return et(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function dQ(e,t){const n=Fg(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?et(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:et(e)&&et(t)?e.concat(t):nn({},Fg(e),Fg(t))}function hQ(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function pQ(e){const t=Er();let n=e();return AE(),Gb(n)&&(n=n.catch(r=>{throw Ff(t),r})),[n,()=>Ff(t)]}let SE=!0;function vQ(e){const t=_I(e),n=e.proxy,r=e.ctx;SE=!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:h,beforeUpdate:d,updated:v,activated:m,deactivated:y,beforeDestroy:_,beforeUnmount:b,destroyed:S,unmounted:w,render:T,renderTracked:C,renderTriggered:E,errorCaptured:R,serverPrefetch:I,expose:P,inheritAttrs:M,components:L,directives:k,filters:$}=t;if(u&&gQ(u,r,null),a)for(const K in a){const Y=a[K];Ct(Y)&&(r[K]=Y.bind(n))}if(i){const K=i.call(n,n);mn(K)&&(e.data=_a(K))}if(SE=!0,o)for(const K in o){const Y=o[K],ae=Ct(Y)?Y.bind(n,n):Ct(Y.get)?Y.get.bind(n,n):Ur,ge=!Ct(Y)&&Ct(Y.set)?Y.set.bind(n):Ur,ye=xe({get:ae,set:ge});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>ye.value,set:Oe=>ye.value=Oe})}if(s)for(const K in s)eB(s[K],r,n,K);if(l){const K=Ct(l)?l.call(n):l;Reflect.ownKeys(K).forEach(Y=>{Gv(Y,K[Y])})}c&&QD(c,e,"c");function N(K,Y){et(Y)?Y.forEach(ae=>K(ae.bind(n))):Y&&K(Y.bind(n))}if(N(X$,f),N(Vo,h),N(vI,d),N(nS,v),N(G$,m),N(W$,y),N(q$,R),N(Z$,C),N(K$,E),N(rS,b),N(nd,w),N(Y$,I),et(P))if(P.length){const K=e.exposed||(e.exposed={});P.forEach(Y=>{Object.defineProperty(K,Y,{get:()=>n[Y],set:ae=>n[Y]=ae})})}else e.exposed||(e.exposed={});T&&e.render===Ur&&(e.render=T),M!=null&&(e.inheritAttrs=M),L&&(e.components=L),k&&(e.directives=k),I&&pI(e)}function gQ(e,t,n=Ur){et(e)&&(e=wE(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),pt(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){ba(et(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function eB(e,t,n,r){let i=r.includes(".")?_B(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(et(e))e.forEach(o=>eB(o,t,n,r));else{const o=Ct(e.handler)?e.handler.bind(n):t[e.handler];Ct(o)&&Bt(i,o,e)}}function _I(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=mQ[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const mQ={data:eL,props:tL,emits:tL,methods:Sv,computed:Sv,beforeCreate:Ii,created:Ii,beforeMount:Ii,mounted:Ii,beforeUpdate:Ii,updated:Ii,beforeDestroy:Ii,beforeUnmount:Ii,destroyed:Ii,unmounted:Ii,activated:Ii,deactivated:Ii,errorCaptured:Ii,serverPrefetch:Ii,components:Sv,directives:Sv,watch:_Q,provide:eL,inject:yQ};function eL(e,t){return t?e?function(){return nn(Ct(e)?e.call(this,this):e,Ct(t)?t.call(this,this):t)}:t:e}function yQ(e,t){return Sv(wE(e),wE(t))}function wE(e){if(et(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ii(e,t){return e?[...new Set([].concat(e,t))]:t}function Sv(e,t){return e?nn(Object.create(null),e,t):t}function tL(e,t){return e?et(e)&&et(t)?[...new Set([...e,...t])]:nn(Object.create(null),Fg(e),Fg(t??{})):t}function _Q(e,t){if(!e)return t;if(!t)return e;const n=nn(Object.create(null),e);for(const r in t)n[r]=Ii(e[r],t[r]);return n}function tB(){return{app:null,config:{isNativeTag:rh,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 bQ=0;function SQ(e,t){return function(r,i=null){Ct(r)||(r=nn({},r)),i!=null&&!mn(i)&&(i=null);const o=tB(),a=new WeakSet,s=[];let l=!1;const u=o.app={_uid:bQ++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:NB,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,h){if(!l){const d=u._ceVNode||z(r,i);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),l=!0,u._container=c,c.__vue_app__=u,Im(d.component)}},onUnmount(c){s.push(c)},unmount(){l&&(ba(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=Sf;Sf=u;try{return c()}finally{Sf=f}}};return u}}let Sf=null;function Gv(e,t){if(Pr){let n=Pr.provides;const r=Pr.parent&&Pr.parent.provides;r===n&&(n=Pr.provides=Object.create(r)),n[e]=t}}function lo(e,t,n=!1){const r=Pr||Mr;if(r||Sf){const i=Sf?Sf._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 bI(){return!!(Pr||Mr||Sf)}const nB={},rB=()=>Object.create(nB),iB=e=>Object.getPrototypeOf(e)===nB;function wQ(e,t,n,r=!1){const i={},o=rB();e.propsDefaults=Object.create(null),oB(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:lI(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function xQ(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=cn(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 h=c[f];if(aS(e.emitsOptions,h))continue;const d=t[h];if(l)if(dn(o,h))d!==o[h]&&(o[h]=d,u=!0);else{const v=Vn(h);i[v]=xE(l,s,v,d,e,!1)}else d!==o[h]&&(o[h]=d,u=!0)}}}else{oB(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]=xE(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 oB(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:aS(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=cn(n),u=s||en;for(let c=0;c<o.length;c++){const f=o[c];n[f]=xE(i,l,f,u[f],e,!dn(u,f))}}return a}function xE(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=Ff(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 CQ=new WeakMap;function aB(e,t,n=!1){const r=n?CQ: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[h,d]=aB(f,t,!0);nn(a,h),d&&s.push(...d)};!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,vf),vf;if(et(o))for(let c=0;c<o.length;c++){const f=Vn(o[c]);nL(f)&&(a[f]=en)}else if(o)for(const c in o){const f=Vn(c);if(nL(f)){const h=o[c],d=a[f]=et(h)||Ct(h)?{type:h}:nn({},h),v=d.type;let m=!1,y=!0;if(et(v))for(let _=0;_<v.length;++_){const b=v[_],S=Ct(b)&&b.name;if(S==="Boolean"){m=!0;break}else S==="String"&&(y=!1)}else m=Ct(v)&&v.name==="Boolean";d[0]=m,d[1]=y,(m||dn(d,"default"))&&s.push(f)}}const u=[a,s];return mn(e)&&r.set(e,u),u}function nL(e){return e[0]!=="$"&&!gl(e)}const sB=e=>e[0]==="_"||e==="$stable",SI=e=>et(e)?e.map(no):[no(e)],TQ=(e,t,n)=>{if(t._n)return t;const r=jn((...i)=>SI(t(...i)),n);return r._c=!1,r},lB=(e,t,n)=>{const r=e._ctx;for(const i in e){if(sB(i))continue;const o=e[i];if(Ct(o))t[i]=TQ(i,o,r);else if(o!=null){const a=SI(o);t[i]=()=>a}}},uB=(e,t)=>{const n=SI(t);e.slots.default=()=>n},cB=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},EQ=(e,t,n)=>{const r=e.slots=rB();if(e.vnode.shapeFlag&32){const i=t._;i?(cB(r,t,n),n&&Q2(r,"_",i,!0)):lB(t,r)}else t&&uB(e,t)},AQ=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=en;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:cB(i,t,n):(o=!t.$stable,lB(t,i)),a=t}else t&&(uB(e,t),a={default:1});if(o)for(const s in i)!sB(s)&&a[s]==null&&delete i[s]},Rr=xB;function fB(e){return hB(e)}function dB(e){return hB(e,FJ)}function hB(e,t){const n=xm();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=Ur,insertStaticContent:v}=e,m=(H,G,ue,we=null,ve=null,U=null,j=void 0,Q=null,de=!!G.dynamicChildren)=>{if(H===G)return;H&&!ja(H,G)&&(we=fe(H),Oe(H,ve,U,!0),H=null),G.patchFlag===-2&&(de=!1,G.dynamicChildren=null);const{type:_e,ref:De,shapeFlag:J}=G;switch(_e){case yl:y(H,G,ue,we);break;case Sr:_(H,G,ue,we);break;case wf:H==null&&b(G,ue,we,j);break;case Ge:L(H,G,ue,we,ve,U,j,Q,de);break;default:J&1?T(H,G,ue,we,ve,U,j,Q,de):J&6?k(H,G,ue,we,ve,U,j,Q,de):(J&64||J&128)&&_e.process(H,G,ue,we,ve,U,j,Q,de,Te)}De!=null&&ve&&kg(De,H&&H.ref,U,G||H,!G)},y=(H,G,ue,we)=>{if(H==null)r(G.el=s(G.children),ue,we);else{const ve=G.el=H.el;G.children!==H.children&&u(ve,G.children)}},_=(H,G,ue,we)=>{H==null?r(G.el=l(G.children||""),ue,we):G.el=H.el},b=(H,G,ue,we)=>{[H.el,H.anchor]=v(H.children,G,ue,we,H.el,H.anchor)},S=({el:H,anchor:G},ue,we)=>{let ve;for(;H&&H!==G;)ve=h(H),r(H,ue,we),H=ve;r(G,ue,we)},w=({el:H,anchor:G})=>{let ue;for(;H&&H!==G;)ue=h(H),i(H),H=ue;i(G)},T=(H,G,ue,we,ve,U,j,Q,de)=>{G.type==="svg"?j="svg":G.type==="math"&&(j="mathml"),H==null?C(G,ue,we,ve,U,j,Q,de):I(H,G,ve,U,j,Q,de)},C=(H,G,ue,we,ve,U,j,Q)=>{let de,_e;const{props:De,shapeFlag:J,transition:he,dirs:Ve}=H;if(de=H.el=a(H.type,U,De&&De.is,De),J&8?c(de,H.children):J&16&&R(H.children,de,null,we,ve,Zx(H,U),j,Q),Ve&&vs(H,null,we,"created"),E(de,H,H.scopeId,j,we),De){for(const St in De)St!=="value"&&!gl(St)&&o(de,St,null,De[St],U,we);"value"in De&&o(de,"value",null,De.value,U),(_e=De.onVnodeBeforeMount)&&Qi(_e,we,H)}Ve&&vs(H,null,we,"beforeMount");const Ze=pB(ve,he);Ze&&he.beforeEnter(de),r(de,G,ue),((_e=De&&De.onVnodeMounted)||Ze||Ve)&&Rr(()=>{_e&&Qi(_e,we,H),Ze&&he.enter(de),Ve&&vs(H,null,we,"mounted")},ve)},E=(H,G,ue,we,ve)=>{if(ue&&d(H,ue),we)for(let U=0;U<we.length;U++)d(H,we[U]);if(ve){let U=ve.subTree;if(G===U||L1(U.type)&&(U.ssContent===G||U.ssFallback===G)){const j=ve.vnode;E(H,j,j.scopeId,j.slotScopeIds,ve.parent)}}},R=(H,G,ue,we,ve,U,j,Q,de=0)=>{for(let _e=de;_e<H.length;_e++){const De=H[_e]=Q?hu(H[_e]):no(H[_e]);m(null,De,G,ue,we,ve,U,j,Q)}},I=(H,G,ue,we,ve,U,j)=>{const Q=G.el=H.el;let{patchFlag:de,dynamicChildren:_e,dirs:De}=G;de|=H.patchFlag&16;const J=H.props||en,he=G.props||en;let Ve;if(ue&&yc(ue,!1),(Ve=he.onVnodeBeforeUpdate)&&Qi(Ve,ue,G,H),De&&vs(G,H,ue,"beforeUpdate"),ue&&yc(ue,!0),(J.innerHTML&&he.innerHTML==null||J.textContent&&he.textContent==null)&&c(Q,""),_e?P(H.dynamicChildren,_e,Q,ue,we,Zx(G,ve),U):j||Y(H,G,Q,null,ue,we,Zx(G,ve),U,!1),de>0){if(de&16)M(Q,J,he,ue,ve);else if(de&2&&J.class!==he.class&&o(Q,"class",null,he.class,ve),de&4&&o(Q,"style",J.style,he.style,ve),de&8){const Ze=G.dynamicProps;for(let St=0;St<Ze.length;St++){const re=Ze[St],se=J[re],pe=he[re];(pe!==se||re==="value")&&o(Q,re,se,pe,ve,ue)}}de&1&&H.children!==G.children&&c(Q,G.children)}else!j&&_e==null&&M(Q,J,he,ue,ve);((Ve=he.onVnodeUpdated)||De)&&Rr(()=>{Ve&&Qi(Ve,ue,G,H),De&&vs(G,H,ue,"updated")},we)},P=(H,G,ue,we,ve,U,j)=>{for(let Q=0;Q<G.length;Q++){const de=H[Q],_e=G[Q],De=de.el&&(de.type===Ge||!ja(de,_e)||de.shapeFlag&70)?f(de.el):ue;m(de,_e,De,null,we,ve,U,j,!0)}},M=(H,G,ue,we,ve)=>{if(G!==ue){if(G!==en)for(const U in G)!gl(U)&&!(U in ue)&&o(H,U,G[U],null,ve,we);for(const U in ue){if(gl(U))continue;const j=ue[U],Q=G[U];j!==Q&&U!=="value"&&o(H,U,Q,j,ve,we)}"value"in ue&&o(H,"value",G.value,ue.value,ve)}},L=(H,G,ue,we,ve,U,j,Q,de)=>{const _e=G.el=H?H.el:s(""),De=G.anchor=H?H.anchor:s("");let{patchFlag:J,dynamicChildren:he,slotScopeIds:Ve}=G;Ve&&(Q=Q?Q.concat(Ve):Ve),H==null?(r(_e,ue,we),r(De,ue,we),R(G.children||[],ue,De,ve,U,j,Q,de)):J>0&&J&64&&he&&H.dynamicChildren?(P(H.dynamicChildren,he,ue,ve,U,j,Q),(G.key!=null||ve&&G===ve.subTree)&&wI(H,G,!0)):Y(H,G,ue,De,ve,U,j,Q,de)},k=(H,G,ue,we,ve,U,j,Q,de)=>{G.slotScopeIds=Q,H==null?G.shapeFlag&512?ve.ctx.activate(G,ue,we,j,de):$(G,ue,we,ve,U,j,de):W(H,G,de)},$=(H,G,ue,we,ve,U,j)=>{const Q=H.component=RB(H,we,ve);if(Em(H)&&(Q.ctx.renderer=Te),MB(Q,!1,j),Q.asyncDep){if(ve&&ve.registerDep(Q,N,j),!H.el){const de=Q.subTree=z(Sr);_(null,de,G,ue)}}else N(Q,H,G,ue,ve,U,j)},W=(H,G,ue)=>{const we=G.component=H.component;if(NQ(H,G,ue))if(we.asyncDep&&!we.asyncResolved){K(we,G,ue);return}else we.next=G,we.update();else G.el=H.el,we.vnode=G},N=(H,G,ue,we,ve,U,j)=>{const Q=()=>{if(H.isMounted){let{next:J,bu:he,u:Ve,parent:Ze,vnode:St}=H;{const We=vB(H);if(We){J&&(J.el=St.el,K(H,J,j)),We.asyncDep.then(()=>{H.isUnmounted||Q()});return}}let re=J,se;yc(H,!1),J?(J.el=St.el,K(H,J,j)):J=St,he&&yf(he),(se=J.props&&J.props.onVnodeBeforeUpdate)&&Qi(se,Ze,J,St),yc(H,!0);const pe=I_(H),Ee=H.subTree;H.subTree=pe,m(Ee,pe,f(Ee.el),fe(Ee),H,ve,U),J.el=pe.el,re===null&&sS(H,pe.el),Ve&&Rr(Ve,ve),(se=J.props&&J.props.onVnodeUpdated)&&Rr(()=>Qi(se,Ze,J,St),ve)}else{let J;const{el:he,props:Ve}=G,{bm:Ze,m:St,parent:re,root:se,type:pe}=H,Ee=Du(G);if(yc(H,!1),Ze&&yf(Ze),!Ee&&(J=Ve&&Ve.onVnodeBeforeMount)&&Qi(J,re,G),yc(H,!0),he&&Be){const We=()=>{H.subTree=I_(H),Be(he,H.subTree,H,ve,null)};Ee&&pe.__asyncHydrate?pe.__asyncHydrate(he,H,We):We()}else{se.ce&&se.ce._injectChildStyle(pe);const We=H.subTree=I_(H);m(null,We,ue,we,H,ve,U),G.el=We.el}if(St&&Rr(St,ve),!Ee&&(J=Ve&&Ve.onVnodeMounted)){const We=G;Rr(()=>Qi(J,re,We),ve)}(G.shapeFlag&256||re&&Du(re.vnode)&&re.vnode.shapeFlag&256)&&H.a&&Rr(H.a,ve),H.isMounted=!0,G=ue=we=null}};H.scope.on();const de=H.effect=new Pg(Q);H.scope.off();const _e=H.update=de.run.bind(de),De=H.job=de.runIfDirty.bind(de);De.i=H,De.id=H.uid,de.scheduler=()=>fI(De),yc(H,!0),_e()},K=(H,G,ue)=>{G.component=H;const we=H.vnode.props;H.vnode=G,H.next=null,xQ(H,G.props,we,ue),AQ(H,G.children,ue),tc(),WD(H),nc()},Y=(H,G,ue,we,ve,U,j,Q,de=!1)=>{const _e=H&&H.children,De=H?H.shapeFlag:0,J=G.children,{patchFlag:he,shapeFlag:Ve}=G;if(he>0){if(he&128){ge(_e,J,ue,we,ve,U,j,Q,de);return}else if(he&256){ae(_e,J,ue,we,ve,U,j,Q,de);return}}Ve&8?(De&16&&Xe(_e,ve,U),J!==_e&&c(ue,J)):De&16?Ve&16?ge(_e,J,ue,we,ve,U,j,Q,de):Xe(_e,ve,U,!0):(De&8&&c(ue,""),Ve&16&&R(J,ue,we,ve,U,j,Q,de))},ae=(H,G,ue,we,ve,U,j,Q,de)=>{H=H||vf,G=G||vf;const _e=H.length,De=G.length,J=Math.min(_e,De);let he;for(he=0;he<J;he++){const Ve=G[he]=de?hu(G[he]):no(G[he]);m(H[he],Ve,ue,null,ve,U,j,Q,de)}_e>De?Xe(H,ve,U,!0,!1,J):R(G,ue,we,ve,U,j,Q,de,J)},ge=(H,G,ue,we,ve,U,j,Q,de)=>{let _e=0;const De=G.length;let J=H.length-1,he=De-1;for(;_e<=J&&_e<=he;){const Ve=H[_e],Ze=G[_e]=de?hu(G[_e]):no(G[_e]);if(ja(Ve,Ze))m(Ve,Ze,ue,null,ve,U,j,Q,de);else break;_e++}for(;_e<=J&&_e<=he;){const Ve=H[J],Ze=G[he]=de?hu(G[he]):no(G[he]);if(ja(Ve,Ze))m(Ve,Ze,ue,null,ve,U,j,Q,de);else break;J--,he--}if(_e>J){if(_e<=he){const Ve=he+1,Ze=Ve<De?G[Ve].el:we;for(;_e<=he;)m(null,G[_e]=de?hu(G[_e]):no(G[_e]),ue,Ze,ve,U,j,Q,de),_e++}}else if(_e>he)for(;_e<=J;)Oe(H[_e],ve,U,!0),_e++;else{const Ve=_e,Ze=_e,St=new Map;for(_e=Ze;_e<=he;_e++){const $e=G[_e]=de?hu(G[_e]):no(G[_e]);$e.key!=null&&St.set($e.key,_e)}let re,se=0;const pe=he-Ze+1;let Ee=!1,We=0;const oe=new Array(pe);for(_e=0;_e<pe;_e++)oe[_e]=0;for(_e=Ve;_e<=J;_e++){const $e=H[_e];if(se>=pe){Oe($e,ve,U,!0);continue}let nt;if($e.key!=null)nt=St.get($e.key);else for(re=Ze;re<=he;re++)if(oe[re-Ze]===0&&ja($e,G[re])){nt=re;break}nt===void 0?Oe($e,ve,U,!0):(oe[nt-Ze]=_e+1,nt>=We?We=nt:Ee=!0,m($e,G[nt],ue,null,ve,U,j,Q,de),se++)}const Ie=Ee?IQ(oe):vf;for(re=Ie.length-1,_e=pe-1;_e>=0;_e--){const $e=Ze+_e,nt=G[$e],je=$e+1<De?G[$e+1].el:we;oe[_e]===0?m(null,nt,ue,je,ve,U,j,Q,de):Ee&&(re<0||_e!==Ie[re]?ye(nt,ue,je,2):re--)}}},ye=(H,G,ue,we,ve=null)=>{const{el:U,type:j,transition:Q,children:de,shapeFlag:_e}=H;if(_e&6){ye(H.component.subTree,G,ue,we);return}if(_e&128){H.suspense.move(G,ue,we);return}if(_e&64){j.move(H,G,ue,Te);return}if(j===Ge){r(U,G,ue);for(let J=0;J<de.length;J++)ye(de[J],G,ue,we);r(H.anchor,G,ue);return}if(j===wf){S(H,G,ue);return}if(we!==2&&_e&1&&Q)if(we===0)Q.beforeEnter(U),r(U,G,ue),Rr(()=>Q.enter(U),ve);else{const{leave:J,delayLeave:he,afterLeave:Ve}=Q,Ze=()=>r(U,G,ue),St=()=>{J(U,()=>{Ze(),Ve&&Ve()})};he?he(U,Ze,St):St()}else r(U,G,ue)},Oe=(H,G,ue,we=!1,ve=!1)=>{const{type:U,props:j,ref:Q,children:de,dynamicChildren:_e,shapeFlag:De,patchFlag:J,dirs:he,cacheIndex:Ve}=H;if(J===-2&&(ve=!1),Q!=null&&kg(Q,null,ue,H,!0),Ve!=null&&(G.renderCache[Ve]=void 0),De&256){G.ctx.deactivate(H);return}const Ze=De&1&&he,St=!Du(H);let re;if(St&&(re=j&&j.onVnodeBeforeUnmount)&&Qi(re,G,H),De&6)Le(H.component,ue,we);else{if(De&128){H.suspense.unmount(ue,we);return}Ze&&vs(H,null,G,"beforeUnmount"),De&64?H.type.remove(H,G,ue,Te,we):_e&&!_e.hasOnce&&(U!==Ge||J>0&&J&64)?Xe(_e,G,ue,!1,!0):(U===Ge&&J&384||!ve&&De&16)&&Xe(de,G,ue),we&&ke(H)}(St&&(re=j&&j.onVnodeUnmounted)||Ze)&&Rr(()=>{re&&Qi(re,G,H),Ze&&vs(H,null,G,"unmounted")},ue)},ke=H=>{const{type:G,el:ue,anchor:we,transition:ve}=H;if(G===Ge){Ue(ue,we);return}if(G===wf){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:Q}=ve,de=()=>j(ue,U);Q?Q(H.el,U,de):de()}else U()},Ue=(H,G)=>{let ue;for(;H!==G;)ue=h(H),i(H),H=ue;i(G)},Le=(H,G,ue)=>{const{bum:we,scope:ve,job:U,subTree:j,um:Q,m:de,a:_e}=H;D1(de),D1(_e),we&&yf(we),ve.stop(),U&&(U.flags|=8,Oe(j,H,G,ue)),Q&&Rr(Q,G),Rr(()=>{H.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},Xe=(H,G,ue,we=!1,ve=!1,U=0)=>{for(let j=U;j<H.length;j++)Oe(H[j],G,ue,we,ve)},fe=H=>{if(H.shapeFlag&6)return fe(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const G=h(H.anchor||H.el),ue=G&&G[k$];return ue?h(ue):G};let Ae=!1;const Se=(H,G,ue)=>{H==null?G._vnode&&Oe(G._vnode,null,null,!0):m(G._vnode||null,H,G,null,null,null,ue),G._vnode=H,Ae||(Ae=!0,WD(),P1(),Ae=!1)},Te={p:m,um:Oe,m:ye,r:ke,mt:$,mc:R,pc:Y,pbc:P,n:fe,o:e};let Ne,Be;return t&&([Ne,Be]=t(Te)),{render:Se,hydrate:Ne,createApp:SQ(Se,Ne)}}function Zx({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 yc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pB(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wI(e,t,n=!1){const r=e.children,i=t.children;if(et(r)&&et(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&&wI(a,s)),s.type===yl&&(s.el=a.el)}}function IQ(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 vB(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:vB(t)}function D1(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const gB=Symbol.for("v-scx"),mB=()=>lo(gB);function iS(e,t){return Am(e,null,t)}function RQ(e,t){return Am(e,null,{flush:"post"})}function yB(e,t){return Am(e,null,{flush:"sync"})}function Bt(e,t,n){return Am(e,t,n)}function Am(e,t,n=en){const{immediate:r,deep:i,flush:o,once:a}=n,s=nn({},n),l=t&&r||!t&&o!=="post";let u;if(Eh){if(o==="sync"){const d=mB();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Ur,d.resume=Ur,d.pause=Ur,d}}const c=Pr;s.call=(d,v,m)=>ba(d,c,v,m);let f=!1;o==="post"?s.scheduler=d=>{Rr(d,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(d,v)=>{v?d():fI(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=_J(e,t,s);return Eh&&(u?u.push(h):l&&h()),h}function PQ(e,t,n){const r=this.proxy,i=Mt(e)?e.includes(".")?_B(r,e):()=>r[e]:e.bind(r,r);let o;Ct(t)?o=t:(o=t.handler,n=t);const a=Ff(this),s=Am(i,o.bind(r),n);return a(),s}function _B(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 oS(e,t,n=en){const r=Er(),i=Vn(t),o=pi(t),a=bB(e,i),s=cI((l,u)=>{let c,f=en,h;return yB(()=>{const d=e[i];fi(c,d)&&(c=d,u())}),{get(){return l(),n.get?n.get(c):c},set(d){const v=n.set?n.set(d):d;if(!fi(v,c)&&!(f!==en&&fi(d,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=d,u()),r.emit(`update:${t}`,v),fi(d,v)&&fi(d,f)&&!fi(v,h)&&u(),f=d,h=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||en:s,done:!1}:{done:!0}}}},s}const bB=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Vn(t)}Modifiers`]||e[`${pi(t)}Modifiers`];function MQ(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||en;let i=n;const o=t.startsWith("update:"),a=o&&bB(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Mt(c)?c.trim():c)),a.number&&(i=n.map(Ig)));let s,l=r[s=mf(t)]||r[s=mf(Vn(t))];!l&&o&&(l=r[s=mf(pi(t))]),l&&ba(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,ba(u,e,6,i)}}function SB(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=SB(u,t,!0);c&&(s=!0,nn(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):(et(o)?o.forEach(l=>a[l]=null):nn(a,o),mn(e)&&r.set(e,a),a)}function aS(e,t){return!e||!Ju(t)?!1:(t=t.slice(2).replace(/Once$/,""),dn(e,t[0].toLowerCase()+t.slice(1))||dn(e,pi(t))||dn(e,t))}function I_(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:h,setupState:d,ctx:v,inheritAttrs:m}=e,y=Ng(e);let _,b;try{if(n.shapeFlag&4){const w=i||r,T=w;_=no(u.call(T,w,c,f,d,h,v)),b=s}else{const w=t;_=no(w.length>1?w(f,{attrs:s,slots:a,emit:l}):w(f,null)),b=t.props?s:DQ(s)}}catch(w){Wv.length=0,td(w,e,1),_=z(Sr)}let S=_;if(b&&m!==!1){const w=Object.keys(b),{shapeFlag:T}=S;w.length&&T&7&&(o&&w.some(Hb)&&(b=LQ(b,o)),S=Is(S,b,!1,!0))}return n.dirs&&(S=Is(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&Al(S,n.transition),_=S,Ng(y),_}function OQ(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 DQ=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ju(n))&&((t||(t={}))[n]=e[n]);return t},LQ=(e,t)=>{const n={};for(const r in e)(!Hb(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function NQ(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?rL(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(a[h]!==r[h]&&!aS(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?rL(r,a,u):!0:!!a;return!1}function rL(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]&&!aS(n,o))return!0}return!1}function sS({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 CE=0;const kQ={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)$Q(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}BQ(e,t,n,r,i,a,s,l,u)}},hydrate:VQ,normalize:UQ},FQ=kQ;function $g(e,t){const n=e.props&&e.props[t];Ct(n)&&n()}function $Q(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),h=e.suspense=wB(e,i,r,t,f,n,o,a,s,l);u(null,h.pendingBranch=e.ssContent,f,null,r,h,o,a),h.deps>0?($g(e,"onPending"),$g(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),dh(h,e.ssFallback)):h.resolve(!1,!0)}function BQ(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 h=t.ssContent,d=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:y,isHydrating:_}=f;if(m)f.pendingBranch=h,ja(h,m)?(l(m,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():y&&(_||(l(v,d,n,r,i,null,o,a,s),dh(f,d)))):(f.pendingId=CE++,_?(f.isHydrating=!1,f.activeBranch=m):u(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(v,d,n,r,i,null,o,a,s),dh(f,d))):v&&ja(h,v)?(l(v,h,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(v&&ja(h,v))l(v,h,n,r,i,f,o,a,s),dh(f,h);else if($g(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=CE++,l(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:S}=f;b>0?setTimeout(()=>{f.pendingId===S&&f.fallback(d)},b):b===0&&f.fallback(d)}}function wB(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:h,um:d,n:v,o:{parentNode:m,remove:y}}=u;let _;const b=HQ(e);b&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const S=e.props?Rg(e.props.timeout):void 0,w=o,T={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:CE++,timeout:typeof S=="number"?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(C=!1,E=!1){const{vnode:R,activeBranch:I,pendingBranch:P,pendingId:M,effects:L,parentComponent:k,container:$}=T;let W=!1;T.isHydrating?T.isHydrating=!1:C||(W=I&&P.transition&&P.transition.mode==="out-in",W&&(I.transition.afterLeave=()=>{M===T.pendingId&&(h(P,$,o===w?v(I):o,0),Dg(L))}),I&&(m(I.el)===$&&(o=v(I)),d(I,k,T,!0)),W||h(P,$,o,0)),dh(T,P),T.pendingBranch=null,T.isInFallback=!1;let N=T.parent,K=!1;for(;N;){if(N.pendingBranch){N.effects.push(...L),K=!0;break}N=N.parent}!K&&!W&&Dg(L),T.effects=[],b&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),$g(R,"onResolve")},fallback(C){if(!T.pendingBranch)return;const{vnode:E,activeBranch:R,parentComponent:I,container:P,namespace:M}=T;$g(E,"onFallback");const L=v(R),k=()=>{T.isInFallback&&(f(null,C,P,L,I,null,M,s,l),dh(T,C))},$=C.transition&&C.transition.mode==="out-in";$&&(R.transition.afterLeave=k),T.isInFallback=!0,d(R,I,null,!0),$||k()},move(C,E,R){T.activeBranch&&h(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 P=C.vnode.el;C.asyncDep.catch(M=>{td(M,C,0)}).then(M=>{if(C.isUnmounted||T.isUnmounted||T.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:L}=C;IE(C,M,!1),P&&(L.el=P);const k=!P&&C.subTree.el;E(C,L,m(P||C.subTree.el),P?null:v(C.subTree),T,a,R),k&&y(k),sS(C,L.el),I&&--T.deps===0&&T.resolve()})},unmount(C,E){T.isUnmounted=!0,T.activeBranch&&d(T.activeBranch,n,C,E),T.pendingBranch&&d(T.pendingBranch,n,C,E)}};return T}function VQ(e,t,n,r,i,o,a,s,l){const u=t.suspense=wB(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 UQ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=iL(r?n.default:n),e.ssFallback=r?iL(n.fallback):z(Sr)}function iL(e){let t;if(Ct(e)){const n=kf&&e._c;n&&(e._d=!1,X()),e=e(),n&&(e._d=!0,t=_i,CB())}return et(e)&&(e=OQ(e)),e=no(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function xB(e,t){t&&t.pendingBranch?et(e)?t.effects.push(...e):t.effects.push(e):Dg(e)}function dh(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,sS(r,i))}function HQ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ge=Symbol.for("v-fgt"),yl=Symbol.for("v-txt"),Sr=Symbol.for("v-cmt"),wf=Symbol.for("v-stc"),Wv=[];let _i=null;function X(e=!1){Wv.push(_i=e?null:[])}function CB(){Wv.pop(),_i=Wv[Wv.length-1]||null}let kf=1;function TE(e,t=!1){kf+=e,e<0&&_i&&t&&(_i.hasOnce=!0)}function TB(e){return e.dynamicChildren=kf>0?_i||vf:null,CB(),kf>0&&_i&&_i.push(e),e}function q(e,t,n,r,i,o){return TB(D(e,t,n,r,i,o,!0))}function _t(e,t,n,r,i){return TB(z(e,t,n,r,i,!0))}function Il(e){return e?e.__v_isVNode===!0:!1}function ja(e,t){return e.type===t.type&&e.key===t.key}function zQ(e){}const EB=({key:e})=>e??null,R_=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mt(e)||pt(e)||Ct(e)?{i:Mr,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,o=e===Ge?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&EB(t),ref:t&&R_(t),scopeId:Qb,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:Mr};return s?(xI(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Mt(n)?8:16),kf>0&&!a&&_i&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&_i.push(l),l}const z=GQ;function GQ(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===J$)&&(e=Sr),Il(e)){const s=Is(e,t,!0);return n&&xI(s,n),kf>0&&!o&&_i&&(s.shapeFlag&6?_i[_i.indexOf(e)]=s:_i.push(s)),s.patchFlag=-2,s}if(JQ(e)&&(e=e.__vccOpts),t){t=AB(t);let{class:s,style:l}=t;s&&!Mt(s)&&(t.class=mt(s)),mn(l)&&(Jb(l)&&!et(l)&&(l=nn({},l)),t.style=lr(l))}const a=Mt(e)?1:L1(e)?128:F$(e)?64:mn(e)?4:Ct(e)?2:0;return D(e,t,n,r,i,a,o,!0)}function AB(e){return e?Jb(e)||iB(e)?nn({},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?IB(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&EB(u),ref:t&&t.ref?n&&o?et(o)?o.concat(R_(t)):[o,R_(t)]:R_(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!==Ge?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 qe(e=" ",t=0){return z(yl,null,e,t)}function WQ(e,t){const n=z(wf,null,e);return n.staticCount=t,n}function it(e="",t=!1){return t?(X(),_t(Sr,null,e)):z(Sr,null,e)}function no(e){return e==null||typeof e=="boolean"?z(Sr):et(e)?z(Ge,null,e.slice()):Il(e)?hu(e):z(yl,null,String(e))}function hu(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Is(e)}function xI(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(et(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),xI(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!iB(t)?t._ctx=Mr:i===3&&Mr&&(Mr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ct(t)?(t={default:t,_ctx:Mr},n=32):(t=String(t),r&64?(n=16,t=[qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function IB(...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=mt([t.class,r.class]));else if(i==="style")t.style=lr([t.style,r.style]);else if(Ju(i)){const o=t[i],a=r[i];a&&o!==a&&!(et(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){ba(e,t,7,[n,r])}const jQ=tB();let XQ=0;function RB(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||jQ,o={uid:XQ++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new rI(!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:aB(r,i),emitsOptions:SB(r,i),emit:null,emitted:null,propsDefaults:en,inheritAttrs:r.inheritAttrs,ctx:en,data:en,props:en,attrs:en,slots:en,refs:en,setupState:en,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=MQ.bind(null,o),e.ce&&e.ce(o),o}let Pr=null;const Er=()=>Pr||Mr;let N1,EE;{const e=xm(),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=>Pr=n),EE=t("__VUE_SSR_SETTERS__",n=>Eh=n)}const Ff=e=>{const t=Pr;return N1(e),e.scope.on(),()=>{e.scope.off(),N1(t)}},AE=()=>{Pr&&Pr.scope.off(),N1(null)};function PB(e){return e.vnode.shapeFlag&4}let Eh=!1;function MB(e,t=!1,n=!1){t&&EE(t);const{props:r,children:i}=e.vnode,o=PB(e);wQ(e,r,o,t),EQ(e,i,n);const a=o?YQ(e,t):void 0;return t&&EE(!1),a}function YQ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bE);const{setup:r}=n;if(r){tc();const i=e.setupContext=r.length>1?DB(e):null,o=Ff(e),a=rp(r,e,0,[e.props,i]),s=Gb(a);if(nc(),o(),(s||e.sp)&&!Du(e)&&pI(e),s){if(a.then(AE,AE),t)return a.then(l=>{IE(e,l,t)}).catch(l=>{td(l,e,0)});e.asyncDep=a}else IE(e,a,t)}else OB(e,t)}function IE(e,t,n){Ct(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mn(t)&&(e.setupState=uI(t)),OB(e,n)}let k1,RE;function KQ(e){k1=e,RE=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,nQ))}}const ZQ=()=>!k1;function OB(e,t,n){const r=e.type;if(!e.render){if(!t&&k1&&!r.render){const i=r.template||_I(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=nn(nn({isCustomElement:o,delimiters:s},a),l);r.render=k1(i,u)}}e.render=r.render||Ur,RE&&RE(e)}{const i=Ff(e);tc();try{vQ(e)}finally{nc(),i()}}}const qQ={get(e,t){return di(e,"get",""),e[t]}};function DB(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qQ),slots:e.slots,emit:e.emit,expose:t}}function Im(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(uI(E$(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zv)return zv[n](e)},has(t,n){return n in t||n in zv}})):e.proxy}function PE(e,t=!0){return Ct(e)?e.displayName||e.name:e.name||t&&e.__name}function JQ(e){return Ct(e)&&"__vccOpts"in e}const xe=(e,t)=>vJ(e,t,Eh);function ca(e,t,n){const r=arguments.length;return r===2?mn(t)&&!et(t)?Il(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Il(n)&&(n=[n]),z(e,t,n))}function QQ(){}function eee(e,t,n,r){const i=n[r];if(i&&LB(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function LB(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 kf>0&&_i&&_i.push(e),!0}const NB="3.5.13",tee=Ur,nee=CJ,ree=Kd,iee=N$,oee={createComponentInstance:RB,setupComponent:MB,renderComponentRoot:I_,setCurrentRenderingInstance:Ng,isVNode:Il,normalizeVNode:no,getComponentPublicInstance:Im,ensureValidVNode:yI,pushWarningContext:bJ,popWarningContext:SJ},aee=oee,see=null,lee=null,uee=null;/**
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ME;const oL=typeof window<"u"&&window.trustedTypes;if(oL)try{ME=oL.createPolicy("vue",{createHTML:e=>e})}catch{}const kB=ME?e=>ME.createHTML(e):e=>e,cee="http://www.w3.org/2000/svg",fee="http://www.w3.org/1998/Math/MathML",nl=typeof document<"u"?document:null,aL=nl&&nl.createElement("template"),dee={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(cee,e):t==="mathml"?nl.createElementNS(fee,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{aL.innerHTML=kB(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=aL.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",$p="animation",Ah=Symbol("_vtc"),FB={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},$B=nn({},hI,FB),hee=e=>(e.displayName="Transition",e.props=$B,e),BB=hee((e,{slots:t})=>ca(H$,VB(e),t)),_c=(e,t=[])=>{et(e)?e.forEach(n=>n(...t)):e&&e(...t)},sL=e=>e?et(e)?e.some(t=>t.length>1):e.length>1:!1;function VB(e){const t={};for(const L in e)L in FB||(t[L]=e[L]);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:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,v=pee(i),m=v&&v[0],y=v&&v[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:S,onLeave:w,onLeaveCancelled:T,onBeforeAppear:C=_,onAppear:E=b,onAppearCancelled:R=S}=t,I=(L,k,$,W)=>{L._enterCancelled=W,su(L,k?c:s),su(L,k?u:a),$&&$()},P=(L,k)=>{L._isLeaving=!1,su(L,f),su(L,d),su(L,h),k&&k()},M=L=>(k,$)=>{const W=L?E:b,N=()=>I(k,L,$);_c(W,[k,N]),lL(()=>{su(k,L?l:o),hs(k,L?c:s),sL(W)||uL(k,r,m,N)})};return nn(t,{onBeforeEnter(L){_c(_,[L]),hs(L,o),hs(L,a)},onBeforeAppear(L){_c(C,[L]),hs(L,l),hs(L,u)},onEnter:M(!1),onAppear:M(!0),onLeave(L,k){L._isLeaving=!0;const $=()=>P(L,k);hs(L,f),L._enterCancelled?(hs(L,h),OE()):(OE(),hs(L,h)),lL(()=>{L._isLeaving&&(su(L,f),hs(L,d),sL(w)||uL(L,r,y,$))}),_c(w,[L,$])},onEnterCancelled(L){I(L,!1,void 0,!0),_c(S,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),_c(R,[L])},onLeaveCancelled(L){P(L),_c(T,[L])}})}function pee(e){if(e==null)return null;if(mn(e))return[qx(e.enter),qx(e.leave)];{const t=qx(e);return[t,t]}}function qx(e){return Rg(e)}function hs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ah]||(e[Ah]=new Set)).add(t)}function su(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ah];n&&(n.delete(t),n.size||(e[Ah]=void 0))}function lL(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vee=0;function uL(e,t,n,r){const i=e._endId=++vee,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=UB(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),o()},h=d=>{d.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,h)}function UB(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),i=r(`${Xl}Delay`),o=r(`${Xl}Duration`),a=cL(i,o),s=r(`${$p}Delay`),l=r(`${$p}Duration`),u=cL(s,l);let c=null,f=0,h=0;t===Xl?a>0&&(c=Xl,f=a,h=o.length):t===$p?u>0&&(c=$p,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?Xl:$p:null,h=c?c===Xl?o.length:l.length:0);const d=c===Xl&&/\b(transform|all)(,|$)/.test(r(`${Xl}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}function cL(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>fL(n)+fL(e[r])))}function fL(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function OE(){return document.body.offsetHeight}function gee(e,t,n){const r=e[Ah];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const F1=Symbol("_vod"),HB=Symbol("_vsh"),CI={beforeMount(e,{value:t},{transition:n}){e[F1]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bp(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),Bp(e,!0),r.enter(e)):r.leave(e,()=>{Bp(e,!1)}):Bp(e,t))},beforeUnmount(e,{value:t}){Bp(e,t)}};function Bp(e,t){e.style.display=t?e[F1]:"none",e[HB]=!t}function mee(){CI.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const zB=Symbol("");function yee(e){const t=Er();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):DE(t.subTree,i),n(i)};vI(()=>{Dg(r)}),Vo(()=>{Bt(r,Ur,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),nd(()=>i.disconnect())})}function DE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{DE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)$1(e.el,t);else if(e.type===Ge)e.children.forEach(n=>DE(n,t));else if(e.type===wf){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[zB]=r}}const _ee=/(^|;)\s*display\s*:/;function bee(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&&P_(r,s,"")}else for(const a in t)n[a]==null&&P_(r,a,"");for(const a in n)a==="display"&&(o=!0),P_(r,a,n[a])}else if(i){if(t!==n){const a=r[zB];a&&(n+=";"+a),r.cssText=n,o=_ee.test(n)}}else t&&e.removeAttribute("style");F1 in e&&(e[F1]=o?r.display:"",e[HB]&&(r.display="none"))}const dL=/\s*!important$/;function P_(e,t,n){if(et(n))n.forEach(r=>P_(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=See(e,t);dL.test(n)?e.setProperty(pi(r),n.replace(dL,""),"important"):e[r]=n}}const hL=["Webkit","Moz","ms"],Jx={};function See(e,t){const n=Jx[t];if(n)return n;let r=Vn(t);if(r!=="filter"&&r in e)return Jx[t]=r;r=ec(r);for(let i=0;i<hL.length;i++){const o=hL[i]+r;if(o in e)return Jx[t]=o}return t}const pL="http://www.w3.org/1999/xlink";function vL(e,t,n,r,i,o=a$(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(pL,t.slice(6,t.length)):e.setAttributeNS(pL,t,n):n==null||o&&!nI(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Vi(n)?String(n):n)}function gL(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?kB(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=nI(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 wee(e,t,n,r){e.removeEventListener(t,n,r)}const mL=Symbol("_vei");function xee(e,t,n,r,i=null){const o=e[mL]||(e[mL]={}),a=o[t];if(r&&a)a.value=r;else{const[s,l]=Cee(t);if(r){const u=o[t]=Aee(r,i);ll(e,s,u,l)}else a&&(wee(e,s,a,l),o[t]=void 0)}}const yL=/(?:Once|Passive|Capture)$/;function Cee(e){let t;if(yL.test(e)){t={};let r;for(;r=e.match(yL);)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 Qx=0;const Tee=Promise.resolve(),Eee=()=>Qx||(Tee.then(()=>Qx=0),Qx=Date.now());function Aee(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ba(Iee(r,n.value),t,5,[r])};return n.value=e,n.attached=Eee(),n}function Iee(e,t){if(et(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 _L=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ree=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?gee(e,r,a):t==="style"?bee(e,n,r):Ju(t)?Hb(t)||xee(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pee(e,t,r,a))?(gL(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vL(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Mt(r))?gL(e,Vn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),vL(e,t,r,a))};function Pee(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_L(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 _L(t)&&Mt(n)?!1:t in e}const bL={};/*! #__NO_SIDE_EFFECTS__ */function GB(e,t,n){const r=tt(e,t);wm(r)&&nn(r,t);class i extends lS{constructor(a){super(r,a,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const Mee=(e,t)=>GB(e,t,tV),Oee=typeof HTMLElement<"u"?HTMLElement:class{};class lS extends Oee{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 lS){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&&!et(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Rg(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=et(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):bL;const i=Vn(t);n&&this._numberProps&&this._numberProps[i]&&(r=Rg(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===bL?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(){eV(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=z(this._def,nn(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,wm(a[0])?nn({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 WB(e){const t=Er(),n=t&&t.ce;return n||null}function Dee(){const e=WB();return e&&e.shadowRoot}function Lee(e="$style"){{const t=Er();if(!t)return en;const n=t.type.__cssModules;if(!n)return en;const r=n[e];return r||en}}const jB=new WeakMap,XB=new WeakMap,B1=Symbol("_moveCb"),SL=Symbol("_enterCb"),Nee=e=>(delete e.props.mode,e),kee=Nee({name:"TransitionGroup",props:nn({},$B,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Er(),r=dI();let i,o;return nS(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Uee(i[0].el,n.vnode.el,a))return;i.forEach($ee),i.forEach(Bee);const s=i.filter(Vee);OE(),s.forEach(l=>{const u=l.el,c=u.style;hs(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[B1]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[B1]=null,su(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=cn(e),s=VB(a);let l=a.tag||Ge;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,Th(c,s,r,n)),jB.set(c,c.el.getBoundingClientRect()))}o=t.default?eS(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&Al(c,Th(c,s,r,n))}return z(l,null,o)}}}),Fee=kee;function $ee(e){const t=e.el;t[B1]&&t[B1](),t[SL]&&t[SL]()}function Bee(e){XB.set(e,e.el.getBoundingClientRect())}function Vee(e){const t=jB.get(e),n=XB.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 Uee(e,t,n){const r=e.cloneNode(),i=e[Ah];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}=UB(r);return o.removeChild(r),a}const zu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return et(t)?n=>yf(t,n):t};function Hee(e){e.target.composing=!0}function wL(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const va=Symbol("_assign"),vi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[va]=zu(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=Ig(s)),e[va](s)}),n&&ll(e,"change",()=>{e.value=e.value.trim()}),t||(ll(e,"compositionstart",Hee),ll(e,"compositionend",wL),ll(e,"change",wL))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[va]=zu(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?Ig(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))}},En={deep:!0,created(e,t,n){e[va]=zu(n),ll(e,"change",()=>{const r=e._modelValue,i=Ih(e),o=e.checked,a=e[va];if(et(r)){const s=Cm(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(YB(e,o))})},mounted:xL,beforeUpdate(e,t,n){e[va]=zu(n),xL(e,t,n)}};function xL(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(et(t))i=Cm(t,r.props.value)>-1;else if(Qu(t))i=t.has(r.props.value);else{if(t===n)return;i=El(t,YB(e,!0))}e.checked!==i&&(e.checked=i)}const TI={created(e,{value:t},n){e.checked=El(t,n.props.value),e[va]=zu(n),ll(e,"change",()=>{e[va](Ih(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[va]=zu(r),t!==n&&(e.checked=El(t,r.props.value))}},ur={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?Ig(Ih(a)):Ih(a));e[va](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Qa(()=>{e._assigning=!1})}),e[va]=zu(r)},mounted(e,{value:t}){CL(e,t)},beforeUpdate(e,t,n){e[va]=zu(n)},updated(e,{value:t}){e._assigning||CL(e,t)}};function CL(e,t){const n=e.multiple,r=et(t);if(!(n&&!r&&!Qu(t))){for(let i=0,o=e.options.length;i<o;i++){const a=e.options[i],s=Ih(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=Cm(t,s)>-1}else a.selected=t.has(s);else if(El(Ih(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ih(e){return"_value"in e?e._value:e.value}function YB(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const KB={created(e,t,n){i0(e,t,n,null,"created")},mounted(e,t,n){i0(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){i0(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){i0(e,t,n,r,"updated")}};function ZB(e,t){switch(e){case"SELECT":return ur;case"TEXTAREA":return vi;default:switch(t){case"checkbox":return En;case"radio":return TI;default:return vi}}}function i0(e,t,n,r,i){const a=ZB(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function zee(){vi.getSSRProps=({value:e})=>({value:e}),TI.getSSRProps=({value:e},t)=>{if(t.props&&El(t.props.value,e))return{checked:!0}},En.getSSRProps=({value:e},t)=>{if(et(e)){if(t.props&&Cm(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}},KB.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ZB(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Gee=["ctrl","shift","alt","meta"],Wee={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)=>Gee.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=Wee[t[a]];if(s&&s(i,t))return}return e(i,...o)})},jee={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},EI=(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||jee[a]===o))return e(i)})},qB=nn({patchProp:Ree},dee);let jv,TL=!1;function JB(){return jv||(jv=fB(qB))}function QB(){return jv=TL?jv:dB(qB),TL=!0,jv}const eV=(...e)=>{JB().render(...e)},Xee=(...e)=>{QB().hydrate(...e)},V1=(...e)=>{const t=JB().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=rV(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,nV(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},tV=(...e)=>{const t=QB().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=rV(r);if(i)return n(i,!0,nV(i))},t};function nV(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rV(e){return Mt(e)?document.querySelector(e):e}let EL=!1;const Yee=()=>{EL||(EL=!0,zee(),mee())},Kee=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:H$,BaseTransitionPropsValidators:hI,Comment:Sr,DeprecationTypes:uee,EffectScope:rI,ErrorCodes:xJ,ErrorTypeStrings:nee,Fragment:Ge,KeepAlive:KJ,ReactiveEffect:Pg,Static:wf,Suspense:FQ,Teleport:MJ,Text:yl,TrackOpTypes:gJ,Transition:BB,TransitionGroup:Fee,TriggerOpTypes:mJ,VueElement:lS,assertNumber:wJ,callWithAsyncErrorHandling:ba,callWithErrorHandling:rp,camelize:Vn,capitalize:ec,cloneVNode:Is,compatUtils:lee,computed:xe,createApp:V1,createBlock:_t,createCommentVNode:it,createElementBlock:q,createElementVNode:D,createHydrationRenderer:dB,createPropsRestProxy:hQ,createRenderer:fB,createSSRApp:tV,createSlots:eQ,createStaticVNode:WQ,createTextVNode:qe,createVNode:z,customRef:cI,defineAsyncComponent:XJ,defineComponent:tt,defineCustomElement:GB,defineEmits:iQ,defineExpose:oQ,defineModel:lQ,defineOptions:aQ,defineProps:rQ,defineSSRCustomElement:Mee,defineSlots:sQ,devtools:ree,effect:Uq,effectScope:c$,getCurrentInstance:Er,getCurrentScope:Xb,getCurrentWatcher:yJ,getTransitionRawChildren:eS,guardReactiveProps:AB,h:ca,handleError:td,hasInjectionContext:bI,hydrate:Xee,hydrateOnIdle:UJ,hydrateOnInteraction:WJ,hydrateOnMediaQuery:GJ,hydrateOnVisible:zJ,initCustomFormatter:QQ,initDirectivesForSSR:Yee,inject:lo,isMemoSame:LB,isProxy:Jb,isReactive:Ou,isReadonly:Hu,isRef:pt,isRuntimeOnly:ZQ,isShallow:Do,isVNode:Il,markRaw:E$,mergeDefaults:dQ,mergeModels:M1,mergeProps:IB,nextTick:Qa,normalizeClass:mt,normalizeProps:e$,normalizeStyle:lr,onActivated:G$,onBeforeMount:X$,onBeforeUnmount:rS,onBeforeUpdate:vI,onDeactivated:W$,onErrorCaptured:q$,onMounted:Vo,onRenderTracked:Z$,onRenderTriggered:K$,onScopeDispose:iI,onServerPrefetch:Y$,onUnmounted:nd,onUpdated:nS,onWatcherCleanup:P$,openBlock:X,popScopeId:IJ,provide:Gv,proxyRefs:uI,pushScopeId:AJ,queuePostFlushCb:Dg,reactive:_a,readonly:Tm,ref:Me,registerRuntimeCompiler:KQ,render:eV,renderList:qt,renderSlot:bf,resolveComponent:JJ,resolveDirective:QJ,resolveDynamicComponent:ml,resolveFilter:see,resolveTransitionHooks:Th,setBlockTracking:TE,setDevtoolsHook:iee,setTransitionHooks:Al,shallowReactive:lI,shallowReadonly:sJ,shallowRef:Si,ssrContextKey:gB,ssrUtils:aee,stop:Hq,toDisplayString:ne,toHandlerKey:mf,toHandlers:tQ,toRaw:cn,toRef:I$,toRefs:fJ,toValue:pa,transformVNodeArgs:zQ,triggerRef:mE,unref:B,useAttrs:fQ,useCssModule:Lee,useCssVars:yee,useHost:WB,useId:DJ,useModel:oS,useSSRContext:mB,useShadowRoot:Dee,useSlots:cQ,useTemplateRef:LJ,useTransitionState:dI,vModelCheckbox:En,vModelDynamic:KB,vModelRadio:TI,vModelSelect:ur,vModelText:vi,vShow:CI,version:NB,warn:tee,watch:Bt,watchEffect:iS,watchPostEffect:RQ,watchSyncEffect:yB,withAsyncContext:pQ,withCtx:jn,withDefaults:uQ,withDirectives:gt,withKeys:EI,withMemo:eee,withModifiers:gr,withScopeId:RJ},Symbol.toStringTag,{value:"Module"}));function uS(e,t){return X(),q("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"},[D("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 Zee(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function qee(e,t){return X(),q("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"},[D("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 Rm(e,t){return X(),q("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"},[D("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 X(),q("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"},[D("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 Pm(e,t){return X(),q("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"},[D("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 Jee(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function iV(e,t){return X(),q("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"},[D("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 Mm(e,t){return X(),q("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"},[D("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 oV(e,t){return X(),q("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"},[D("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 Qee(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function aV(e,t){return X(),q("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"},[D("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 ete(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function tte(e,t){return X(),q("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"},[D("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"}),D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function nte(e,t){return X(),q("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"},[D("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 AL(e,t){return X(),q("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"},[D("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 rte(e,t){return X(),q("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"},[D("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 AI(e,t){return X(),q("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"},[D("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 II(e,t){return X(),q("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"},[D("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"}),D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function ite(e,t){return X(),q("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"},[D("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 sV(e,t){return X(),q("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"},[D("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 IL(e,t){return X(),q("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"},[D("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 RL(e,t){return X(),q("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"},[D("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 ote(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),D("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 ate(e,t){return X(),q("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"},[D("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 lV(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function ste(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),D("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 uV(e,t){return X(),q("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"},[D("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 cS(e,t){return X(),q("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function RI(e,t){return X(),q("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"},[D("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 lte(e,t){return X(),q("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"},[D("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 ute(e,t){return X(),q("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"},[D("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 cte(e,t){return X(),q("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"},[D("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"}),D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6Z"})])}function PI(e,t){return X(),q("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"},[D("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 fS(e,t){return X(),q("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"},[D("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 fte(e,t){return X(),q("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"},[D("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 $f(e,t){return X(),q("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"},[D("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 Zd=typeof document<"u";function cV(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function dte(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cV(e.default)}const bn=Object.assign;function eC(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 Xv=()=>{},Ja=Array.isArray,fV=/#/g,hte=/&/g,pte=/\//g,vte=/=/g,gte=/\?/g,dV=/\+/g,mte=/%5B/g,yte=/%5D/g,hV=/%5E/g,_te=/%60/g,pV=/%7B/g,bte=/%7C/g,vV=/%7D/g,Ste=/%20/g;function MI(e){return encodeURI(""+e).replace(bte,"|").replace(mte,"[").replace(yte,"]")}function wte(e){return MI(e).replace(pV,"{").replace(vV,"}").replace(hV,"^")}function LE(e){return MI(e).replace(dV,"%2B").replace(Ste,"+").replace(fV,"%23").replace(hte,"%26").replace(_te,"`").replace(pV,"{").replace(vV,"}").replace(hV,"^")}function xte(e){return LE(e).replace(vte,"%3D")}function Cte(e){return MI(e).replace(fV,"%23").replace(gte,"%3F")}function Tte(e){return e==null?"":Cte(e).replace(pte,"%2F")}function Bg(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ete=/\/$/,Ate=e=>e.replace(Ete,"");function tC(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=Mte(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:Bg(a)}}function Ite(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function PL(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Rte(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Rh(t.matched[r],n.matched[i])&&gV(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gV(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Pte(e[n],t[n]))return!1;return!0}function Pte(e,t){return Ja(e)?ML(e,t):Ja(t)?ML(t,e):e===t}function ML(e,t){return Ja(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Mte(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 Vg;(function(e){e.pop="pop",e.push="push"})(Vg||(Vg={}));var Yv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Yv||(Yv={}));function Ote(e){if(!e)if(Zd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ate(e)}const Dte=/^[^#]+#/;function Lte(e,t){return e.replace(Dte,"#")+t}function Nte(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 dS=()=>({left:window.scrollX,top:window.scrollY});function kte(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=Nte(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 OL(e,t){return(history.state?history.state.position-t:-1)+e}const NE=new Map;function Fte(e,t){NE.set(e,t)}function $te(e){const t=NE.get(e);return NE.delete(e),t}let Bte=()=>location.protocol+"//"+location.host;function mV(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),PL(l,"")}return PL(n,e)+r+i}function Vte(e,t,n,r){let i=[],o=[],a=null;const s=({state:h})=>{const d=mV(e,location),v=n.value,m=t.value;let y=0;if(h){if(n.value=d,t.value=h,a&&a===v){a=null;return}y=m?h.position-m.position:0}else r(d);i.forEach(_=>{_(n.value,v,{delta:y,type:Vg.pop,direction:y?y>0?Yv.forward:Yv.back:Yv.unknown})})};function l(){a=n.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return o.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(bn({},h.state,{scroll:dS()}),"")}function f(){for(const h of o)h();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 DL(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?dS():null}}function Ute(e){const{history:t,location:n}=window,r={value:mV(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("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Bte()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),n[c?"replace":"assign"](h)}}function a(l,u){const c=bn({},t.state,DL(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:dS()});o(c.current,c,!0);const f=bn({},DL(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 Hte(e){e=Ote(e);const t=Ute(e),n=Vte(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:Lte.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 zte(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Hte(e)}function Gte(e){return typeof e=="string"||e&&typeof e=="object"}function yV(e){return typeof e=="string"||typeof e=="symbol"}const _V=Symbol("");var LL;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(LL||(LL={}));function Ph(e,t){return bn(new Error,{type:e,[_V]:!0},t)}function Zs(e,t){return e instanceof Error&&_V in e&&(t==null||!!(e.type&t))}const NL="[^/]+?",Wte={sensitive:!1,strict:!1,start:!0,end:!0},jte=/[.+*?^${}()[\]/\\]/g;function Xte(e,t){const n=bn({},Wte,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 h=u[f];let d=40+(n.sensitive?.25:0);if(h.type===0)f||(i+="/"),i+=h.value.replace(jte,"\\$&"),d+=40;else if(h.type===1){const{value:v,repeatable:m,optional:y,regexp:_}=h;o.push({name:v,repeatable:m,optional:y});const b=_||NL;if(b!==NL){d+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+w.message)}}let S=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(S=y&&u.length<2?`(?:/${S})`:"/"+S),y&&(S+="?"),i+=S,d+=20,y&&(d+=-8),m&&(d+=-20),b===".*"&&(d+=-50)}c.push(d)}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 h=1;h<c.length;h++){const d=c[h]||"",v=o[h-1];f[v.name]=d&&v.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of h)if(d.type===0)c+=d.value;else if(d.type===1){const{value:v,repeatable:m,optional:y}=d,_=v in u?u[v]:"";if(Ja(_)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Ja(_)?_.join("/"):_;if(!b)if(y)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=b}}return c||"/"}return{re:a,score:r,keys:o,parse:s,stringify:l}}function Yte(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 bV(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=Yte(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(kL(r))return 1;if(kL(i))return-1}return i.length-r.length}function kL(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Kte={type:0,value:""},Zte=/[a-zA-Z0-9_]/;function qte(e){if(!e)return[[]];if(e==="/")return[[Kte]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}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 h(){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):h();break;case 4:h(),n=r;break;case 1:l==="("?n=2:Zte.test(l)?h():(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 Jte(e,t,n){const r=Xte(qte(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 Qte(e,t){const n=[],r=new Map;t=VL({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function o(f,h,d){const v=!d,m=$L(f);m.aliasOf=d&&d.record;const y=VL(t,f),_=[m];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of w)_.push($L(bn({},m,{components:d?d.record.components:m.components,path:T,aliasOf:d?d.record:m})))}let b,S;for(const w of _){const{path:T}=w;if(h&&T[0]!=="/"){const C=h.record.path,E=C[C.length-1]==="/"?"":"/";w.path=h.record.path+(T&&E+T)}if(b=Jte(w,h,y),d?d.alias.push(b):(S=S||b,S!==b&&S.alias.push(b),v&&f.name&&!BL(b)&&a(f.name)),SV(b)&&l(b),m.children){const C=m.children;for(let E=0;E<C.length;E++)o(C[E],b,d&&d.children[E])}d=d||b}return S?()=>{a(S)}:Xv}function a(f){if(yV(f)){const h=r.get(f);h&&(r.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,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 h=nne(f,n);n.splice(h,0,f),f.record.name&&!BL(f)&&r.set(f.record.name,f)}function u(f,h){let d,v={},m,y;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Ph(1,{location:f});y=d.record.name,v=bn(FL(h.params,d.keys.filter(S=>!S.optional).concat(d.parent?d.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),f.params&&FL(f.params,d.keys.map(S=>S.name))),m=d.stringify(v)}else if(f.path!=null)m=f.path,d=n.find(S=>S.re.test(m)),d&&(v=d.parse(m),y=d.record.name);else{if(d=h.name?r.get(h.name):n.find(S=>S.re.test(h.path)),!d)throw Ph(1,{location:f,currentLocation:h});y=d.record.name,v=bn({},h.params,f.params),m=d.stringify(v)}const _=[];let b=d;for(;b;)_.unshift(b.record),b=b.parent;return{name:y,path:m,params:v,matched:_,meta:tne(_)}}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 FL(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $L(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ene(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 ene(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 BL(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tne(e){return e.reduce((t,n)=>bn(t,n.meta),{})}function VL(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function nne(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;bV(e,t[o])<0?r=o:n=o+1}const i=rne(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function rne(e){let t=e;for(;t=t.parent;)if(SV(t)&&bV(e,t)===0)return t}function SV({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ine(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(dV," "),a=o.indexOf("="),s=Bg(a<0?o:o.slice(0,a)),l=a<0?null:Bg(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 UL(e){let t="";for(let n in e){const r=e[n];if(n=xte(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ja(r)?r.map(o=>o&&LE(o)):[r&&LE(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function one(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 ane=Symbol(""),HL=Symbol(""),hS=Symbol(""),OI=Symbol(""),kE=Symbol("");function Vp(){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=h=>{h===!1?l(Ph(4,{from:n,to:t})):h instanceof Error?l(h):Gte(h)?l(Ph(2,{from:t,to:h})):(a&&r.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),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(h=>l(h))})}function nC(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(cV(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=dte(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&pu(d,n,r,a,s,i)()}))}}return o}function zL(e){const t=lo(hS),n=lo(OI),r=xe(()=>{const l=B(e.to);return t.resolve(l)}),i=xe(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(Rh.bind(null,c));if(h>-1)return h;const d=GL(l[u-2]);return u>1&&GL(c)===d&&f[f.length-1].path!==d?f.findIndex(Rh.bind(null,l[u-2])):h}),o=xe(()=>i.value>-1&&fne(n.params,r.value.params)),a=xe(()=>i.value>-1&&i.value===n.matched.length-1&&gV(n.params,r.value.params));function s(l={}){if(cne(l)){const u=t[B(e.replace)?"replace":"push"](B(e.to)).catch(Xv);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:xe(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function sne(e){return e.length===1?e[0]:e}const lne=tt({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:zL,setup(e,{slots:t}){const n=_a(zL(e)),{options:r}=lo(hS),i=xe(()=>({[WL(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[WL(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&sne(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)}}}),une=lne;function cne(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 fne(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 GL(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const WL=(e,t,n)=>e??t??n,dne=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=lo(kE),i=xe(()=>e.route||r.value),o=lo(HL,0),a=xe(()=>{let u=B(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=xe(()=>i.value.matched[a.value]);Gv(HL,xe(()=>a.value+1)),Gv(ane,s),Gv(kE,i);const l=Me();return Bt(()=>[l.value,s.value,e.name],([u,c,f],[h,d,v])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Rh(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,h=f&&f.components[c];if(!h)return jL(n.default,{Component:h,route:u});const d=f.props[c],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,y=ca(h,bn({},v,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return jL(n.default,{Component:y,route:u})||y}}});function jL(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const DI=dne;function hne(e){const t=Qte(e.routes,e),n=e.parseQuery||ine,r=e.stringifyQuery||UL,i=e.history,o=Vp(),a=Vp(),s=Vp(),l=Si(Yl);let u=Yl;Zd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=eC.bind(null,fe=>""+fe),f=eC.bind(null,Tte),h=eC.bind(null,Bg);function d(fe,Ae){let Se,Te;return yV(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 y(fe){return!!t.getRecordMatcher(fe)}function _(fe,Ae){if(Ae=bn({},Ae||l.value),typeof fe=="string"){const G=tC(n,fe,Ae.path),ue=t.resolve({path:G.path},Ae),we=i.createHref(G.fullPath);return bn(G,ue,{params:h(ue.params),hash:Bg(G.hash),redirectedFrom:void 0,href:we})}let Se;if(fe.path!=null)Se=bn({},fe,{path:tC(n,fe.path,Ae.path).path});else{const G=bn({},fe.params);for(const ue in G)G[ue]==null&&delete G[ue];Se=bn({},fe,{params:f(G)}),Ae.params=f(Ae.params)}const Te=t.resolve(Se,Ae),Ne=fe.hash||"";Te.params=c(h(Te.params));const Be=Ite(r,bn({},fe,{hash:wte(Ne),path:Te.path})),H=i.createHref(Be);return bn({fullPath:Be,hash:Ne,query:r===UL?one(fe.query):fe.query||{}},Te,{redirectedFrom:void 0,href:H})}function b(fe){return typeof fe=="string"?tC(n,fe,l.value.path):bn({},fe)}function S(fe,Ae){if(u!==fe)return Ph(8,{from:Ae,to:fe})}function w(fe){return E(fe)}function T(fe){return w(bn(b(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=b(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=_(fe),Te=l.value,Ne=fe.state,Be=fe.force,H=fe.replace===!0,G=C(Se);if(G)return E(bn(b(G),{state:typeof G=="object"?bn({},Ne,G.state):Ne,force:Be,replace:H}),Ae||Se);const ue=Se;ue.redirectedFrom=Ae;let we;return!Be&&Rte(r,Te,Se)&&(we=Ph(16,{to:ue,from:Te}),ye(Te,Te,!0,!1)),(we?Promise.resolve(we):P(ue,Te)).catch(ve=>Zs(ve)?Zs(ve,2)?ve:ge(ve):Y(ve,ue,Te)).then(ve=>{if(ve){if(Zs(ve,2))return E(bn({replace:H},b(ve.to),{state:typeof ve.to=="object"?bn({},Ne,ve.to.state):Ne,force:Be}),Ae||ue)}else ve=L(ue,Te,!0,H,Ne);return M(ue,Te,ve),ve})}function R(fe,Ae){const Se=S(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 P(fe,Ae){let Se;const[Te,Ne,Be]=pne(fe,Ae);Se=nC(Te.reverse(),"beforeRouteLeave",fe,Ae);for(const G of Te)G.leaveGuards.forEach(ue=>{Se.push(pu(ue,fe,Ae))});const H=R.bind(null,fe,Ae);return Se.push(H),Xe(Se).then(()=>{Se=[];for(const G of o.list())Se.push(pu(G,fe,Ae));return Se.push(H),Xe(Se)}).then(()=>{Se=nC(Ne,"beforeRouteUpdate",fe,Ae);for(const G of Ne)G.updateGuards.forEach(ue=>{Se.push(pu(ue,fe,Ae))});return Se.push(H),Xe(Se)}).then(()=>{Se=[];for(const G of Be)if(G.beforeEnter)if(Ja(G.beforeEnter))for(const ue of G.beforeEnter)Se.push(pu(ue,fe,Ae));else Se.push(pu(G.beforeEnter,fe,Ae));return Se.push(H),Xe(Se)}).then(()=>(fe.matched.forEach(G=>G.enterCallbacks={}),Se=nC(Be,"beforeRouteEnter",fe,Ae,I),Se.push(H),Xe(Se))).then(()=>{Se=[];for(const G of a.list())Se.push(pu(G,fe,Ae));return Se.push(H),Xe(Se)}).catch(G=>Zs(G,8)?G:Promise.reject(G))}function M(fe,Ae,Se){s.list().forEach(Te=>I(()=>Te(fe,Ae,Se)))}function L(fe,Ae,Se,Te,Ne){const Be=S(fe,Ae);if(Be)return Be;const H=Ae===Yl,G=Zd?history.state:{};Se&&(Te||H?i.replace(fe.fullPath,bn({scroll:H&&G&&G.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=_(fe),Ne=C(Te);if(Ne){E(bn(Ne,{replace:!0,force:!0}),Te).catch(Xv);return}u=Te;const Be=l.value;Zd&&Fte(OL(Be.fullPath,Se.delta),dS()),P(Te,Be).catch(H=>Zs(H,12)?H:Zs(H,2)?(E(bn(b(H.to),{force:!0}),Te).then(G=>{Zs(G,20)&&!Se.delta&&Se.type===Vg.pop&&i.go(-1,!1)}).catch(Xv),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),Y(H,Te,Be))).then(H=>{H=H||L(Te,Be,!1),H&&(Se.delta&&!Zs(H,8)?i.go(-Se.delta,!1):Se.type===Vg.pop&&Zs(H,20)&&i.go(-1,!1)),M(Te,Be,H)}).catch(Xv)}))}let W=Vp(),N=Vp(),K;function Y(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(!Zd||!Ne)return Promise.resolve();const Be=!Se&&$te(OL(fe.fullPath,0))||(Te||!Se)&&history.state&&history.state.scroll||null;return Qa().then(()=>Ne(fe,Ae,Be)).then(H=>H&&kte(H)).catch(H=>Y(H,fe,Ae))}const Oe=fe=>i.go(fe);let ke;const Ue=new Set,Le={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:_,options:e,push:w,replace:T,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:N.add,isReady:ae,install(fe){const Ae=this;fe.component("RouterLink",une),fe.component("RouterView",DI),fe.config.globalProperties.$router=Ae,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>B(l)}),Zd&&!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(hS,Ae),fe.provide(OI,lI(Se)),fe.provide(kE,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 Xe(fe){return fe.reduce((Ae,Se)=>Ae.then(()=>I(Se)),Promise.resolve())}return Le}function pne(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=>Rh(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Rh(u,l))||i.push(l))}return[n,r,i]}function wV(){return lo(hS)}function LI(e){return lo(OI)}const xV="https://www.gstatic.com/generate_204",NI="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||{}),pS=(e=>(e.AUTO="auto",e.MANUAL="manual",e))(pS||{}),yu=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(yu||{}),Ug=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(Ug||{}),fl=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(fl||{}),fa=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(fa||{}),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||{}),tf=(e=>(e.ASC="asc",e.DESC="desc",e))(tf||{}),Om=(e=>(e.ACTIVE="activeConnections",e.CLOSED="closedConnections",e))(Om||{}),Di=(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))(Di||{}),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 CV={overview:AL,proxies:ite,connections:iV,rules:ute,logs:rte,settings:tte,setup:AL};var Hg=(e=>(e.SMALL="small",e.LARGE="large",e))(Hg||{}),Dm=(e=>(e.SMALL="small",e.LARGE="large",e))(Dm||{}),FE=(e=>(e[e.SMALL=130]="SMALL",e[e.LARGE=145]="LARGE",e))(FE||{}),ip=(e=>(e.NORMAL="normal",e.REVERSE="reverse",e))(ip||{}),Yr=(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))(Yr||{}),zg=(e=>(e.FILTERED_TOTAL="filteredTotal",e.TOTAL="total",e.ALIVE_TOTAL="aliveTotal",e))(zg||{});const vne=[["host","connectTime"],["chains","dlSpeed","close"]],TV=[["host","connectTime"],["type","dl","ul"],["chains","dlSpeed","close"]],U1=["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","caramellatte","abyss","silk"],XL={name:"custom",id:"","--border":"1px","--color-base-100":"#ffffff","--color-base-200":"#fcfcfc","--color-base-300":"#f2f2f2","--color-base-content":"#2d2d33","--color-primary":"#5a3cd2","--color-primary-content":"#f3efff","--color-secondary":"#ea4c5a","--color-secondary-content":"#fff1f2","--color-accent":"#49c6c1","--color-accent-content":"#285e66","--color-neutral":"#1e1e1f","--color-neutral-content":"#ececec","--color-info":"#5b90ff","--color-info-content":"#273c66","--color-success":"#44c07a","--color-success-content":"#1d472f","--color-warning":"#e5a300","--color-warning-content":"#705322","--color-error":"#d13a30","--color-error-content":"#551d1d","--depth":"0","--noise":"0","--radius-box":"1rem","--radius-field":"0.5rem","--radius-selector":"1rem","--size-field":"0.25rem","--size-selector":"0.25rem","color-scheme":"dark",default:!1,prefersdark:!1};function vS(e){return Xb()?(iI(e),!0):!1}const rC=new WeakMap,gne=(...e)=>{var t;const n=e[0],r=(t=Er())==null?void 0:t.proxy;if(r==null&&!bI())throw new Error("injectLocal must be called in setup");return r&&rC.has(r)&&n in rC.get(r)?rC.get(r)[n]:lo(...e)},EV=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mne=e=>e!=null,yne=Object.prototype.toString,_ne=e=>yne.call(e)==="[object Object]",bne=()=>{};function AV(...e){if(e.length!==1)return I$(...e);const t=e[0];return typeof t=="function"?Tm(cI(()=>({get:t,set:bne}))):Me(t)}function Sne(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 IV=e=>e();function wne(e=IV,t={}){const{initialState:n="active"}=t,r=AV(n==="active");function i(){r.value=!1}function o(){r.value=!0}const a=(...s)=>{r.value&&e(...s)};return{isActive:Tm(r),pause:i,resume:o,eventFilter:a}}function YL(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Kv(e){return Array.isArray(e)?e:[e]}function xne(e){return Er()}function Cne(e,t,n={}){const{eventFilter:r=IV,...i}=n;return Bt(e,Sne(r,t),i)}function Tne(e,t,n={}){const{eventFilter:r,initialState:i="active",...o}=n,{eventFilter:a,pause:s,resume:l,isActive:u}=wne(r,{initialState:i});return{stop:Cne(e,t,{...o,eventFilter:a}),pause:s,resume:l,isActive:u}}function RV(e,t=!0,n){xne()?Vo(e,n):t?e():Qa(e)}function Ene(e,t,n){return Bt(e,t,{...n,immediate:!0})}const Bf=EV?window:void 0,PV=EV?window.document:void 0;function bu(e){var t;const n=pa(e);return(t=n==null?void 0:n.$el)!=null?t:n}function xf(...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=xe(()=>{const s=Kv(pa(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),o=Ene(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>bu(u)))!=null?l:[Bf].filter(u=>u!=null),Kv(pa(i.value?e[1]:e[0])),Kv(B(i.value?e[2]:e[1])),pa(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=_ne(c)?{...c}:c;t.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>r(h,d,v,f)))))},{flush:"post"}),a=()=>{o(),n()};return vS(n),a}function Ane(){const e=Si(!1),t=Er();return t&&Vo(()=>{e.value=!0},t),e}function kI(e){const t=Ane();return xe(()=>(t.value,!!e()))}function Ine(e,t,n={}){const{window:r=Bf,...i}=n;let o;const a=kI(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=xe(()=>{const h=pa(e),d=Kv(h).map(bu).filter(mne);return new Set(d)}),u=Bt(()=>l.value,h=>{s(),a.value&&h.size&&(o=new MutationObserver(t),h.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return vS(f),{isSupported:a,stop:f,takeRecords:c}}const Rne=Symbol("vueuse-ssr-width");function Pne(){const e=bI()?gne(Rne,null):null;return typeof e=="number"?e:void 0}function FI(e,t={}){const{window:n=Bf,ssrWidth:r=Pne()}=t,i=kI(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=Si(typeof r=="number"),a=Si(),s=Si(!1),l=u=>{s.value=u.matches};return iS(()=>{if(o.value){o.value=!i.value;const u=pa(e).split(",");s.value=u.some(c=>{const f=c.includes("not all"),h=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(h||d);return h&&v&&(v=r>=YL(h[1])),d&&v&&(v=r<=YL(d[1])),f?!v:v});return}i.value&&(a.value=n.matchMedia(pa(e)),s.value=a.value.matches)}),xf(a,"change",l,{passive:!0}),xe(()=>s.value)}const o0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a0="__vueuse_ssr_handlers__",Mne=One();function One(){return a0 in o0||(o0[a0]=o0[a0]||{}),o0[a0]}function Dne(e,t){return Mne[e]||t}function Lne(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 Nne={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()}},KL="vueuse-storage";function dt(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=Bf,eventFilter:h,onError:d=M=>{console.error(M)},initOnMounted:v}=r,m=(c?Si:Me)(typeof t=="function"?t():t),y=xe(()=>pa(e));if(!n)try{n=Dne("getDefaultStorage",()=>{var M;return(M=Bf)==null?void 0:M.localStorage})()}catch(M){d(M)}if(!n)return m;const _=pa(t),b=Lne(_),S=(i=r.serializer)!=null?i:Nne[b],{pause:w,resume:T}=Tne(m,()=>E(m.value),{flush:o,deep:a,eventFilter:h});Bt(y,()=>I(),{flush:o}),f&&s&&RV(()=>{n instanceof Storage?xf(f,"storage",I,{passive:!0}):xf(f,KL,P),v&&I()}),v||I();function C(M,L){if(f){const k={key:y.value,oldValue:M,newValue:L,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent(KL,{detail:k}))}}function E(M){try{const L=n.getItem(y.value);if(M==null)C(L,null),n.removeItem(y.value);else{const k=S.write(M);L!==k&&(n.setItem(y.value,k),C(L,k))}}catch(L){d(L)}}function R(M){const L=M?M.newValue:n.getItem(y.value);if(L==null)return l&&_!=null&&n.setItem(y.value,S.write(_)),_;if(!M&&u){const k=S.read(L);return typeof u=="function"?u(k,_):b==="object"&&!Array.isArray(k)?{..._,...k}:k}else return typeof L!="string"?L:S.read(L)}function I(M){if(!(M&&M.storageArea!==n)){if(M&&M.key==null){m.value=_;return}if(!(M&&M.key!==y.value)){w();try{(M==null?void 0:M.newValue)!==S.write(m.value)&&(m.value=R(M))}catch(L){d(L)}finally{M?Qa(T):T()}}}}function P(M){I(M.detail)}return m}function kne(e={}){const{document:t=PV}=e;if(!t)return Si("visible");const n=Si(t.visibilityState);return xf(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function Fne(e,t,n={}){const{window:r=Bf,...i}=n;let o;const a=kI(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=xe(()=>{const f=pa(e);return Array.isArray(f)?f.map(h=>bu(h)):[bu(f)]}),u=Bt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const h of f)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return vS(c),{isSupported:a,stop:c}}function $I(e,t={width:0,height:0},n={}){const{window:r=Bf,box:i="content-box"}=n,o=xe(()=>{var f,h;return(h=(f=bu(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),a=Si(t.width),s=Si(t.height),{stop:l}=Fne(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const d=bu(e);if(d){const v=d.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(h){const d=Kv(h);a.value=d.reduce((v,{inlineSize:m})=>v+m,0),s.value=d.reduce((v,{blockSize:m})=>v+m,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);RV(()=>{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 Up=new Map;function $ne(e){const t=Xb();function n(s){var l;const u=Up.get(e)||new Set;u.add(s),Up.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=Up.get(e);l&&(l.delete(s),l.size||o())}function o(){Up.delete(e)}function a(s,l){var u;(u=Up.get(e))==null||u.forEach(c=>c(s,l))}return{on:n,once:r,off:i,emit:a,reset:o}}function Bne(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0}=t,s=_a({x:0,y:0}),l=_a({x:0,y:0}),u=xe(()=>s.x-l.x),c=xe(()=>s.y-l.y),{max:f,abs:h}=Math,d=xe(()=>f(h(u.value),h(c.value))>=n),v=Si(!1),m=xe(()=>d.value?h(u.value)>h(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),y=E=>[E.touches[0].clientX,E.touches[0].clientY],_=(E,R)=>{s.x=E,s.y=R},b=(E,R)=>{l.x=E,l.y=R},S={passive:a,capture:!a},w=E=>{v.value&&(i==null||i(E,m.value)),v.value=!1},T=[xf(e,"touchstart",E=>{if(E.touches.length!==1)return;const[R,I]=y(E);_(R,I),b(R,I),o==null||o(E)},S),xf(e,"touchmove",E=>{if(E.touches.length!==1)return;const[R,I]=y(E);b(R,I),S.capture&&!S.passive&&Math.abs(u.value)>Math.abs(c.value)&&E.preventDefault(),!v.value&&d.value&&(v.value=!0),v.value&&(r==null||r(E))},S),xf(e,["touchend","touchcancel"],w,S)];return{isSwiping:v,direction:m,coordsStart:s,coordsEnd:l,lengthX:u,lengthY:c,stop:()=>T.forEach(E=>E()),isPassiveEventSupported:!0}}function Vne(e=null,t={}){var n,r,i;const{document:o=PV,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=AV((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 h=t.titleTemplate||"%s";return typeof h=="function"?h(f):pa(h).replace(/%s/g,f)}return Bt(l,(f,h)=>{f!==h&&o&&(o.title=c(f??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&Ine((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),vS(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}const MV=FI("(prefers-color-scheme: dark)"),Gu=FI("(max-width: 768px)"),Une=FI("(max-width: 1024px)"),$E=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,BI=e=>e===Dm.LARGE?FE.LARGE:FE.SMALL,OV="background-image",H1="local-image",Hne=e=>{const t=new Map,r=new Promise((f,h)=>{const d=indexedDB.open(e,1);d.onupgradeneeded=()=>{const v=d.result;v.objectStoreNames.contains(e)||v.createObjectStore(e,{keyPath:"key"})},d.onsuccess=()=>{const y=d.result.transaction(e,"readonly").objectStore(e).openCursor();y.onsuccess=_=>{const b=_.target.result;b?(t.set(b.key,b.value.value),b.continue()):f(d.result)},y.onerror=()=>h(y.error)},d.onerror=()=>h(d.error)}),i=async(f,h)=>{const d=await r;return new Promise((v,m)=>{const _=d.transaction(e,f).objectStore(e),b=h(_);b.onsuccess=()=>v(b.result),b.onerror=()=>m(b.error)})};return{put:async(f,h)=>(t.set(f,h),i("readwrite",d=>d.put({key:f,value:h}))),get:async f=>(await r,t.get(f)),del:async f=>(t.delete(f),i("readwrite",h=>h.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()))}},VI=Hne("base64"),zne=e=>VI.put(OV,e),Gne=()=>VI.get(OV),Wne=()=>VI.clear();var wv={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 jne=wv.exports,ZL;function Xne(){return ZL||(ZL=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,h=2,d=4,v=1,m=2,y=1,_=2,b=4,S=8,w=16,T=32,C=64,E=128,R=256,I=512,P=30,M="...",L=800,k=16,$=1,W=2,N=3,K=1/0,Y=9007199254740991,ae=17976931348623157e292,ge=NaN,ye=4294967295,Oe=ye-1,ke=ye>>>1,Ue=[["ary",E],["bind",y],["bindKey",_],["curry",S],["curryRight",w],["flip",I],["partial",T],["partialRight",C],["rearg",R]],Le="[object Arguments]",Xe="[object Array]",fe="[object AsyncFunction]",Ae="[object Boolean]",Se="[object Date]",Te="[object DOMException]",Ne="[object Error]",Be="[object Function]",H="[object GeneratorFunction]",G="[object Map]",ue="[object Number]",we="[object Null]",ve="[object Object]",U="[object Promise]",j="[object Proxy]",Q="[object RegExp]",de="[object Set]",_e="[object String]",De="[object Symbol]",J="[object Undefined]",he="[object WeakMap]",Ve="[object WeakSet]",Ze="[object ArrayBuffer]",St="[object DataView]",re="[object Float32Array]",se="[object Float64Array]",pe="[object Int8Array]",Ee="[object Int16Array]",We="[object Int32Array]",oe="[object Uint8Array]",Ie="[object Uint8ClampedArray]",$e="[object Uint16Array]",nt="[object Uint32Array]",je=/\b__p \+= '';/g,Ye=/\b(__p \+=) '' \+/g,rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,kn=RegExp(Ot.source),Aa=RegExp(Lt.source),Mn=/<%-([\s\S]+?)%>/g,yr=/<%([\s\S]+?)%>/g,ad=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/,ey=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sd=/[\\^$.*+?()[\]{}|]/g,Ew=RegExp(sd.source),zi=/^\s+/,ld=/\s/,ty=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ny=/\{\n\/\* \[wrapped with (.+)\] \*/,yp=/,? & /,ry=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ia=/[()=,{}\[\]\/\s]/,iy=/\\(\\)?/g,oy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_p=/\w*$/,ay=/^[-+]0x[0-9a-f]+$/i,Aw=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,He=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,Nr=/['\n\r\u2028\u2029\\]/g,nr="\\ud800-\\udfff",ei="\\u0300-\\u036f",Uo="\\ufe20-\\ufe2f",lc="\\u20d0-\\u20ff",kr=ei+Uo+lc,bp="\\u2700-\\u27bf",Sp="a-z\\xdf-\\xf6\\xf8-\\xff",$7="\\xac\\xb1\\xd7\\xf7",B7="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",V7="\\u2000-\\u206f",U7=" \\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",dM="A-Z\\xc0-\\xd6\\xd8-\\xde",hM="\\ufe0e\\ufe0f",pM=$7+B7+V7+U7,Iw="[']",H7="["+nr+"]",vM="["+pM+"]",sy="["+kr+"]",gM="\\d+",z7="["+bp+"]",mM="["+Sp+"]",yM="[^"+nr+pM+gM+bp+Sp+dM+"]",Rw="\\ud83c[\\udffb-\\udfff]",G7="(?:"+sy+"|"+Rw+")",_M="[^"+nr+"]",Pw="(?:\\ud83c[\\udde6-\\uddff]){2}",Mw="[\\ud800-\\udbff][\\udc00-\\udfff]",ud="["+dM+"]",bM="\\u200d",SM="(?:"+mM+"|"+yM+")",W7="(?:"+ud+"|"+yM+")",wM="(?:"+Iw+"(?:d|ll|m|re|s|t|ve))?",xM="(?:"+Iw+"(?:D|LL|M|RE|S|T|VE))?",CM=G7+"?",TM="["+hM+"]?",j7="(?:"+bM+"(?:"+[_M,Pw,Mw].join("|")+")"+TM+CM+")*",X7="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Y7="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",EM=TM+CM+j7,K7="(?:"+[z7,Pw,Mw].join("|")+")"+EM,Z7="(?:"+[_M+sy+"?",sy,Pw,Mw,H7].join("|")+")",q7=RegExp(Iw,"g"),J7=RegExp(sy,"g"),Ow=RegExp(Rw+"(?="+Rw+")|"+Z7+EM,"g"),Q7=RegExp([ud+"?"+mM+"+"+wM+"(?="+[vM,ud,"$"].join("|")+")",W7+"+"+xM+"(?="+[vM,ud+SM,"$"].join("|")+")",ud+"?"+SM+"+"+wM,ud+"+"+xM,Y7,X7,gM,K7].join("|"),"g"),e9=RegExp("["+bM+nr+kr+hM+"]"),t9=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,n9=["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"],r9=-1,Un={};Un[re]=Un[se]=Un[pe]=Un[Ee]=Un[We]=Un[oe]=Un[Ie]=Un[$e]=Un[nt]=!0,Un[Le]=Un[Xe]=Un[Ze]=Un[Ae]=Un[St]=Un[Se]=Un[Ne]=Un[Be]=Un[G]=Un[ue]=Un[ve]=Un[Q]=Un[de]=Un[_e]=Un[he]=!1;var Fn={};Fn[Le]=Fn[Xe]=Fn[Ze]=Fn[St]=Fn[Ae]=Fn[Se]=Fn[re]=Fn[se]=Fn[pe]=Fn[Ee]=Fn[We]=Fn[G]=Fn[ue]=Fn[ve]=Fn[Q]=Fn[de]=Fn[_e]=Fn[De]=Fn[oe]=Fn[Ie]=Fn[$e]=Fn[nt]=!0,Fn[Ne]=Fn[Be]=Fn[he]=!1;var i9={À:"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"},o9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a9={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},s9={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},l9=parseFloat,u9=parseInt,AM=typeof Yy=="object"&&Yy&&Yy.Object===Object&&Yy,c9=typeof self=="object"&&self&&self.Object===Object&&self,zr=AM||c9||Function("return this")(),Dw=t&&!t.nodeType&&t,uc=Dw&&!0&&e&&!e.nodeType&&e,IM=uc&&uc.exports===Dw,Lw=IM&&AM.process,Ho=function(){try{var le=uc&&uc.require&&uc.require("util").types;return le||Lw&&Lw.binding&&Lw.binding("util")}catch{}}(),RM=Ho&&Ho.isArrayBuffer,PM=Ho&&Ho.isDate,MM=Ho&&Ho.isMap,OM=Ho&&Ho.isRegExp,DM=Ho&&Ho.isSet,LM=Ho&&Ho.isTypedArray;function bo(le,Ce,me){switch(me.length){case 0:return le.call(Ce);case 1:return le.call(Ce,me[0]);case 2:return le.call(Ce,me[0],me[1]);case 3:return le.call(Ce,me[0],me[1],me[2])}return le.apply(Ce,me)}function f9(le,Ce,me,ot){for(var kt=-1,pn=le==null?0:le.length;++kt<pn;){var Ar=le[kt];Ce(ot,Ar,me(Ar),le)}return ot}function zo(le,Ce){for(var me=-1,ot=le==null?0:le.length;++me<ot&&Ce(le[me],me,le)!==!1;);return le}function d9(le,Ce){for(var me=le==null?0:le.length;me--&&Ce(le[me],me,le)!==!1;);return le}function NM(le,Ce){for(var me=-1,ot=le==null?0:le.length;++me<ot;)if(!Ce(le[me],me,le))return!1;return!0}function $l(le,Ce){for(var me=-1,ot=le==null?0:le.length,kt=0,pn=[];++me<ot;){var Ar=le[me];Ce(Ar,me,le)&&(pn[kt++]=Ar)}return pn}function ly(le,Ce){var me=le==null?0:le.length;return!!me&&cd(le,Ce,0)>-1}function Nw(le,Ce,me){for(var ot=-1,kt=le==null?0:le.length;++ot<kt;)if(me(Ce,le[ot]))return!0;return!1}function Xn(le,Ce){for(var me=-1,ot=le==null?0:le.length,kt=Array(ot);++me<ot;)kt[me]=Ce(le[me],me,le);return kt}function Bl(le,Ce){for(var me=-1,ot=Ce.length,kt=le.length;++me<ot;)le[kt+me]=Ce[me];return le}function kw(le,Ce,me,ot){var kt=-1,pn=le==null?0:le.length;for(ot&&pn&&(me=le[++kt]);++kt<pn;)me=Ce(me,le[kt],kt,le);return me}function h9(le,Ce,me,ot){var kt=le==null?0:le.length;for(ot&&kt&&(me=le[--kt]);kt--;)me=Ce(me,le[kt],kt,le);return me}function Fw(le,Ce){for(var me=-1,ot=le==null?0:le.length;++me<ot;)if(Ce(le[me],me,le))return!0;return!1}var p9=$w("length");function v9(le){return le.split("")}function g9(le){return le.match(ry)||[]}function kM(le,Ce,me){var ot;return me(le,function(kt,pn,Ar){if(Ce(kt,pn,Ar))return ot=pn,!1}),ot}function uy(le,Ce,me,ot){for(var kt=le.length,pn=me+(ot?1:-1);ot?pn--:++pn<kt;)if(Ce(le[pn],pn,le))return pn;return-1}function cd(le,Ce,me){return Ce===Ce?I9(le,Ce,me):uy(le,FM,me)}function m9(le,Ce,me,ot){for(var kt=me-1,pn=le.length;++kt<pn;)if(ot(le[kt],Ce))return kt;return-1}function FM(le){return le!==le}function $M(le,Ce){var me=le==null?0:le.length;return me?Vw(le,Ce)/me:ge}function $w(le){return function(Ce){return Ce==null?n:Ce[le]}}function Bw(le){return function(Ce){return le==null?n:le[Ce]}}function BM(le,Ce,me,ot,kt){return kt(le,function(pn,Ar,On){me=ot?(ot=!1,pn):Ce(me,pn,Ar,On)}),me}function y9(le,Ce){var me=le.length;for(le.sort(Ce);me--;)le[me]=le[me].value;return le}function Vw(le,Ce){for(var me,ot=-1,kt=le.length;++ot<kt;){var pn=Ce(le[ot]);pn!==n&&(me=me===n?pn:me+pn)}return me}function Uw(le,Ce){for(var me=-1,ot=Array(le);++me<le;)ot[me]=Ce(me);return ot}function _9(le,Ce){return Xn(Ce,function(me){return[me,le[me]]})}function VM(le){return le&&le.slice(0,GM(le)+1).replace(zi,"")}function So(le){return function(Ce){return le(Ce)}}function Hw(le,Ce){return Xn(Ce,function(me){return le[me]})}function wp(le,Ce){return le.has(Ce)}function UM(le,Ce){for(var me=-1,ot=le.length;++me<ot&&cd(Ce,le[me],0)>-1;);return me}function HM(le,Ce){for(var me=le.length;me--&&cd(Ce,le[me],0)>-1;);return me}function b9(le,Ce){for(var me=le.length,ot=0;me--;)le[me]===Ce&&++ot;return ot}var S9=Bw(i9),w9=Bw(o9);function x9(le){return"\\"+s9[le]}function C9(le,Ce){return le==null?n:le[Ce]}function fd(le){return e9.test(le)}function T9(le){return t9.test(le)}function E9(le){for(var Ce,me=[];!(Ce=le.next()).done;)me.push(Ce.value);return me}function zw(le){var Ce=-1,me=Array(le.size);return le.forEach(function(ot,kt){me[++Ce]=[kt,ot]}),me}function zM(le,Ce){return function(me){return le(Ce(me))}}function Vl(le,Ce){for(var me=-1,ot=le.length,kt=0,pn=[];++me<ot;){var Ar=le[me];(Ar===Ce||Ar===c)&&(le[me]=c,pn[kt++]=me)}return pn}function cy(le){var Ce=-1,me=Array(le.size);return le.forEach(function(ot){me[++Ce]=ot}),me}function A9(le){var Ce=-1,me=Array(le.size);return le.forEach(function(ot){me[++Ce]=[ot,ot]}),me}function I9(le,Ce,me){for(var ot=me-1,kt=le.length;++ot<kt;)if(le[ot]===Ce)return ot;return-1}function R9(le,Ce,me){for(var ot=me+1;ot--;)if(le[ot]===Ce)return ot;return ot}function dd(le){return fd(le)?M9(le):p9(le)}function Ra(le){return fd(le)?O9(le):v9(le)}function GM(le){for(var Ce=le.length;Ce--&&ld.test(le.charAt(Ce)););return Ce}var P9=Bw(a9);function M9(le){for(var Ce=Ow.lastIndex=0;Ow.test(le);)++Ce;return Ce}function O9(le){return le.match(Ow)||[]}function D9(le){return le.match(Q7)||[]}var L9=function le(Ce){Ce=Ce==null?zr:hd.defaults(zr.Object(),Ce,hd.pick(zr,n9));var me=Ce.Array,ot=Ce.Date,kt=Ce.Error,pn=Ce.Function,Ar=Ce.Math,On=Ce.Object,Gw=Ce.RegExp,N9=Ce.String,Go=Ce.TypeError,fy=me.prototype,k9=pn.prototype,pd=On.prototype,dy=Ce["__core-js_shared__"],hy=k9.toString,Cn=pd.hasOwnProperty,F9=0,WM=function(){var p=/[^.]+$/.exec(dy&&dy.keys&&dy.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),py=pd.toString,$9=hy.call(On),B9=zr._,V9=Gw("^"+hy.call(Cn).replace(sd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vy=IM?Ce.Buffer:n,Ul=Ce.Symbol,gy=Ce.Uint8Array,jM=vy?vy.allocUnsafe:n,my=zM(On.getPrototypeOf,On),XM=On.create,YM=pd.propertyIsEnumerable,yy=fy.splice,KM=Ul?Ul.isConcatSpreadable:n,xp=Ul?Ul.iterator:n,cc=Ul?Ul.toStringTag:n,_y=function(){try{var p=vc(On,"defineProperty");return p({},"",{}),p}catch{}}(),U9=Ce.clearTimeout!==zr.clearTimeout&&Ce.clearTimeout,H9=ot&&ot.now!==zr.Date.now&&ot.now,z9=Ce.setTimeout!==zr.setTimeout&&Ce.setTimeout,by=Ar.ceil,Sy=Ar.floor,Ww=On.getOwnPropertySymbols,G9=vy?vy.isBuffer:n,ZM=Ce.isFinite,W9=fy.join,j9=zM(On.keys,On),Ir=Ar.max,ti=Ar.min,X9=ot.now,Y9=Ce.parseInt,qM=Ar.random,K9=fy.reverse,jw=vc(Ce,"DataView"),Cp=vc(Ce,"Map"),Xw=vc(Ce,"Promise"),vd=vc(Ce,"Set"),Tp=vc(Ce,"WeakMap"),Ep=vc(On,"create"),wy=Tp&&new Tp,gd={},Z9=gc(jw),q9=gc(Cp),J9=gc(Xw),Q9=gc(vd),eW=gc(Tp),xy=Ul?Ul.prototype:n,Ap=xy?xy.valueOf:n,JM=xy?xy.toString:n;function F(p){if(rr(p)&&!Vt(p)&&!(p instanceof rn)){if(p instanceof Wo)return p;if(Cn.call(p,"__wrapped__"))return QO(p)}return new Wo(p)}var md=function(){function p(){}return function(g){if(!er(g))return{};if(XM)return XM(g);p.prototype=g;var x=new p;return p.prototype=n,x}}();function Cy(){}function Wo(p,g){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}F.templateSettings={escape:Mn,evaluate:yr,interpolate:ad,variable:"",imports:{_:F}},F.prototype=Cy.prototype,F.prototype.constructor=F,Wo.prototype=md(Cy.prototype),Wo.prototype.constructor=Wo;function rn(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ye,this.__views__=[]}function tW(){var p=new rn(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 nW(){if(this.__filtered__){var p=new rn(this);p.__dir__=-1,p.__filtered__=!0}else p=this.clone(),p.__dir__*=-1;return p}function rW(){var p=this.__wrapped__.value(),g=this.__dir__,x=Vt(p),A=g<0,O=x?p.length:0,V=vj(0,O,this.__views__),Z=V.start,ee=V.end,ce=ee-Z,Re=A?ee:Z-1,Pe=this.__iteratees__,Fe=Pe.length,Qe=0,vt=ti(ce,this.__takeCount__);if(!x||!A&&O==ce&&vt==ce)return wO(p,this.__actions__);var Tt=[];e:for(;ce--&&Qe<vt;){Re+=g;for(var Xt=-1,Et=p[Re];++Xt<Fe;){var Jt=Pe[Xt],ln=Jt.iteratee,Co=Jt.type,Ei=ln(Et);if(Co==W)Et=Ei;else if(!Ei){if(Co==$)continue e;break e}}Tt[Qe++]=Et}return Tt}rn.prototype=md(Cy.prototype),rn.prototype.constructor=rn;function fc(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__=Ep?Ep(null):{},this.size=0}function oW(p){var g=this.has(p)&&delete this.__data__[p];return this.size-=g?1:0,g}function aW(p){var g=this.__data__;if(Ep){var x=g[p];return x===l?n:x}return Cn.call(g,p)?g[p]:n}function sW(p){var g=this.__data__;return Ep?g[p]!==n:Cn.call(g,p)}function lW(p,g){var x=this.__data__;return this.size+=this.has(p)?0:1,x[p]=Ep&&g===n?l:g,this}fc.prototype.clear=iW,fc.prototype.delete=oW,fc.prototype.get=aW,fc.prototype.has=sW,fc.prototype.set=lW;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 uW(){this.__data__=[],this.size=0}function cW(p){var g=this.__data__,x=Ty(g,p);if(x<0)return!1;var A=g.length-1;return x==A?g.pop():yy.call(g,x,1),--this.size,!0}function fW(p){var g=this.__data__,x=Ty(g,p);return x<0?n:g[x][1]}function dW(p){return Ty(this.__data__,p)>-1}function hW(p,g){var x=this.__data__,A=Ty(x,p);return A<0?(++this.size,x.push([p,g])):x[A][1]=g,this}Bs.prototype.clear=uW,Bs.prototype.delete=cW,Bs.prototype.get=fW,Bs.prototype.has=dW,Bs.prototype.set=hW;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 pW(){this.size=0,this.__data__={hash:new fc,map:new(Cp||Bs),string:new fc}}function vW(p){var g=Fy(this,p).delete(p);return this.size-=g?1:0,g}function gW(p){return Fy(this,p).get(p)}function mW(p){return Fy(this,p).has(p)}function yW(p,g){var x=Fy(this,p),A=x.size;return x.set(p,g),this.size+=x.size==A?0:1,this}Vs.prototype.clear=pW,Vs.prototype.delete=vW,Vs.prototype.get=gW,Vs.prototype.has=mW,Vs.prototype.set=yW;function dc(p){var g=-1,x=p==null?0:p.length;for(this.__data__=new Vs;++g<x;)this.add(p[g])}function _W(p){return this.__data__.set(p,l),this}function bW(p){return this.__data__.has(p)}dc.prototype.add=dc.prototype.push=_W,dc.prototype.has=bW;function Pa(p){var g=this.__data__=new Bs(p);this.size=g.size}function SW(){this.__data__=new Bs,this.size=0}function wW(p){var g=this.__data__,x=g.delete(p);return this.size=g.size,x}function xW(p){return this.__data__.get(p)}function CW(p){return this.__data__.has(p)}function TW(p,g){var x=this.__data__;if(x instanceof Bs){var A=x.__data__;if(!Cp||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}Pa.prototype.clear=SW,Pa.prototype.delete=wW,Pa.prototype.get=xW,Pa.prototype.has=CW,Pa.prototype.set=TW;function QM(p,g){var x=Vt(p),A=!x&&mc(p),O=!x&&!A&&jl(p),V=!x&&!A&&!O&&Sd(p),Z=x||A||O||V,ee=Z?Uw(p.length,N9):[],ce=ee.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)))&&ee.push(Re);return ee}function eO(p){var g=p.length;return g?p[ix(0,g-1)]:n}function EW(p,g){return $y(Gi(p),hc(g,0,p.length))}function AW(p){return $y(Gi(p))}function Yw(p,g,x){(x!==n&&!Ma(p[g],x)||x===n&&!(g in p))&&Us(p,g,x)}function Ip(p,g,x){var A=p[g];(!(Cn.call(p,g)&&Ma(A,x))||x===n&&!(g in p))&&Us(p,g,x)}function Ty(p,g){for(var x=p.length;x--;)if(Ma(p[x][0],g))return x;return-1}function IW(p,g,x,A){return Hl(p,function(O,V,Z){g(A,O,x(O),Z)}),A}function tO(p,g){return p&&is(g,Fr(g),p)}function RW(p,g){return p&&is(g,ji(g),p)}function Us(p,g,x){g=="__proto__"&&_y?_y(p,g,{configurable:!0,enumerable:!0,value:x,writable:!0}):p[g]=x}function Kw(p,g){for(var x=-1,A=g.length,O=me(A),V=p==null;++x<A;)O[x]=V?n:Px(p,g[x]);return O}function hc(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,ee=g&f,ce=g&h,Re=g&d;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=mj(p),!ee)return Gi(p,Z)}else{var Fe=ni(p),Qe=Fe==Be||Fe==H;if(jl(p))return TO(p,ee);if(Fe==ve||Fe==Le||Qe&&!O){if(Z=ce||Qe?{}:GO(p),!ee)return ce?aj(p,RW(Z,p)):oj(p,tO(Z,p))}else{if(!Fn[Fe])return O?p:{};Z=yj(p,Fe,ee)}}V||(V=new Pa);var vt=V.get(p);if(vt)return vt;V.set(p,Z),_D(p)?p.forEach(function(Et){Z.add(jo(Et,g,x,Et,p,V))}):mD(p)&&p.forEach(function(Et,Jt){Z.set(Jt,jo(Et,g,x,Jt,p,V))});var Tt=Re?ce?vx:px:ce?ji:Fr,Xt=Pe?n:Tt(p);return zo(Xt||p,function(Et,Jt){Xt&&(Jt=Et,Et=p[Jt]),Ip(Z,Jt,jo(Et,g,x,Jt,p,V))}),Z}function PW(p){var g=Fr(p);return function(x){return nO(x,p,g)}}function nO(p,g,x){var A=x.length;if(p==null)return!A;for(p=On(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 rO(p,g,x){if(typeof p!="function")throw new Go(a);return Np(function(){p.apply(n,x)},g)}function Rp(p,g,x,A){var O=-1,V=ly,Z=!0,ee=p.length,ce=[],Re=g.length;if(!ee)return ce;x&&(g=Xn(g,So(x))),A?(V=Nw,Z=!1):g.length>=i&&(V=wp,Z=!1,g=new dc(g));e:for(;++O<ee;){var Pe=p[O],Fe=x==null?Pe:x(Pe);if(Pe=A||Pe!==0?Pe:0,Z&&Fe===Fe){for(var Qe=Re;Qe--;)if(g[Qe]===Fe)continue e;ce.push(Pe)}else V(g,Fe,A)||ce.push(Pe)}return ce}var Hl=PO(rs),iO=PO(qw,!0);function MW(p,g){var x=!0;return Hl(p,function(A,O,V){return x=!!g(A,O,V),x}),x}function Ey(p,g,x){for(var A=-1,O=p.length;++A<O;){var V=p[A],Z=g(V);if(Z!=null&&(ee===n?Z===Z&&!xo(Z):x(Z,ee)))var ee=Z,ce=V}return ce}function OW(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:SD(A);x<A;)p[x++]=g;return p}function oO(p,g){var x=[];return Hl(p,function(A,O,V){g(A,O,V)&&x.push(A)}),x}function Gr(p,g,x,A,O){var V=-1,Z=p.length;for(x||(x=bj),O||(O=[]);++V<Z;){var ee=p[V];g>0&&x(ee)?g>1?Gr(ee,g-1,x,A,O):Bl(O,ee):A||(O[O.length]=ee)}return O}var Zw=MO(),aO=MO(!0);function rs(p,g){return p&&Zw(p,g,Fr)}function qw(p,g){return p&&aO(p,g,Fr)}function Ay(p,g){return $l(g,function(x){return Ws(p[x])})}function pc(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 sO(p,g,x){var A=g(p);return Vt(p)?A:Bl(A,x(p))}function Ci(p){return p==null?p===n?J:we:cc&&cc in On(p)?pj(p):Aj(p)}function Jw(p,g){return p>g}function DW(p,g){return p!=null&&Cn.call(p,g)}function LW(p,g){return p!=null&&g in On(p)}function NW(p,g,x){return p>=ti(g,x)&&p<Ir(g,x)}function Qw(p,g,x){for(var A=x?Nw:ly,O=p[0].length,V=p.length,Z=V,ee=me(V),ce=1/0,Re=[];Z--;){var Pe=p[Z];Z&&g&&(Pe=Xn(Pe,So(g))),ce=ti(Pe.length,ce),ee[Z]=!x&&(g||O>=120&&Pe.length>=120)?new dc(Z&&Pe):n}Pe=p[0];var Fe=-1,Qe=ee[0];e:for(;++Fe<O&&Re.length<ce;){var vt=Pe[Fe],Tt=g?g(vt):vt;if(vt=x||vt!==0?vt:0,!(Qe?wp(Qe,Tt):A(Re,Tt,x))){for(Z=V;--Z;){var Xt=ee[Z];if(!(Xt?wp(Xt,Tt):A(p[Z],Tt,x)))continue e}Qe&&Qe.push(Tt),Re.push(vt)}}return Re}function kW(p,g,x,A){return rs(p,function(O,V,Z){g(A,x(O),V,Z)}),A}function Pp(p,g,x){g=Gl(g,p),p=YO(p,g);var A=p==null?p:p[os(Yo(g))];return A==null?n:bo(A,p,x)}function lO(p){return rr(p)&&Ci(p)==Le}function FW(p){return rr(p)&&Ci(p)==Ze}function $W(p){return rr(p)&&Ci(p)==Se}function Mp(p,g,x,A,O){return p===g?!0:p==null||g==null||!rr(p)&&!rr(g)?p!==p&&g!==g:BW(p,g,x,A,Mp,O)}function BW(p,g,x,A,O,V){var Z=Vt(p),ee=Vt(g),ce=Z?Xe:ni(p),Re=ee?Xe:ni(g);ce=ce==Le?ve:ce,Re=Re==Le?ve:Re;var Pe=ce==ve,Fe=Re==ve,Qe=ce==Re;if(Qe&&jl(p)){if(!jl(g))return!1;Z=!0,Pe=!1}if(Qe&&!Pe)return V||(V=new Pa),Z||Sd(p)?UO(p,g,x,A,O,V):dj(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 Pa),O(Xt,Et,x,A,V)}}return Qe?(V||(V=new Pa),hj(p,g,x,A,O,V)):!1}function VW(p){return rr(p)&&ni(p)==G}function ex(p,g,x,A){var O=x.length,V=O,Z=!A;if(p==null)return!V;for(p=On(p);O--;){var ee=x[O];if(Z&&ee[2]?ee[1]!==p[ee[0]]:!(ee[0]in p))return!1}for(;++O<V;){ee=x[O];var ce=ee[0],Re=p[ce],Pe=ee[1];if(Z&&ee[2]){if(Re===n&&!(ce in p))return!1}else{var Fe=new Pa;if(A)var Qe=A(Re,Pe,ce,p,g,Fe);if(!(Qe===n?Mp(Pe,Re,v|m,A,Fe):Qe))return!1}}return!0}function uO(p){if(!er(p)||wj(p))return!1;var g=Ws(p)?V9:yt;return g.test(gc(p))}function UW(p){return rr(p)&&Ci(p)==Q}function HW(p){return rr(p)&&ni(p)==de}function zW(p){return rr(p)&&Gy(p.length)&&!!Un[Ci(p)]}function cO(p){return typeof p=="function"?p:p==null?Xi:typeof p=="object"?Vt(p)?hO(p[0],p[1]):dO(p):OD(p)}function tx(p){if(!Lp(p))return j9(p);var g=[];for(var x in On(p))Cn.call(p,x)&&x!="constructor"&&g.push(x);return g}function GW(p){if(!er(p))return Ej(p);var g=Lp(p),x=[];for(var A in p)A=="constructor"&&(g||!Cn.call(p,A))||x.push(A);return x}function nx(p,g){return p<g}function fO(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 dO(p){var g=mx(p);return g.length==1&&g[0][2]?jO(g[0][0],g[0][1]):function(x){return x===p||ex(x,p,g)}}function hO(p,g){return _x(p)&&WO(g)?jO(os(p),g):function(x){var A=Px(x,p);return A===n&&A===g?Mx(x,p):Mp(g,A,v|m)}}function Iy(p,g,x,A,O){p!==g&&Zw(g,function(V,Z){if(O||(O=new Pa),er(V))WW(p,g,Z,x,Iy,A,O);else{var ee=A?A(Sx(p,Z),V,Z+"",p,g,O):n;ee===n&&(ee=V),Yw(p,Z,ee)}},ji)}function WW(p,g,x,A,O,V,Z){var ee=Sx(p,x),ce=Sx(g,x),Re=Z.get(ce);if(Re){Yw(p,x,Re);return}var Pe=V?V(ee,ce,x+"",p,g,Z):n,Fe=Pe===n;if(Fe){var Qe=Vt(ce),vt=!Qe&&jl(ce),Tt=!Qe&&!vt&&Sd(ce);Pe=ce,Qe||vt||Tt?Vt(ee)?Pe=ee:dr(ee)?Pe=Gi(ee):vt?(Fe=!1,Pe=TO(ce,!0)):Tt?(Fe=!1,Pe=EO(ce,!0)):Pe=[]:kp(ce)||mc(ce)?(Pe=ee,mc(ee)?Pe=wD(ee):(!er(ee)||Ws(ee))&&(Pe=GO(ce))):Fe=!1}Fe&&(Z.set(ce,Pe),O(Pe,ce,A,V,Z),Z.delete(ce)),Yw(p,x,Pe)}function pO(p,g){var x=p.length;if(x)return g+=g<0?x:0,Gs(g,x)?p[g]:n}function vO(p,g,x){g.length?g=Xn(g,function(V){return Vt(V)?function(Z){return pc(Z,V.length===1?V[0]:V)}:V}):g=[Xi];var A=-1;g=Xn(g,So(xt()));var O=fO(p,function(V,Z,ee){var ce=Xn(g,function(Re){return Re(V)});return{criteria:ce,index:++A,value:V}});return y9(O,function(V,Z){return ij(V,Z,x)})}function jW(p,g){return gO(p,g,function(x,A){return Mx(p,A)})}function gO(p,g,x){for(var A=-1,O=g.length,V={};++A<O;){var Z=g[A],ee=pc(p,Z);x(ee,Z)&&Op(V,Gl(Z,p),ee)}return V}function XW(p){return function(g){return pc(g,p)}}function rx(p,g,x,A){var O=A?m9:cd,V=-1,Z=g.length,ee=p;for(p===g&&(g=Gi(g)),x&&(ee=Xn(p,So(x)));++V<Z;)for(var ce=0,Re=g[V],Pe=x?x(Re):Re;(ce=O(ee,Pe,ce,A))>-1;)ee!==p&&yy.call(ee,ce,1),yy.call(p,ce,1);return p}function mO(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)?yy.call(p,O,1):sx(p,O)}}return p}function ix(p,g){return p+Sy(qM()*(g-p+1))}function YW(p,g,x,A){for(var O=-1,V=Ir(by((g-p)/(x||1)),0),Z=me(V);V--;)Z[A?V:++O]=p,p+=x;return Z}function ox(p,g){var x="";if(!p||g<1||g>Y)return x;do g%2&&(x+=p),g=Sy(g/2),g&&(p+=p);while(g);return x}function Yt(p,g){return xx(XO(p,g,Xi),p+"")}function KW(p){return eO(wd(p))}function ZW(p,g){var x=wd(p);return $y(x,hc(g,0,x.length))}function Op(p,g,x,A){if(!er(p))return p;g=Gl(g,p);for(var O=-1,V=g.length,Z=V-1,ee=p;ee!=null&&++O<V;){var ce=os(g[O]),Re=x;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return p;if(O!=Z){var Pe=ee[ce];Re=A?A(Pe,ce,ee):n,Re===n&&(Re=er(Pe)?Pe:Gs(g[O+1])?[]:{})}Ip(ee,ce,Re),ee=ee[ce]}return p}var yO=wy?function(p,g){return wy.set(p,g),p}:Xi,qW=_y?function(p,g){return _y(p,"toString",{configurable:!0,enumerable:!1,value:Dx(g),writable:!0})}:Xi;function JW(p){return $y(wd(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 QW(p,g){var x;return Hl(p,function(A,O,V){return x=g(A,O,V),!x}),!!x}function Ry(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 ax(p,g,Xi,x)}function ax(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,ee=g===null,ce=xo(g),Re=g===n;O<V;){var Pe=Sy((O+V)/2),Fe=x(p[Pe]),Qe=Fe!==n,vt=Fe===null,Tt=Fe===Fe,Xt=xo(Fe);if(Z)var Et=A||Tt;else Re?Et=Tt&&(A||Qe):ee?Et=Tt&&Qe&&(A||!vt):ce?Et=Tt&&Qe&&!vt&&(A||!Xt):vt||Xt?Et=!1:Et=A?Fe<=g:Fe<g;Et?O=Pe+1:V=Pe}return ti(V,Oe)}function _O(p,g){for(var x=-1,A=p.length,O=0,V=[];++x<A;){var Z=p[x],ee=g?g(Z):Z;if(!x||!Ma(ee,ce)){var ce=ee;V[O++]=Z===0?0:Z}}return V}function bO(p){return typeof p=="number"?p:xo(p)?ge:+p}function wo(p){if(typeof p=="string")return p;if(Vt(p))return Xn(p,wo)+"";if(xo(p))return JM?JM.call(p):"";var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}function zl(p,g,x){var A=-1,O=ly,V=p.length,Z=!0,ee=[],ce=ee;if(x)Z=!1,O=Nw;else if(V>=i){var Re=g?null:cj(p);if(Re)return cy(Re);Z=!1,O=wp,ce=new dc}else ce=g?[]:ee;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 Qe=ce.length;Qe--;)if(ce[Qe]===Fe)continue e;g&&ce.push(Fe),ee.push(Pe)}else O(ce,Fe,x)||(ce!==ee&&ce.push(Fe),ee.push(Pe))}return ee}function sx(p,g){return g=Gl(g,p),p=YO(p,g),p==null||delete p[os(Yo(g))]}function SO(p,g,x,A){return Op(p,g,x(pc(p,g)),A)}function Py(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 wO(p,g){var x=p;return x instanceof rn&&(x=x.value()),kw(g,function(A,O){return O.func.apply(O.thisArg,Bl([A],O.args))},x)}function lx(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],ee=-1;++ee<A;)ee!=O&&(V[O]=Rp(V[O]||Z,p[ee],g,x));return zl(Gr(V,1),g,x)}function xO(p,g,x){for(var A=-1,O=p.length,V=g.length,Z={};++A<O;){var ee=A<V?g[A]:n;x(Z,p[A],ee)}return Z}function ux(p){return dr(p)?p:[]}function cx(p){return typeof p=="function"?p:Xi}function Gl(p,g){return Vt(p)?p:_x(p,g)?[p]:JO(yn(p))}var ej=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 CO=U9||function(p){return zr.clearTimeout(p)};function TO(p,g){if(g)return p.slice();var x=p.length,A=jM?jM(x):new p.constructor(x);return p.copy(A),A}function fx(p){var g=new p.constructor(p.byteLength);return new gy(g).set(new gy(p)),g}function tj(p,g){var x=g?fx(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.byteLength)}function nj(p){var g=new p.constructor(p.source,_p.exec(p));return g.lastIndex=p.lastIndex,g}function rj(p){return Ap?On(Ap.call(p)):{}}function EO(p,g){var x=g?fx(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.length)}function AO(p,g){if(p!==g){var x=p!==n,A=p===null,O=p===p,V=xo(p),Z=g!==n,ee=g===null,ce=g===g,Re=xo(g);if(!ee&&!Re&&!V&&p>g||V&&Z&&ce&&!ee&&!Re||A&&Z&&ce||!x&&ce||!O)return 1;if(!A&&!V&&!Re&&p<g||Re&&x&&O&&!A&&!V||ee&&x&&O||!Z&&O||!ce)return-1}return 0}function ij(p,g,x){for(var A=-1,O=p.criteria,V=g.criteria,Z=O.length,ee=x.length;++A<Z;){var ce=AO(O[A],V[A]);if(ce){if(A>=ee)return ce;var Re=x[A];return ce*(Re=="desc"?-1:1)}}return p.index-g.index}function IO(p,g,x,A){for(var O=-1,V=p.length,Z=x.length,ee=-1,ce=g.length,Re=Ir(V-Z,0),Pe=me(ce+Re),Fe=!A;++ee<ce;)Pe[ee]=g[ee];for(;++O<Z;)(Fe||O<V)&&(Pe[x[O]]=p[O]);for(;Re--;)Pe[ee++]=p[O++];return Pe}function RO(p,g,x,A){for(var O=-1,V=p.length,Z=-1,ee=x.length,ce=-1,Re=g.length,Pe=Ir(V-ee,0),Fe=me(Pe+Re),Qe=!A;++O<Pe;)Fe[O]=p[O];for(var vt=O;++ce<Re;)Fe[vt+ce]=g[ce];for(;++Z<ee;)(Qe||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 ee=g[V],ce=A?A(x[ee],p[ee],ee,x,p):n;ce===n&&(ce=p[ee]),O?Us(x,ee,ce):Ip(x,ee,ce)}return x}function oj(p,g){return is(p,yx(p),g)}function aj(p,g){return is(p,HO(p),g)}function My(p,g){return function(x,A){var O=Vt(x)?f9:IW,V=g?g():{};return O(x,p,xt(A,2),V)}}function yd(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&&Ti(x[0],x[1],Z)&&(V=O<3?n:V,O=1),g=On(g);++A<O;){var ee=x[A];ee&&p(g,ee,A,V)}return g})}function PO(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=On(x);(g?V--:++V<O)&&A(Z[V],V,Z)!==!1;);return x}}function MO(p){return function(g,x,A){for(var O=-1,V=On(g),Z=A(g),ee=Z.length;ee--;){var ce=Z[p?ee:++O];if(x(V[ce],ce,V)===!1)break}return g}}function sj(p,g,x){var A=g&y,O=Dp(p);function V(){var Z=this&&this!==zr&&this instanceof V?O:p;return Z.apply(A?x:this,arguments)}return V}function OO(p){return function(g){g=yn(g);var x=fd(g)?Ra(g):n,A=x?x[0]:g.charAt(0),O=x?Wl(x,1).join(""):g.slice(1);return A[p]()+O}}function _d(p){return function(g){return kw(PD(RD(g).replace(q7,"")),p,"")}}function Dp(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=md(p.prototype),A=p.apply(x,g);return er(A)?A:x}}function lj(p,g,x){var A=Dp(p);function O(){for(var V=arguments.length,Z=me(V),ee=V,ce=bd(O);ee--;)Z[ee]=arguments[ee];var Re=V<3&&Z[0]!==ce&&Z[V-1]!==ce?[]:Vl(Z,ce);if(V-=Re.length,V<x)return FO(p,g,Oy,O.placeholder,n,Z,Re,n,n,x-V);var Pe=this&&this!==zr&&this instanceof O?A:p;return bo(Pe,this,Z)}return O}function DO(p){return function(g,x,A){var O=On(g);if(!Wi(g)){var V=xt(x,3);g=Fr(g),x=function(ee){return V(O[ee],ee,O)}}var Z=p(g,x,A);return Z>-1?O[V?g[Z]:Z]:n}}function LO(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&&ky(V)=="wrapper")var Z=new Wo([],!0)}for(A=Z?A:x;++A<x;){V=g[A];var ee=ky(V),ce=ee=="wrapper"?gx(V):n;ce&&bx(ce[0])&&ce[1]==(E|S|T|R)&&!ce[4].length&&ce[9]==1?Z=Z[ky(ce[0])].apply(Z,ce[3]):Z=V.length==1&&bx(V)?Z[ee]():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,Qe=x?g[Fe].apply(this,Re):Pe;++Fe<x;)Qe=g[Fe].call(this,Qe);return Qe}})}function Oy(p,g,x,A,O,V,Z,ee,ce,Re){var Pe=g&E,Fe=g&y,Qe=g&_,vt=g&(S|w),Tt=g&I,Xt=Qe?n:Dp(p);function Et(){for(var Jt=arguments.length,ln=me(Jt),Co=Jt;Co--;)ln[Co]=arguments[Co];if(vt)var Ei=bd(Et),To=b9(ln,Ei);if(A&&(ln=IO(ln,A,O,vt)),V&&(ln=RO(ln,V,Z,vt)),Jt-=To,vt&&Jt<Re){var hr=Vl(ln,Ei);return FO(p,g,Oy,Et.placeholder,x,ln,hr,ee,ce,Re-Jt)}var Oa=Fe?x:this,Xs=Qe?Oa[p]:p;return Jt=ln.length,ee?ln=Ij(ln,ee):Tt&&Jt>1&&ln.reverse(),Pe&&ce<Jt&&(ln.length=ce),this&&this!==zr&&this instanceof Et&&(Xs=Xt||Dp(Xs)),Xs.apply(Oa,ln)}return Et}function NO(p,g){return function(x,A){return kW(x,p,g(A),{})}}function Dy(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=bO(x),A=bO(A)),O=p(x,A)}return O}}function dx(p){return zs(function(g){return g=Xn(g,So(xt())),Yt(function(x){var A=this;return p(g,function(O){return bo(O,A,x)})})})}function Ly(p,g){g=g===n?" ":wo(g);var x=g.length;if(x<2)return x?ox(g,p):g;var A=ox(g,by(p/dd(g)));return fd(g)?Wl(Ra(A),0,p).join(""):A.slice(0,p)}function uj(p,g,x,A){var O=g&y,V=Dp(p);function Z(){for(var ee=-1,ce=arguments.length,Re=-1,Pe=A.length,Fe=me(Pe+ce),Qe=this&&this!==zr&&this instanceof Z?V:p;++Re<Pe;)Fe[Re]=A[Re];for(;ce--;)Fe[Re++]=arguments[++ee];return bo(Qe,O?x:this,Fe)}return Z}function kO(p){return function(g,x,A){return A&&typeof A!="number"&&Ti(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),YW(g,x,A,p)}}function Ny(p){return function(g,x){return typeof g=="string"&&typeof x=="string"||(g=Ko(g),x=Ko(x)),p(g,x)}}function FO(p,g,x,A,O,V,Z,ee,ce,Re){var Pe=g&S,Fe=Pe?Z:n,Qe=Pe?n:Z,vt=Pe?V:n,Tt=Pe?n:V;g|=Pe?T:C,g&=~(Pe?C:T),g&b||(g&=-4);var Xt=[p,g,O,vt,Fe,Tt,Qe,ee,ce,Re],Et=x.apply(n,Xt);return bx(p)&&KO(Et,Xt),Et.placeholder=A,ZO(Et,p,g)}function hx(p){var g=Ar[p];return function(x,A){if(x=Ko(x),A=A==null?0:ti(Wt(A),292),A&&ZM(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 cj=vd&&1/cy(new vd([,-0]))[1]==K?function(p){return new vd(p)}:kx;function $O(p){return function(g){var x=ni(g);return x==G?zw(g):x==de?A9(g):_9(g,p(g))}}function Hs(p,g,x,A,O,V,Z,ee){var ce=g&_;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:Ir(Wt(Z),0),ee=ee===n?ee:Wt(ee),Re-=O?O.length:0,g&C){var Pe=A,Fe=O;A=O=n}var Qe=ce?n:gx(p),vt=[p,g,x,A,O,Pe,Fe,V,Z,ee];if(Qe&&Tj(vt,Qe),p=vt[0],g=vt[1],x=vt[2],A=vt[3],O=vt[4],ee=vt[9]=vt[9]===n?ce?0:p.length:Ir(vt[9]-Re,0),!ee&&g&(S|w)&&(g&=-25),!g||g==y)var Tt=sj(p,g,x);else g==S||g==w?Tt=lj(p,g,ee):(g==T||g==(y|T))&&!O.length?Tt=uj(p,g,x,A):Tt=Oy.apply(n,vt);var Xt=Qe?yO:KO;return ZO(Xt(Tt,vt),p,g)}function BO(p,g,x,A){return p===n||Ma(p,pd[x])&&!Cn.call(A,x)?g:p}function VO(p,g,x,A,O,V){return er(p)&&er(g)&&(V.set(g,p),Iy(p,g,n,VO,V),V.delete(g)),p}function fj(p){return kp(p)?n:p}function UO(p,g,x,A,O,V){var Z=x&v,ee=p.length,ce=g.length;if(ee!=ce&&!(Z&&ce>ee))return!1;var Re=V.get(p),Pe=V.get(g);if(Re&&Pe)return Re==g&&Pe==p;var Fe=-1,Qe=!0,vt=x&m?new dc:n;for(V.set(p,g),V.set(g,p);++Fe<ee;){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;Qe=!1;break}if(vt){if(!Fw(g,function(Jt,ln){if(!wp(vt,ln)&&(Tt===Jt||O(Tt,Jt,x,A,V)))return vt.push(ln)})){Qe=!1;break}}else if(!(Tt===Xt||O(Tt,Xt,x,A,V))){Qe=!1;break}}return V.delete(p),V.delete(g),Qe}function dj(p,g,x,A,O,V,Z){switch(x){case St: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 gy(p),new gy(g)));case Ae:case Se:case ue:return Ma(+p,+g);case Ne:return p.name==g.name&&p.message==g.message;case Q:case _e:return p==g+"";case G:var ee=zw;case de:var ce=A&v;if(ee||(ee=cy),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=UO(ee(p),ee(g),A,O,V,Z);return Z.delete(p),Pe;case De:if(Ap)return Ap.call(p)==Ap.call(g)}return!1}function hj(p,g,x,A,O,V){var Z=x&v,ee=px(p),ce=ee.length,Re=px(g),Pe=Re.length;if(ce!=Pe&&!Z)return!1;for(var Fe=ce;Fe--;){var Qe=ee[Fe];if(!(Z?Qe in g:Cn.call(g,Qe)))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;){Qe=ee[Fe];var Jt=p[Qe],ln=g[Qe];if(A)var Co=Z?A(ln,Jt,Qe,g,p,V):A(Jt,ln,Qe,p,g,V);if(!(Co===n?Jt===ln||O(Jt,ln,x,A,V):Co)){Xt=!1;break}Et||(Et=Qe=="constructor")}if(Xt&&!Et){var Ei=p.constructor,To=g.constructor;Ei!=To&&"constructor"in p&&"constructor"in g&&!(typeof Ei=="function"&&Ei instanceof Ei&&typeof To=="function"&&To instanceof To)&&(Xt=!1)}return V.delete(p),V.delete(g),Xt}function zs(p){return xx(XO(p,n,nD),p+"")}function px(p){return sO(p,Fr,yx)}function vx(p){return sO(p,ji,HO)}var gx=wy?function(p){return wy.get(p)}:kx;function ky(p){for(var g=p.name+"",x=gd[g],A=Cn.call(gd,g)?x.length:0;A--;){var O=x[A],V=O.func;if(V==null||V==p)return O.name}return g}function bd(p){var g=Cn.call(F,"placeholder")?F:p;return g.placeholder}function xt(){var p=F.iteratee||Lx;return p=p===Lx?cO:p,arguments.length?p(arguments[0],arguments[1]):p}function Fy(p,g){var x=p.__data__;return Sj(g)?x[typeof g=="string"?"string":"hash"]:x.map}function mx(p){for(var g=Fr(p),x=g.length;x--;){var A=g[x],O=p[A];g[x]=[A,O,WO(O)]}return g}function vc(p,g){var x=C9(p,g);return uO(x)?x:n}function pj(p){var g=Cn.call(p,cc),x=p[cc];try{p[cc]=n;var A=!0}catch{}var O=py.call(p);return A&&(g?p[cc]=x:delete p[cc]),O}var yx=Ww?function(p){return p==null?[]:(p=On(p),$l(Ww(p),function(g){return YM.call(p,g)}))}:Fx,HO=Ww?function(p){for(var g=[];p;)Bl(g,yx(p)),p=my(p);return g}:Fx,ni=Ci;(jw&&ni(new jw(new ArrayBuffer(1)))!=St||Cp&&ni(new Cp)!=G||Xw&&ni(Xw.resolve())!=U||vd&&ni(new vd)!=de||Tp&&ni(new Tp)!=he)&&(ni=function(p){var g=Ci(p),x=g==ve?p.constructor:n,A=x?gc(x):"";if(A)switch(A){case Z9:return St;case q9:return G;case J9:return U;case Q9:return de;case eW:return he}return g});function vj(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=Ir(p,g-Z);break}}return{start:p,end:g}}function gj(p){var g=p.match(ny);return g?g[1].split(yp):[]}function zO(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&&Gy(O)&&Gs(Z,O)&&(Vt(p)||mc(p)))}function mj(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 GO(p){return typeof p.constructor=="function"&&!Lp(p)?md(my(p)):{}}function yj(p,g,x){var A=p.constructor;switch(g){case Ze:return fx(p);case Ae:case Se:return new A(+p);case St:return tj(p,x);case re:case se:case pe:case Ee:case We:case oe:case Ie:case $e:case nt:return EO(p,x);case G:return new A;case ue:case _e:return new A(p);case Q:return nj(p);case de:return new A;case De:return rj(p)}}function _j(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(ty,`{
/* [wrapped with `+g+`] */
`)}function bj(p){return Vt(p)||mc(p)||!!(KM&&p&&p[KM])}function Gs(p,g){var x=typeof p;return g=g??Y,!!g&&(x=="number"||x!="symbol"&&He.test(p))&&p>-1&&p%1==0&&p<g}function Ti(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)?Ma(x[g],p):!1}function _x(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 On(g)}function Sj(p){var g=typeof p;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?p!=="__proto__":p===null}function bx(p){var g=ky(p),x=F[g];if(typeof x!="function"||!(g in rn.prototype))return!1;if(p===x)return!0;var A=gx(x);return!!A&&p===A[0]}function wj(p){return!!WM&&WM in p}var xj=dy?Ws:$x;function Lp(p){var g=p&&p.constructor,x=typeof g=="function"&&g.prototype||pd;return p===x}function WO(p){return p===p&&!er(p)}function jO(p,g){return function(x){return x==null?!1:x[p]===g&&(g!==n||p in On(x))}}function Cj(p){var g=Hy(p,function(A){return x.size===u&&x.clear(),A}),x=g.cache;return g}function Tj(p,g){var x=p[1],A=g[1],O=x|A,V=O<(y|_|E),Z=A==E&&x==S||A==E&&x==R&&p[7].length<=g[8]||A==(E|R)&&g[7].length<=g[8]&&x==S;if(!(V||Z))return p;A&y&&(p[2]=g[2],O|=x&y?0:b);var ee=g[3];if(ee){var ce=p[3];p[3]=ce?IO(ce,ee,g[4]):ee,p[4]=ce?Vl(p[3],c):g[4]}return ee=g[5],ee&&(ce=p[5],p[5]=ce?RO(ce,ee,g[6]):ee,p[6]=ce?Vl(p[5],c):g[6]),ee=g[7],ee&&(p[7]=ee),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 Ej(p){var g=[];if(p!=null)for(var x in On(p))g.push(x);return g}function Aj(p){return py.call(p)}function XO(p,g,x){return g=Ir(g===n?p.length-1:g,0),function(){for(var A=arguments,O=-1,V=Ir(A.length-g,0),Z=me(V);++O<V;)Z[O]=A[g+O];O=-1;for(var ee=me(g+1);++O<g;)ee[O]=A[O];return ee[g]=x(Z),bo(p,this,ee)}}function YO(p,g){return g.length<2?p:pc(p,Xo(g,0,-1))}function Ij(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 Sx(p,g){if(!(g==="constructor"&&typeof p[g]=="function")&&g!="__proto__")return p[g]}var KO=qO(yO),Np=z9||function(p,g){return zr.setTimeout(p,g)},xx=qO(qW);function ZO(p,g,x){var A=g+"";return xx(p,_j(A,Rj(gj(A),x)))}function qO(p){var g=0,x=0;return function(){var A=X9(),O=k-(A-x);if(x=A,O>0){if(++g>=L)return arguments[0]}else g=0;return p.apply(n,arguments)}}function $y(p,g){var x=-1,A=p.length,O=A-1;for(g=g===n?A:g;++x<g;){var V=ix(x,O),Z=p[V];p[V]=p[x],p[x]=Z}return p.length=g,p}var JO=Cj(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(ey,function(x,A,O,V){g.push(O?V.replace(iy,"$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 gc(p){if(p!=null){try{return hy.call(p)}catch{}try{return p+""}catch{}}return""}function Rj(p,g){return zo(Ue,function(x){var A="_."+x[0];g&x[1]&&!ly(p,A)&&p.push(A)}),p.sort()}function QO(p){if(p instanceof rn)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 Pj(p,g,x){(x?Ti(p,g,x):g===n)?g=1:g=Ir(Wt(g),0);var A=p==null?0:p.length;if(!A||g<1)return[];for(var O=0,V=0,Z=me(by(A/g));O<A;)Z[V++]=Xo(p,O,O+=g);return Z}function Mj(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 Oj(){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],Gr(g,1))}var Dj=Yt(function(p,g){return dr(p)?Rp(p,Gr(g,1,dr,!0)):[]}),Lj=Yt(function(p,g){var x=Yo(g);return dr(x)&&(x=n),dr(p)?Rp(p,Gr(g,1,dr,!0),xt(x,2)):[]}),Nj=Yt(function(p,g){var x=Yo(g);return dr(x)&&(x=n),dr(p)?Rp(p,Gr(g,1,dr,!0),n,x):[]});function kj(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 Fj(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 $j(p,g){return p&&p.length?Py(p,xt(g,3),!0,!0):[]}function Bj(p,g){return p&&p.length?Py(p,xt(g,3),!0):[]}function Vj(p,g,x,A){var O=p==null?0:p.length;return O?(x&&typeof x!="number"&&Ti(p,g,x)&&(x=0,A=O),OW(p,g,x,A)):[]}function eD(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=Ir(A+O,0)),uy(p,xt(g,3),O)}function tD(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?Ir(A+O,0):ti(O,A-1)),uy(p,xt(g,3),O,!0)}function nD(p){var g=p==null?0:p.length;return g?Gr(p,1):[]}function Uj(p){var g=p==null?0:p.length;return g?Gr(p,K):[]}function Hj(p,g){var x=p==null?0:p.length;return x?(g=g===n?1:Wt(g),Gr(p,g)):[]}function zj(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 rD(p){return p&&p.length?p[0]:n}function Gj(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=Ir(A+O,0)),cd(p,g,O)}function Wj(p){var g=p==null?0:p.length;return g?Xo(p,0,-1):[]}var jj=Yt(function(p){var g=Xn(p,ux);return g.length&&g[0]===p[0]?Qw(g):[]}),Xj=Yt(function(p){var g=Yo(p),x=Xn(p,ux);return g===Yo(x)?g=n:x.pop(),x.length&&x[0]===p[0]?Qw(x,xt(g,2)):[]}),Yj=Yt(function(p){var g=Yo(p),x=Xn(p,ux);return g=typeof g=="function"?g:n,g&&x.pop(),x.length&&x[0]===p[0]?Qw(x,n,g):[]});function Kj(p,g){return p==null?"":W9.call(p,g)}function Yo(p){var g=p==null?0:p.length;return g?p[g-1]:n}function Zj(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?Ir(A+O,0):ti(O,A-1)),g===g?R9(p,g,O):uy(p,FM,O,!0)}function qj(p,g){return p&&p.length?pO(p,Wt(g)):n}var Jj=Yt(iD);function iD(p,g){return p&&p.length&&g&&g.length?rx(p,g):p}function Qj(p,g,x){return p&&p.length&&g&&g.length?rx(p,g,xt(x,2)):p}function eX(p,g,x){return p&&p.length&&g&&g.length?rx(p,g,n,x):p}var tX=zs(function(p,g){var x=p==null?0:p.length,A=Kw(p,g);return mO(p,Xn(g,function(O){return Gs(O,x)?+O:O}).sort(AO)),A});function nX(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 mO(p,O),x}function Cx(p){return p==null?p:K9.call(p)}function rX(p,g,x){var A=p==null?0:p.length;return A?(x&&typeof x!="number"&&Ti(p,g,x)?(g=0,x=A):(g=g==null?0:Wt(g),x=x===n?A:Wt(x)),Xo(p,g,x)):[]}function iX(p,g){return Ry(p,g)}function oX(p,g,x){return ax(p,g,xt(x,2))}function aX(p,g){var x=p==null?0:p.length;if(x){var A=Ry(p,g);if(A<x&&Ma(p[A],g))return A}return-1}function sX(p,g){return Ry(p,g,!0)}function lX(p,g,x){return ax(p,g,xt(x,2),!0)}function uX(p,g){var x=p==null?0:p.length;if(x){var A=Ry(p,g,!0)-1;if(Ma(p[A],g))return A}return-1}function cX(p){return p&&p.length?_O(p):[]}function fX(p,g){return p&&p.length?_O(p,xt(g,2)):[]}function dX(p){var g=p==null?0:p.length;return g?Xo(p,1,g):[]}function hX(p,g,x){return p&&p.length?(g=x||g===n?1:Wt(g),Xo(p,0,g<0?0:g)):[]}function pX(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 vX(p,g){return p&&p.length?Py(p,xt(g,3),!1,!0):[]}function gX(p,g){return p&&p.length?Py(p,xt(g,3)):[]}var mX=Yt(function(p){return zl(Gr(p,1,dr,!0))}),yX=Yt(function(p){var g=Yo(p);return dr(g)&&(g=n),zl(Gr(p,1,dr,!0),xt(g,2))}),_X=Yt(function(p){var g=Yo(p);return g=typeof g=="function"?g:n,zl(Gr(p,1,dr,!0),n,g)});function bX(p){return p&&p.length?zl(p):[]}function SX(p,g){return p&&p.length?zl(p,xt(g,2)):[]}function wX(p,g){return g=typeof g=="function"?g:n,p&&p.length?zl(p,n,g):[]}function Tx(p){if(!(p&&p.length))return[];var g=0;return p=$l(p,function(x){if(dr(x))return g=Ir(x.length,g),!0}),Uw(g,function(x){return Xn(p,$w(x))})}function oD(p,g){if(!(p&&p.length))return[];var x=Tx(p);return g==null?x:Xn(x,function(A){return bo(g,n,A)})}var xX=Yt(function(p,g){return dr(p)?Rp(p,g):[]}),CX=Yt(function(p){return lx($l(p,dr))}),TX=Yt(function(p){var g=Yo(p);return dr(g)&&(g=n),lx($l(p,dr),xt(g,2))}),EX=Yt(function(p){var g=Yo(p);return g=typeof g=="function"?g:n,lx($l(p,dr),n,g)}),AX=Yt(Tx);function IX(p,g){return xO(p||[],g||[],Ip)}function RX(p,g){return xO(p||[],g||[],Op)}var PX=Yt(function(p){var g=p.length,x=g>1?p[g-1]:n;return x=typeof x=="function"?(p.pop(),x):n,oD(p,x)});function aD(p){var g=F(p);return g.__chain__=!0,g}function MX(p,g){return g(p),p}function By(p,g){return g(p)}var OX=zs(function(p){var g=p.length,x=g?p[0]:0,A=this.__wrapped__,O=function(V){return Kw(V,p)};return g>1||this.__actions__.length||!(A instanceof rn)||!Gs(x)?this.thru(O):(A=A.slice(x,+x+(g?1:0)),A.__actions__.push({func:By,args:[O],thisArg:n}),new Wo(A,this.__chain__).thru(function(V){return g&&!V.length&&V.push(n),V}))});function DX(){return aD(this)}function LX(){return new Wo(this.value(),this.__chain__)}function NX(){this.__values__===n&&(this.__values__=bD(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function kX(){return this}function FX(p){for(var g,x=this;x instanceof Cy;){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 $X(){var p=this.__wrapped__;if(p instanceof rn){var g=p;return this.__actions__.length&&(g=new rn(this)),g=g.reverse(),g.__actions__.push({func:By,args:[Cx],thisArg:n}),new Wo(g,this.__chain__)}return this.thru(Cx)}function BX(){return wO(this.__wrapped__,this.__actions__)}var VX=My(function(p,g,x){Cn.call(p,x)?++p[x]:Us(p,x,1)});function UX(p,g,x){var A=Vt(p)?NM:MW;return x&&Ti(p,g,x)&&(g=n),A(p,xt(g,3))}function HX(p,g){var x=Vt(p)?$l:oO;return x(p,xt(g,3))}var zX=DO(eD),GX=DO(tD);function WX(p,g){return Gr(Vy(p,g),1)}function jX(p,g){return Gr(Vy(p,g),K)}function XX(p,g,x){return x=x===n?1:Wt(x),Gr(Vy(p,g),x)}function sD(p,g){var x=Vt(p)?zo:Hl;return x(p,xt(g,3))}function lD(p,g){var x=Vt(p)?d9:iO;return x(p,xt(g,3))}var YX=My(function(p,g,x){Cn.call(p,x)?p[x].push(g):Us(p,x,[g])});function KX(p,g,x,A){p=Wi(p)?p:wd(p),x=x&&!A?Wt(x):0;var O=p.length;return x<0&&(x=Ir(O+x,0)),Wy(p)?x<=O&&p.indexOf(g,x)>-1:!!O&&cd(p,g,x)>-1}var ZX=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):Pp(Z,g,x)}),V}),qX=My(function(p,g,x){Us(p,x,g)});function Vy(p,g){var x=Vt(p)?Xn:fO;return x(p,xt(g,3))}function JX(p,g,x,A){return p==null?[]:(Vt(g)||(g=g==null?[]:[g]),x=A?n:x,Vt(x)||(x=x==null?[]:[x]),vO(p,g,x))}var QX=My(function(p,g,x){p[x?0:1].push(g)},function(){return[[],[]]});function eY(p,g,x){var A=Vt(p)?kw:BM,O=arguments.length<3;return A(p,xt(g,4),x,O,Hl)}function tY(p,g,x){var A=Vt(p)?h9:BM,O=arguments.length<3;return A(p,xt(g,4),x,O,iO)}function nY(p,g){var x=Vt(p)?$l:oO;return x(p,zy(xt(g,3)))}function rY(p){var g=Vt(p)?eO:KW;return g(p)}function iY(p,g,x){(x?Ti(p,g,x):g===n)?g=1:g=Wt(g);var A=Vt(p)?EW:ZW;return A(p,g)}function oY(p){var g=Vt(p)?AW:JW;return g(p)}function aY(p){if(p==null)return 0;if(Wi(p))return Wy(p)?dd(p):p.length;var g=ni(p);return g==G||g==de?p.size:tx(p).length}function sY(p,g,x){var A=Vt(p)?Fw:QW;return x&&Ti(p,g,x)&&(g=n),A(p,xt(g,3))}var lY=Yt(function(p,g){if(p==null)return[];var x=g.length;return x>1&&Ti(p,g[0],g[1])?g=[]:x>2&&Ti(g[0],g[1],g[2])&&(g=[g[0]]),vO(p,Gr(g,1),[])}),Uy=H9||function(){return zr.Date.now()};function uY(p,g){if(typeof g!="function")throw new Go(a);return p=Wt(p),function(){if(--p<1)return g.apply(this,arguments)}}function uD(p,g,x){return g=x?n:g,g=p&&g==null?p.length:g,Hs(p,E,n,n,n,n,g)}function cD(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 Ex=Yt(function(p,g,x){var A=y;if(x.length){var O=Vl(x,bd(Ex));A|=T}return Hs(p,A,g,x,O)}),fD=Yt(function(p,g,x){var A=y|_;if(x.length){var O=Vl(x,bd(fD));A|=T}return Hs(g,A,p,x,O)});function dD(p,g,x){g=x?n:g;var A=Hs(p,S,n,n,n,n,n,g);return A.placeholder=dD.placeholder,A}function hD(p,g,x){g=x?n:g;var A=Hs(p,w,n,n,n,n,n,g);return A.placeholder=hD.placeholder,A}function pD(p,g,x){var A,O,V,Z,ee,ce,Re=0,Pe=!1,Fe=!1,Qe=!0;if(typeof p!="function")throw new Go(a);g=Ko(g)||0,er(x)&&(Pe=!!x.leading,Fe="maxWait"in x,V=Fe?Ir(Ko(x.maxWait)||0,g):V,Qe="trailing"in x?!!x.trailing:Qe);function vt(hr){var Oa=A,Xs=O;return A=O=n,Re=hr,Z=p.apply(Xs,Oa),Z}function Tt(hr){return Re=hr,ee=Np(Jt,g),Pe?vt(hr):Z}function Xt(hr){var Oa=hr-ce,Xs=hr-Re,DD=g-Oa;return Fe?ti(DD,V-Xs):DD}function Et(hr){var Oa=hr-ce,Xs=hr-Re;return ce===n||Oa>=g||Oa<0||Fe&&Xs>=V}function Jt(){var hr=Uy();if(Et(hr))return ln(hr);ee=Np(Jt,Xt(hr))}function ln(hr){return ee=n,Qe&&A?vt(hr):(A=O=n,Z)}function Co(){ee!==n&&CO(ee),Re=0,A=ce=O=ee=n}function Ei(){return ee===n?Z:ln(Uy())}function To(){var hr=Uy(),Oa=Et(hr);if(A=arguments,O=this,ce=hr,Oa){if(ee===n)return Tt(ce);if(Fe)return CO(ee),ee=Np(Jt,g),vt(ce)}return ee===n&&(ee=Np(Jt,g)),Z}return To.cancel=Co,To.flush=Ei,To}var cY=Yt(function(p,g){return rO(p,1,g)}),fY=Yt(function(p,g,x){return rO(p,Ko(g)||0,x)});function dY(p){return Hs(p,I)}function Hy(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(Hy.Cache||Vs),x}Hy.Cache=Vs;function zy(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 hY(p){return cD(2,p)}var pY=ej(function(p,g){g=g.length==1&&Vt(g[0])?Xn(g[0],So(xt())):Xn(Gr(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)})}),Ax=Yt(function(p,g){var x=Vl(g,bd(Ax));return Hs(p,T,n,g,x)}),vD=Yt(function(p,g){var x=Vl(g,bd(vD));return Hs(p,C,n,g,x)}),vY=zs(function(p,g){return Hs(p,R,n,n,n,g)});function gY(p,g){if(typeof p!="function")throw new Go(a);return g=g===n?g:Wt(g),Yt(p,g)}function mY(p,g){if(typeof p!="function")throw new Go(a);return g=g==null?0:Ir(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 yY(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),pD(p,g,{leading:A,maxWait:g,trailing:O})}function _Y(p){return uD(p,1)}function bY(p,g){return Ax(cx(g),p)}function SY(){if(!arguments.length)return[];var p=arguments[0];return Vt(p)?p:[p]}function wY(p){return jo(p,d)}function xY(p,g){return g=typeof g=="function"?g:n,jo(p,d,g)}function CY(p){return jo(p,f|d)}function TY(p,g){return g=typeof g=="function"?g:n,jo(p,f|d,g)}function EY(p,g){return g==null||nO(p,g,Fr(g))}function Ma(p,g){return p===g||p!==p&&g!==g}var AY=Ny(Jw),IY=Ny(function(p,g){return p>=g}),mc=lO(function(){return arguments}())?lO:function(p){return rr(p)&&Cn.call(p,"callee")&&!YM.call(p,"callee")},Vt=me.isArray,RY=RM?So(RM):FW;function Wi(p){return p!=null&&Gy(p.length)&&!Ws(p)}function dr(p){return rr(p)&&Wi(p)}function PY(p){return p===!0||p===!1||rr(p)&&Ci(p)==Ae}var jl=G9||$x,MY=PM?So(PM):$W;function OY(p){return rr(p)&&p.nodeType===1&&!kp(p)}function DY(p){if(p==null)return!0;if(Wi(p)&&(Vt(p)||typeof p=="string"||typeof p.splice=="function"||jl(p)||Sd(p)||mc(p)))return!p.length;var g=ni(p);if(g==G||g==de)return!p.size;if(Lp(p))return!tx(p).length;for(var x in p)if(Cn.call(p,x))return!1;return!0}function LY(p,g){return Mp(p,g)}function NY(p,g,x){x=typeof x=="function"?x:n;var A=x?x(p,g):n;return A===n?Mp(p,g,n,x):!!A}function Ix(p){if(!rr(p))return!1;var g=Ci(p);return g==Ne||g==Te||typeof p.message=="string"&&typeof p.name=="string"&&!kp(p)}function kY(p){return typeof p=="number"&&ZM(p)}function Ws(p){if(!er(p))return!1;var g=Ci(p);return g==Be||g==H||g==fe||g==j}function gD(p){return typeof p=="number"&&p==Wt(p)}function Gy(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=Y}function er(p){var g=typeof p;return p!=null&&(g=="object"||g=="function")}function rr(p){return p!=null&&typeof p=="object"}var mD=MM?So(MM):VW;function FY(p,g){return p===g||ex(p,g,mx(g))}function $Y(p,g,x){return x=typeof x=="function"?x:n,ex(p,g,mx(g),x)}function BY(p){return yD(p)&&p!=+p}function VY(p){if(xj(p))throw new kt(o);return uO(p)}function UY(p){return p===null}function HY(p){return p==null}function yD(p){return typeof p=="number"||rr(p)&&Ci(p)==ue}function kp(p){if(!rr(p)||Ci(p)!=ve)return!1;var g=my(p);if(g===null)return!0;var x=Cn.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&hy.call(x)==$9}var Rx=OM?So(OM):UW;function zY(p){return gD(p)&&p>=-9007199254740991&&p<=Y}var _D=DM?So(DM):HW;function Wy(p){return typeof p=="string"||!Vt(p)&&rr(p)&&Ci(p)==_e}function xo(p){return typeof p=="symbol"||rr(p)&&Ci(p)==De}var Sd=LM?So(LM):zW;function GY(p){return p===n}function WY(p){return rr(p)&&ni(p)==he}function jY(p){return rr(p)&&Ci(p)==Ve}var XY=Ny(nx),YY=Ny(function(p,g){return p<=g});function bD(p){if(!p)return[];if(Wi(p))return Wy(p)?Ra(p):Gi(p);if(xp&&p[xp])return E9(p[xp]());var g=ni(p),x=g==G?zw:g==de?cy:wd;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 SD(p){return p?hc(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=VM(p);var x=Aw.test(p);return x||ie.test(p)?u9(p.slice(2),x?2:8):ay.test(p)?ge:+p}function wD(p){return is(p,ji(p))}function KY(p){return p?hc(Wt(p),-9007199254740991,Y):p===0?p:0}function yn(p){return p==null?"":wo(p)}var ZY=yd(function(p,g){if(Lp(g)||Wi(g)){is(g,Fr(g),p);return}for(var x in g)Cn.call(g,x)&&Ip(p,x,g[x])}),xD=yd(function(p,g){is(g,ji(g),p)}),jy=yd(function(p,g,x,A){is(g,ji(g),p,A)}),qY=yd(function(p,g,x,A){is(g,Fr(g),p,A)}),JY=zs(Kw);function QY(p,g){var x=md(p);return g==null?x:tO(x,g)}var eK=Yt(function(p,g){p=On(p);var x=-1,A=g.length,O=A>2?g[2]:n;for(O&&Ti(g[0],g[1],O)&&(A=1);++x<A;)for(var V=g[x],Z=ji(V),ee=-1,ce=Z.length;++ee<ce;){var Re=Z[ee],Pe=p[Re];(Pe===n||Ma(Pe,pd[Re])&&!Cn.call(p,Re))&&(p[Re]=V[Re])}return p}),tK=Yt(function(p){return p.push(n,VO),bo(CD,n,p)});function nK(p,g){return kM(p,xt(g,3),rs)}function rK(p,g){return kM(p,xt(g,3),qw)}function iK(p,g){return p==null?p:Zw(p,xt(g,3),ji)}function oK(p,g){return p==null?p:aO(p,xt(g,3),ji)}function aK(p,g){return p&&rs(p,xt(g,3))}function sK(p,g){return p&&qw(p,xt(g,3))}function lK(p){return p==null?[]:Ay(p,Fr(p))}function uK(p){return p==null?[]:Ay(p,ji(p))}function Px(p,g,x){var A=p==null?n:pc(p,g);return A===n?x:A}function cK(p,g){return p!=null&&zO(p,g,DW)}function Mx(p,g){return p!=null&&zO(p,g,LW)}var fK=NO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=py.call(g)),p[g]=x},Dx(Xi)),dK=NO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=py.call(g)),Cn.call(p,g)?p[g].push(x):p[g]=[x]},xt),hK=Yt(Pp);function Fr(p){return Wi(p)?QM(p):tx(p)}function ji(p){return Wi(p)?QM(p,!0):GW(p)}function pK(p,g){var x={};return g=xt(g,3),rs(p,function(A,O,V){Us(x,g(A,O,V),A)}),x}function vK(p,g){var x={};return g=xt(g,3),rs(p,function(A,O,V){Us(x,O,g(A,O,V))}),x}var gK=yd(function(p,g,x){Iy(p,g,x)}),CD=yd(function(p,g,x,A){Iy(p,g,x,A)}),mK=zs(function(p,g){var x={};if(p==null)return x;var A=!1;g=Xn(g,function(V){return V=Gl(V,p),A||(A=V.length>1),V}),is(p,vx(p),x),A&&(x=jo(x,f|h|d,fj));for(var O=g.length;O--;)sx(x,g[O]);return x});function yK(p,g){return TD(p,zy(xt(g)))}var _K=zs(function(p,g){return p==null?{}:jW(p,g)});function TD(p,g){if(p==null)return{};var x=Xn(vx(p),function(A){return[A]});return g=xt(g),gO(p,x,function(A,O){return g(A,O[0])})}function bK(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 SK(p,g,x){return p==null?p:Op(p,g,x)}function wK(p,g,x,A){return A=typeof A=="function"?A:n,p==null?p:Op(p,g,x,A)}var ED=$O(Fr),AD=$O(ji);function xK(p,g,x){var A=Vt(p),O=A||jl(p)||Sd(p);if(g=xt(g,4),x==null){var V=p&&p.constructor;O?x=A?new V:[]:er(p)?x=Ws(V)?md(my(p)):{}:x={}}return(O?zo:rs)(p,function(Z,ee,ce){return g(x,Z,ee,ce)}),x}function CK(p,g){return p==null?!0:sx(p,g)}function TK(p,g,x){return p==null?p:SO(p,g,cx(x))}function EK(p,g,x,A){return A=typeof A=="function"?A:n,p==null?p:SO(p,g,cx(x),A)}function wd(p){return p==null?[]:Hw(p,Fr(p))}function AK(p){return p==null?[]:Hw(p,ji(p))}function IK(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),hc(Ko(p),g,x)}function RK(p,g,x){return g=js(g),x===n?(x=g,g=0):x=js(x),p=Ko(p),NW(p,g,x)}function PK(p,g,x){if(x&&typeof x!="boolean"&&Ti(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=qM();return ti(p+O*(g-p+l9("1e-"+((O+"").length-1))),g)}return ix(p,g)}var MK=_d(function(p,g,x){return g=g.toLowerCase(),p+(x?ID(g):g)});function ID(p){return Ox(yn(p).toLowerCase())}function RD(p){return p=yn(p),p&&p.replace(ct,S9).replace(J7,"")}function OK(p,g,x){p=yn(p),g=wo(g);var A=p.length;x=x===n?A:hc(Wt(x),0,A);var O=x;return x-=g.length,x>=0&&p.slice(x,O)==g}function DK(p){return p=yn(p),p&&Aa.test(p)?p.replace(Lt,w9):p}function LK(p){return p=yn(p),p&&Ew.test(p)?p.replace(sd,"\\$&"):p}var NK=_d(function(p,g,x){return p+(x?"-":"")+g.toLowerCase()}),kK=_d(function(p,g,x){return p+(x?" ":"")+g.toLowerCase()}),FK=OO("toLowerCase");function $K(p,g,x){p=yn(p),g=Wt(g);var A=g?dd(p):0;if(!g||A>=g)return p;var O=(g-A)/2;return Ly(Sy(O),x)+p+Ly(by(O),x)}function BK(p,g,x){p=yn(p),g=Wt(g);var A=g?dd(p):0;return g&&A<g?p+Ly(g-A,x):p}function VK(p,g,x){p=yn(p),g=Wt(g);var A=g?dd(p):0;return g&&A<g?Ly(g-A,x)+p:p}function UK(p,g,x){return x||g==null?g=0:g&&(g=+g),Y9(yn(p).replace(zi,""),g||0)}function HK(p,g,x){return(x?Ti(p,g,x):g===n)?g=1:g=Wt(g),ox(yn(p),g)}function zK(){var p=arguments,g=yn(p[0]);return p.length<3?g:g.replace(p[1],p[2])}var GK=_d(function(p,g,x){return p+(x?"_":"")+g.toLowerCase()});function WK(p,g,x){return x&&typeof x!="number"&&Ti(p,g,x)&&(g=x=n),x=x===n?ye:x>>>0,x?(p=yn(p),p&&(typeof g=="string"||g!=null&&!Rx(g))&&(g=wo(g),!g&&fd(p))?Wl(Ra(p),0,x):p.split(g,x)):[]}var jK=_d(function(p,g,x){return p+(x?" ":"")+Ox(g)});function XK(p,g,x){return p=yn(p),x=x==null?0:hc(Wt(x),0,p.length),g=wo(g),p.slice(x,x+g.length)==g}function YK(p,g,x){var A=F.templateSettings;x&&Ti(p,g,x)&&(g=n),p=yn(p),g=jy({},g,A,BO);var O=jy({},g.imports,A.imports,BO),V=Fr(O),Z=Hw(O,V),ee,ce,Re=0,Pe=g.interpolate||xn,Fe="__p += '",Qe=Gw((g.escape||xn).source+"|"+Pe.source+"|"+(Pe===ad?oy:xn).source+"|"+(g.evaluate||xn).source+"|$","g"),vt="//# sourceURL="+(Cn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++r9+"]")+`
`;p.replace(Qe,function(Et,Jt,ln,Co,Ei,To){return ln||(ln=Co),Fe+=p.slice(Re,To).replace(Nr,x9),Jt&&(ee=!0,Fe+=`' +
__e(`+Jt+`) +
'`),Ei&&(ce=!0,Fe+=`';
`+Ei+`;
__p += '`),ln&&(Fe+=`' +
((__t = (`+ln+`)) == null ? '' : __t) +
'`),Re=To+Et.length,Et}),Fe+=`';
`;var Tt=Cn.call(g,"variable")&&g.variable;if(!Tt)Fe=`with (obj) {
`+Fe+`
}
`;else if(Ia.test(Tt))throw new kt(s);Fe=(ce?Fe.replace(je,""):Fe).replace(Ye,"$1").replace(rt,"$1;"),Fe="function("+(Tt||"obj")+`) {
`+(Tt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Fe+`return __p
}`;var Xt=MD(function(){return pn(V,vt+"return "+Fe).apply(n,Z)});if(Xt.source=Fe,Ix(Xt))throw Xt;return Xt}function KK(p){return yn(p).toLowerCase()}function ZK(p){return yn(p).toUpperCase()}function qK(p,g,x){if(p=yn(p),p&&(x||g===n))return VM(p);if(!p||!(g=wo(g)))return p;var A=Ra(p),O=Ra(g),V=UM(A,O),Z=HM(A,O)+1;return Wl(A,V,Z).join("")}function JK(p,g,x){if(p=yn(p),p&&(x||g===n))return p.slice(0,GM(p)+1);if(!p||!(g=wo(g)))return p;var A=Ra(p),O=HM(A,Ra(g))+1;return Wl(A,0,O).join("")}function QK(p,g,x){if(p=yn(p),p&&(x||g===n))return p.replace(zi,"");if(!p||!(g=wo(g)))return p;var A=Ra(p),O=UM(A,Ra(g));return Wl(A,O).join("")}function eZ(p,g){var x=P,A=M;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(fd(p)){var Z=Ra(p);V=Z.length}if(x>=V)return p;var ee=x-dd(A);if(ee<1)return A;var ce=Z?Wl(Z,0,ee).join(""):p.slice(0,ee);if(O===n)return ce+A;if(Z&&(ee+=ce.length-ee),Rx(O)){if(p.slice(ee).search(O)){var Re,Pe=ce;for(O.global||(O=Gw(O.source,yn(_p.exec(O))+"g")),O.lastIndex=0;Re=O.exec(Pe);)var Fe=Re.index;ce=ce.slice(0,Fe===n?ee:Fe)}}else if(p.indexOf(wo(O),ee)!=ee){var Qe=ce.lastIndexOf(O);Qe>-1&&(ce=ce.slice(0,Qe))}return ce+A}function tZ(p){return p=yn(p),p&&kn.test(p)?p.replace(Ot,P9):p}var nZ=_d(function(p,g,x){return p+(x?" ":"")+g.toUpperCase()}),Ox=OO("toUpperCase");function PD(p,g,x){return p=yn(p),g=x?n:g,g===n?T9(p)?D9(p):g9(p):p.match(g)||[]}var MD=Yt(function(p,g){try{return bo(p,n,g)}catch(x){return Ix(x)?x:new kt(x)}}),rZ=zs(function(p,g){return zo(g,function(x){x=os(x),Us(p,x,Ex(p[x],p))}),p});function iZ(p){var g=p==null?0:p.length,x=xt();return p=g?Xn(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 oZ(p){return PW(jo(p,f))}function Dx(p){return function(){return p}}function aZ(p,g){return p==null||p!==p?g:p}var sZ=LO(),lZ=LO(!0);function Xi(p){return p}function Lx(p){return cO(typeof p=="function"?p:jo(p,f))}function uZ(p){return dO(jo(p,f))}function cZ(p,g){return hO(p,jo(g,f))}var fZ=Yt(function(p,g){return function(x){return Pp(x,p,g)}}),dZ=Yt(function(p,g){return function(x){return Pp(p,x,g)}});function Nx(p,g,x){var A=Fr(g),O=Ay(g,A);x==null&&!(er(g)&&(O.length||!A.length))&&(x=g,g=p,p=this,O=Ay(g,Fr(g)));var V=!(er(x)&&"chain"in x)||!!x.chain,Z=Ws(p);return zo(O,function(ee){var ce=g[ee];p[ee]=ce,Z&&(p.prototype[ee]=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 hZ(){return zr._===this&&(zr._=B9),this}function kx(){}function pZ(p){return p=Wt(p),Yt(function(g){return pO(g,p)})}var vZ=dx(Xn),gZ=dx(NM),mZ=dx(Fw);function OD(p){return _x(p)?$w(os(p)):XW(p)}function yZ(p){return function(g){return p==null?n:pc(p,g)}}var _Z=kO(),bZ=kO(!0);function Fx(){return[]}function $x(){return!1}function SZ(){return{}}function wZ(){return""}function xZ(){return!0}function CZ(p,g){if(p=Wt(p),p<1||p>Y)return[];var x=ye,A=ti(p,ye);g=xt(g),p-=ye;for(var O=Uw(A,g);++x<p;)g(x);return O}function TZ(p){return Vt(p)?Xn(p,os):xo(p)?[p]:Gi(JO(yn(p)))}function EZ(p){var g=++F9;return yn(p)+g}var AZ=Dy(function(p,g){return p+g},0),IZ=hx("ceil"),RZ=Dy(function(p,g){return p/g},1),PZ=hx("floor");function MZ(p){return p&&p.length?Ey(p,Xi,Jw):n}function OZ(p,g){return p&&p.length?Ey(p,xt(g,2),Jw):n}function DZ(p){return $M(p,Xi)}function LZ(p,g){return $M(p,xt(g,2))}function NZ(p){return p&&p.length?Ey(p,Xi,nx):n}function kZ(p,g){return p&&p.length?Ey(p,xt(g,2),nx):n}var FZ=Dy(function(p,g){return p*g},1),$Z=hx("round"),BZ=Dy(function(p,g){return p-g},0);function VZ(p){return p&&p.length?Vw(p,Xi):0}function UZ(p,g){return p&&p.length?Vw(p,xt(g,2)):0}return F.after=uY,F.ary=uD,F.assign=ZY,F.assignIn=xD,F.assignInWith=jy,F.assignWith=qY,F.at=JY,F.before=cD,F.bind=Ex,F.bindAll=rZ,F.bindKey=fD,F.castArray=SY,F.chain=aD,F.chunk=Pj,F.compact=Mj,F.concat=Oj,F.cond=iZ,F.conforms=oZ,F.constant=Dx,F.countBy=VX,F.create=QY,F.curry=dD,F.curryRight=hD,F.debounce=pD,F.defaults=eK,F.defaultsDeep=tK,F.defer=cY,F.delay=fY,F.difference=Dj,F.differenceBy=Lj,F.differenceWith=Nj,F.drop=kj,F.dropRight=Fj,F.dropRightWhile=$j,F.dropWhile=Bj,F.fill=Vj,F.filter=HX,F.flatMap=WX,F.flatMapDeep=jX,F.flatMapDepth=XX,F.flatten=nD,F.flattenDeep=Uj,F.flattenDepth=Hj,F.flip=dY,F.flow=sZ,F.flowRight=lZ,F.fromPairs=zj,F.functions=lK,F.functionsIn=uK,F.groupBy=YX,F.initial=Wj,F.intersection=jj,F.intersectionBy=Xj,F.intersectionWith=Yj,F.invert=fK,F.invertBy=dK,F.invokeMap=ZX,F.iteratee=Lx,F.keyBy=qX,F.keys=Fr,F.keysIn=ji,F.map=Vy,F.mapKeys=pK,F.mapValues=vK,F.matches=uZ,F.matchesProperty=cZ,F.memoize=Hy,F.merge=gK,F.mergeWith=CD,F.method=fZ,F.methodOf=dZ,F.mixin=Nx,F.negate=zy,F.nthArg=pZ,F.omit=mK,F.omitBy=yK,F.once=hY,F.orderBy=JX,F.over=vZ,F.overArgs=pY,F.overEvery=gZ,F.overSome=mZ,F.partial=Ax,F.partialRight=vD,F.partition=QX,F.pick=_K,F.pickBy=TD,F.property=OD,F.propertyOf=yZ,F.pull=Jj,F.pullAll=iD,F.pullAllBy=Qj,F.pullAllWith=eX,F.pullAt=tX,F.range=_Z,F.rangeRight=bZ,F.rearg=vY,F.reject=nY,F.remove=nX,F.rest=gY,F.reverse=Cx,F.sampleSize=iY,F.set=SK,F.setWith=wK,F.shuffle=oY,F.slice=rX,F.sortBy=lY,F.sortedUniq=cX,F.sortedUniqBy=fX,F.split=WK,F.spread=mY,F.tail=dX,F.take=hX,F.takeRight=pX,F.takeRightWhile=vX,F.takeWhile=gX,F.tap=MX,F.throttle=yY,F.thru=By,F.toArray=bD,F.toPairs=ED,F.toPairsIn=AD,F.toPath=TZ,F.toPlainObject=wD,F.transform=xK,F.unary=_Y,F.union=mX,F.unionBy=yX,F.unionWith=_X,F.uniq=bX,F.uniqBy=SX,F.uniqWith=wX,F.unset=CK,F.unzip=Tx,F.unzipWith=oD,F.update=TK,F.updateWith=EK,F.values=wd,F.valuesIn=AK,F.without=xX,F.words=PD,F.wrap=bY,F.xor=CX,F.xorBy=TX,F.xorWith=EX,F.zip=AX,F.zipObject=IX,F.zipObjectDeep=RX,F.zipWith=PX,F.entries=ED,F.entriesIn=AD,F.extend=xD,F.extendWith=jy,Nx(F,F),F.add=AZ,F.attempt=MD,F.camelCase=MK,F.capitalize=ID,F.ceil=IZ,F.clamp=IK,F.clone=wY,F.cloneDeep=CY,F.cloneDeepWith=TY,F.cloneWith=xY,F.conformsTo=EY,F.deburr=RD,F.defaultTo=aZ,F.divide=RZ,F.endsWith=OK,F.eq=Ma,F.escape=DK,F.escapeRegExp=LK,F.every=UX,F.find=zX,F.findIndex=eD,F.findKey=nK,F.findLast=GX,F.findLastIndex=tD,F.findLastKey=rK,F.floor=PZ,F.forEach=sD,F.forEachRight=lD,F.forIn=iK,F.forInRight=oK,F.forOwn=aK,F.forOwnRight=sK,F.get=Px,F.gt=AY,F.gte=IY,F.has=cK,F.hasIn=Mx,F.head=rD,F.identity=Xi,F.includes=KX,F.indexOf=Gj,F.inRange=RK,F.invoke=hK,F.isArguments=mc,F.isArray=Vt,F.isArrayBuffer=RY,F.isArrayLike=Wi,F.isArrayLikeObject=dr,F.isBoolean=PY,F.isBuffer=jl,F.isDate=MY,F.isElement=OY,F.isEmpty=DY,F.isEqual=LY,F.isEqualWith=NY,F.isError=Ix,F.isFinite=kY,F.isFunction=Ws,F.isInteger=gD,F.isLength=Gy,F.isMap=mD,F.isMatch=FY,F.isMatchWith=$Y,F.isNaN=BY,F.isNative=VY,F.isNil=HY,F.isNull=UY,F.isNumber=yD,F.isObject=er,F.isObjectLike=rr,F.isPlainObject=kp,F.isRegExp=Rx,F.isSafeInteger=zY,F.isSet=_D,F.isString=Wy,F.isSymbol=xo,F.isTypedArray=Sd,F.isUndefined=GY,F.isWeakMap=WY,F.isWeakSet=jY,F.join=Kj,F.kebabCase=NK,F.last=Yo,F.lastIndexOf=Zj,F.lowerCase=kK,F.lowerFirst=FK,F.lt=XY,F.lte=YY,F.max=MZ,F.maxBy=OZ,F.mean=DZ,F.meanBy=LZ,F.min=NZ,F.minBy=kZ,F.stubArray=Fx,F.stubFalse=$x,F.stubObject=SZ,F.stubString=wZ,F.stubTrue=xZ,F.multiply=FZ,F.nth=qj,F.noConflict=hZ,F.noop=kx,F.now=Uy,F.pad=$K,F.padEnd=BK,F.padStart=VK,F.parseInt=UK,F.random=PK,F.reduce=eY,F.reduceRight=tY,F.repeat=HK,F.replace=zK,F.result=bK,F.round=$Z,F.runInContext=le,F.sample=rY,F.size=aY,F.snakeCase=GK,F.some=sY,F.sortedIndex=iX,F.sortedIndexBy=oX,F.sortedIndexOf=aX,F.sortedLastIndex=sX,F.sortedLastIndexBy=lX,F.sortedLastIndexOf=uX,F.startCase=jK,F.startsWith=XK,F.subtract=BZ,F.sum=VZ,F.sumBy=UZ,F.template=YK,F.times=CZ,F.toFinite=js,F.toInteger=Wt,F.toLength=SD,F.toLower=KK,F.toNumber=Ko,F.toSafeInteger=KY,F.toString=yn,F.toUpper=ZK,F.trim=qK,F.trimEnd=JK,F.trimStart=QK,F.truncate=eZ,F.unescape=tZ,F.uniqueId=EZ,F.upperCase=nZ,F.upperFirst=Ox,F.each=sD,F.eachRight=lD,F.first=rD,Nx(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){rn.prototype[p]=function(x){x=x===n?1:Ir(Wt(x),0);var A=this.__filtered__&&!g?new rn(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},rn.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;rn.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":"");rn.prototype[p]=function(){return this[x](1).value()[0]}}),zo(["initial","tail"],function(p,g){var x="drop"+(g?"":"Right");rn.prototype[p]=function(){return this.__filtered__?new rn(this):this[x](1)}}),rn.prototype.compact=function(){return this.filter(Xi)},rn.prototype.find=function(p){return this.filter(p).head()},rn.prototype.findLast=function(p){return this.reverse().find(p)},rn.prototype.invokeMap=Yt(function(p,g){return typeof p=="function"?new rn(this):this.map(function(x){return Pp(x,p,g)})}),rn.prototype.reject=function(p){return this.filter(zy(xt(p)))},rn.prototype.slice=function(p,g){p=Wt(p);var x=this;return x.__filtered__&&(p>0||g<0)?new rn(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)},rn.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},rn.prototype.toArray=function(){return this.take(ye)},rs(rn.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__,ee=A?[1]:arguments,ce=Z instanceof rn,Re=ee[0],Pe=ce||Vt(Z),Fe=function(Jt){var ln=O.apply(F,Bl([Jt],ee));return A&&Qe?ln[0]:ln};Pe&&x&&typeof Re=="function"&&Re.length!=1&&(ce=Pe=!1);var Qe=this.__chain__,vt=!!this.__actions__.length,Tt=V&&!Qe,Xt=ce&&!vt;if(!V&&Pe){Z=Xt?Z:new rn(this);var Et=p.apply(Z,ee);return Et.__actions__.push({func:By,args:[Fe],thisArg:n}),new Wo(Et,Qe)}return Tt&&Xt?p.apply(this,ee):(Et=this.thru(Fe),Tt?A?Et.value()[0]:Et.value():Et)})}),zo(["pop","push","shift","sort","splice","unshift"],function(p){var g=fy[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(rn.prototype,function(p,g){var x=F[g];if(x){var A=x.name+"";Cn.call(gd,A)||(gd[A]=[]),gd[A].push({name:g,func:x})}}),gd[Oy(n,_).name]=[{name:"wrapper",func:n}],rn.prototype.clone=tW,rn.prototype.reverse=nW,rn.prototype.value=rW,F.prototype.at=OX,F.prototype.chain=DX,F.prototype.commit=LX,F.prototype.next=NX,F.prototype.plant=FX,F.prototype.reverse=$X,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=BX,F.prototype.first=F.prototype.head,xp&&(F.prototype[xp]=kX),F},hd=L9();uc?((uc.exports=hd)._=hd,Dw._=hd):zr._=hd}).call(jne)}(wv,wv.exports)),wv.exports}var mr=Xne();const Wr=[];for(let e=0;e<256;++e)Wr.push((e+256).toString(16).slice(1));function Yne(e,t=0){return(Wr[e[t+0]]+Wr[e[t+1]]+Wr[e[t+2]]+Wr[e[t+3]]+"-"+Wr[e[t+4]]+Wr[e[t+5]]+"-"+Wr[e[t+6]]+Wr[e[t+7]]+"-"+Wr[e[t+8]]+Wr[e[t+9]]+"-"+Wr[e[t+10]]+Wr[e[t+11]]+Wr[e[t+12]]+Wr[e[t+13]]+Wr[e[t+14]]+Wr[e[t+15]]).toLowerCase()}let iC;const Kne=new Uint8Array(16);function Zne(){if(!iC){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");iC=crypto.getRandomValues.bind(crypto)}return iC(Kne)}const qne=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qL={randomUUID:qne};function gS(e,t,n){var i;if(qL.randomUUID&&!e)return qL.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??Zne();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,Yne(r)}const DV=dt("config/theme","default"),LV=DV.value==="default",Lu=dt("config/default-theme",LV?"light":DV.value),Nu=dt("config/dark-theme","dark"),xv=dt("config/auto-theme",LV),NV=e=>e==="light-daisyui-v5"?"light":e==="dark-daisyui-v5"?"dark":e;Lu.value=NV(Lu.value);Nu.value=NV(Nu.value);const BE=xe(()=>xv.value&&MV.value?Nu.value:Lu.value),Gg=dt("config/custom-themes",[]),Su=dt("config/language",Object.values(_s).includes(navigator.language)?navigator.language:_s.EN_US),JL=dt("config/is-sidebar-collapsed",!0),za=xe({get:()=>Gu.value?!0:JL.value,set:e=>{JL.value=e}}),Zv=dt("config/font",mu.MI_SANS),Wa=dt("config/custom-background-image",""),M_=dt("config/dashboard-transparent",90),O_=dt("config/auto-upgrade",!1),qd=dt("config/check-upgrade-core",!0),Cv=dt("config/auto-upgrade-core",!1),D_=dt("config/swipe-in-tabs",!1),Jd=dt("config/split-overview-page",!1),Td=dt("config/show-ip-and-connection-info",!0),L_=dt("config/auto-ip-check",!0),N_=dt("config/auto-connection-check",!0),k_=dt("config/show-statistics-when-sidebar-collapsed",!0),VE=dt("config/collapse-group-map",{}),Cf=dt("config/two-columns",!0),Tf=dt("config/speedtest-url",xV),hh=dt("config/independent-latency-test",!1),ku=dt("config/speedtest-timeout",5e3),UE=dt("config/proxy-sort-type",yu.DEFAULT),HE=dt("config/automatic-disconnection",!0),F_=dt("config/truncate-proxy-name",!0),qv=dt("config/proxy-preview-type",Ug.AUTO),zE=dt("config/hide-unavailable-proxies",!1),wu=dt("config/low-latency",400),ul=dt("config/medium-latency",800),Ef=dt("config/ipv6-test",!1),nf=dt("config/proxy-card-size",Dm.LARGE),Jv=dt("config/min-proxy-card-width",BI(nf.value)),Wg=dt("config/manage-hidden-group-mode",!1),$_=dt("config/display-global-by-mode",!1),Qv=dt("config/icon-size",14),B_=dt("config/icon-margin-right",6),eg=dt("config/proxies-count-mode",zg.ALIVE_TOTAL),Mo=dt("config/use-connecticon-card",window.innerWidth<640),ph=dt("config/proxy-chain-direction",ip.NORMAL),V_=dt("config/connecticon-table-size",Hg.SMALL),U_=dt("config/table-width-mode",pS.AUTO),xu=dt("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=dt("config/connection-card-lines",TV),kV=e=>e!=="details",FV=e=>e==="transferType"?ze.DestinationType:e==="proxyNodeAddress"?ze.RemoteAddress:e;xu.value=xu.value.filter(kV).map(FV);to.value=to.value.map(e=>e.filter(kV).map(FV));const Jne=dt("config/source-ip-label-map",{}),ia=dt("config/source-ip-label-list",()=>{const e=Jne.value;return mr.isEmpty(e)?[]:Object.entries(e).sort((t,n)=>t[0].localeCompare(n[0])).map(([t,n])=>({key:t,label:n,id:gS()}))}),GE=dt("config/display-now-node-in-rule",!0),WE=dt("config/display-latency-in-rule",!0),jE=dt("config/log-retention-limit",1e3),Ed=dt("config/log-search-history",[]);/*!
* shared v11.1.2
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const z1=typeof window<"u",rc=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Qne=(e,t,n)=>ere({l:e,k:t,s:n}),ere=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wr=e=>typeof e=="number"&&isFinite(e),tre=e=>UI(e)==="[object Date]",Mh=e=>UI(e)==="[object RegExp]",mS=e=>tn(e)&&Object.keys(e).length===0,Or=Object.assign,nre=Object.create,Pn=(e=null)=>nre(e);let QL;const rf=()=>QL||(QL=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Pn());function eN(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const rre=Object.prototype.hasOwnProperty;function Xa(e,t){return rre.call(e,t)}const xr=Array.isArray,zn=e=>typeof e=="function",at=e=>typeof e=="string",hn=e=>typeof e=="boolean",gn=e=>e!==null&&typeof e=="object",ire=e=>gn(e)&&zn(e.then)&&zn(e.catch),$V=Object.prototype.toString,UI=e=>$V.call(e),tn=e=>UI(e)==="[object Object]",ore=e=>e==null?"":xr(e)||tn(e)&&e.toString===$V?JSON.stringify(e,null,2):String(e);function HI(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function are(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const s0=e=>!gn(e)||xr(e);function H_(e,t){if(s0(e)||s0(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])?[]:Pn()),s0(i[o])||s0(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 sre(e,t,n){return{line:e,column:t,offset:n}}function XE(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},lre=17;function yS(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 ure(e){throw e}const qs=" ",cre="\r",Pi=`
`,fre="\u2028",dre="\u2029";function hre(e){const t=e;let n=0,r=1,i=1,o=0;const a=E=>t[E]===cre&&t[E+1]===Pi,s=E=>t[E]===Pi,l=E=>t[E]===dre,u=E=>t[E]===fre,c=E=>a(E)||s(E)||l(E)||u(E),f=()=>n,h=()=>r,d=()=>i,v=()=>o,m=E=>a(E)||l(E)||u(E)?Pi:t[E],y=()=>m(n),_=()=>m(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){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;)b();o=0}return{index:f,line:h,column:d,peekOffset:v,charAt:m,currentChar:y,currentPeek:_,next:b,peek:S,reset:w,resetPeek:T,skipToPeek:C}}const Kl=void 0,pre=".",tN="'",vre="tokenizer";function gre(e,t={}){const n=t.location!==!1,r=hre(e),i=()=>r.index(),o=()=>sre(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,Q,...de){const _e=u();if(j.column+=Q,j.offset+=Q,c){const De=n?XE(_e.startLoc,j):null,J=yS(U,De,{domain:vre,args:de});c(J)}}function h(U,j,Q){U.endLoc=o(),U.currentType=j;const de={type:j};return n&&(de.loc=XE(U.startLoc,U.endLoc)),Q!=null&&(de.value=Q),de}const d=U=>h(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()===Pi;)j+=U.currentPeek(),U.peek();return j}function y(U){const j=m(U);return U.skipToPeek(),j}function _(U){if(U===Kl)return!1;const j=U.charCodeAt(0);return j>=97&&j<=122||j>=65&&j<=90||j===95}function b(U){if(U===Kl)return!1;const j=U.charCodeAt(0);return j>=48&&j<=57}function S(U,j){const{currentType:Q}=j;if(Q!==2)return!1;m(U);const de=_(U.currentPeek());return U.resetPeek(),de}function w(U,j){const{currentType:Q}=j;if(Q!==2)return!1;m(U);const de=U.currentPeek()==="-"?U.peek():U.currentPeek(),_e=b(de);return U.resetPeek(),_e}function T(U,j){const{currentType:Q}=j;if(Q!==2)return!1;m(U);const de=U.currentPeek()===tN;return U.resetPeek(),de}function C(U,j){const{currentType:Q}=j;if(Q!==7)return!1;m(U);const de=U.currentPeek()===".";return U.resetPeek(),de}function E(U,j){const{currentType:Q}=j;if(Q!==8)return!1;m(U);const de=_(U.currentPeek());return U.resetPeek(),de}function R(U,j){const{currentType:Q}=j;if(!(Q===7||Q===11))return!1;m(U);const de=U.currentPeek()===":";return U.resetPeek(),de}function I(U,j){const{currentType:Q}=j;if(Q!==9)return!1;const de=()=>{const De=U.currentPeek();return De==="{"?_(U.peek()):De==="@"||De==="|"||De===":"||De==="."||De===qs||!De?!1:De===Pi?(U.peek(),de()):M(U,!1)},_e=de();return U.resetPeek(),_e}function P(U){m(U);const j=U.currentPeek()==="|";return U.resetPeek(),j}function M(U,j=!0){const Q=(_e=!1,De="")=>{const J=U.currentPeek();return J==="{"||J==="@"||!J?_e:J==="|"?!(De===qs||De===Pi):J===qs?(U.peek(),Q(!0,qs)):J===Pi?(U.peek(),Q(!0,Pi)):!0},de=Q();return j&&U.resetPeek(),de}function L(U,j){const Q=U.currentChar();return Q===Kl?Kl:j(Q)?(U.next(),Q):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 L(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 L(U,W)}function K(U){const j=U.charCodeAt(0);return j>=48&&j<=57}function Y(U){return L(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 L(U,ae)}function ye(U){let j="",Q="";for(;j=Y(U);)Q+=j;return Q}function Oe(U){let j="";for(;;){const Q=U.currentChar();if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q===qs||Q===Pi)if(M(U))j+=Q,U.next();else{if(P(U))break;j+=Q,U.next()}else j+=Q,U.next()}return j}function ke(U){y(U);let j="",Q="";for(;j=N(U);)Q+=j;return U.currentChar()===Kl&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),Q}function Ue(U){y(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!==tN&&U!==Pi}function Xe(U){y(U),v(U,"'");let j="",Q="";for(;j=L(U,Le);)j==="\\"?Q+=fe(U):Q+=j;const de=U.currentChar();return de===Pi||de===Kl?(f(Tn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),de===Pi&&(U.next(),v(U,"'")),Q):(v(U,"'"),Q)}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,Q){v(U,j);let de="";for(let _e=0;_e<Q;_e++){const De=ge(U);if(!De){f(Tn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${j}${de}${U.currentChar()}`);break}de+=De}return`\\${j}${de}`}function Se(U){return U!=="{"&&U!=="}"&&U!==qs&&U!==Pi}function Te(U){y(U);let j="",Q="";for(;j=L(U,Se);)Q+=j;return Q}function Ne(U){let j="",Q="";for(;j=$(U);)Q+=j;return Q}function Be(U){const j=Q=>{const de=U.currentChar();return de==="{"||de==="@"||de==="|"||de==="("||de===")"||!de||de===qs?Q:(Q+=de,U.next(),j(Q))};return j("")}function H(U){y(U);const j=v(U,"|");return y(U),j}function G(U,j){let Q=null;switch(U.currentChar()){case"{":return j.braceNest>=1&&f(Tn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),U.next(),Q=h(j,2,"{"),y(U),j.braceNest++,Q;case"}":return j.braceNest>0&&j.currentType===2&&f(Tn.EMPTY_PLACEHOLDER,o(),0),U.next(),Q=h(j,3,"}"),j.braceNest--,j.braceNest>0&&y(U),j.inLinked&&j.braceNest===0&&(j.inLinked=!1),Q;case"@":return j.braceNest>0&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),Q=ue(U,j)||d(j),j.braceNest=0,Q;default:{let _e=!0,De=!0,J=!0;if(P(U))return j.braceNest>0&&f(Tn.UNTERMINATED_CLOSING_BRACE,o(),0),Q=h(j,1,H(U)),j.braceNest=0,j.inLinked=!1,Q;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=S(U,j))return Q=h(j,4,ke(U)),y(U),Q;if(De=w(U,j))return Q=h(j,5,Ue(U)),y(U),Q;if(J=T(U,j))return Q=h(j,6,Xe(U)),y(U),Q;if(!_e&&!De&&!J)return Q=h(j,12,Te(U)),f(Tn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,Q.value),y(U),Q;break}}return Q}function ue(U,j){const{currentType:Q}=j;let de=null;const _e=U.currentChar();switch((Q===7||Q===8||Q===11||Q===9)&&(_e===Pi||_e===qs)&&f(Tn.INVALID_LINKED_FORMAT,o(),0),_e){case"@":return U.next(),de=h(j,7,"@"),j.inLinked=!0,de;case".":return y(U),U.next(),h(j,8,".");case":":return y(U),U.next(),h(j,9,":");default:return P(U)?(de=h(j,1,H(U)),j.braceNest=0,j.inLinked=!1,de):C(U,j)||R(U,j)?(y(U),ue(U,j)):E(U,j)?(y(U),h(j,11,Ne(U))):I(U,j)?(y(U),_e==="{"?G(U,j)||de:h(j,10,Be(U))):(Q===7&&f(Tn.INVALID_LINKED_FORMAT,o(),0),j.braceNest=0,j.inLinked=!1,we(U,j))}}function we(U,j){let Q={type:13};if(j.braceNest>0)return G(U,j)||d(j);if(j.inLinked)return ue(U,j)||d(j);switch(U.currentChar()){case"{":return G(U,j)||d(j);case"}":return f(Tn.UNBALANCED_CLOSING_BRACE,o(),0),U.next(),h(j,3,"}");case"@":return ue(U,j)||d(j);default:{if(P(U))return Q=h(j,1,H(U)),j.braceNest=0,j.inLinked=!1,Q;if(M(U))return h(j,0,Oe(U));break}}return Q}function ve(){const{currentType:U,offset:j,startLoc:Q,endLoc:de}=l;return l.lastType=U,l.lastOffset=j,l.lastStartLoc=Q,l.lastEndLoc=de,l.offset=i(),l.startLoc=o(),r.currentChar()===Kl?h(l,13):we(r,l)}return{nextToken:ve,currentOffset:i,currentPosition:o,context:u}}const mre="parser",yre=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function _re(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 bre(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,b,S,w,...T){const C=_.currentPosition();if(C.offset+=w,C.column+=w,n){const E=t?XE(S,C):null,R=yS(b,E,{domain:mre,args:T});n(R)}}function i(_,b,S){const w={type:_};return t&&(w.start=b,w.end=b,w.loc={start:S,end:S}),w}function o(_,b,S,w){t&&(_.end=b,_.loc&&(_.loc.end=S))}function a(_,b){const S=_.context(),w=i(3,S.offset,S.startLoc);return w.value=b,o(w,_.currentOffset(),_.currentPosition()),w}function s(_,b){const S=_.context(),{lastOffset:w,lastStartLoc:T}=S,C=i(5,w,T);return C.index=parseInt(b,10),_.nextToken(),o(C,_.currentOffset(),_.currentPosition()),C}function l(_,b){const S=_.context(),{lastOffset:w,lastStartLoc:T}=S,C=i(4,w,T);return C.key=b,_.nextToken(),o(C,_.currentOffset(),_.currentPosition()),C}function u(_,b){const S=_.context(),{lastOffset:w,lastStartLoc:T}=S,C=i(9,w,T);return C.value=b.replace(yre,_re),_.nextToken(),o(C,_.currentOffset(),_.currentPosition()),C}function c(_){const b=_.nextToken(),S=_.context(),{lastOffset:w,lastStartLoc:T}=S,C=i(8,w,T);return b.type!==11?(r(_,Tn.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),C.value="",o(C,w,T),{nextConsumeToken:b,node:C}):(b.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,ss(b)),C.value=b.value||"",o(C,_.currentOffset(),_.currentPosition()),{node:C})}function f(_,b){const S=_.context(),w=i(7,S.offset,S.startLoc);return w.value=b,o(w,_.currentOffset(),_.currentPosition()),w}function h(_){const b=_.context(),S=i(6,b.offset,b.startLoc);let w=_.nextToken();if(w.type===8){const T=c(_);S.modifier=T.node,w=T.nextConsumeToken||_.nextToken()}switch(w.type!==9&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(w)),w=_.nextToken(),w.type===2&&(w=_.nextToken()),w.type){case 10:w.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(w)),S.key=f(_,w.value||"");break;case 4:w.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(w)),S.key=l(_,w.value||"");break;case 5:w.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(w)),S.key=s(_,w.value||"");break;case 6:w.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(w)),S.key=u(_,w.value||"");break;default:{r(_,Tn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const T=_.context(),C=i(7,T.offset,T.startLoc);return C.value="",o(C,T.offset,T.startLoc),S.key=C,o(S,T.offset,T.startLoc),{nextConsumeToken:w,node:S}}}return o(S,_.currentOffset(),_.currentPosition()),{node:S}}function d(_){const b=_.context(),S=b.currentType===1?_.currentOffset():b.offset,w=b.currentType===1?b.endLoc:b.startLoc,T=i(2,S,w);T.items=[];let C=null;do{const I=C||_.nextToken();switch(C=null,I.type){case 0:I.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(I)),T.items.push(a(_,I.value||""));break;case 5:I.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(I)),T.items.push(s(_,I.value||""));break;case 4:I.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(I)),T.items.push(l(_,I.value||""));break;case 6:I.value==null&&r(_,Tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,ss(I)),T.items.push(u(_,I.value||""));break;case 7:{const P=h(_);T.items.push(P.node),C=P.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const E=b.currentType===1?b.lastOffset:_.currentOffset(),R=b.currentType===1?b.lastEndLoc:_.currentPosition();return o(T,E,R),T}function v(_,b,S,w){const T=_.context();let C=w.items.length===0;const E=i(1,b,S);E.cases=[],E.cases.push(w);do{const R=d(_);C||(C=R.items.length===0),E.cases.push(R)}while(T.currentType!==13);return C&&r(_,Tn.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),o(E,_.currentOffset(),_.currentPosition()),E}function m(_){const b=_.context(),{offset:S,startLoc:w}=b,T=d(_);return b.currentType===13?T:v(_,S,w,T)}function y(_){const b=gre(_,Or({},e)),S=b.context(),w=i(0,S.offset,S.startLoc);return t&&w.loc&&(w.loc.source=_),w.body=m(b),e.onCacheKey&&(w.cacheKey=e.onCacheKey(_)),S.currentType!==13&&r(b,Tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_[S.offset]||""),o(w,b.currentOffset(),b.currentPosition()),w}return{parse:y}}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 Sre(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function nN(e,t){for(let n=0;n<e.length;n++)zI(e[n],t)}function zI(e,t){switch(e.type){case 1:nN(e.cases,t),t.helper("plural");break;case 2:nN(e.items,t);break;case 6:{zI(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 wre(e,t={}){const n=Sre(e);n.helper("normalize"),e.body&&zI(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function xre(e){const t=e.body;return t.type===2?rN(t):t.cases.forEach(n=>rN(n)),e}function rN(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=HI(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 Qd(e){switch(e.t=e.type,e.type){case 0:{const t=e;Qd(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++)Qd(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++)Qd(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;Qd(t.key),t.k=t.key,delete t.key,t.modifier&&(Qd(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 Cre(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,y){a.code+=m}function u(m,y=!0){const _=y?r:"";l(i?_+" ".repeat(m):_)}function c(m=!0){const y=++a.indentLevel;m&&u(y)}function f(m=!0){const y=--a.indentLevel;m&&u(y)}function h(){u(a.indentLevel)}return{context:s,push:l,indent:c,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>a.needIndent}}function Tre(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Oh(e,t.key),t.modifier?(e.push(", "),Oh(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ere(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&&(Oh(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function Are(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&&(Oh(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function Ire(e,t){t.body?Oh(e,t.body):e.push("null")}function Oh(e,t){const{helper:n}=e;switch(t.type){case 0:Ire(e,t);break;case 1:Are(e,t);break;case 2:Ere(e,t);break;case 6:Tre(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 Rre=(e,t={})=>{const n=at(t.mode)?t.mode:"normal",r=at(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=Cre(e,{filename:r,breakLineCode:i,needIndent:o});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),a.length>0&&(s.push(`const { ${HI(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),Oh(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 Pre(e,t={}){const n=Or({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=bre(n).parse(e);return r?(o&&xre(s),i&&Qd(s),{ast:s,code:""}):(wre(s,n),Rre(s,n))}/*!
* core-base v11.1.2
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Mre(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(rf().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(rf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function oC(e){return n=>Ore(n,e)}function Ore(e,t){const n=Lre(t);if(n==null)throw jg(0);if(GI(n)===1){const o=kre(n);return e.plural(o.reduce((a,s)=>[...a,iN(e,s)],[]))}else return iN(e,n)}const Dre=["b","body"];function Lre(e){return ic(e,Dre)}const Nre=["c","cases"];function kre(e){return ic(e,Nre,[])}function iN(e,t){const n=$re(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Vre(t).reduce((i,o)=>[...i,YE(e,o)],[]);return e.normalize(r)}}const Fre=["s","static"];function $re(e){return ic(e,Fre)}const Bre=["i","items"];function Vre(e){return ic(e,Bre,[])}function YE(e,t){const n=GI(t);switch(n){case 3:return l0(t,n);case 9:return l0(t,n);case 4:{const r=t;if(Xa(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Xa(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw jg(n)}case 5:{const r=t;if(Xa(r,"i")&&wr(r.i))return e.interpolate(e.list(r.i));if(Xa(r,"index")&&wr(r.index))return e.interpolate(e.list(r.index));throw jg(n)}case 6:{const r=t,i=Gre(r),o=jre(r);return e.linked(YE(e,o),i?YE(e,i):void 0,e.type)}case 7:return l0(t,n);case 8:return l0(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ure=["t","type"];function GI(e){return ic(e,Ure)}const Hre=["v","value"];function l0(e,t){const n=ic(e,Hre);if(n)return n;throw jg(t)}const zre=["m","modifier"];function Gre(e){return ic(e,zre)}const Wre=["k","key"];function jre(e){const t=ic(e,Wre);if(t)return t;throw jg(6)}function ic(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(Xa(e,i)&&e[i]!=null)return e[i]}return n}function jg(e){return new Error(`unhandled node type: ${e}`)}const Xre=e=>e;let u0=Pn();function Dh(e){return gn(e)&&GI(e)===0&&(Xa(e,"b")||Xa(e,"body"))}function Yre(e,t={}){let n=!1;const r=t.onError||ure;return t.onError=i=>{n=!0,r(i)},{...Pre(e,t),detectError:n}}function Kre(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&at(e)){hn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Xre)(e),i=u0[r];if(i)return i;const{ast:o,detectError:a}=Yre(e,{...t,location:!1,jit:!0}),s=oC(o);return a?s:u0[r]=s}else{const n=e.cacheKey;if(n){const r=u0[n];return r||(u0[n]=oC(e))}else return oC(e)}}let Xg=null;function Zre(e){Xg=e}function qre(e,t,n){Xg&&Xg.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Jre=Qre("function:translate");function Qre(e){return t=>Xg&&Xg.emit(e,t)}const dl={INVALID_ARGUMENT:lre,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},eie=24;function hl(e){return yS(e,null,void 0)}function WI(e,t){return t.locale!=null?oN(t.locale):oN(e.locale)}let aC;function oN(e){if(at(e))return e;if(zn(e)){if(e.resolvedOnce&&aC!=null)return aC;if(e.constructor.name==="Function"){const t=e();if(ire(t))throw hl(dl.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return aC=t}else throw hl(dl.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw hl(dl.NOT_SUPPORT_LOCALE_TYPE)}function tie(e,t,n){return[...new Set([n,...xr(t)?t:gn(t)?Object.keys(t):at(t)?[t]:[n]])]}function BV(e,t,n){const r=at(n)?n:Yg,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;xr(a);)a=aN(o,a,t);const s=xr(t)||!tn(t)?t:t.default?t.default:null;a=at(s)?[s]:s,xr(a)&&aN(o,a,!1),i.__localeChainCache.set(r,o)}return o}function aN(e,t,n){let r=!0;for(let i=0;i<t.length&&hn(r);i++){const o=t[i];at(o)&&(r=nie(e,t[i],n))}return r}function nie(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=rie(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function rie(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)||tn(n))&&n[i]&&(r=n[i])}return r}const oc=[];oc[0]={w:[0],i:[3,0],"[":[4],o:[7]};oc[1]={w:[1],".":[2],"[":[4],o:[7]};oc[2]={w:[2],i:[3,0],0:[3,0]};oc[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};oc[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};oc[5]={"'":[4,0],o:8,l:[5,0]};oc[6]={'"':[4,0],o:8,l:[6,0]};const iie=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function oie(e){return iie.test(e)}function aie(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 sie(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 lie(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:oie(t)?aie(t):"*"+t}function uie(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,f;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,r=4,h[0]();else{if(i=0,a===void 0||(a=lie(a),a===!1))return!1;h[1]()}};function d(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,s="\\"+v,h[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&d())){if(l=sie(o),f=oc[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const sN=new Map;function cie(e,t){return gn(e)?e[t]:null}function fie(e,t){if(!gn(e))return null;let n=sN.get(t);if(n||(n=uie(t),n&&sN.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 die="11.1.2",_S=-1,Yg="en-US",lN="",uN=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function hie(){return{upper:(e,t)=>t==="text"&&at(e)?e.toUpperCase():t==="vnode"&&gn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&at(e)?e.toLowerCase():t==="vnode"&&gn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&at(e)?uN(e):t==="vnode"&&gn(e)&&"__v_isVNode"in e?uN(e.children):e}}let VV;function pie(e){VV=e}let UV;function vie(e){UV=e}let HV;function gie(e){HV=e}let zV=null;const mie=e=>{zV=e},yie=()=>zV;let GV=null;const cN=e=>{GV=e},_ie=()=>GV;let fN=0;function bie(e={}){const t=zn(e.onWarn)?e.onWarn:are,n=at(e.version)?e.version:die,r=at(e.locale)||zn(e.locale)?e.locale:Yg,i=zn(r)?Yg:r,o=xr(e.fallbackLocale)||tn(e.fallbackLocale)||at(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=tn(e.messages)?e.messages:sC(i),s=tn(e.datetimeFormats)?e.datetimeFormats:sC(i),l=tn(e.numberFormats)?e.numberFormats:sC(i),u=Or(Pn(),e.modifiers,hie()),c=e.pluralRules||Pn(),f=zn(e.missing)?e.missing:null,h=hn(e.missingWarn)||Mh(e.missingWarn)?e.missingWarn:!0,d=hn(e.fallbackWarn)||Mh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,m=!!e.unresolving,y=zn(e.postTranslation)?e.postTranslation:null,_=tn(e.processor)?e.processor:null,b=hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,w=zn(e.messageCompiler)?e.messageCompiler:VV,T=zn(e.messageResolver)?e.messageResolver:UV||cie,C=zn(e.localeFallbacker)?e.localeFallbacker:HV||tie,E=gn(e.fallbackContext)?e.fallbackContext:void 0,R=e,I=gn(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,P=gn(R.__numberFormatters)?R.__numberFormatters:new Map,M=gn(R.__meta)?R.__meta:{};fN++;const L={version:n,cid:fN,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:v,unresolving:m,postTranslation:y,processor:_,warnHtmlMessage:b,escapeParameter:S,messageCompiler:w,messageResolver:T,localeFallbacker:C,fallbackContext:E,onWarn:t,__meta:M};return L.datetimeFormats=s,L.numberFormats=l,L.__datetimeFormatters=I,L.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&qre(L,n,M),L}const sC=e=>({[e]:Pn()});function jI(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return at(s)?s:t}else return t}function Hp(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Sie(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function wie(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Sie(e,t[r]))return!0;return!1}function dN(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=KE(...t),h=hn(c.missingWarn)?c.missingWarn:e.missingWarn;hn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=WI(e,c),m=a(e,i,v);if(!at(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let y={},_,b=null;const S="datetime format";for(let C=0;C<m.length&&(_=m[C],y=n[_]||{},b=y[l],!tn(b));C++)jI(e,l,_,h,S);if(!tn(b)||!at(_))return r?_S:l;let w=`${_}__${l}`;mS(f)||(w=`${w}__${JSON.stringify(f)}`);let T=s.get(w);return T||(T=new Intl.DateTimeFormat(_,Or({},b,f)),s.set(w,T)),d?T.formatToParts(u):T.format(u)}const WV=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function KE(...e){const[t,n,r,i]=e,o=Pn();let a=Pn(),s;if(at(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(tre(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 at(n)?o.key=n:tn(n)&&Object.keys(n).forEach(l=>{WV.includes(l)?a[l]=n[l]:o[l]=n[l]}),at(r)?o.locale=r:tn(r)&&(a=r),tn(i)&&(a=i),[o.key||"",s,o,a]}function hN(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function pN(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=ZE(...t),h=hn(c.missingWarn)?c.missingWarn:e.missingWarn;hn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=WI(e,c),m=a(e,i,v);if(!at(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let y={},_,b=null;const S="number format";for(let C=0;C<m.length&&(_=m[C],y=n[_]||{},b=y[l],!tn(b));C++)jI(e,l,_,h,S);if(!tn(b)||!at(_))return r?_S:l;let w=`${_}__${l}`;mS(f)||(w=`${w}__${JSON.stringify(f)}`);let T=s.get(w);return T||(T=new Intl.NumberFormat(_,Or({},b,f)),s.set(w,T)),d?T.formatToParts(u):T.format(u)}const jV=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ZE(...e){const[t,n,r,i]=e,o=Pn();let a=Pn();if(!wr(t))throw hl(dl.INVALID_ARGUMENT);const s=t;return at(n)?o.key=n:tn(n)&&Object.keys(n).forEach(l=>{jV.includes(l)?a[l]=n[l]:o[l]=n[l]}),at(r)?o.locale=r:tn(r)&&(a=r),tn(i)&&(a=i),[o.key||"",s,o,a]}function vN(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const xie=e=>e,Cie=e=>"",Tie="text",Eie=e=>e.length===0?"":HI(e),Aie=ore;function gN(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Iie(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 Rie(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Pie(e={}){const t=e.locale,n=Iie(e),r=gn(e.pluralRules)&&at(t)&&zn(e.pluralRules[t])?e.pluralRules[t]:gN,i=gn(e.pluralRules)&&at(t)&&zn(e.pluralRules[t])?gN:void 0,o=_=>_[r(n,_.length,i)],a=e.list||[],s=_=>a[_],l=e.named||Pn();wr(e.pluralIndex)&&Rie(n,l);const u=_=>l[_];function c(_,b){const S=zn(e.messages)?e.messages(_,!!b):gn(e.messages)?e.messages[_]:!1;return S||(e.parent?e.parent.message(_):Cie)}const f=_=>e.modifiers?e.modifiers[_]:xie,h=tn(e.processor)&&zn(e.processor.normalize)?e.processor.normalize:Eie,d=tn(e.processor)&&zn(e.processor.interpolate)?e.processor.interpolate:Aie,v=tn(e.processor)&&at(e.processor.type)?e.processor.type:Tie,y={list:s,named:u,plural:o,linked:(_,...b)=>{const[S,w]=b;let T="text",C="";b.length===1?gn(S)?(C=S.modifier||C,T=S.type||T):at(S)&&(C=S||C):b.length===2&&(at(S)&&(C=S||C),at(w)&&(T=w||T));const E=c(_,!0)(y),R=T==="vnode"&&xr(E)&&C?E[0]:E;return C?f(C)(R,T):R},message:c,type:v,interpolate:d,normalize:h,values:Or(Pn(),a,l)};return y}const mN=()=>"",aa=e=>zn(e);function yN(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=qE(...t),c=hn(u.missingWarn)?u.missingWarn:e.missingWarn,f=hn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=hn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,v=at(u.default)||hn(u.default)?hn(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,m=n||v!=null&&(at(v)||zn(v)),y=WI(e,u);h&&Mie(u);let[_,b,S]=d?[l,y,s[y]||Pn()]:XV(e,l,y,a,f,c),w=_,T=l;if(!d&&!(at(w)||Dh(w)||aa(w))&&m&&(w=v,T=w),!d&&(!(at(w)||Dh(w)||aa(w))||!at(b)))return i?_S:l;let C=!1;const E=()=>{C=!0},R=aa(w)?w:YV(e,l,b,w,T,E);if(C)return w;const I=Lie(e,b,S,u),P=Pie(I),M=Oie(e,R,P),L=r?r(M,l):M;if(__INTLIFY_PROD_DEVTOOLS__){const k={timestamp:Date.now(),key:at(l)?l:aa(w)?w.key:"",locale:b||(aa(w)?w.locale:""),format:at(w)?w:aa(w)?w.source:"",message:L};k.meta=Or({},e.__meta,yie()||{}),Jre(k)}return L}function Mie(e){xr(e.list)?e.list=e.list.map(t=>at(t)?eN(t):t):gn(e.named)&&Object.keys(e.named).forEach(t=>{at(e.named[t])&&(e.named[t]=eN(e.named[t]))})}function XV(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=Pn(),h,d=null;const v="translate";for(let m=0;m<c.length&&(h=c[m],f=a[h]||Pn(),(d=l(f,t))===null&&(d=f[t]),!(at(d)||Dh(d)||aa(d)));m++)if(!wie(h,c)){const y=jI(e,t,h,o,v);y!==t&&(d=y)}return[d,h,f]}function YV(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,Die(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function Oie(e,t,n){return t(n)}function qE(...e){const[t,n,r]=e,i=Pn();if(!at(t)&&!wr(t)&&!aa(t)&&!Dh(t))throw hl(dl.INVALID_ARGUMENT);const o=wr(t)?String(t):(aa(t),t);return wr(n)?i.plural=n:at(n)?i.default=n:tn(n)&&!mS(n)?i.named=n:xr(n)&&(i.list=n),wr(r)?i.plural=r:at(r)?i.default=r:tn(r)&&Or(i,r),[o,i]}function Die(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Qne(t,n,a)}}function Lie(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:i,pluralRules:o,messages:(d,v)=>{let m=a(n,d);if(m==null&&(c||v)){const[,,y]=XV(c||e,d,t,s,l,u);m=a(y,d)}if(at(m)||Dh(m)){let y=!1;const b=YV(e,d,t,m,d,()=>{y=!0});return y?mN:b}else return aa(m)?m:mN}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),wr(r.plural)&&(h.pluralIndex=r.plural),h}Mre();/*!
* vue-i18n v11.1.2
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const Nie="11.1.2";function kie(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(rf().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(rf().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(rf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(rf().__INTLIFY_PROD_DEVTOOLS__=!1)}const vo={UNEXPECTED_RETURN_TYPE:eie,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 yS(e,null,void 0)}const JE=rc("__translateVNode"),QE=rc("__datetimeParts"),eA=rc("__numberParts"),KV=rc("__setPluralRules"),ZV=rc("__injectWithOption"),tA=rc("__dispose");function Kg(e){if(!gn(e))return e;for(const t in e)if(Xa(e,t))if(!t.includes("."))gn(e[t])&&Kg(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]]=Pn()),!gn(i[n[a]])){o=!0;break}i=i[n[a]]}o||(i[n[r]]=e[t],delete e[t]),gn(i[n[r]])&&Kg(i[n[r]])}return e}function XI(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=tn(n)?n:xr(r)?Pn():{[e]:Pn()};if(xr(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||Pn(),H_(u,a[l])):H_(u,a)}else at(s)&&H_(JSON.parse(s),a)}),i==null&&o)for(const s in a)Xa(a,s)&&Kg(a[s]);return a}function qV(e){return e.type}function JV(e,t,n){let r=gn(t.messages)?t.messages:Pn();"__i18nGlobal"in n&&(r=XI(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 _N(e){return z(yl,null,e,0)}const bN="__INTLIFY_META__",SN=()=>[],Fie=()=>!1;let wN=0;function xN(e){return(t,n,r,i)=>e(n,r,Er()||void 0,i)}const $ie=()=>{const e=Er();let t=null;return e&&(t=qV(e)[bN])?{[bN]:t}:null};function YI(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=z1?Me:Si;let a=hn(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:at(e.locale)?e.locale:Yg),l=o(t&&a?t.fallbackLocale.value:at(e.fallbackLocale)||xr(e.fallbackLocale)||tn(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(XI(s.value,e)),c=o(tn(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(tn(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:hn(e.missingWarn)||Mh(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:hn(e.fallbackWarn)||Mh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:hn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,y=zn(e.missing)?e.missing:null,_=zn(e.missing)?xN(e.missing):null,b=zn(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:hn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const T=t?t.modifiers:tn(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&cN(null);const J={version:Nie,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:T,pluralRules:C,missing:_===null?void 0:_,missingWarn:h,fallbackWarn:d,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=c.value,J.numberFormats=f.value,J.__datetimeFormatters=tn(E)?E.__datetimeFormatters:void 0,J.__numberFormatters=tn(E)?E.__numberFormatters:void 0;const he=bie(J);return r&&cN(he),he})(),Hp(E,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,f.value]}const P=xe({get:()=>s.value,set:J=>{E.locale=J,s.value=J}}),M=xe({get:()=>l.value,set:J=>{E.fallbackLocale=J,l.value=J,Hp(E,s.value,J)}}),L=xe(()=>u.value),k=xe(()=>c.value),$=xe(()=>f.value);function W(){return zn(b)?b:null}function N(J){b=J,E.postTranslation=J}function K(){return y}function Y(J){J!==null&&(_=xN(J)),y=J,E.missing=_}const ae=(J,he,Ve,Ze,St,re)=>{I();let se;try{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?_ie():void 0),se=J(E)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(Ve!=="translate exists"&&wr(se)&&se===_S||Ve==="translate exists"&&!se){const[pe,Ee]=he();return t&&v?Ze(t):St(pe)}else{if(re(se))return se;throw Fo(vo.UNEXPECTED_RETURN_TYPE)}};function ge(...J){return ae(he=>Reflect.apply(yN,null,[he,...J]),()=>qE(...J),"translate",he=>Reflect.apply(he.t,he,[...J]),he=>he,he=>at(he))}function ye(...J){const[he,Ve,Ze]=J;if(Ze&&!gn(Ze))throw Fo(vo.INVALID_ARGUMENT);return ge(he,Ve,Or({resolvedMessage:!0},Ze||{}))}function Oe(...J){return ae(he=>Reflect.apply(dN,null,[he,...J]),()=>KE(...J),"datetime format",he=>Reflect.apply(he.d,he,[...J]),()=>lN,he=>at(he))}function ke(...J){return ae(he=>Reflect.apply(pN,null,[he,...J]),()=>ZE(...J),"number format",he=>Reflect.apply(he.n,he,[...J]),()=>lN,he=>at(he))}function Ue(J){return J.map(he=>at(he)||wr(he)||hn(he)?_N(String(he)):he)}const Xe={normalize:Ue,interpolate:J=>J,type:"vnode"};function fe(...J){return ae(he=>{let Ve;const Ze=he;try{Ze.processor=Xe,Ve=Reflect.apply(yN,null,[Ze,...J])}finally{Ze.processor=null}return Ve},()=>qE(...J),"translate",he=>he[JE](...J),he=>[_N(he)],he=>xr(he))}function Ae(...J){return ae(he=>Reflect.apply(pN,null,[he,...J]),()=>ZE(...J),"number format",he=>he[eA](...J),SN,he=>at(he)||xr(he))}function Se(...J){return ae(he=>Reflect.apply(dN,null,[he,...J]),()=>KE(...J),"datetime format",he=>he[QE](...J),SN,he=>at(he)||xr(he))}function Te(J){C=J,E.pluralRules=C}function Ne(J,he){return ae(()=>{if(!J)return!1;const Ve=at(he)?he:s.value,Ze=G(Ve),St=E.messageResolver(Ze,J);return Dh(St)||aa(St)||at(St)},()=>[J],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[J,he]),Fie,Ve=>hn(Ve))}function Be(J){let he=null;const Ve=BV(E,l.value,s.value);for(let Ze=0;Ze<Ve.length;Ze++){const St=u.value[Ve[Ze]]||{},re=E.messageResolver(St,J);if(re!=null){he=re;break}}return he}function H(J){const he=Be(J);return he??(t?t.tm(J)||{}:{})}function G(J){return u.value[J]||{}}function ue(J,he){if(i){const Ve={[J]:he};for(const Ze in Ve)Xa(Ve,Ze)&&Kg(Ve[Ze]);he=Ve[J]}u.value[J]=he,E.messages=u.value}function we(J,he){u.value[J]=u.value[J]||{};const Ve={[J]:he};if(i)for(const Ze in Ve)Xa(Ve,Ze)&&Kg(Ve[Ze]);he=Ve[J],H_(he,u.value[J]),E.messages=u.value}function ve(J){return c.value[J]||{}}function U(J,he){c.value[J]=he,E.datetimeFormats=c.value,hN(E,J,he)}function j(J,he){c.value[J]=Or(c.value[J]||{},he),E.datetimeFormats=c.value,hN(E,J,he)}function Q(J){return f.value[J]||{}}function de(J,he){f.value[J]=he,E.numberFormats=f.value,vN(E,J,he)}function _e(J,he){f.value[J]=Or(f.value[J]||{},he),E.numberFormats=f.value,vN(E,J,he)}wN++,t&&z1&&(Bt(t.locale,J=>{a&&(s.value=J,E.locale=J,Hp(E,s.value,l.value))}),Bt(t.fallbackLocale,J=>{a&&(l.value=J,E.fallbackLocale=J,Hp(E,s.value,l.value))}));const De={id:wN,locale:P,fallbackLocale:M,get inheritLocale(){return a},set inheritLocale(J){a=J,J&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Hp(E,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:L,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(J){h=J,E.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(J){d=J,E.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(J){v=J},get fallbackFormat(){return m},set fallbackFormat(J){m=J,E.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(J){S=J,E.warnHtmlMessage=J},get escapeParameter(){return w},set escapeParameter(J){w=J,E.escapeParameter=J},t:ge,getLocaleMessage:G,setLocaleMessage:ue,mergeLocaleMessage:we,getPostTranslationHandler:W,setPostTranslationHandler:N,getMissingHandler:K,setMissingHandler:Y,[KV]:Te};return De.datetimeFormats=k,De.numberFormats=$,De.rt=ye,De.te=Ne,De.tm=H,De.d=Oe,De.n=ke,De.getDateTimeFormat=ve,De.setDateTimeFormat=U,De.mergeDateTimeFormat=j,De.getNumberFormat=Q,De.setNumberFormat=de,De.mergeNumberFormat=_e,De[ZV]=n,De[JE]=fe,De[QE]=Se,De[eA]=Ae,De}function Bie(e){const t=at(e.locale)?e.locale:Yg,n=at(e.fallbackLocale)||xr(e.fallbackLocale)||tn(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=zn(e.missing)?e.missing:void 0,i=hn(e.silentTranslationWarn)||Mh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=hn(e.silentFallbackWarn)||Mh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=hn(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=tn(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=zn(e.postTranslation)?e.postTranslation:void 0,f=at(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,d=hn(e.sync)?e.sync:!0;let v=e.messages;if(tn(e.sharedMessages)){const T=e.sharedMessages;v=Object.keys(T).reduce((E,R)=>{const I=E[R]||(E[R]={});return Or(I,T[R]),E},v||{})}const{__i18n:m,__root:y,__injectWithOption:_}=e,b=e.datetimeFormats,S=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:w,datetimeFormats:b,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:d,__i18n:m,__root:y,__injectWithOption:_}}function nA(e={}){const t=YI(Bie(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 Vie(e,t,n){return{beforeCreate(){const r=Er();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=CN(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=nA(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=CN(e,i);else{this.$i18n=nA({__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&&JV(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=Er();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 CN(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[KV](t.pluralizationRules||e.pluralizationRules);const n=XI(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 KI={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Uie({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ge?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Pn())}function QV(){return Ge}const Hie=tt({name:"i18n-t",props:Or({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wr(e)||!isNaN(e)}},KI),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=Pn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=at(e.plural)?+e.plural:e.plural);const s=Uie(t,o),l=i[JE](e.keypath,s,a),u=Or(Pn(),r),c=at(e.tag)||gn(e.tag)?e.tag:QV();return ca(c,u,l)}}}),TN=Hie;function zie(e){return xr(e)&&!at(e[0])}function eU(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=Pn();e.locale&&(a.locale=e.locale),at(e.format)?a.key=e.format:gn(e.format)&&(at(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,d)=>n.includes(d)?Or(Pn(),h,{[d]:e.format[d]}):h,Pn()));const l=r(e.value,a,s);let u=[a.key];xr(l)?u=l.map((h,d)=>{const v=i[h.type],m=v?v({[h.type]:h.value,index:d,parts:l}):[h.value];return zie(m)&&(m[0].key=`${h.type}-${d}`),m}):at(l)&&(u=[l]);const c=Or(Pn(),o),f=at(e.tag)||gn(e.tag)?e.tag:QV();return ca(f,c,u)}}const Gie=tt({name:"i18n-n",props:Or({value:{type:Number,required:!0},format:{type:[String,Object]}},KI),setup(e,t){const n=e.i18n||Qr({useScope:e.scope,__useComponent:!0});return eU(e,t,jV,(...r)=>n[eA](...r))}}),EN=Gie;function Wie(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 jie(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw Fo(vo.UNEXPECTED_ERROR);const u=Wie(e,s.$),c=AN(l);return[Reflect.apply(u.t,u,[...IN(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);z1&&e.global===u&&(a.__i18nWatcher=Bt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{z1&&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=AN(s);a.textContent=Reflect.apply(l.t,l,[...IN(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function AN(e){if(at(e))return{path:e};if(tn(e)){if(!("path"in e))throw Fo(vo.REQUIRED_VALUE,"path");return e}else throw Fo(vo.INVALID_VALUE)}function IN(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return at(n)&&(a.locale=n),wr(i)&&(a.plural=i),wr(o)&&(a.plural=o),[t,s,a]}function Xie(e,t,...n){const r=tn(n[0])?n[0]:{};(hn(r.globalInstall)?r.globalInstall:!0)&&([TN.name,"I18nT"].forEach(o=>e.component(o,TN)),[EN.name,"I18nN"].forEach(o=>e.component(o,EN)),[PN.name,"I18nD"].forEach(o=>e.component(o,PN))),e.directive("t",jie(t))}const Yie=rc("global-vue-i18n");function Kie(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]=Zie(e,t),a=rc("");function s(f){return r.get(f)||null}function l(f,h){r.set(f,h)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,c),tn(h[0])){const m=h[0];c.__composerExtend=m.__composerExtend,c.__vueI18nExtend=m.__vueI18nExtend}let d=null;!t&&n&&(d=ioe(f,c.global)),__VUE_I18N_FULL_INSTALL__&&Xie(f,c,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Vie(o,o.__composer,c));const v=f.unmount;f.unmount=()=>{d&&d(),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=Er();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=qie(t),r=Qie(n),i=qV(t),o=Jie(e,i);if(o==="global")return JV(r,e,i),r;if(o==="parent"){let l=eoe(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Or({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=YI(l),a.__composerExtend&&(s[tA]=a.__composerExtend(s)),noe(a,t,s),a.__setInstance(t,s)}return s}function Zie(e,t){const n=c$(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>nA(e)):n.run(()=>YI(e));if(r==null)throw Fo(vo.UNEXPECTED_ERROR);return[n,r]}function qie(e){const t=lo(e.isCE?Yie:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Fo(e.isCE?vo.NOT_INSTALLED_WITH_PROVIDE:vo.UNEXPECTED_ERROR);return t}function Jie(e,t){return mS(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Qie(e){return e.mode==="composition"?e.global:e.global.__composer}function eoe(e,t,n=!1){let r=null;const i=t.root;let o=toe(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[ZV]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function toe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function noe(e,t,n){Vo(()=>{},t),nd(()=>{const r=n;e.__deleteInstance(t);const i=r[tA];i&&(i(),delete r[tA])},t)}const roe=["locale","fallbackLocale","availableLocales"],RN=["t","rt","d","n","tm","te"];function ioe(e,t){const n=Object.create(null);return roe.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw Fo(vo.UNEXPECTED_ERROR);const a=pt(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,RN.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,RN.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const ooe=tt({name:"i18n-d",props:Or({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},KI),setup(e,t){const n=e.i18n||Qr({useScope:e.scope,__useComponent:!0});return eU(e,t,WV,(...r)=>n[QE](...r))}}),PN=ooe;kie();pie(Kre);vie(fie);gie(BV);if(__INTLIFY_PROD_DEVTOOLS__){const e=rf();e.__INTLIFY__=!0,Zre(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const aoe={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 to an HTTP backend, but zashboard is provided via HTTPS. This may cause connection errors. Please allow insecure content in your browser settings or use the HTTP version of the zashboard, such as http://board.zash.run.place.",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",themeName:"Theme Name",save:"Save",moreDetails:"More Details"},soe={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-бэкенду, но Zashboard предоставляется через HTTPS. Это может вызвать ошибки подключения. Разрешите небезопасный контент в настройках браузера или используйте HTTP-версию панели, например, http://board.zash.run.place.",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:"удалённый адрес",themeName:"Название темы",save:"Сохранить",moreDetails:"Подробнее"},loe={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提供的这可能会导致连接错误请在浏览器设置中允许不安全的内容或者使用http版本面板例如http://board.zash.run.place",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:"远端地址",themeName:"主题名称",save:"保存",moreDetails:"更多详情"},Lm=Kie({locale:Su.value,messages:{[_s.EN_US]:aoe,[_s.ZH_CN]:loe,[_s.RU_RU]:soe}}),lC=Me(!1),MN=Me(),ON=Me("alert-warning"),uoe=Lm.global.t;let uC=-1;const rd=()=>({showNotification:({content:t,params:n={},type:r="alert-warning",timeout:i=5e3})=>{clearTimeout(uC),ON.value=r,lC.value=!0,MN.value=uoe(t,n),i!==0&&(uC=setTimeout(()=>{lC.value=!1,uC=-1},i))},tipType:ON,tipShowModel:lC,tipContent:MN}),coe={key:0,class:"toast-sm toast toast-end toast-top z-50 max-w-64 text-sm md:translate-y-8"},foe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},doe=tt({__name:"App",setup(e){const t=Me(),{tipContent:n,tipShowModel:r,tipType:i}=rd(),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=xe(()=>o[Zv.value]),s=po().format("YYYY-MM-DD"),l=Me(""),u=async()=>{l.value=await Gne()||""};Bt(()=>Wa.value,()=>{Wa.value.includes(H1)&&u()},{immediate:!0});const c=xe(()=>Wa.value?Wa.value.includes(H1)?`background-image: url('${l.value}');`:`background-image: url('${Wa.value}?v=${s}');`:""),f=()=>{const h=getComputedStyle(t.value).getPropertyValue("background-color").trim(),d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",h)};return Bt(MV,f),Vo(()=>{Bt(BE,()=>{document.body.setAttribute("data-theme",BE.value),f()},{immediate:!0})}),(h,d)=>(X(),q("div",{ref_key:"app",ref:t,id:"app-content",class:mt(["bg-base-100 flex h-dvh w-screen overflow-x-hidden",a.value,c.value&&`custom-background-${B(M_)} custom-background bg-cover bg-center`]),style:lr(c.value)},[z(B(DI)),B(r)?(X(),q("div",coe,[D("div",{class:mt(["breaks-all alert flex p-2 whitespace-normal",B(i)])},[D("a",foe,ne(B(n)),1),D("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:d[0]||(d[0]=v=>r.value=!1)},[z(B(fte),{class:"w-4 cursor-pointer"})])],2)])):it("",!0)],6))}}),ha=dt("setup/api-list",[]),gi=dt("setup/active-uuid",""),Lo=xe(()=>ha.value.find(e=>e.uuid===gi.value)),hoe=e=>{const t=ha.value.find(r=>mr.isEqual(mr.omit(r,"uuid"),e));if(t){gi.value=t.uuid;return}const n=gS();ha.value.push({...e,uuid:n}),gi.value=n},tU=e=>{ha.value=ha.value.filter(t=>t.uuid!==e)},bs=Me([]),tg=Me([]),rA=Me(0),iA=Me(0);let c0;const poe=()=>{c0==null||c0(),bs.value=[],tg.value=[],rA.value=0,iA.value=0;const e=tIe(),t=Bt(e.data,n=>{var r;n&&(rA.value=n.downloadTotal,iA.value=n.uploadTotal,!G_.value&&(tg.value=[...tg.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}}))??[]))});c0=()=>{t(),e.close()}},G1=dt("config/quick-filter-regex","direct|dns-out"),oA=dt("config/quick-filter-enabled",!1),vh=Me(Om.ACTIVE),voe=xe(()=>z_.value===tf.DESC),DN={[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)=>Z2(e).localeCompare(Z2(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()},aA=dt("config/connection-sort-type",eo.HOST),z_=dt("config/connection-sort-direction",tf.ASC),W1=Me(""),rl=Me(null),G_=Me(!1),gh=xe(()=>vh.value===Om.ACTIVE?bs.value:tg.value),Lh=xe(()=>{let e=null;return oA.value&&G1.value&&(e=new RegExp(G1.value,"i")),gh.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:W1.value?n.some(r=>r==null?void 0:r.includes(W1.value)):!0}).sort((t,n)=>{Mo.value&&voe.value&&([t,n]=[n,t]);const r=Mo.value?DN[aA.value](t,n):DN[eo.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})});function Ad(e,t,n){let r=n.initialDeps??[],i;function o(){var a,s,l,u;let c;n.key&&((a=n.debug)!=null&&a.call(n))&&(c=Date.now());const f=e();if(!(f.length!==r.length||f.some((v,m)=>r[m]!==v)))return i;r=f;let d;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now()),i=t(...f),n.key&&((l=n.debug)!=null&&l.call(n))){const v=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-d)*100)/100,y=m/16,_=(b,S)=>{for(b=String(b);b.length<S;)b=" "+b;return b};console.info(`%c⏱ ${_(m,5)} /${_(v,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(u=n==null?void 0:n.onChange)==null||u.call(n,i),i}return o.updateDeps=a=>{r=a},o}function cC(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const goe=(e,t)=>Math.abs(e-t)<1,moe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},yoe=e=>e,_oe=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},boe=(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)}},LN={passive:!0},NN=typeof window>"u"?!0:"onscrollend"in window,Soe=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&NN?()=>{}:moe(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=c=>()=>{const{horizontal:f,isRtl:h}=e.options;i=f?n.scrollLeft*(h&&-1||1):n.scrollTop,o(),t(i,c)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,LN);const u=e.options.useScrollendEvent&&NN;return u&&n.addEventListener("scrollend",l,LN),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},woe=(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"])},xoe=(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 Coe{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:yoe,rangeExtractor:_oe,onChange:()=>{},measureElement:woe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=Ad(()=>(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=Ad(()=>[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=Ad(()=>[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),h=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),d=h?h.end+this.options.gap:r+i,v=s.get(f),m=typeof v=="number"?v:this.options.estimateSize(c),y=d+m,_=h?h.lane:c%this.options.lanes;u[c]={index:c,start:d,size:m,end:y,key:f,lane:_}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ad(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?Toe({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ad(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[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=Ad(()=>[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 cC(r[nU(0,r.length-1,i=>cC(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]=cC(this.getOffsetForIndex(n,s));goe(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;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const o=Array(this.options.lanes).fill(null);let a=r.length-1;for(;a>0&&o.some(s=>s===null);){const s=r[a];o[s.lane]===null&&(o[s.lane]=s.end),a--}i=Math.max(...o.filter(s=>s!==null))}return 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 nU=(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 Toe({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1;let a=nU(0,i,l=>e[l].start,n),s=a;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const l=Array(r).fill(0);for(;s<i&&l.some(c=>c<n+t);){const c=e[s];l[c.lane]=c.end,s++}const u=Array(r).fill(n+t);for(;a>0&&u.some(c=>c>=n);){const c=e[a];u[c.lane]=c.start,a--}a=Math.max(0,a-a%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:a,endIndex:s}}function Eoe(e){const t=new Coe(B(e)),n=Si(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;mE(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),mE(n)},{immediate:!0}),iI(r),n}function rU(e){return Eoe(xe(()=>({observeElementRect:boe,observeElementOffset:Soe,scrollToFn:xoe,...B(e)})))}const Aoe=["data-index"],ZI=tt({__name:"VirtualScroller",props:{data:{default:()=>[]},size:{default:64}},setup(e){const t=Me(null),n=e,r=xe(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>n.size,overscan:36})),i=rU(r),o=xe(()=>i.value.getVirtualItems()),a=xe(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return X(),q("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto"},[D("div",{style:lr({height:`${a.value}px`}),class:"relative w-full"},[D("div",{class:"absolute top-0 left-0 w-full",style:lr({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(X(!0),q(Ge,null,qt(o.value,f=>(X(),q("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[bf(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,Aoe))),128))],4)],4)],512)}}}),fC=Me(null),kN=Me(!1),qI=()=>({infoConn:fC,connectionDetailModalShow:kN,handlerInfo:async t=>{fC.value=null,await Qa(),fC.value=t,kN.value=!0}});class Ioe{constructor(t){Bx(this,"value");Bx(this,"next");this.value=t}}var ra,hf,pf;class Roe{constructor(){Xy(this,ra);Xy(this,hf);Xy(this,pf);this.clear()}enqueue(t){const n=new Ioe(t);as(this,ra)?(as(this,hf).next=n,Ys(this,hf,n)):(Ys(this,ra,n),Ys(this,hf,n)),Vx(this,pf)._++}dequeue(){const t=as(this,ra);if(t)return Ys(this,ra,as(this,ra).next),Vx(this,pf)._--,t.value}peek(){if(as(this,ra))return as(this,ra).value}clear(){Ys(this,ra,void 0),Ys(this,hf,void 0),Ys(this,pf,0)}get size(){return as(this,pf)}*[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,hf=new WeakMap,pf=new WeakMap;function Poe(e){FN(e);const t=new Roe;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){FN(l),e=l,queueMicrotask(()=>{for(;n<e&&t.size>0;)r()})}}}),s}function FN(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 ng="GLOBAL",j1=Me([]),Jr=Me({}),Nh=dt("config/ipv6-map",{}),_l=dt("config/hidden-group-map",{}),Af=Me([]),JI=e=>{const t=Tf.value||xV;if(!e)return t;const n=Jr.value[e];return hh.value&&n.testUrl?n.testUrl:t},Nm=(e,t)=>{const n=iU(e,t);return Noe(n)},iU=(e,t)=>{var r,i;if(hh.value&&!Tl.value){const o=Jr.value[e];return(i=(r=o==null?void 0:o.extra)==null?void 0:r[JI(t)])==null?void 0:i.history}const n=Jr.value[Vf(e)];return n==null?void 0:n.history},Moe=e=>Nh.value[Vf(e)],Sa=async()=>{const{data:e}=await z2e(),{data:t}=await W2e(),n=e.proxies[ng].all??[],r={},i=Object.values(t.providers).filter(o=>o.name!=="default"&&o.vehicleType!=="Compatible");for(const o of i)for(const a of o.proxies)r[a.name]=a;Jr.value={...r,...e.proxies},j1.value=Object.values(e.proxies).filter(o=>{var a;return((a=o.all)==null?void 0:a.length)&&o.name!==ng}).sort((o,a)=>n.indexOf(o.name)-n.indexOf(a.name)).map(o=>o.name),Af.value=i,Object.entries(e.proxies).map(([o,a])=>{Ef.value&&koe(a)&&(Nh.value[o]=!0),a.hidden&&!(o in _l.value)&&(_l.value[o]=!0)})},oU=async(e,t)=>{await G2e(e,t),Jr.value[e].now=t,HE.value&&bs.value.filter(n=>n.chains.includes(e)).forEach(n=>ww(n.id)),Sa()},aU=async(e,t,n)=>{const r=Vf(e);if(Ef.value)try{const{data:i}=await H4(r,NI,2e3);Nh.value[r]=i.delay>Fi}catch{Nh.value[r]=!1}await H4(hh.value?e:r,t,n)},Ooe=async(e,t=Tf.value,n=ku.value)=>{await aU(e,t,n),await Sa()},Doe=mr.debounce(Sa,800),sU=async(e,t=Tf.value,n=ku.value)=>{await aU(e,t,n),await Doe()},lU=Poe(5),uU=async e=>{const t=Jr.value[e],n=t.all??[],r=JI(e);if([Yr.Selector,Yr.LoadBalance].includes(t.type.toLowerCase())){let o=0;return await Promise.all(n.map(a=>lU(async()=>{await sU(a,r,Math.min(3e3,ku.value)),o++,cU(o,n.length)})))}const i=Math.max(5e3,ku.value);if(Ef.value)try{const{data:o}=await z4(e,NI,i);n==null||n.forEach(a=>{Nh.value[Vf(a)]=o[a]>Fi})}catch{n==null||n.forEach(o=>{Nh.value[Vf(o)]=!1})}await z4(e,r,i),await Sa()},Loe=async()=>{const e=Object.keys(Jr.value).filter(n=>!Y2(n));let t=0;return await Promise.all(e.map(n=>lU(async()=>{await sU(n,Tf.value,Math.min(3e3,ku.value)),t++,cU(t,e.length)})))},Noe=e=>{var t;return((t=mr.last(e))==null?void 0:t.delay)??Fi},koe=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[NI])==null?void 0:r.history;return(((i=mr.last(t))==null?void 0:i.delay)??Fi)>Fi},Vf=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:Foe}=rd(),cU=(e,t)=>{const n=e===t;Foe({content:"testFinishedTip",params:{number:`${e}/${t}`},type:n?"alert-success":"alert-warning",timeout:n?2e3: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:fU,setPrototypeOf:$N,isFrozen:$oe,getPrototypeOf:Boe,getOwnPropertyDescriptor:Voe}=Object;let{freeze:Ui,seal:wa,create:dU}=Object,{apply:sA,construct:lA}=typeof Reflect<"u"&&Reflect;Ui||(Ui=function(t){return t});wa||(wa=function(t){return t});sA||(sA=function(t,n,r){return t.apply(n,r)});lA||(lA=function(t,n){return new t(...n)});const f0=Hi(Array.prototype.forEach),Uoe=Hi(Array.prototype.lastIndexOf),BN=Hi(Array.prototype.pop),zp=Hi(Array.prototype.push),Hoe=Hi(Array.prototype.splice),W_=Hi(String.prototype.toLowerCase),dC=Hi(String.prototype.toString),VN=Hi(String.prototype.match),Gp=Hi(String.prototype.replace),zoe=Hi(String.prototype.indexOf),Goe=Hi(String.prototype.trim),Va=Hi(Object.prototype.hasOwnProperty),Ai=Hi(RegExp.prototype.test),Wp=Woe(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 sA(e,t,r)}}function Woe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lA(e,n)}}function Qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:W_;$N&&$N(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&($oe(t)||(t[r]=o),i=o)}e[i]=!0}return e}function joe(e){for(let t=0;t<e.length;t++)Va(e,t)||(e[t]=null);return e}function Yc(e){const t=dU(null);for(const[n,r]of fU(e))Va(e,n)&&(Array.isArray(r)?t[n]=joe(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Yc(r):t[n]=r);return t}function jp(e,t){for(;e!==null;){const r=Voe(e,t);if(r){if(r.get)return Hi(r.get);if(typeof r.value=="function")return Hi(r.value)}e=Boe(e)}function n(){return null}return n}const UN=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"]),hC=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"]),pC=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"]),Xoe=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"]),vC=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"]),Yoe=Ui(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),HN=Ui(["#text"]),zN=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"]),gC=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"]),GN=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"]),d0=Ui(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Koe=wa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Zoe=wa(/<%[\w\W]*|[\w\W]*%>/gm),qoe=wa(/\$\{[\w\W]*/gm),Joe=wa(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qoe=wa(/^aria-[\-\w]+$/),hU=wa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eae=wa(/^(?:\w+script|data):/i),tae=wa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pU=wa(/^html$/i),nae=wa(/^[a-z][.\w]*(-[.\w]+)+$/i);var WN=Object.freeze({__proto__:null,ARIA_ATTR:Qoe,ATTR_WHITESPACE:tae,CUSTOM_ELEMENT:nae,DATA_ATTR:Joe,DOCTYPE_NAME:pU,ERB_EXPR:Zoe,IS_ALLOWED_URI:hU,IS_SCRIPT_OR_DATA:eae,MUSTACHE_EXPR:Koe,TMPLIT_EXPR:qoe});const Xp={element:1,text:3,progressingInstruction:7,comment:8,document:9},rae=function(){return typeof window>"u"?null:window},iae=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}},jN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function vU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rae();const t=yt=>vU(yt);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==Xp.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:h,trustedTypes:d}=e,v=l.prototype,m=jp(v,"cloneNode"),y=jp(v,"remove"),_=jp(v,"nextSibling"),b=jp(v,"childNodes"),S=jp(v,"parentNode");if(typeof a=="function"){const yt=n.createElement("template");yt.content&&yt.content.ownerDocument&&(n=yt.content.ownerDocument)}let w,T="";const{implementation:C,createNodeIterator:E,createDocumentFragment:R,getElementsByTagName:I}=n,{importNode:P}=r;let M=jN();t.isSupported=typeof fU=="function"&&typeof S=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:k,TMPLIT_EXPR:$,DATA_ATTR:W,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:ae}=WN;let{IS_ALLOWED_URI:ge}=WN,ye=null;const Oe=Qt({},[...UN,...hC,...pC,...vC,...HN]);let ke=null;const Ue=Qt({},[...zN,...gC,...GN,...d0]);let Le=Object.seal(dU(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}})),Xe=null,fe=null,Ae=!0,Se=!0,Te=!1,Ne=!0,Be=!1,H=!0,G=!1,ue=!1,we=!1,ve=!1,U=!1,j=!1,Q=!0,de=!1;const _e="user-content-";let De=!0,J=!1,he={},Ve=null;const Ze=Qt({},["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 St=null;const re=Qt({},["audio","video","img","source","image","track"]);let se=null;const pe=Qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml";let Ie=oe,$e=!1,nt=null;const je=Qt({},[Ee,We,oe],dC);let Ye=Qt({},["mi","mo","mn","ms","mtext"]),rt=Qt({},["annotation-xml"]);const Ot=Qt({},["title","style","font","a","script"]);let Lt=null;const kn=["application/xhtml+xml","text/html"],Aa="text/html";let Mn=null,yr=null;const ad=n.createElement("form"),Fl=function(ie){return ie instanceof RegExp||ie instanceof Function},ns=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yr&&yr===ie)){if((!ie||typeof ie!="object")&&(ie={}),ie=Yc(ie),Lt=kn.indexOf(ie.PARSER_MEDIA_TYPE)===-1?Aa:ie.PARSER_MEDIA_TYPE,Mn=Lt==="application/xhtml+xml"?dC:W_,ye=Va(ie,"ALLOWED_TAGS")?Qt({},ie.ALLOWED_TAGS,Mn):Oe,ke=Va(ie,"ALLOWED_ATTR")?Qt({},ie.ALLOWED_ATTR,Mn):Ue,nt=Va(ie,"ALLOWED_NAMESPACES")?Qt({},ie.ALLOWED_NAMESPACES,dC):je,se=Va(ie,"ADD_URI_SAFE_ATTR")?Qt(Yc(pe),ie.ADD_URI_SAFE_ATTR,Mn):pe,St=Va(ie,"ADD_DATA_URI_TAGS")?Qt(Yc(re),ie.ADD_DATA_URI_TAGS,Mn):re,Ve=Va(ie,"FORBID_CONTENTS")?Qt({},ie.FORBID_CONTENTS,Mn):Ze,Xe=Va(ie,"FORBID_TAGS")?Qt({},ie.FORBID_TAGS,Mn):{},fe=Va(ie,"FORBID_ATTR")?Qt({},ie.FORBID_ATTR,Mn):{},he=Va(ie,"USE_PROFILES")?ie.USE_PROFILES:!1,Ae=ie.ALLOW_ARIA_ATTR!==!1,Se=ie.ALLOW_DATA_ATTR!==!1,Te=ie.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=ie.SAFE_FOR_TEMPLATES||!1,H=ie.SAFE_FOR_XML!==!1,G=ie.WHOLE_DOCUMENT||!1,ve=ie.RETURN_DOM||!1,U=ie.RETURN_DOM_FRAGMENT||!1,j=ie.RETURN_TRUSTED_TYPE||!1,we=ie.FORCE_BODY||!1,Q=ie.SANITIZE_DOM!==!1,de=ie.SANITIZE_NAMED_PROPS||!1,De=ie.KEEP_CONTENT!==!1,J=ie.IN_PLACE||!1,ge=ie.ALLOWED_URI_REGEXP||hU,Ie=ie.NAMESPACE||oe,Ye=ie.MATHML_TEXT_INTEGRATION_POINTS||Ye,rt=ie.HTML_INTEGRATION_POINTS||rt,Le=ie.CUSTOM_ELEMENT_HANDLING||{},ie.CUSTOM_ELEMENT_HANDLING&&Fl(ie.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=ie.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ie.CUSTOM_ELEMENT_HANDLING&&Fl(ie.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=ie.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ie.CUSTOM_ELEMENT_HANDLING&&typeof ie.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Le.allowCustomizedBuiltInElements=ie.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(Se=!1),U&&(ve=!0),he&&(ye=Qt({},HN),ke=[],he.html===!0&&(Qt(ye,UN),Qt(ke,zN)),he.svg===!0&&(Qt(ye,hC),Qt(ke,gC),Qt(ke,d0)),he.svgFilters===!0&&(Qt(ye,pC),Qt(ke,gC),Qt(ke,d0)),he.mathMl===!0&&(Qt(ye,vC),Qt(ke,GN),Qt(ke,d0))),ie.ADD_TAGS&&(ye===Oe&&(ye=Yc(ye)),Qt(ye,ie.ADD_TAGS,Mn)),ie.ADD_ATTR&&(ke===Ue&&(ke=Yc(ke)),Qt(ke,ie.ADD_ATTR,Mn)),ie.ADD_URI_SAFE_ATTR&&Qt(se,ie.ADD_URI_SAFE_ATTR,Mn),ie.FORBID_CONTENTS&&(Ve===Ze&&(Ve=Yc(Ve)),Qt(Ve,ie.FORBID_CONTENTS,Mn)),De&&(ye["#text"]=!0),G&&Qt(ye,["html","head","body"]),ye.table&&(Qt(ye,["tbody"]),delete Xe.tbody),ie.TRUSTED_TYPES_POLICY){if(typeof ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ie.TRUSTED_TYPES_POLICY,T=w.createHTML("")}else w===void 0&&(w=iae(d,i)),w!==null&&typeof T=="string"&&(T=w.createHTML(""));Ui&&Ui(ie),yr=ie}},ey=Qt({},[...hC,...pC,...Xoe]),sd=Qt({},[...vC,...Yoe]),Ew=function(ie){let He=S(ie);(!He||!He.tagName)&&(He={namespaceURI:Ie,tagName:"template"});const ct=W_(ie.tagName),xn=W_(He.tagName);return nt[ie.namespaceURI]?ie.namespaceURI===We?He.namespaceURI===oe?ct==="svg":He.namespaceURI===Ee?ct==="svg"&&(xn==="annotation-xml"||Ye[xn]):!!ey[ct]:ie.namespaceURI===Ee?He.namespaceURI===oe?ct==="math":He.namespaceURI===We?ct==="math"&&rt[xn]:!!sd[ct]:ie.namespaceURI===oe?He.namespaceURI===We&&!rt[xn]||He.namespaceURI===Ee&&!Ye[xn]?!1:!sd[ct]&&(Ot[ct]||!ey[ct]):!!(Lt==="application/xhtml+xml"&&nt[ie.namespaceURI]):!1},zi=function(ie){zp(t.removed,{element:ie});try{S(ie).removeChild(ie)}catch{y(ie)}},ld=function(ie,He){try{zp(t.removed,{attribute:He.getAttributeNode(ie),from:He})}catch{zp(t.removed,{attribute:null,from:He})}if(He.removeAttribute(ie),ie==="is")if(ve||U)try{zi(He)}catch{}else try{He.setAttribute(ie,"")}catch{}},ty=function(ie){let He=null,ct=null;if(we)ie="<remove></remove>"+ie;else{const nr=VN(ie,/^[\r\n\t ]+/);ct=nr&&nr[0]}Lt==="application/xhtml+xml"&&Ie===oe&&(ie='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ie+"</body></html>");const xn=w?w.createHTML(ie):ie;if(Ie===oe)try{He=new h().parseFromString(xn,Lt)}catch{}if(!He||!He.documentElement){He=C.createDocument(Ie,"template",null);try{He.documentElement.innerHTML=$e?T:xn}catch{}}const Nr=He.body||He.documentElement;return ie&&ct&&Nr.insertBefore(n.createTextNode(ct),Nr.childNodes[0]||null),Ie===oe?I.call(He,G?"html":"body")[0]:G?He.documentElement:Nr},ny=function(ie){return E.call(ie.ownerDocument||ie,ie,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},yp=function(ie){return ie instanceof f&&(typeof ie.nodeName!="string"||typeof ie.textContent!="string"||typeof ie.removeChild!="function"||!(ie.attributes instanceof c)||typeof ie.removeAttribute!="function"||typeof ie.setAttribute!="function"||typeof ie.namespaceURI!="string"||typeof ie.insertBefore!="function"||typeof ie.hasChildNodes!="function")},ry=function(ie){return typeof s=="function"&&ie instanceof s};function Ia(yt,ie,He){f0(yt,ct=>{ct.call(t,ie,He,yr)})}const iy=function(ie){let He=null;if(Ia(M.beforeSanitizeElements,ie,null),yp(ie))return zi(ie),!0;const ct=Mn(ie.nodeName);if(Ia(M.uponSanitizeElement,ie,{tagName:ct,allowedTags:ye}),ie.hasChildNodes()&&!ry(ie.firstElementChild)&&Ai(/<[/\w]/g,ie.innerHTML)&&Ai(/<[/\w]/g,ie.textContent)||ie.nodeType===Xp.progressingInstruction||H&&ie.nodeType===Xp.comment&&Ai(/<[/\w]/g,ie.data))return zi(ie),!0;if(!ye[ct]||Xe[ct]){if(!Xe[ct]&&_p(ct)&&(Le.tagNameCheck instanceof RegExp&&Ai(Le.tagNameCheck,ct)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(ct)))return!1;if(De&&!Ve[ct]){const xn=S(ie)||ie.parentNode,Nr=b(ie)||ie.childNodes;if(Nr&&xn){const nr=Nr.length;for(let ei=nr-1;ei>=0;--ei){const Uo=m(Nr[ei],!0);Uo.__removalCount=(ie.__removalCount||0)+1,xn.insertBefore(Uo,_(ie))}}}return zi(ie),!0}return ie instanceof l&&!Ew(ie)||(ct==="noscript"||ct==="noembed"||ct==="noframes")&&Ai(/<\/no(script|embed|frames)/i,ie.innerHTML)?(zi(ie),!0):(Be&&ie.nodeType===Xp.text&&(He=ie.textContent,f0([L,k,$],xn=>{He=Gp(He,xn," ")}),ie.textContent!==He&&(zp(t.removed,{element:ie.cloneNode()}),ie.textContent=He)),Ia(M.afterSanitizeElements,ie,null),!1)},oy=function(ie,He,ct){if(Q&&(He==="id"||He==="name")&&(ct in n||ct in ad))return!1;if(!(Se&&!fe[He]&&Ai(W,He))){if(!(Ae&&Ai(N,He))){if(!ke[He]||fe[He]){if(!(_p(ie)&&(Le.tagNameCheck instanceof RegExp&&Ai(Le.tagNameCheck,ie)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(ie))&&(Le.attributeNameCheck instanceof RegExp&&Ai(Le.attributeNameCheck,He)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(He))||He==="is"&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&Ai(Le.tagNameCheck,ct)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(ct))))return!1}else if(!se[He]){if(!Ai(ge,Gp(ct,Y,""))){if(!((He==="src"||He==="xlink:href"||He==="href")&&ie!=="script"&&zoe(ct,"data:")===0&&St[ie])){if(!(Te&&!Ai(K,Gp(ct,Y,"")))){if(ct)return!1}}}}}}return!0},_p=function(ie){return ie!=="annotation-xml"&&VN(ie,ae)},ay=function(ie){Ia(M.beforeSanitizeAttributes,ie,null);const{attributes:He}=ie;if(!He||yp(ie))return;const ct={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let xn=He.length;for(;xn--;){const Nr=He[xn],{name:nr,namespaceURI:ei,value:Uo}=Nr,lc=Mn(nr);let kr=nr==="value"?Uo:Goe(Uo);if(ct.attrName=lc,ct.attrValue=kr,ct.keepAttr=!0,ct.forceKeepAttr=void 0,Ia(M.uponSanitizeAttribute,ie,ct),kr=ct.attrValue,de&&(lc==="id"||lc==="name")&&(ld(nr,ie),kr=_e+kr),H&&Ai(/((--!?|])>)|<\/(style|title)/i,kr)){ld(nr,ie);continue}if(ct.forceKeepAttr||(ld(nr,ie),!ct.keepAttr))continue;if(!Ne&&Ai(/\/>/i,kr)){ld(nr,ie);continue}Be&&f0([L,k,$],Sp=>{kr=Gp(kr,Sp," ")});const bp=Mn(ie.nodeName);if(oy(bp,lc,kr)){if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!ei)switch(d.getAttributeType(bp,lc)){case"TrustedHTML":{kr=w.createHTML(kr);break}case"TrustedScriptURL":{kr=w.createScriptURL(kr);break}}try{ei?ie.setAttributeNS(ei,nr,kr):ie.setAttribute(nr,kr),yp(ie)?zi(ie):BN(t.removed)}catch{}}}Ia(M.afterSanitizeAttributes,ie,null)},Aw=function yt(ie){let He=null;const ct=ny(ie);for(Ia(M.beforeSanitizeShadowDOM,ie,null);He=ct.nextNode();)Ia(M.uponSanitizeShadowNode,He,null),iy(He),ay(He),He.content instanceof o&&yt(He.content);Ia(M.afterSanitizeShadowDOM,ie,null)};return t.sanitize=function(yt){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=null,ct=null,xn=null,Nr=null;if($e=!yt,$e&&(yt="<!-->"),typeof yt!="string"&&!ry(yt))if(typeof yt.toString=="function"){if(yt=yt.toString(),typeof yt!="string")throw Wp("dirty is not a string, aborting")}else throw Wp("toString is not a function");if(!t.isSupported)return yt;if(ue||ns(ie),t.removed=[],typeof yt=="string"&&(J=!1),J){if(yt.nodeName){const Uo=Mn(yt.nodeName);if(!ye[Uo]||Xe[Uo])throw Wp("root node is forbidden and cannot be sanitized in-place")}}else if(yt instanceof s)He=ty("<!---->"),ct=He.ownerDocument.importNode(yt,!0),ct.nodeType===Xp.element&&ct.nodeName==="BODY"||ct.nodeName==="HTML"?He=ct:He.appendChild(ct);else{if(!ve&&!Be&&!G&&yt.indexOf("<")===-1)return w&&j?w.createHTML(yt):yt;if(He=ty(yt),!He)return ve?null:j?T:""}He&&we&&zi(He.firstChild);const nr=ny(J?yt:He);for(;xn=nr.nextNode();)iy(xn),ay(xn),xn.content instanceof o&&Aw(xn.content);if(J)return yt;if(ve){if(U)for(Nr=R.call(He.ownerDocument);He.firstChild;)Nr.appendChild(He.firstChild);else Nr=He;return(ke.shadowroot||ke.shadowrootmode)&&(Nr=P.call(r,Nr,!0)),Nr}let ei=G?He.outerHTML:He.innerHTML;return G&&ye["!doctype"]&&He.ownerDocument&&He.ownerDocument.doctype&&He.ownerDocument.doctype.name&&Ai(pU,He.ownerDocument.doctype.name)&&(ei="<!DOCTYPE "+He.ownerDocument.doctype.name+`>
`+ei),Be&&f0([L,k,$],Uo=>{ei=Gp(ei,Uo," ")}),w&&j?w.createHTML(ei):ei},t.setConfig=function(){let yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ns(yt),ue=!0},t.clearConfig=function(){yr=null,ue=!1},t.isValidAttribute=function(yt,ie,He){yr||ns({});const ct=Mn(yt),xn=Mn(ie);return oy(ct,xn,He)},t.addHook=function(yt,ie){typeof ie=="function"&&zp(M[yt],ie)},t.removeHook=function(yt,ie){if(ie!==void 0){const He=Uoe(M[yt],ie);return He===-1?void 0:Hoe(M[yt],He,1)[0]}return BN(M[yt])},t.removeHooks=function(yt){M[yt]=[]},t.removeAllHooks=function(){M=jN()},t}var oae=vU();const aae=["innerHTML"],sae=["src"],XN="data:image/svg+xml,",QI=tt({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=xe(()=>({width:(t.size==="small"?Qv.value:Qv.value+4)+"px",marginRight:B_.value-4+"px"})),r=xe(()=>t.icon.startsWith(XN)),i=xe(()=>{if(r.value)return oae.sanitize(t.icon.replace(XN,""))});return(o,a)=>r.value?(X(),q("div",{key:0,class:mt(["inline-block",o.fill||"fill-primary"]),style:lr(n.value),innerHTML:i.value},null,14,aae)):(X(),q("img",{key:1,style:lr(n.value),src:o.icon},null,12,sae))}}),Uf=tt({__name:"ProxyName",props:{name:{},size:{default:"small"}},setup(e){const t=e,n=xe(()=>{var r;return(r=Jr.value[t.name])==null?void 0:r.icon});return(r,i)=>(X(),q("div",{class:mt(["flex shrink-0 items-center gap-1",r.size==="large"?"text-lg font-medium":"text-sm"])},[n.value?(X(),_t(QI,{key:0,icon:n.value,size:r.size,class:mt(r.size==="large"&&"-mt-[2px]")},null,8,["icon","size","class"])):it("",!0),qe(" "+ne(r.name),1)],2))}}),lae=tt({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=qI();return()=>{const n=e.conn,r=n.metadata,i={[ze.Host]:z("span",{class:"text-main w-80 grow truncate"},[M7(n)]),[ze.Destination]:z("span",{class:"w-80 grow truncate break-all"},[D7(n)]),[ze.RemoteAddress]:z("span",{class:"w-80 grow truncate break-all"},[n.metadata.remoteDestination||"-"]),[ze.SourceIP]:z("span",{class:"w-40 grow truncate break-all"},[Vb(r.sourceIP)]),[ze.SourcePort]:z("span",{class:"w-20 grow truncate break-all"},[r.sourcePort]),[ze.SniffHost]:z("span",{class:"w-80 grow truncate break-all"},[r.sniffHost||"-"]),[ze.Type]:z("span",{class:"w-60 grow truncate break-all"},[N7(n)]),[ze.Rule]:z("span",{class:"w-80 grow truncate break-all"},[n.rule,n.rulePayload&&z(Ge,null,[qe(": "),n.rulePayload])]),[ze.Process]:z("span",{class:"w-60 grow truncate break-all"},[O7(n)]),[ze.Chains]:z("span",{class:["flex w-80 grow items-center gap-1 truncate break-all",ph.value===ip.REVERSE&&"flex-row-reverse justify-end"]},[z(Uf,{name:mr.last(n.chains)},null),mr.last(n.chains)!==mr.first(n.chains)&&z(Ge,null,[z(Rl,{class:"h-4 w-4 shrink-0"},null),z(Uf,{name:mr.first(n.chains)},null)])]),[ze.Download]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.download),z(Zee,{class:"text-success h-4 w-4"},null)]),[ze.Upload]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.upload),z(Jee,{class:"text-info h-4 w-4"},null)]),[ze.DlSpeed]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.downloadSpeed),qe("/s"),z(uS,{class:"text-success h-4 w-4"},null)]),[ze.UlSpeed]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.uploadSpeed),qe("/s"),z(Pm,{class:"text-info h-4 w-4"},null)]),[ze.ConnectTime]:z("div",{class:"gap-1 whitespace-nowrap"},[Tw(n.start)]),[ze.DestinationType]:z("div",{class:"gap-1 whitespace-nowrap"},[L7(n)]),[ze.Close]:z("button",{class:"btn btn-circle btn-xs",onClick:o=>{o.stopPropagation(),ww(n.id)}},[z($f,{class:"h-4 w-4"},null)])};return z("div",{class:"card cursor-pointer gap-1 p-1 md:p-2",onClick:()=>t(n)},[to.value.map(o=>z("div",{class:"flex items-center gap-1 text-sm"},[o.map(a=>i[a])]))])}}}),uae={key:0,class:"card m-2 flex-row p-2 text-sm"},cae=tt({__name:"ConnectionCardList",setup(e){const t=xe(()=>to.value.length*28+4);return(n,r)=>B(Lh).length?(X(),_t(ZI,{key:1,data:B(Lh),size:t.value},{default:jn(({item:i})=>[z(B(lae),{class:"mb-1",conn:i},null,8,["conn"])]),_:1},8,["data","size"])):(X(),q("div",uae,ne(n.$t("noContent")),1))}}),fae={class:"modal-box relative max-h-[90dvh] overflow-hidden p-0 max-md:max-h-[70dvh]"},dae={method:"dialog"},hae={class:"btn btn-circle btn-ghost btn-xs absolute top-1 right-1 z-10 outline-hidden"},id=tt({__name:"DialogWrapper",props:M1({noPadding:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Me(),n=oS(e,"modelValue");return Bt(n,r=>{var i,o;r?(i=t.value)==null||i.showModal():(o=t.value)==null||o.close()}),(r,i)=>(X(),q("dialog",{ref_key:"modalRef",ref:t,class:"modal",onClose:i[0]||(i[0]=o=>n.value=!1)},[D("div",fae,[D("form",dae,[D("button",hae,[z(B($f),{class:"h-4 w-4"})])]),D("div",{class:mt(["max-h-[90dvh] overflow-y-auto max-md:max-h-[70dvh]",r.noPadding?"p-0":"p-4"])},[bf(r.$slots,"default")],2)]),i[1]||(i[1]=D("form",{method:"dialog",class:"modal-backdrop"},[D("button",null,"close")],-1))],544))}});var X1={d:(e,t)=>{for(var n in t)X1.o(t,n)&&!X1.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},gU={};function uA(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 mU(e,t){if(e){if(typeof e=="string")return uA(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)?uA(e,t):void 0}}function Y1(e){return function(t){if(Array.isArray(t))return uA(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||mU(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 K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}X1.d(gU,{Z:()=>yae});const wt=(YN={computed:()=>xe,createTextVNode:()=>qe,createVNode:()=>z,defineComponent:()=>tt,reactive:()=>_a,ref:()=>Me,watch:()=>Bt,watchEffect:()=>iS},mC={},X1.d(mC,YN),mC),pae=(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])}}),vae=(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)])}}),gae=(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 YN,mC;function cA(e){return cA=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},cA(e)}function yU(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Kc(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,h=f===void 0?1:f,d=yU(e);if(d==="array"){var v=KN(e.map(function(_,b,S){return Kc(_,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==S.length-1,length:h,type:l})}));return[Kc("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(v,Kc("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var m=Object.keys(e),y=KN(m.map(function(_,b,S){return Kc(e[_],/^[a-zA-Z_]\w*$/.test(_)?"".concat(t,".").concat(_):"".concat(t,'["').concat(_,'"]'),n+1,{key:_,showComma:b!==S.length-1,length:h,type:l})}));return[Kc("{",t,n,{showComma:!1,key:o,index:a,length:m.length,type:"objectStart"})[0]].concat(y,Kc("}",t,n,{showComma:c,length:m.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:h,type:l}]}function KN(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Y1(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,Y1(r)):n.push(r)}return n}function fA(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(cA(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return fA(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=fA(e[i],t);return t.set(e,r),r}function ZN(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 qN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZN(Object(n),!0).forEach(function(r){K1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _U={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 mae=(0,wt.defineComponent)({name:"TreeNode",props:qN(qN({},_U),{},{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 yU(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(b){var S,w,T=(w=(S=b.target)===null||S===void 0?void 0:S.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 b,S=(b=e.node)===null||b===void 0?void 0:b.content;return S===null?S="null":S===void 0&&(S="undefined"),r.value==="string"?'"'.concat(S,'"'):S+""}),h=function(){var b=e.renderNodeValue;return b?b({node:e.node,defaultValue:f.value}):f.value},d=function(){n("bracketsClick",!e.collapsed,e.node)},v=function(){n("iconClick",!e.collapsed,e.node)},m=function(){n("selectedChange",e.node)},y=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},_=function(b){if(e.editable&&!u.editing){u.editing=!0;var S=function w(T){var C;T.target!==b.target&&((C=T.target)===null||C===void 0?void 0:C.parentElement)!==b.target&&(u.editing=!1,document.removeEventListener("click",w))};document.removeEventListener("click",S),document.addEventListener("click",S)}};return function(){var b,S=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:y,style:e.style},[e.showLineNumber&&(0,wt.createVNode)("span",{class:"vjs-node-index"},[S.id+1]),e.showSelectController&&l.value&&S.type!=="objectEnd"&&S.type!=="arrayEnd"&&(0,wt.createVNode)(vae,{isMultiple:a.value,checked:e.checked,onChange:m},null),(0,wt.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(S.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)(gae,{nodeType:S.type,onClick:v},null)]),S.key&&(0,wt.createVNode)("span",{class:"vjs-key"},[(b=e.renderNodeKey,b?b({node:e.node,defaultKey:o.value||""}):o.value),(0,wt.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,wt.createVNode)("span",null,[S.type!=="content"&&S.content?(0,wt.createVNode)(pae,{data:S.content.toString(),onClick:d},null):(0,wt.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:_,onDblclick:e.editable&&e.editableTrigger==="dblclick"?_: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):h()]),S.showComma&&(0,wt.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,wt.createVNode)("span",{class:"vjs-comment"},[(0,wt.createTextVNode)(" // "),S.length,(0,wt.createTextVNode)(" items ")])])])}}});function JN(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?JN(Object(n),!0).forEach(function(r){K1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const yae=(0,wt.defineComponent)({name:"Tree",props:Eo(Eo({},_U),{},{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 Kc(e.data,e.rootPath)}),a=function(S,w){return o.value.reduce(function(T,C){var E,R=C.level>=S||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),{},K1({},C.path,1))},{})},s=(0,wt.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,wt.computed)(function(){for(var S=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(S&&S.path===E.path){var I=S.type==="objectStart",P=Eo(Eo(Eo({},E),S),{},{showComma:E.showComma,content:I?"{...}":"[...]",type:I?"objectCollapsed":"arrayCollapsed"});S=null,w.push(P)}else{if(R&&!S){S=E;continue}if(S)continue;w.push(E)}}return w}),u=(0,wt.computed)(function(){var S=e.selectedValue;return S&&e.selectableType==="multiple"&&Array.isArray(S)?S:[S]}),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 S=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>S.length?S.length-T:E;R<0&&(R=0);var I=R+T;s.translateY=R*e.itemHeight,s.visibleData=S.filter(function(P,M){return M>=R&&M<I})}else s.visibleData=S},h=function(){f()},d=function(S){var w,T,C=S.path,E=e.selectableType;if(E==="multiple"){var R=u.value.findIndex(function(L){return L===C}),I=Y1(u.value);R!==-1?I.splice(R,1):I.push(C),n("update:selectedValue",I),n("selectedChange",I,Y1(u.value))}else if(E==="single"&&u.value[0]!==C){var P=(w=u.value,T=1,function(L){if(Array.isArray(L))return L}(w)||function(L,k){var $=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if($!=null){var W,N,K=[],Y=!0,ae=!1;try{for($=$.call(L);!(Y=(W=$.next()).done)&&(K.push(W.value),!k||K.length!==k);Y=!0);}catch(ge){ae=!0,N=ge}finally{try{Y||$.return==null||$.return()}finally{if(ae)throw N}}return K}}(w,T)||mU(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],M=C;n("update:selectedValue",M),n("selectedChange",M,P)}},v=function(S){n("nodeClick",S)},m=function(S,w){if(S)s.hiddenPaths=Eo(Eo({},s.hiddenPaths),{},K1({},w,1));else{var T=Eo({},s.hiddenPaths);delete T[w],s.hiddenPaths=T}},y=function(S,w){e.collapsedOnClickBrackets&&m(S,w.path),n("bracketsClick",S,w)},_=function(S,w){m(S,w.path),n("iconClick",S,w)},b=function(S,w){var T=fA(e.data),C=e.rootPath;new Function("data","val","data".concat(w.slice(C.length),"=val"))(T,S),n("update:data",T)};return(0,wt.watchEffect)(function(){c.value&&function(S){throw new Error("[VueJSONPretty] ".concat(S))}(c.value)}),(0,wt.watchEffect)(function(){l.value&&f()}),(0,wt.watch)(function(){return e.deep},function(S){S&&(s.hiddenPaths=a(S,e.collapsedNodeLength))}),(0,wt.watch)(function(){return e.collapsedNodeLength},function(S){S&&(s.hiddenPaths=a(e.deep,S))}),function(){var S,w,T=(S=e.renderNodeKey)!==null&&S!==void 0?S: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)(mae,{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:y,onIconClick:_,onSelectedChange:d,onValueChange:b,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?h: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 _ae=gU.Z;const bae={class:"flex h-full max-h-[69dvh] flex-col overflow-hidden py-4 md:max-h-[89dvh]"},Sae={key:0,class:"min-h-12 shrink-0 px-4 pt-2 text-sm"},wae={class:"flex flex-wrap items-center gap-1"},xae={class:"flex flex-wrap"},Cae={key:0,class:"mr-3 flex items-center gap-1"},Tae={class:"flex items-center gap-1"},Eae=tt({__name:"ConnectionDetails",setup(e){const{infoConn:t,connectionDetailModalShow:n}=qI(),r=Me(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=xe(()=>{var l;return(l=t.value)==null?void 0:l.metadata.destinationIP}),s=xe(()=>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,uM((c=t.value)==null?void 0:c.metadata.destinationIP).then(f=>{r.value=f}))}}),(l,u)=>(X(),_t(id,{modelValue:B(n),"onUpdate:modelValue":u[0]||(u[0]=c=>pt(n)?n.value=c:null),"no-padding":!0},{default:jn(()=>{var c,f,h,d,v,m,y,_,b,S,w,T,C;return[D("div",bae,[z(B(_ae),{data:B(t),class:"overflow-y-auto px-4"},null,8,["data"]),a.value&&!s.value?(X(),q("div",Sae,[r.value?(X(),q(Ge,{key:0},[D("div",wae,[z(B(Rl),{class:"h-4 w-4 shrink-0"}),D("div",null,ne((c=r.value)==null?void 0:c.ip),1),D("div",null,"( AS"+ne((f=r.value)==null?void 0:f.asn)+" )",1)]),D("div",xae,[(h=r.value)!=null&&h.country?(X(),q("div",Cae,[z(B(ote),{class:"h-4 w-4 shrink-0"}),(d=r.value)!=null&&d.city&&((v=r.value)==null?void 0:v.city)!==((m=r.value)==null?void 0:m.country)?(X(),q(Ge,{key:0},[qe(ne((y=r.value)==null?void 0:y.city)+", ",1)],64)):(_=r.value)!=null&&_.region&&((b=r.value)==null?void 0:b.region)!==((S=r.value)==null?void 0:S.country)?(X(),q(Ge,{key:1},[qe(ne((w=r.value)==null?void 0:w.region)+", ",1)],64)):it("",!0),qe(" "+ne((T=r.value)==null?void 0:T.country),1)])):it("",!0),D("div",Tae,[z(B(lte),{class:"h-4 w-4 shrink-0"}),qe(" "+ne((C=r.value)==null?void 0:C.organization),1)])])],64)):it("",!0)])):it("",!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 Cu(e,t){return typeof e=="function"?e(t):e}function $o(e,t){return n=>{t.setState(r=>({...r,[e]:Cu(n,r[e])}))}}function Tu(e){return e instanceof Function}function Aae(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function bU(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,h=f/16,d=(v,m)=>{for(v=String(v);v.length<m;)v=" "+v;return v};console.info(`%c⏱ ${d(f,5)} /${d(c,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*h,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 Iae(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 Rae(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=h=>{let d=h;for(const m of l.split(".")){var v;d=(v=d)==null?void 0:v[m]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:At(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},It(e.options,"debugColumns")),getLeafColumns:At(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let v=f.columns.flatMap(m=>m.getLeafColumns());return h(v)}return[f]},It(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const ri="debugHeaders";function QN(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 Pae={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(h=>h.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(h=>h.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return h0(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))),h0(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 h0(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 h0(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 h0(e,t,n,r){var i,o;let a=0;const s=function(h,d){d===void 0&&(d=1),a=Math.max(a,d),h.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&s(v.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const v={depth:d,id:[r,`${d}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(y=>{const _=[...m].reverse()[0],b=y.column.depth===v.depth;let S,w=!1;if(b&&y.column.parent?S=y.column.parent:(S=y.column,w=!0),_&&(_==null?void 0:_.column)===S)_.subHeaders.push(y);else{const T=QN(n,S,{id:[r,d,S.id,y==null?void 0:y.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${m.filter(C=>C.column===S).length}`:void 0,depth:d,index:m.length});T.subHeaders.push(y),m.push(T)}v.headers.push(y),y.headerGroup=v}),l.push(v),d>0&&u(m,d-1)},c=t.map((h,d)=>QN(n,h,{depth:a,index:d}));u(c,a-1),l.reverse();const f=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,y=0,_=[0];v.subHeaders&&v.subHeaders.length?(_=[],f(v.subHeaders).forEach(S=>{let{colSpan:w,rowSpan:T}=S;m+=w,_.push(T)})):m=1;const b=Math.min(..._);return y=y+b,v.colSpan=m,v.rowSpan=y,{colSpan:m,rowSpan:y}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const SU=(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:()=>bU(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=>Iae(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},Mae={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()}}},wU=(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))};wU.autoRemove=e=>qa(e);const xU=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};xU.autoRemove=e=>qa(e);const CU=(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())};CU.autoRemove=e=>qa(e);const TU=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};TU.autoRemove=e=>qa(e);const EU=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});EU.autoRemove=e=>qa(e)||!(e!=null&&e.length);const AU=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});AU.autoRemove=e=>qa(e)||!(e!=null&&e.length);const IU=(e,t,n)=>e.getValue(t)===n;IU.autoRemove=e=>qa(e);const RU=(e,t,n)=>e.getValue(t)==n;RU.autoRemove=e=>qa(e);const eR=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};eR.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]};eR.autoRemove=e=>qa(e)||qa(e[0])&&qa(e[1]);const il={includesString:wU,includesStringSensitive:xU,equalsString:CU,arrIncludes:TU,arrIncludesAll:EU,arrIncludesSome:AU,equals:IU,weakEquals:RU,inNumberRange:eR};function qa(e){return e==null||e===""}const Oae={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 Tu(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=Cu(n,o?o.value:void 0);if(ek(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=Cu(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(ek(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 ek(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Dae=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),Lae=(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},Nae=(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},kae=(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]},Fae=(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},$ae=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!Aae(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},Bae=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Vae=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Uae=(e,t)=>t.length,yC={sum:Dae,min:Lae,max:Nae,extent:kae,mean:Fae,median:$ae,unique:Bae,uniqueCount:Vae,count:Uae},Hae={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 yC.sum;if(Object.prototype.toString.call(r)==="[object Date]")return yC.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Tu(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:yC[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 zae(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 Gae={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 zae(o,n,r)},It(e.options,"debugTable"))}},_C=()=>({left:[],right:[]}),Wae={getInitialState:e=>({columnPinning:_C(),...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?_C():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:_C())},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"))}},p0={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},bC=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),jae={getDefaultColumnDef:()=>p0,getInitialState:e=>({columnSizing:{},columnSizingInfo:bC(),...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:p0.minSize,(r=o??e.columnDef.size)!=null?r:p0.size),(i=e.columnDef.maxSize)!=null?i:p0.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(),SC(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[r.id,r.getSize()]],l=SC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(_,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var w,T;const C=t.options.columnResizeDirection==="rtl"?-1:1,E=(b-((w=S==null?void 0:S.startOffset)!=null?w:0))*C,R=Math.max(E/((T=S==null?void 0:S.startSize)!=null?T:0),-.999999);return S.columnSizingStart.forEach(I=>{let[P,M]=I;u[P]=Math.round(Math.max(M+M*R,0)*100)/100}),{...S,deltaOffset:E,deltaPercentage:R}}),(t.options.columnResizeMode==="onChange"||_==="end")&&t.setColumnSizing(S=>({...S,...u})))},f=_=>c("move",_),h=_=>{c("end",_),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=n||typeof document<"u"?document:null,v={moveHandler:_=>f(_.clientX),upHandler:_=>{d==null||d.removeEventListener("mousemove",v.moveHandler),d==null||d.removeEventListener("mouseup",v.upHandler),h(_.clientX)}},m={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),f(_.touches[0].clientX),!1),upHandler:_=>{var b;d==null||d.removeEventListener("touchmove",m.moveHandler),d==null||d.removeEventListener("touchend",m.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),h((b=_.touches[0])==null?void 0:b.clientX)}},y=Xae()?{passive:!1}:!1;SC(o)?(d==null||d.addEventListener("touchmove",m.moveHandler,y),d==null||d.addEventListener("touchend",m.upHandler,y)):(d==null||d.addEventListener("mousemove",v.moveHandler,y),d==null||d.addEventListener("mouseup",v.upHandler,y)),t.setColumnSizingInfo(_=>({..._,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?bC():(n=e.initialState.columnSizingInfo)!=null?n:bC())},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 v0=null;function Xae(){if(typeof v0=="boolean")return v0;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 v0=e,v0}function SC(e){return e.type==="touchstart"}const Yae={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 Kae={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()}}},Zae={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 Tu(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)}}},qae={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()}}}},dA=0,hA=10,wC=()=>({pageIndex:dA,pageSize:hA}),Jae={getInitialState:e=>({...e,pagination:{...wC(),...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=>Cu(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?wC():(i=e.initialState.pagination)!=null?i:wC())},e.setPageIndex=r=>{e.setPagination(i=>{let o=Cu(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?dA:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:dA)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?hA:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:hA)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,Cu(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=Cu(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}}},xC=()=>({top:[],bottom:[]}),Qae={getInitialState:e=>({rowPinning:xC(),...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,h;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var d,v;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).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?xC():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:xC())},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"))}},ese={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=>{pA(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?CC(e,n):{rows:[],flatRows:[],rowsById:{}},It(e.options,"debugTable")),e.getFilteredSelectedRowModel=At(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?CC(e,n):{rows:[],flatRows:[],rowsById:{}},It(e.options,"debugTable")),e.getGroupedSelectedRowModel=At(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?CC(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 pA(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return tR(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return vA(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return vA(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)}}}},pA=(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=>pA(e,s.id,n,r,i))};function CC(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=tR(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 tR(e,t){var n;return(n=t[e.id])!=null?n:!1}function vA(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()&&(tR(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=vA(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const gA=/([0-9]+)/gm,tse=(e,t,n)=>PU(Wu(e.getValue(n)).toLowerCase(),Wu(t.getValue(n)).toLowerCase()),nse=(e,t,n)=>PU(Wu(e.getValue(n)),Wu(t.getValue(n))),rse=(e,t,n)=>nR(Wu(e.getValue(n)).toLowerCase(),Wu(t.getValue(n)).toLowerCase()),ise=(e,t,n)=>nR(Wu(e.getValue(n)),Wu(t.getValue(n))),ose=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},ase=(e,t,n)=>nR(e.getValue(n),t.getValue(n));function nR(e,t){return e===t?0:e>t?1:-1}function Wu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function PU(e,t){const n=e.split(gA).filter(Boolean),r=t.split(gA).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 Yp={alphanumeric:tse,alphanumericCaseSensitive:nse,text:rse,textCaseSensitive:ise,datetime:ose,basic:ase},sse={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 Yp.datetime;if(typeof o=="string"&&(r=!0,o.split(gA).length>1))return Yp.alphanumeric}return r?Yp.text:Yp.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 Tu(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:Yp[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(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.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 h;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=a.filter(d=>d.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())}},lse=[Pae,Yae,Gae,Wae,Mae,Oae,Kae,Zae,sse,Hae,qae,Jae,Qae,ese,jae];function use(e){var t,n;const r=[...lse,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((h,d)=>Object.assign(h,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),a=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(h=>{var d;l=(d=h.getInitialState==null?void 0:h.getInitialState(l))!=null?d:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const d=Cu(h,i.options);i.options=a(d)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,d,v)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(h,d,v))!=null?m:`${v?[v.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,d)=>{let v=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!v&&(v=i.getCoreRowModel().rowsById[h],!v))throw new Error;return v},_getDefaultColumnDef:At(()=>[i.options.defaultColumn],h=>{var d;return h=(d=h)!=null?d:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,y;return(m=(y=v.renderValue())==null||y.toString==null?void 0:y.toString())!=null?m:null},...i._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...h}},It(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:At(()=>[i._getColumnDefs()],h=>{const d=function(v,m,y){return y===void 0&&(y=0),v.map(_=>{const b=Rae(i,_,y,m),S=_;return b.columns=S.columns?d(S.columns,b,y+1):[],b})};return d(h)},It(e,"debugColumns")),getAllFlatColumns:At(()=>[i.getAllColumns()],h=>h.flatMap(d=>d.getFlatColumns()),It(e,"debugColumns")),_getAllFlatColumnsById:At(()=>[i.getAllFlatColumns()],h=>h.reduce((d,v)=>(d[v.id]=v,d),{}),It(e,"debugColumns")),getAllLeafColumns:At(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,d)=>{let v=h.flatMap(m=>m.getLeafColumns());return d(v)},It(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;h<i._features.length;h++){const d=i._features[h];d==null||d.createTable==null||d.createTable(i)}return i}function cse(){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=SU(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 fse(){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:dse(n),It(e.options,"debugTable"))}function dse(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 hse(){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],h=pse(l,f);return Array.from(h.entries()).map((v,m)=>{let[y,_]=v,b=`${f}:${y}`;b=c?`${c}>${b}`:b;const S=a(_,u+1,b);S.forEach(C=>{C.parentId=b});const w=u?bU(_,C=>C.subRows):_,T=SU(e,b,w[0].original,m,u,void 0,c);return Object.assign(T,{groupingColumnId:f,groupingValue:y,subRows:S,leafRows:w,getValue:C=>{if(r.includes(C)){if(T._valuesCache.hasOwnProperty(C))return T._valuesCache[C];if(_[0]){var E;T._valuesCache[C]=(E=_[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,_),T._groupingValuesCache[C]}}),S.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 pse(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 vse(){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 d=0;d<o.length;d+=1){var h;const v=o[d],m=a[v.id],y=m.sortUndefined,_=(h=v==null?void 0:v.desc)!=null?h:!1;let b=0;if(y){const S=c.getValue(v.id),w=f.getValue(v.id),T=S===void 0,C=w===void 0;if(T||C){if(y==="first")return T?-1:1;if(y==="last")return T?1:-1;b=T&&C?0:T?y:-y}}if(b===0&&(b=m.sortingFn(c,f,v.id)),b!==0)return _&&(b*=-1),m.invertSorting&&(b*=-1),b}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 g0(){return!0}const gse=Symbol("merge-proxy"),mse={get(e,t,n){return t===gse?n:e.get(t)},has(e,t){return e.has(t)},set:g0,deleteProperty:g0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:g0,deleteProperty:g0}},ownKeys(e){return e.keys()}};function TC(e){return"value"in e?e.value:e}function Tv(){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=TC(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in TC(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i<t.length;i++)r.push(...Object.keys(TC(t[i])));return[...Array.from(new Set(r))]}},mse)}const EC=tt({props:["render","props"],setup:e=>()=>typeof e.render=="function"||typeof e.render=="object"?ca(e.render,e.props):e.render});function tk(e){return Tv(e,{data:B(e.data)})}function yse(e){const t=pt(e.data),n=Tv({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:Tv(o,a)}},t?tk(e):e),r=use(n);if(t){const o=Si(e.data);Bt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Me(r.initialState);return iS(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return Tv(o,t?tk(e):e,{state:Tv(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 rR="-",_se=e=>{const t=Sse(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(rR);return s[0]===""&&s.length!==1&&s.shift(),MU(s,t)||bse(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},MU=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?MU(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(rR);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},nk=/^\[(.+)\]$/,bse=e=>{if(nk.test(e)){const t=nk.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sse=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)mA(n[i],r,i,t);return r},mA=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:rk(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(wse(i)){mA(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{mA(a,rk(t,o),n,r)})})},rk=(e,t)=>{let n=e;return t.split(rR).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},wse=e=>e.isThemeGetter,xse=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)}}},yA="!",_A=":",Cse=_A.length,Tse=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===_A){o.push(i.slice(l,v)),l=v+Cse;continue}if(m==="/"){u=v;continue}}m==="["?a++:m==="]"?a--:m==="("?s++:m===")"&&s--}const c=o.length===0?i:i.substring(l),f=Ese(c),h=f!==c,d=u&&u>l?u-l:void 0;return{modifiers:o,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}};if(t){const i=t+_A,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},Ese=e=>e.endsWith(yA)?e.substring(0,e.length-1):e.startsWith(yA)?e.substring(1):e,Ase=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}},Ise=e=>({cache:xse(e.cacheSize),parseClassName:Tse(e),sortModifiers:Ase(e),..._se(e)}),Rse=/\s+/,Pse=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(Rse);let l="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:f,modifiers:h,hasImportantModifier:d,baseClassName:v,maybePostfixModifierPosition:m}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let y=!!m,_=r(y?v.substring(0,m):v);if(!_){if(!y){l=c+(l.length>0?" "+l:l);continue}if(_=r(v),!_){l=c+(l.length>0?" "+l:l);continue}y=!1}const b=o(h).join(":"),S=d?b+yA:b,w=S+_;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(S+E)}l=c+(l.length>0?" "+l:l)}return l};function Mse(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=OU(t))&&(r&&(r+=" "),r+=n);return r}const OU=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=OU(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ose(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((c,f)=>f(c),e());return n=Ise(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=Pse(l,n);return i(l,c),c}return function(){return o(Mse.apply(null,arguments))}}const $r=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},DU=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,LU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dse=/^\d+\/\d+$/,Lse=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nse=/\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$/,kse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fse=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Id=e=>Dse.test(e),on=e=>!!e&&!Number.isNaN(Number(e)),bc=e=>!!e&&Number.isInteger(Number(e)),ik=e=>e.endsWith("%")&&on(e.slice(0,-1)),Zl=e=>Lse.test(e),Bse=()=>!0,Vse=e=>Nse.test(e)&&!kse.test(e),iR=()=>!1,Use=e=>Fse.test(e),Hse=e=>$se.test(e),zse=e=>!lt(e)&&!ut(e),Gse=e=>op(e,FU,iR),lt=e=>DU.test(e),Sc=e=>op(e,$U,Vse),AC=e=>op(e,tle,on),Wse=e=>op(e,NU,iR),jse=e=>op(e,kU,Hse),Xse=e=>op(e,iR,Use),ut=e=>LU.test(e),m0=e=>ap(e,$U),Yse=e=>ap(e,nle),Kse=e=>ap(e,NU),Zse=e=>ap(e,FU),qse=e=>ap(e,kU),Jse=e=>ap(e,rle,!0),op=(e,t,n)=>{const r=DU.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ap=(e,t,n=!1)=>{const r=LU.exec(e);return r?r[1]?t(r[1]):n:!1},NU=e=>e==="position",Qse=new Set(["image","url"]),kU=e=>Qse.has(e),ele=new Set(["length","size","percentage"]),FU=e=>ele.has(e),$U=e=>e==="length",tle=e=>e==="number",nle=e=>e==="family-name",rle=e=>e==="shadow",ile=()=>{const e=$r("color"),t=$r("font"),n=$r("text"),r=$r("font-weight"),i=$r("tracking"),o=$r("leading"),a=$r("breakpoint"),s=$r("container"),l=$r("spacing"),u=$r("radius"),c=$r("shadow"),f=$r("inset-shadow"),h=$r("drop-shadow"),d=$r("blur"),v=$r("perspective"),m=$r("aspect"),y=$r("ease"),_=$r("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["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=()=>[Id,"full","auto",...C()],R=()=>[bc,"none","subgrid",ut,lt],I=()=>["auto",{span:["full",bc,ut,lt]},ut,lt],P=()=>[bc,"auto",ut,lt],M=()=>["auto","min","max","fr",ut,lt],L=()=>["start","end","center","between","around","evenly","stretch","baseline"],k=()=>["start","end","center","stretch"],$=()=>["auto",...C()],W=()=>[Id,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],N=()=>[e,ut,lt],K=()=>[ik,Sc],Y=()=>["","none","full",u,ut,lt],ae=()=>["",on,m0,Sc],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"],Oe=()=>["","none",d,ut,lt],ke=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ut,lt],Ue=()=>["none",on,ut,lt],Le=()=>["none",on,ut,lt],Xe=()=>[on,ut,lt],fe=()=>[Id,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zl],breakpoint:[Zl],color:[Bse],container:[Zl],"drop-shadow":[Zl],ease:["in","out","in-out"],font:[zse],"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",on],text:[Zl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Id,lt,ut,m]}],container:["container"],columns:[{columns:[on,lt,ut,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:[...S(),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:[bc,"auto",ut,lt]}],basis:[{basis:[Id,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[on,Id,"auto","initial","none",lt]}],grow:[{grow:["",on,ut,lt]}],shrink:[{shrink:["",on,ut,lt]}],order:[{order:[bc,"first","last","none",ut,lt]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...k(),"normal"]}],"justify-self":[{"justify-self":["auto",...k()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...k(),"baseline"]}],"align-self":[{self:["auto",...k(),"baseline"]}],"place-content":[{"place-content":L()}],"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,m0,Sc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ut,AC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ik,lt]}],"font-family":[{font:[Yse,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":[on,"none",ut,AC]}],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:[on,"from-font","auto",ut,Sc]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[on,"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:[...S(),Kse,Wse]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Zse,Gse]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bc,ut,lt],radial:["",ut,lt],conic:[bc,ut,lt]},qse,jse]}],"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:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"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":[on,ut,lt]}],"outline-w":[{outline:["",on,m0,Sc]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",c,Jse,Xse]}],"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":[on,Sc]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":N()}],opacity:[{opacity:[on,ut,lt]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none",ut,lt]}],blur:[{blur:Oe()}],brightness:[{brightness:[on,ut,lt]}],contrast:[{contrast:[on,ut,lt]}],"drop-shadow":[{"drop-shadow":["","none",h,ut,lt]}],grayscale:[{grayscale:["",on,ut,lt]}],"hue-rotate":[{"hue-rotate":[on,ut,lt]}],invert:[{invert:["",on,ut,lt]}],saturate:[{saturate:[on,ut,lt]}],sepia:[{sepia:["",on,ut,lt]}],"backdrop-filter":[{"backdrop-filter":["","none",ut,lt]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[on,ut,lt]}],"backdrop-contrast":[{"backdrop-contrast":[on,ut,lt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",on,ut,lt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[on,ut,lt]}],"backdrop-invert":[{"backdrop-invert":["",on,ut,lt]}],"backdrop-opacity":[{"backdrop-opacity":[on,ut,lt]}],"backdrop-saturate":[{"backdrop-saturate":[on,ut,lt]}],"backdrop-sepia":[{"backdrop-sepia":["",on,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:[on,"initial",ut,lt]}],ease:[{ease:["linear","initial",y,ut,lt]}],delay:[{delay:[on,ut,lt]}],animate:[{animate:["none",_,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:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],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:[on,m0,Sc,AC]}],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","*","**"]}},bi=Ose(ile),ole={class:"bg-base-100 sticky -top-2 z-10"},ale=["colSpan","onClick"],sle={class:"flex items-center gap-1"},lle=["onClick"],ule=["onDblclick","onMousedown","onTouchstart"],cle=["onClick"],fle={key:0,class:"flex items-center"},dle={class:"ml-1"},hle=tt({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=qI(),n=dt("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=xe(()=>U_.value===pS.MANUAL),{t:i}=Qr(),o=[{header:()=>i(ze.Close),enableSorting:!1,id:ze.Close,cell:({row:S})=>ca("button",{class:"btn btn-xs btn-circle",onClick:w=>{const T=S.original;w.stopPropagation(),ww(T.id)}},[ca($f,{class:"h-4 w-4"})])},{header:()=>i(ze.Type),id:ze.Type,accessorFn:N7},{header:()=>i(ze.Process),id:ze.Process,accessorFn:O7},{header:()=>i(ze.Host),id:ze.Host,accessorFn:M7},{header:()=>i(ze.SniffHost),id:ze.SniffHost,accessorFn:S=>S.metadata.sniffHost||"-"},{header:()=>i(ze.Rule),id:ze.Rule,accessorFn:S=>S.rulePayload?`${S.rule}: ${S.rulePayload}`:S.rule},{header:()=>i(ze.Chains),id:ze.Chains,accessorFn:Z2,cell:({row:S})=>{const w=[],T=S.original.chains;return T.forEach((C,E)=>{w.unshift(ca(Uf,{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 ${ph.value===ip.REVERSE&&"flex-row-reverse justify-end"} gap-1`},w)}},{header:()=>i(ze.ConnectTime),enableGrouping:!1,id:ze.ConnectTime,accessorFn:S=>Tw(S.start),sortingFn:(S,w)=>po(w.original.start).valueOf()-po(S.original.start).valueOf()},{header:()=>i(ze.DlSpeed),enableGrouping:!1,sortDescFirst:!0,id:ze.DlSpeed,accessorFn:S=>`${Gn(S.downloadSpeed)}/s`,sortingFn:(S,w)=>S.original.downloadSpeed-w.original.downloadSpeed},{header:()=>i(ze.UlSpeed),enableGrouping:!1,sortDescFirst:!0,id:ze.UlSpeed,accessorFn:S=>`${Gn(S.uploadSpeed)}/s`,sortingFn:(S,w)=>S.original.uploadSpeed-w.original.uploadSpeed},{header:()=>i(ze.Download),enableGrouping:!1,sortDescFirst:!0,id:ze.Download,accessorFn:S=>Gn(S.download),sortingFn:(S,w)=>S.original.download-w.original.download},{header:()=>i(ze.Upload),enableGrouping:!1,sortDescFirst:!0,id:ze.Upload,accessorFn:S=>Gn(S.upload),sortingFn:(S,w)=>S.original.upload-w.original.upload},{header:()=>i(ze.SourceIP),id:ze.SourceIP,accessorFn:S=>Vb(S.metadata.sourceIP)},{header:()=>i(ze.SourcePort),id:ze.SourcePort,accessorFn:S=>S.metadata.sourcePort},{header:()=>i(ze.Destination),id:ze.Destination,accessorFn:D7},{header:()=>i(ze.DestinationType),id:ze.DestinationType,accessorFn:L7},{header:()=>i(ze.RemoteAddress),id:ze.RemoteAddress,accessorFn:S=>S.metadata.remoteDestination||"-"}],a=Me([]),s=Me({}),l=dt("config/table-sorting",[]),u=yse({get data(){return Lh.value},columns:o,columnResizeMode:"onChange",columnResizeDirection:"ltr",state:{get columnOrder(){return xu.value},get columnVisibility(){return{...Object.fromEntries(Object.values(ze).map(S=>[S,!1])),...Object.fromEntries(xu.value.map(S=>[S,!0]))}},get grouping(){return a.value},get expanded(){return s.value},get sorting(){return l.value},get columnSizing(){return n.value}},onGroupingChange:S=>{Tu(S)?a.value=S(a.value):a.value=S},onExpandedChange:S=>{Tu(S)&&(s.value=S(s.value))},onSortingChange:S=>{Tu(S)?l.value=S(l.value):l.value=S},onColumnSizingChange:S=>{Tu(S)?n.value=S(n.value):n.value=S},getSortedRowModel:vse(),getGroupedRowModel:hse(),getExpandedRowModel:fse(),getCoreRowModel:cse()}),c=xe(()=>u.getRowModel().rows),f=Me(null),h=xe(()=>({count:c.value.length,getScrollElement:()=>f.value,estimateSize:()=>36,overscan:48})),d=rU(h),v=xe(()=>d.value.getVirtualItems()),m=xe(()=>d.value.getTotalSize()+24),y={[Hg.SMALL]:"table-xs",[Hg.LARGE]:"table-sm"},_=xe(()=>y[V_.value]),b=S=>{S.getIsGrouped()?S.getCanExpand()&&S.getToggleExpandedHandler()():t(S.original)};return(S,w)=>(X(),q("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"]))},[D("div",{style:lr({height:`${m.value}px`})},[D("table",{class:mt(["table-zebra table rounded-none shadow-md",_.value,r.value&&"table-fixed"]),style:lr(r.value&&{width:`${B(u).getCenterTotalSize()}px`})},[D("thead",ole,[(X(!0),q(Ge,null,qt(B(u).getHeaderGroups(),T=>(X(),q("tr",{key:T.id},[(X(!0),q(Ge,null,qt(T.headers,C=>(X(),q("th",{key:C.id,colSpan:C.colSpan,class:mt(["relative",C.column.getCanSort()?"cursor-pointer select-none":""]),style:lr(r.value&&{width:`${C.getSize()}px`}),onClick:E=>{var R;return(R=C.column.getToggleSortingHandler())==null?void 0:R(E)}},[D("div",sle,[C.column.getCanGroup()?(X(),q("button",{key:0,class:"cursor-pointer",onClick:gr(()=>C.column.getToggleGroupingHandler()(),["stop"])},[C.column.getIsGrouped()?(X(),_t(B(IL),{key:0,class:"h-4 w-4"})):(X(),_t(B(RL),{key:1,class:"h-4 w-4"}))],8,lle)):it("",!0),C.isPlaceholder?it("",!0):(X(),_t(B(EC),{key:1,render:C.column.columnDef.header,props:C.getContext()},null,8,["render","props"])),C.column.getIsSorted()==="asc"?(X(),_t(B(Pm),{key:2,class:"h-4 w-4"})):it("",!0),C.column.getIsSorted()==="desc"?(X(),_t(B(uS),{key:3,class:"h-4 w-4"})):it("",!0)]),r.value?(X(),q("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,ule)):it("",!0)],14,ale))),128))]))),128))]),D("tbody",null,[(X(!0),q(Ge,null,qt(v.value,(T,C)=>(X(),q("tr",{key:T.key.toString(),style:lr({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=>b(c.value[T.index])},[(X(!0),q(Ge,null,qt(c.value[T.index].getVisibleCells(),E=>(X(),q("td",{key:E.id,class:mt([r.value?"truncate text-sm":B(bi)("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-xs truncate",[B(ze).Chains,B(ze).Rule].includes(E.column.id)&&"max-w-xl truncate")])},[E.column.getIsGrouped()?(X(),q(Ge,{key:0},[c.value[T.index].getCanExpand()?(X(),q("div",fle,[c.value[T.index].getIsExpanded()?(X(),_t(B(IL),{key:0,class:"mr-1 inline-block h-4 w-4"})):(X(),_t(B(RL),{key:1,class:"mr-1 inline-block h-4 w-4"})),z(B(EC),{render:E.column.columnDef.cell,props:E.getContext()},null,8,["render","props"]),D("span",dle," ("+ne(c.value[T.index].subRows.length)+") ",1)])):it("",!0)],64)):(X(),_t(B(EC),{key:1,render:E.getIsAggregated()?E.column.columnDef.aggregatedCell:E.column.columnDef.cell,props:E.getContext()},null,8,["render","props"]))],2))),128))],12,cle))),128))])],6)],4)],544))}}),ple={class:"size-full overflow-x-hidden"},vle=tt({__name:"ConnectionsPage",setup(e){return(t,n)=>(X(),q("div",ple,[B(Mo)?(X(),_t(cae,{key:0,class:"overflow-x-hidden p-2"})):(X(),_t(hle,{key:1})),z(Eae)]))}});var uo="top",xa="bottom",Ca="right",co="left",oR="auto",km=[uo,xa,Ca,co],kh="start",Zg="end",gle="clippingParents",BU="viewport",Kp="popper",mle="reference",ok=km.reduce(function(e,t){return e.concat([t+"-"+kh,t+"-"+Zg])},[]),VU=[].concat(km,[oR]).reduce(function(e,t){return e.concat([t,t+"-"+kh,t+"-"+Zg])},[]),yle="beforeRead",_le="read",ble="afterRead",Sle="beforeMain",wle="main",xle="afterMain",Cle="beforeWrite",Tle="write",Ele="afterWrite",Ale=[yle,_le,ble,Sle,wle,xle,Cle,Tle,Ele];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 Hf(e){var t=Bo(e).Element;return e instanceof t||e instanceof Element}function ga(e){var t=Bo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function aR(e){if(typeof ShadowRoot>"u")return!1;var t=Bo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ile(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];!ga(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 Rle(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},{});!ga(i)||!Rs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const UU={name:"applyStyles",enabled:!0,phase:"write",fn:Ile,effect:Rle,requires:["computeStyles"]};function xs(e){return e.split("-")[0]}var If=Math.max,Z1=Math.min,Fh=Math.round;function bA(){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 HU(){return!/^((?!chrome|android).)*safari/i.test(bA())}function $h(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ga(e)&&(i=e.offsetWidth>0&&Fh(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Fh(r.height)/e.offsetHeight||1);var a=Hf(e)?Bo(e):window,s=a.visualViewport,l=!HU()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:c,right:u+f,bottom:c+h,left:u,x:u,y:c}}function sR(e){var t=$h(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 zU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&aR(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 Ple(e){return["table","td","th"].indexOf(Rs(e))>=0}function ac(e){return((Hf(e)?e.ownerDocument:e.document)||window.document).documentElement}function bS(e){return Rs(e)==="html"?e:e.assignedSlot||e.parentNode||(aR(e)?e.host:null)||ac(e)}function ak(e){return!ga(e)||Pl(e).position==="fixed"?null:e.offsetParent}function Mle(e){var t=/firefox/i.test(bA()),n=/Trident/i.test(bA());if(n&&ga(e)){var r=Pl(e);if(r.position==="fixed")return null}var i=bS(e);for(aR(i)&&(i=i.host);ga(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 Fm(e){for(var t=Bo(e),n=ak(e);n&&Ple(n)&&Pl(n).position==="static";)n=ak(n);return n&&(Rs(n)==="html"||Rs(n)==="body"&&Pl(n).position==="static")?t:n||Mle(e)||t}function lR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ig(e,t,n){return If(e,Z1(t,n))}function Ole(e,t,n){var r=ig(e,t,n);return r>n?n:r}function GU(){return{top:0,right:0,bottom:0,left:0}}function WU(e){return Object.assign({},GU(),e)}function jU(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Dle=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WU(typeof t!="number"?t:jU(t,km))};function Lle(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=lR(s),u=[co,Ca].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=Dle(i.padding,n),h=sR(o),d=l==="y"?uo:co,v=l==="y"?xa:Ca,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],_=Fm(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=m/2-y/2,w=f[d],T=b-h[c]-f[v],C=b/2-h[c]/2+S,E=ig(w,C,T),R=l;n.modifiersData[r]=(t={},t[R]=E,t.centerOffset=E-C,t)}}function Nle(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)||zU(t.elements.popper,i)&&(t.elements.arrow=i))}const kle={name:"arrow",enabled:!0,phase:"main",fn:Lle,effect:Nle,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bh(e){return e.split("-")[1]}var Fle={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $le(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Fh(n*i)/i||0,y:Fh(r*i)/i||0}}function sk(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,h=a.x,d=h===void 0?0:h,v=a.y,m=v===void 0?0:v,y=typeof c=="function"?c({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),S=co,w=uo,T=window;if(u){var C=Fm(n),E="clientHeight",R="clientWidth";if(C===Bo(n)&&(C=ac(n),Pl(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",R="scrollWidth")),C=C,i===uo||(i===co||i===Ca)&&o===Zg){w=xa;var I=f&&C===T&&T.visualViewport?T.visualViewport.height:C[E];m-=I-r.height,m*=l?1:-1}if(i===co||(i===uo||i===xa)&&o===Zg){S=Ca;var P=f&&C===T&&T.visualViewport?T.visualViewport.width:C[R];d-=P-r.width,d*=l?1:-1}}var M=Object.assign({position:s},u&&Fle),L=c===!0?$le({x:d,y:m},Bo(n)):{x:d,y:m};if(d=L.x,m=L.y,l){var k;return Object.assign({},M,(k={},k[w]=b?"0":"",k[S]=_?"0":"",k.transform=(T.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",k))}return Object.assign({},M,(t={},t[w]=b?m+"px":"",t[S]=_?d+"px":"",t.transform="",t))}function Ble(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:Bh(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,sk(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,sk(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 Vle={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ble,data:{}};var y0={passive:!0};function Ule(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,y0)}),s&&l.addEventListener("resize",n.update,y0),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,y0)}),s&&l.removeEventListener("resize",n.update,y0)}}const Hle={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ule,data:{}};var zle={left:"right",right:"left",bottom:"top",top:"bottom"};function j_(e){return e.replace(/left|right|bottom|top/g,function(t){return zle[t]})}var Gle={start:"end",end:"start"};function lk(e){return e.replace(/start|end/g,function(t){return Gle[t]})}function uR(e){var t=Bo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cR(e){return $h(ac(e)).left+uR(e).scrollLeft}function Wle(e,t){var n=Bo(e),r=ac(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=HU();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+cR(e),y:l}}function jle(e){var t,n=ac(e),r=uR(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=If(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=If(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+cR(e),l=-r.scrollTop;return Pl(i||n).direction==="rtl"&&(s+=If(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function fR(e){var t=Pl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function XU(e){return["html","body","#document"].indexOf(Rs(e))>=0?e.ownerDocument.body:ga(e)&&fR(e)?e:XU(bS(e))}function og(e,t){var n;t===void 0&&(t=[]);var r=XU(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Bo(r),a=i?[o].concat(o.visualViewport||[],fR(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(og(bS(a)))}function SA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xle(e,t){var n=$h(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 uk(e,t,n){return t===BU?SA(Wle(e,n)):Hf(t)?Xle(t,n):SA(jle(ac(e)))}function Yle(e){var t=og(bS(e)),n=["absolute","fixed"].indexOf(Pl(e).position)>=0,r=n&&ga(e)?Fm(e):e;return Hf(r)?t.filter(function(i){return Hf(i)&&zU(i,r)&&Rs(i)!=="body"}):[]}function Kle(e,t,n,r){var i=t==="clippingParents"?Yle(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=uk(e,u,r);return l.top=If(c.top,l.top),l.right=Z1(c.right,l.right),l.bottom=Z1(c.bottom,l.bottom),l.left=If(c.left,l.left),l},uk(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 YU(e){var t=e.reference,n=e.element,r=e.placement,i=r?xs(r):null,o=r?Bh(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case uo:l={x:a,y:t.y-n.height};break;case xa:l={x:a,y:t.y+t.height};break;case Ca:l={x:t.x+t.width,y:s};break;case co:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?lR(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case kh: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?gle:s,u=n.rootBoundary,c=u===void 0?BU:u,f=n.elementContext,h=f===void 0?Kp:f,d=n.altBoundary,v=d===void 0?!1:d,m=n.padding,y=m===void 0?0:m,_=WU(typeof y!="number"?y:jU(y,km)),b=h===Kp?mle:Kp,S=e.rects.popper,w=e.elements[v?b:h],T=Kle(Hf(w)?w:w.contextElement||ac(e.elements.popper),l,c,a),C=$h(e.elements.reference),E=YU({reference:C,element:S,placement:i}),R=SA(Object.assign({},S,E)),I=h===Kp?R:C,P={top:T.top-I.top+_.top,bottom:I.bottom-T.bottom+_.bottom,left:T.left-I.left+_.left,right:I.right-T.right+_.right},M=e.modifiersData.offset;if(h===Kp&&M){var L=M[i];Object.keys(P).forEach(function(k){var $=[Ca,xa].indexOf(k)>=0?1:-1,W=[uo,xa].indexOf(k)>=0?"y":"x";P[k]+=L[W]*$})}return P}function Zle(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?VU:l,c=Bh(r),f=c?s?ok:ok.filter(function(v){return Bh(v)===c}):km,h=f.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=f);var d=h.reduce(function(v,m){return v[m]=qg(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[xs(m)],v},{});return Object.keys(d).sort(function(v,m){return d[v]-d[m]})}function qle(e){if(xs(e)===oR)return[];var t=j_(e);return[lk(e),t,lk(t)]}function Jle(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,h=n.altBoundary,d=n.flipVariations,v=d===void 0?!0:d,m=n.allowedAutoPlacements,y=t.options.placement,_=xs(y),b=_===y,S=l||(b||!v?[j_(y)]:qle(y)),w=[y].concat(S).reduce(function(Ue,Le){return Ue.concat(xs(Le)===oR?Zle(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],P=0;P<w.length;P++){var M=w[P],L=xs(M),k=Bh(M)===kh,$=[uo,xa].indexOf(L)>=0,W=$?"width":"height",N=qg(t,{placement:M,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),K=$?k?Ca:co:k?xa:uo;T[W]>C[W]&&(K=j_(K));var Y=j_(K),ae=[];if(o&&ae.push(N[L]<=0),s&&ae.push(N[K]<=0,N[Y]<=0),ae.every(function(Ue){return Ue})){I=M,R=!1;break}E.set(M,ae)}if(R)for(var ge=v?3:1,ye=function(Le){var Xe=w.find(function(fe){var Ae=E.get(fe);if(Ae)return Ae.slice(0,Le).every(function(Se){return Se})});if(Xe)return I=Xe,"break"},Oe=ge;Oe>0;Oe--){var ke=ye(Oe);if(ke==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Qle={name:"flip",enabled:!0,phase:"main",fn:Jle,requiresIfExists:["offset"],data:{_skip:!1}};function ck(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 fk(e){return[uo,Ca,xa,co].some(function(t){return e[t]>=0})}function eue(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=ck(a,r),u=ck(s,i,o),c=fk(l),f=fk(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 tue={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eue};function nue(e,t,n){var r=xs(e),i=[co,uo].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,[co,Ca].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function rue(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=VU.reduce(function(c,f){return c[f]=nue(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 iue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rue};function oue(e){var t=e.state,n=e.name;t.modifiersData[n]=YU({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const aue={name:"popperOffsets",enabled:!0,phase:"read",fn:oue,data:{}};function sue(e){return e==="x"?"y":"x"}function lue(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,h=n.tether,d=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,y=qg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),_=xs(t.placement),b=Bh(t.placement),S=!b,w=lR(_),T=sue(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,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(o){var k,$=w==="y"?uo:co,W=w==="y"?xa:Ca,N=w==="y"?"height":"width",K=C[w],Y=K+y[$],ae=K-y[W],ge=d?-R[N]/2:0,ye=b===kh?E[N]:R[N],Oe=b===kh?-R[N]:-E[N],ke=t.elements.arrow,Ue=d&&ke?sR(ke):{width:0,height:0},Le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GU(),Xe=Le[$],fe=Le[W],Ae=ig(0,E[N],Ue[N]),Se=S?E[N]/2-ge-Ae-Xe-P.mainAxis:ye-Ae-Xe-P.mainAxis,Te=S?-E[N]/2+ge+Ae+fe+P.mainAxis:Oe+Ae+fe+P.mainAxis,Ne=t.elements.arrow&&Fm(t.elements.arrow),Be=Ne?w==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,H=(k=M==null?void 0:M[w])!=null?k:0,G=K+Se-H-Be,ue=K+Te-H,we=ig(d?Z1(Y,G):Y,K,d?If(ae,ue):ae);C[w]=we,L[w]=we-K}if(s){var ve,U=w==="x"?uo:co,j=w==="x"?xa:Ca,Q=C[T],de=T==="y"?"height":"width",_e=Q+y[U],De=Q-y[j],J=[uo,co].indexOf(_)!==-1,he=(ve=M==null?void 0:M[T])!=null?ve:0,Ve=J?_e:Q-E[de]-R[de]-he+P.altAxis,Ze=J?Q+E[de]+R[de]-he-P.altAxis:De,St=d&&J?Ole(Ve,Q,Ze):ig(d?Ve:_e,Q,d?Ze:De);C[T]=St,L[T]=St-Q}t.modifiersData[r]=L}}const uue={name:"preventOverflow",enabled:!0,phase:"main",fn:lue,requiresIfExists:["offset"]};function cue(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fue(e){return e===Bo(e)||!ga(e)?uR(e):cue(e)}function due(e){var t=e.getBoundingClientRect(),n=Fh(t.width)/e.offsetWidth||1,r=Fh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hue(e,t,n){n===void 0&&(n=!1);var r=ga(t),i=ga(t)&&due(t),o=ac(t),a=$h(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Rs(t)!=="body"||fR(o))&&(s=fue(t)),ga(t)?(l=$h(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cR(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function pue(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 vue(e){var t=pue(e);return Ale.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function gue(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mue(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 dk={placement:"bottom",modifiers:[],strategy:"absolute"};function hk(){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 yue(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?dk:i;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},dk,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],h=!1,d={state:c,setOptions:function(_){var b=typeof _=="function"?_(c.options):_;m(),c.options=Object.assign({},o,c.options,b),c.scrollParents={reference:Hf(s)?og(s):s.contextElement?og(s.contextElement):[],popper:og(l)};var S=vue(mue([].concat(r,c.options.modifiers)));return c.orderedModifiers=S.filter(function(w){return w.enabled}),v(),d.update()},forceUpdate:function(){if(!h){var _=c.elements,b=_.reference,S=_.popper;if(hk(b,S)){c.rects={reference:hue(b,Fm(S),c.options.strategy==="fixed"),popper:sR(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.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:d})||c)}}}},update:gue(function(){return new Promise(function(y){d.forceUpdate(),y(c)})}),destroy:function(){m(),h=!0}};if(!hk(s,l))return d;d.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var _=y.name,b=y.options,S=b===void 0?{}:b,w=y.effect;if(typeof w=="function"){var T=w({state:c,name:_,instance:d,options:S}),C=function(){};f.push(T||C)}})}function m(){f.forEach(function(y){return y()}),f=[]}return d}}var _ue=[Hle,aue,Vle,UU,iue,Qle,uue,kle,tue],bue=yue({defaultModifiers:_ue}),Sue="tippy-box",KU="tippy-content",wue="tippy-backdrop",ZU="tippy-arrow",qU="tippy-svg-arrow",Zc={passive:!0,capture:!0},JU=function(){return document.body};function IC(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function dR(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function QU(e,t){return typeof e=="function"?e.apply(void 0,t):e}function pk(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function xue(e){return e.split(/\s+/).filter(Boolean)}function eh(e){return[].concat(e)}function vk(e,t){e.indexOf(t)===-1&&e.push(t)}function Cue(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Tue(e){return e.split("-")[0]}function q1(e){return[].slice.call(e)}function gk(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 SS(e){return["Element","Fragment"].some(function(t){return dR(e,t)})}function Eue(e){return dR(e,"NodeList")}function Aue(e){return dR(e,"MouseEvent")}function Iue(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Rue(e){return SS(e)?[e]:Eue(e)?q1(e):Array.isArray(e)?e:q1(document.querySelectorAll(e))}function RC(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function mk(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Pue(e){var t,n=eh(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Mue(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=Tue(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,h=u==="top"?c.bottom.y:0,d=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+f>l,y=r-o.bottom-h>l,_=o.left-n+d>l,b=n-o.right-v>l;return m||y||_||b})}function PC(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function yk(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 Oue(){gs.isTouch||(gs.isTouch=!0,window.performance&&document.addEventListener("mousemove",eH))}function eH(){var e=performance.now();e-_k<20&&(gs.isTouch=!1,document.removeEventListener("mousemove",eH)),_k=e}function Due(){var e=document.activeElement;if(Iue(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Lue(){document.addEventListener("touchstart",Oue,Zc),window.addEventListener("blur",Due)}var Nue=typeof window<"u"&&typeof document<"u",kue=Nue?!!window.msCrypto:!1,Fue={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},$ue={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ya=Object.assign({appendTo:JU,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},Fue,$ue),Bue=Object.keys(Ya),Vue=function(t){var n=Object.keys(t);n.forEach(function(r){Ya[r]=t[r]})};function tH(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=Ya[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Uue(e,t){var n=t?Object.keys(tH(Object.assign({},Ya,{plugins:t}))):Bue,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:QU(t.content,[e])},t.ignoreAttributes?{}:Uue(e,t.plugins));return n.aria=Object.assign({},Ya.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 Hue=function(){return"innerHTML"};function wA(e,t){e[Hue()]=t}function Sk(e){var t=ag();return e===!0?t.className=ZU:(t.className=qU,SS(e)?t.appendChild(e):wA(t,e)),t}function wk(e,t){SS(t.content)?(wA(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?wA(e,t.content):e.textContent=t.content)}function xA(e){var t=e.firstElementChild,n=q1(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(KU)}),arrow:n.find(function(r){return r.classList.contains(ZU)||r.classList.contains(qU)}),backdrop:n.find(function(r){return r.classList.contains(wue)})}}function nH(e){var t=ag(),n=ag();n.className=Sue,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ag();r.className=KU,r.setAttribute("data-state","hidden"),wk(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=xA(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)&&wk(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(Sk(a.arrow))):l.appendChild(Sk(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}nH.$$tippy=!0;var zue=1,_0=[],MC=[];function Gue(e,t){var n=bk(e,Object.assign({},Ya,tH(gk(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,h,d=[],v=pk(G,n.interactiveDebounce),m,y=zue++,_=null,b=Cue(n.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:y,reference:e,popper:ag(),popperInstance:_,props:n,state:S,plugins:b,clearDelayTimeouts:Ve,setProps:Ze,setContent:St,show:re,hide:se,hideWithInteractivity:pe,enable:J,disable:he,unmount:Ee,destroy:We};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=b.map(function(oe){return oe.fn(w)}),I=e.hasAttribute("aria-expanded");return Ne(),ge(),K(),Y("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 P(){var oe=w.props.touch;return Array.isArray(oe)?oe:[oe,0]}function M(){return P()[0]==="hold"}function L(){var oe;return!!((oe=w.props.render)!=null&&oe.$$tippy)}function k(){return m||e}function $(){var oe=k().parentNode;return oe?Pue(oe):document}function W(){return xA(C)}function N(oe){return w.state.isMounted&&!w.state.isVisible||gs.isTouch||c&&c.type==="focus"?0:IC(w.props.delay,oe?0:1,Ya.delay)}function K(oe){oe===void 0&&(oe=!1),C.style.pointerEvents=w.props.interactive&&!oe?"":"none",C.style.zIndex=""+w.props.zIndex}function Y(oe,Ie,$e){if($e===void 0&&($e=!0),R.forEach(function(je){je[oe]&&je[oe].apply(je,Ie)}),$e){var nt;(nt=w.props)[oe].apply(nt,Ie)}}function ae(){var oe=w.props.aria;if(oe.content){var Ie="aria-"+oe.content,$e=C.id,nt=eh(w.props.triggerTarget||e);nt.forEach(function(je){var Ye=je.getAttribute(Ie);if(w.state.isVisible)je.setAttribute(Ie,Ye?Ye+" "+$e:$e);else{var rt=Ye&&Ye.replace($e,"").trim();rt?je.setAttribute(Ie,rt):je.removeAttribute(Ie)}})}}function ge(){if(!(I||!w.props.aria.expanded)){var oe=eh(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),_0=_0.filter(function(oe){return oe!==v})}function Oe(oe){if(!(gs.isTouch&&(l||oe.type==="mousedown"))){var Ie=oe.composedPath&&oe.composedPath()[0]||oe.target;if(!(w.props.interactive&&yk(C,Ie))){if(eh(w.props.triggerTarget||e).some(function($e){return yk($e,Ie)})){if(gs.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else Y("onClickOutside",[w,oe]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),s=!0,setTimeout(function(){s=!1}),w.state.isMounted||Xe())}}}function ke(){l=!0}function Ue(){l=!1}function Le(){var oe=$();oe.addEventListener("mousedown",Oe,!0),oe.addEventListener("touchend",Oe,Zc),oe.addEventListener("touchstart",Ue,Zc),oe.addEventListener("touchmove",ke,Zc)}function Xe(){var oe=$();oe.removeEventListener("mousedown",Oe,!0),oe.removeEventListener("touchend",Oe,Zc),oe.removeEventListener("touchstart",Ue,Zc),oe.removeEventListener("touchmove",ke,Zc)}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 nt(je){je.target===$e&&(PC($e,"remove",nt),Ie())}if(oe===0)return Ie();PC($e,"remove",f),PC($e,"add",nt),f=nt}function Te(oe,Ie,$e){$e===void 0&&($e=!1);var nt=eh(w.props.triggerTarget||e);nt.forEach(function(je){je.addEventListener(oe,Ie,$e),d.push({node:je,eventType:oe,handler:Ie,options:$e})})}function Ne(){M()&&(Te("touchstart",H,{passive:!0}),Te("touchend",ue,{passive:!0})),xue(w.props.trigger).forEach(function(oe){if(oe!=="manual")switch(Te(oe,H),oe){case"mouseenter":Te("mouseleave",ue);break;case"focus":Te(kue?"focusout":"blur",we);break;case"focusin":Te("focusout",we);break}})}function Be(){d.forEach(function(oe){var Ie=oe.node,$e=oe.eventType,nt=oe.handler,je=oe.options;Ie.removeEventListener($e,nt,je)}),d=[]}function H(oe){var Ie,$e=!1;if(!(!w.state.isEnabled||ve(oe)||s)){var nt=((Ie=c)==null?void 0:Ie.type)==="focus";c=oe,m=oe.currentTarget,ge(),!w.state.isVisible&&Aue(oe)&&_0.forEach(function(je){return je(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&&!nt&&De(oe)}}function G(oe){var Ie=oe.target,$e=k().contains(Ie)||C.contains(Ie);if(!(oe.type==="mousemove"&&$e)){var nt=de().concat(C).map(function(je){var Ye,rt=je._tippy,Ot=(Ye=rt.popperInstance)==null?void 0:Ye.state;return Ot?{popperRect:je.getBoundingClientRect(),popperState:Ot,props:n}:null}).filter(Boolean);Mue(nt,oe)&&(ye(),De(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}De(oe)}}function we(oe){w.props.trigger.indexOf("focusin")<0&&oe.target!==k()||w.props.interactive&&oe.relatedTarget&&C.contains(oe.relatedTarget)||De(oe)}function ve(oe){return gs.isTouch?M()!==oe.type.indexOf("touch")>=0:!1}function U(){j();var oe=w.props,Ie=oe.popperOptions,$e=oe.placement,nt=oe.offset,je=oe.getReferenceClientRect,Ye=oe.moveTransition,rt=L()?xA(C).arrow:null,Ot=je?{getBoundingClientRect:je,contextElement:je.contextElement||k()}:e,Lt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Mn){var yr=Mn.state;if(L()){var ad=W(),Fl=ad.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={}}}},kn=[{name:"offset",options:{offset:nt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ye}},Lt];L()&&rt&&kn.push({name:"arrow",options:{element:rt,padding:3}}),kn.push.apply(kn,(Ie==null?void 0:Ie.modifiers)||[]),w.popperInstance=bue(Ot,C,Object.assign({},Ie,{placement:$e,onFirstUpdate:h,modifiers:kn}))}function j(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function Q(){var oe=w.props.appendTo,Ie,$e=k();w.props.interactive&&oe===JU||oe==="parent"?Ie=$e.parentNode:Ie=QU(oe,[$e]),Ie.contains(C)||Ie.appendChild(C),w.state.isMounted=!0,U()}function de(){return q1(C.querySelectorAll("[data-tippy-root]"))}function _e(oe){w.clearDelayTimeouts(),oe&&Y("onTrigger",[w,oe]),Le();var Ie=N(!0),$e=P(),nt=$e[0],je=$e[1];gs.isTouch&&nt==="hold"&&je&&(Ie=je),Ie?r=setTimeout(function(){w.show()},Ie):w.show()}function De(oe){if(w.clearDelayTimeouts(),Y("onUntrigger",[w,oe]),!w.state.isVisible){Xe();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 J(){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){Y("onBeforeUpdate",[w,oe]),Be();var Ie=w.props,$e=bk(e,Object.assign({},Ie,gk(oe),{ignoreAttributes:!0}));w.props=$e,Ne(),Ie.interactiveDebounce!==$e.interactiveDebounce&&(ye(),v=pk(G,$e.interactiveDebounce)),Ie.triggerTarget&&!$e.triggerTarget?eh(Ie.triggerTarget).forEach(function(nt){nt.removeAttribute("aria-expanded")}):$e.triggerTarget&&e.removeAttribute("aria-expanded"),ge(),K(),E&&E(Ie,$e),w.popperInstance&&(U(),de().forEach(function(nt){requestAnimationFrame(nt._tippy.popperInstance.forceUpdate)})),Y("onAfterUpdate",[w,oe])}}function St(oe){w.setProps({content:oe})}function re(){var oe=w.state.isVisible,Ie=w.state.isDestroyed,$e=!w.state.isEnabled,nt=gs.isTouch&&!w.props.touch,je=IC(w.props.duration,0,Ya.duration);if(!(oe||Ie||$e||nt)&&!k().hasAttribute("disabled")&&(Y("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,L()&&(C.style.visibility="visible"),K(),Le(),w.state.isMounted||(C.style.transition="none"),L()){var Ye=W(),rt=Ye.box,Ot=Ye.content;RC([rt,Ot],0)}h=function(){var kn;if(!(!w.state.isVisible||u)){if(u=!0,C.offsetHeight,C.style.transition=w.props.moveTransition,L()&&w.props.animation){var Aa=W(),Mn=Aa.box,yr=Aa.content;RC([Mn,yr],je),mk([Mn,yr],"visible")}ae(),ge(),vk(MC,w),(kn=w.popperInstance)==null||kn.forceUpdate(),Y("onMount",[w]),w.props.animation&&L()&&Ae(je,function(){w.state.isShown=!0,Y("onShown",[w])})}},Q()}}function se(){var oe=!w.state.isVisible,Ie=w.state.isDestroyed,$e=!w.state.isEnabled,nt=IC(w.props.duration,1,Ya.duration);if(!(oe||Ie||$e)&&(Y("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,u=!1,a=!1,L()&&(C.style.visibility="hidden"),ye(),Xe(),K(!0),L()){var je=W(),Ye=je.box,rt=je.content;w.props.animation&&(RC([Ye,rt],nt),mk([Ye,rt],"hidden"))}ae(),ge(),w.props.animation?L()&&fe(nt,w.unmount):w.unmount()}}function pe(oe){$().addEventListener("mousemove",v),vk(_0,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),MC=MC.filter(function(oe){return oe!==w}),w.state.isMounted=!1,Y("onHidden",[w]))}function We(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),Be(),delete e._tippy,w.state.isDestroyed=!0,Y("onDestroy",[w]))}}function $m(e,t){t===void 0&&(t={});var n=Ya.plugins.concat(t.plugins||[]);Lue();var r=Object.assign({},t,{plugins:n}),i=Rue(e),o=i.reduce(function(a,s){var l=s&&Gue(s,r);return l&&a.push(l),a},[]);return SS(e)?o[0]:o}$m.defaultProps=Ya;$m.setDefaultProps=Vue;$m.currentInput=gs;Object.assign({},UU,{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)}});$m.setDefaultProps({render:nH});let OC,Da=null;const Ls=()=>(OC||(OC=document.getElementById("app-content")),{showTip:(n,r,i={})=>{Da==null||Da.destroy(),Da=$m(n.target,{content:r,placement:"top",animation:"scale",appendTo:OC,allowHTML:!0,showOnCreate:!0,onHidden:()=>{Da==null||Da.destroy(),Da=null},...i})},hideTip:()=>{Da==null||Da.hide()}}),Wue={class:"relative"},jue=["placeholder","name","autocomplete"],Cr=tt({__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=oS(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 h of r.menus){const d=document.createElement("div");d.className="cursor-pointer p-1 transition-transform hover:scale-105 hover:text-primary",d.textContent=h,d.addEventListener("click",()=>{i.value=h,s()}),c.appendChild(d)}a(u,c,{theme:"base",placement:"bottom-start",trigger:"click",interactive:!0,arrow:!1})};return(u,c)=>(X(),q("div",Wue,[u.beforeClose&&u.clearable?(X(),_t(B($f),{key:0,class:"absolute top-2 right-2 z-10 h-4 w-3 cursor-pointer hover:scale-125",onClick:o})):it("",!0),gt(D("input",{"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),type:"text",class:mt(["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,jue),[[vi,i.value]]),!u.beforeClose&&u.clearable?(X(),_t(B($f),{key:1,class:"absolute top-2 right-2 z-10 h-4 w-3 cursor-pointer hover:scale-125",onClick:o})):it("",!0)]))}});var X_={exports:{}},DC={exports:{}},LC={};/**
* @vue/compiler-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Vh=Symbol(""),mh=Symbol(""),wS=Symbol(""),Jg=Symbol(""),hR=Symbol(""),ju=Symbol(""),pR=Symbol(""),vR=Symbol(""),xS=Symbol(""),CS=Symbol(""),sp=Symbol(""),TS=Symbol(""),gR=Symbol(""),ES=Symbol(""),AS=Symbol(""),IS=Symbol(""),RS=Symbol(""),PS=Symbol(""),MS=Symbol(""),mR=Symbol(""),yR=Symbol(""),Bm=Symbol(""),Qg=Symbol(""),OS=Symbol(""),DS=Symbol(""),Uh=Symbol(""),lp=Symbol(""),LS=Symbol(""),J1=Symbol(""),rH=Symbol(""),Q1=Symbol(""),em=Symbol(""),iH=Symbol(""),oH=Symbol(""),NS=Symbol(""),aH=Symbol(""),sH=Symbol(""),kS=Symbol(""),_R=Symbol(""),zf={[Vh]:"Fragment",[mh]:"Teleport",[wS]:"Suspense",[Jg]:"KeepAlive",[hR]:"BaseTransition",[ju]:"openBlock",[pR]:"createBlock",[vR]:"createElementBlock",[xS]:"createVNode",[CS]:"createElementVNode",[sp]:"createCommentVNode",[TS]:"createTextVNode",[gR]:"createStaticVNode",[ES]:"resolveComponent",[AS]:"resolveDynamicComponent",[IS]:"resolveDirective",[RS]:"resolveFilter",[PS]:"withDirectives",[MS]:"renderList",[mR]:"renderSlot",[yR]:"createSlots",[Bm]:"toDisplayString",[Qg]:"mergeProps",[OS]:"normalizeClass",[DS]:"normalizeStyle",[Uh]:"normalizeProps",[lp]:"guardReactiveProps",[LS]:"toHandlers",[J1]:"camelize",[rH]:"capitalize",[Q1]:"toHandlerKey",[em]:"setBlockTracking",[iH]:"pushScopeId",[oH]:"popScopeId",[NS]:"withCtx",[aH]:"unref",[sH]:"isRef",[kS]:"withMemo",[_R]:"isMemoSame"};function lH(e){Object.getOwnPropertySymbols(e).forEach(t=>{zf[t]=e[t]})}const Xue={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Yue={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"},Kue={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Zue={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"},Dr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function uH(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Dr}}function Hh(e,t,n,r,i,o,a,s=!1,l=!1,u=!1,c=Dr){return e&&(s?(e.helper(ju),e.helper(jf(e.inSSR,u))):e.helper(Wf(e.inSSR,u)),a&&e.helper(PS)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function Fu(e,t=Dr){return{type:17,loc:t,elements:e}}function Oo(e,t=Dr){return{type:15,loc:t,properties:e}}function cr(e,t){return{type:16,loc:Dr,key:Mt(e)?$t(e,!0):e,value:t}}function $t(e,t=!1,n=Dr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function que(e,t){return{type:5,loc:t,content:Mt(e)?$t(e,!1,t):e}}function ma(e,t=Dr){return{type:8,loc:t,children:e}}function br(e,t=[],n=Dr){return{type:14,loc:n,callee:e,arguments:t}}function Gf(e,t=void 0,n=!1,r=!1,i=Dr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function eb(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Dr}}function cH(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Dr}}function fH(e){return{type:21,body:e,loc:Dr}}function Jue(e){return{type:22,elements:e,loc:Dr}}function Que(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Dr}}function ece(e,t){return{type:24,left:e,right:t,loc:Dr}}function tce(e){return{type:25,expressions:e,loc:Dr}}function nce(e){return{type:26,returns:e,loc:Dr}}function Wf(e,t){return e||t?xS:CS}function jf(e,t){return e||t?pR:vR}function FS(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Wf(r,e.isComponent)),t(ju),t(jf(r,e.isComponent)))}const xk=new Uint8Array([123,123]),Ck=new Uint8Array([125,125]);function Tk(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 tb(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 rce{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=xk,this.delimiterClose=Ck,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=xk,this.delimiterClose=Ck}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):Tk(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(tb("</"+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=Tk(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 ice={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"},oce={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 CA(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Rf(e,t){const n=CA("MODE",t),r=CA(e,t);return n===3?r===!0:r!==!1}function zh(e,t,n,...r){return Rf(e,t)}function ace(e,t,n,...r){if(CA(e,t)==="suppress-warning")return;const{message:o,link:a}=oce[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 bR(e){throw e}function dH(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 sce={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__"},lce={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 '&lt;' 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 uce(e,t,n=!1,r=[],i=Object.create(null)){}function cce(e,t,n){return!1}function fce(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 dce(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 hce(e,t){for(const n of e.params)for(const r of cl(n))t(r)}function pce(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 vce(n)&&gce(n,!0,t)}function vce(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function gce(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 mce=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),hH=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,yce=(e,t)=>hH(t)&&t.key===e,pH=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function vH(e){return pH.includes(e.type)?vH(e.expression):e}const $i=e=>e.type===4&&e.isStatic;function SR(e){switch(e){case"Teleport":case"teleport":return mh;case"Suspense":case"suspense":return wS;case"KeepAlive":case"keep-alive":return Jg;case"BaseTransition":case"base-transition":return hR}}const _ce=/^\d|[^\$\w\xA0-\uFFFF]/,Vm=e=>!_ce.test(e),bce=/[A-Za-z_$\xA0-\uFFFF]/,Sce=/[\.\?\w$\xA0-\uFFFF]/,wce=/\s+[.[]\s*|\s*[.[]\s+/g,gH=e=>e.type===4?e.content:e.loc.source,mH=e=>{const t=gH(e).trim().replace(wce,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?bce:Sce).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},xce=Ur,wR=mH,Cce=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,yH=e=>Cce.test(gH(e)),Tce=Ur,_H=yH;function Ece(e,t,n=t.length){return bH({offset:e.offset,line:e.line,column:e.column},t,n)}function bH(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 Ace(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Ni(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 Um(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)&&Eu(o.arg,t))return o}}function Eu(e,t){return!!(e&&$i(e)&&e.content===t)}function SH(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Y_(e){return e.type===5||e.type===2}function xR(e){return e.type===7&&e.name==="slot"}function Gh(e){return e.type===1&&e.tagType===3}function tm(e){return e.type===1&&e.tagType===2}const Ice=new Set([Uh,lp]);function wH(e,t=[]){if(e&&!Mt(e)&&e.type===14){const n=e.callee;if(!Mt(n)&&Ice.has(n))return wH(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=wH(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?Ek(t,s)||s.properties.unshift(t):i.callee===LS?r=br(n.helper(Qg),[Oo([t]),i]):i.arguments.unshift(Oo([t])),!r&&(r=i)}else i.type===15?(Ek(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 Ek(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 Wh(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function $a(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&&($a(r.arg,t)||$a(r.exp,t)))return!0}return e.children.some(n=>$a(n,t));case 11:return $a(e.source,t)?!0:e.children.some(n=>$a(n,t));case 9:return e.branches.some(n=>$a(n,t));case 10:return $a(e.condition,t)?!0:e.children.some(n=>$a(n,t));case 4:return!e.isStatic&&Vm(e.content)&&!!t[e.content];case 8:return e.children.some(n=>mn(n)&&$a(n,t));case 5:case 12:return $a(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function xH(e){return e.type===14&&e.callee===kS?e.arguments[1].returns:e}const CH=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,TH={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:rh,isPreTag:rh,isIgnoreNewlineTag:rh,isCustomElement:rh,onError:bR,onWarn:dH,comments:!1,prefixIdentifiers:!1};let vn=TH,rm=null,bl="",ui=null,un=null,Ji="",tl=-1,qc=-1,CR=0,vu=!1,TA=null;const Kn=[],sr=new rce(Kn,{onerr:Js,ontext(e,t){b0(Xr(e,t),e,t)},ontextentity(e,t,n){b0(e,t,n)},oninterpolation(e,t){if(vu)return b0(Xr(e,t),e,t);let n=e+sr.delimiterOpen.length,r=t-sr.delimiterClose.length;for(;Po(bl.charCodeAt(n));)n++;for(;Po(bl.charCodeAt(r-1));)r--;let i=Xr(n,r);i.includes("&")&&(i=vn.decodeEntities(i,!1)),EA({type:5,content:Z_(i,!1,pr(n,r)),loc:pr(e,t)})},onopentagname(e,t){const n=Xr(e,t);ui={type:1,tag:n,ns:vn.getNamespace(n,Kn[0],vn.ns),tagType:0,props:[],children:[],loc:pr(e-1,t),codegenNode:void 0}},onopentagend(e){Ik(e)},onclosetag(e,t){const n=Xr(e,t);if(!vn.isVoidTag(n)){let r=!1;for(let i=0;i<Kn.length;i++)if(Kn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Js(24,Kn[0].loc.start.offset);for(let a=0;a<=i;a++){const s=Kn.shift();K_(s,t,a<i)}break}r||Js(23,EH(e,60))}},onselfclosingtag(e){const t=ui.tag;ui.isSelfClosing=!0,Ik(e),Kn[0]&&Kn[0].tag===t&&K_(Kn.shift(),e)},onattribname(e,t){un={type:6,name:Xr(e,t),nameLoc:pr(e,t),value:void 0,loc:pr(e)}},ondirname(e,t){const n=Xr(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!vu&&r===""&&Js(26,e),vu||r==="")un={type:6,name:n,nameLoc:pr(e,t),value:void 0,loc:pr(e)};else if(un={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[$t("prop")]:[],loc:pr(e)},r==="pre"){vu=sr.inVPre=!0,TA=ui;const i=ui.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=Bce(i[o]))}},ondirarg(e,t){if(e===t)return;const n=Xr(e,t);if(vu)un.name+=n,of(un.nameLoc,t);else{const r=n[0]!=="[";un.arg=Z_(r?n:n.slice(1,-1),r,pr(e,t),r?3:0)}},ondirmodifier(e,t){const n=Xr(e,t);if(vu)un.name+="."+n,of(un.nameLoc,t);else if(un.name==="slot"){const r=un.arg;r&&(r.content+="."+n,of(r.loc,t))}else{const r=$t(n,!0,pr(e,t));un.modifiers.push(r)}},onattribdata(e,t){Ji+=Xr(e,t),tl<0&&(tl=e),qc=t},onattribentity(e,t,n){Ji+=e,tl<0&&(tl=t),qc=n},onattribnameend(e){const t=un.loc.start.offset,n=Xr(t,e);un.type===7&&(un.rawName=n),ui.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Js(2,t)},onattribend(e,t){if(ui&&un){if(of(un.loc,t),e!==0)if(Ji.includes("&")&&(Ji=vn.decodeEntities(Ji,!0)),un.type===6)un.name==="class"&&(Ji=IH(Ji).trim()),e===1&&!Ji&&Js(13,t),un.value={type:2,content:Ji,loc:e===1?pr(tl,qc):pr(tl-1,qc+1)},sr.inSFCRoot&&ui.tag==="template"&&un.name==="lang"&&Ji&&Ji!=="html"&&sr.enterRCDATA(tb("</template"),0);else{let n=0;un.exp=Z_(Ji,!1,pr(tl,qc),0,n),un.name==="for"&&(un.forParseResult=Pce(un.exp));let r=-1;un.name==="bind"&&(r=un.modifiers.findIndex(i=>i.content==="sync"))>-1&&zh("COMPILER_V_BIND_SYNC",vn,un.loc,un.rawName)&&(un.name="model",un.modifiers.splice(r,1))}(un.type!==7||un.name!=="pre")&&ui.props.push(un)}Ji="",tl=qc=-1},oncomment(e,t){vn.comments&&EA({type:3,content:Xr(e,t),loc:pr(e-4,t+3)})},onend(){const e=bl.length;for(let t=0;t<Kn.length;t++)K_(Kn[t],e-1),Js(24,Kn[t].loc.start.offset)},oncdata(e,t){Kn[0].ns!==0?b0(Xr(e,t),e,t):Js(1,e-9)},onprocessinginstruction(e){(Kn[0]?Kn[0].ns:vn.ns)===0&&Js(21,e-1)}}),Ak=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Rce=/^\(|\)$/g;function Pce(e){const t=e.loc,n=e.content,r=n.match(CH);if(!r)return;const[,i,o]=r,a=(f,h,d=!1)=>{const v=t.start.offset+h,m=v+f.length;return Z_(f,!1,pr(v,m),0,d?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(Rce,"").trim();const u=i.indexOf(l),c=l.match(Ak);if(c){l=l.replace(Ak,"").trim();const f=c[1].trim();let h;if(f&&(h=n.indexOf(f,u+l.length),s.key=a(f,h,!0)),c[2]){const d=c[2].trim();d&&(s.index=a(d,n.indexOf(d,s.key?h+f.length:u+l.length),!0))}}return l&&(s.value=a(l,u,!0)),s}function Xr(e,t){return bl.slice(e,t)}function Ik(e){sr.inSFCRoot&&(ui.innerLoc=pr(e+1,e+1)),EA(ui);const{tag:t,ns:n}=ui;n===0&&vn.isPreTag(t)&&CR++,vn.isVoidTag(t)?K_(ui,e):(Kn.unshift(ui),(n===1||n===2)&&(sr.inXML=!0)),ui=null}function b0(e,t,n){{const o=Kn[0]&&Kn[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=vn.decodeEntities(e,!1))}const r=Kn[0]||rm,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,of(i.loc,n)):r.children.push({type:2,content:e,loc:pr(t,n)})}function K_(e,t,n=!1){n?of(e.loc,EH(t,60)):of(e.loc,Mce(t,62)+1),sr.inSFCRoot&&(e.children.length?e.innerLoc.end=nn({},e.children[e.children.length-1].loc.end):e.innerLoc.end=nn({},e.innerLoc.start),e.innerLoc.source=Xr(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(vu||(r==="slot"?e.tagType=2:Rk(e)?e.tagType=3:Dce(e)&&(e.tagType=1)),sr.inRCDATA||(e.children=AH(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)&&CR--,TA===e&&(vu=sr.inVPre=!1,TA=null),sr.inXML&&(Kn[0]?Kn[0].ns:vn.ns)===0&&(sr.inXML=!1);{const a=e.props;if(!sr.inSFCRoot&&Rf("COMPILER_NATIVE_TEMPLATE",vn)&&e.tag==="template"&&!Rk(e)){const l=Kn[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&&zh("COMPILER_INLINE_TEMPLATE",vn,s.loc)&&e.children.length&&(s.value={type:2,content:Xr(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Mce(e,t){let n=e;for(;bl.charCodeAt(n)!==t&&n<bl.length-1;)n++;return n}function EH(e,t){let n=e;for(;bl.charCodeAt(n)!==t&&n>=0;)n--;return n}const Oce=new Set(["if","else","else-if","for","slot"]);function Rk({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Oce.has(t[n].name))return!0}return!1}function Dce({tag:e,props:t}){if(vn.isCustomElement(e))return!1;if(e==="component"||Lce(e.charCodeAt(0))||SR(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(zh("COMPILER_IS_ON_ELEMENT",vn,r.loc))return!0}}else if(r.name==="bind"&&Eu(r.arg,"is")&&zh("COMPILER_IS_ON_ELEMENT",vn,r.loc))return!0}return!1}function Lce(e){return e>64&&e<91}const Nce=/\r\n/g;function AH(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(CR)o.content=o.content.replace(Nce,`
`);else if(kce(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&&Fce(o.content)))?(r=!0,e[i]=null):o.content=" "}else n&&(o.content=IH(o.content))}return r?e.filter(Boolean):e}function kce(e){for(let t=0;t<e.length;t++)if(!Po(e.charCodeAt(t)))return!1;return!0}function Fce(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function IH(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 EA(e){(Kn[0]||rm).children.push(e)}function pr(e,t){return{start:sr.getPos(e),end:t==null?t:sr.getPos(t),source:t==null?t:Xr(e,t)}}function $ce(e){return pr(e.start.offset,e.end.offset)}function of(e,t){e.end=sr.getPos(t),e.source=Xr(e.start.offset,t)}function Bce(e){const t={type:6,name:e.rawName,nameLoc:pr(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 Z_(e,t=!1,n,r=0,i=0){return $t(e,t,n,r)}function Js(e,t,n){vn.onError(Wn(e,pr(t,t)))}function Vce(){sr.reset(),ui=null,un=null,Ji="",tl=-1,qc=-1,Kn.length=0}function TR(e,t){if(Vce(),bl=e,vn=nn({},TH),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=tb(n[0]),sr.delimiterClose=tb(n[1]));const r=rm=uH([],e);return sr.parse(bl),r.loc=pr(0,e.length),r.children=AH(r.children),rm=null,r}function Uce(e,t){q_(e,void 0,t,RH(e,e.children[0]))}function RH(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!tm(t)}function q_(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 h=r?0:so(f,n);if(h>0){if(h>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const d=f.codegenNode;if(d.type===13){const v=d.patchFlag;if((v===void 0||v===512||v===1)&&MH(f,n)>=2){const m=OH(f);m&&(d.props=n.hoist(m))}d.dynamicProps&&(d.dynamicProps=n.hoist(d.dynamicProps))}}}else if(f.type===12&&(r?0:so(f,n))>=2){a.push(f);continue}if(f.type===1){const h=f.tagType===1;h&&n.scopes.vSlot++,q_(f,e,n,!1,i),h&&n.scopes.vSlot--}else if(f.type===11)q_(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let h=0;h<f.branches.length;h++)q_(f.branches[h],e,n,f.branches[h].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&&et(e.codegenNode.children))e.codegenNode.children=l(Fu(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!et(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(Fu(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&&!et(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=Ni(e,"slot",!0),f=c&&c.arg&&u(t.codegenNode,c.arg);f&&(f.returns=l(Fu(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&&!et(c.children)&&c.children.type===15){const h=c.children.properties.find(d=>d.key===f||d.key.content===f);return h&&h.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=MH(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(ju),t.removeHelper(jf(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Wf(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 Hce=new Set([OS,DS,Uh,lp]);function PH(e,t){if(e.type===14&&!Mt(e.callee)&&Hce.has(e.callee)){const n=e.arguments[0];if(n.type===4)return so(n,t);if(n.type===14)return PH(n,t)}return 0}function MH(e,t){let n=3;const r=OH(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=PH(s,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function OH(e){const t=e.codegenNode;if(t.type===13)return t.props}function DH(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:u=Ur,isCustomElement:c=Ur,expressionPlugins:f=[],scopeId:h=null,slotted:d=!0,ssr:v=!1,inSSR:m=!1,ssrCssVars:y="",bindingMetadata:_=en,inline:b=!1,isTS:S=!1,onError:w=bR,onWarn:T=dH,compatConfig:C}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={filename:t,selfName:E&&ec(Vn(E[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:f,scopeId:h,slotted:d,ssr:v,inSSR:m,ssrCssVars:y,bindingMetadata:_,inline:b,isTS:S,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 P=R.helpers.get(I)||0;return R.helpers.set(I,P+1),I},removeHelper(I){const P=R.helpers.get(I);if(P){const M=P-1;M?R.helpers.set(I,M):R.helpers.delete(I)}},helperString(I){return`_${zf[R.helper(I)]}`},replaceNode(I){R.parent.children[R.childIndex]=R.currentNode=I},removeNode(I){const P=R.parent.children,M=I?P.indexOf(I):R.currentNode?R.childIndex:-1;!I||I===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>M&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(M,1)},onNodeRemoved:Ur,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){Mt(I)&&(I=$t(I)),R.hoists.push(I);const P=$t(`_hoisted_${R.hoists.length}`,!1,I.loc,2);return P.hoisted=I,P},cache(I,P=!1,M=!1){const L=cH(R.cached.length,I,P,M);return R.cached.push(L),L}};return R.filters=new Set,R}function LH(e,t){const n=DH(e,t);Hm(e,n),t.hoistStatic&&Uce(e,n),t.ssr||zce(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 zce(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=r[0];if(RH(e,i)&&i.codegenNode){const o=i.codegenNode;o.type===13&&FS(o,t),e.codegenNode=o}else e.codegenNode=i}else if(r.length>1){let i=64;e.codegenNode=Hh(t,n(Vh),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Gce(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,Hm(i,t))}}function Hm(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&&(et(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(Bm);break;case 9:for(let o=0;o<e.branches.length;o++)Hm(e.branches[o],t);break;case 10:case 11:case 1:case 0:Gce(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function ER(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(xR))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 $S="/*@__PURE__*/",NH=e=>`${zf[e]}: _${zf[e]}`;function Wce(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:h=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${zf[m]}`},push(m,y=-2,_){d.code+=m},indent(){v(++d.indentLevel)},deindent(m=!1){m?--d.indentLevel:v(--d.indentLevel)},newline(){v(d.indentLevel)}};function v(m){d.push(`
`+" ".repeat(m),0)}return d}function kH(e,t={}){const n=Wce(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),h=f.length>0,d=!o&&r!=="module";jce(e,n);const m=c?"ssrRender":"render",_=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${_}) {`),a(),d&&(i("with (_ctx) {"),a(),h&&(i(`const { ${f.map(NH).join(", ")} } = _Vue
`,-1),l())),e.components.length&&(NC(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(NC(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),NC(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let b=0;b<e.temps;b++)i(`${b>0?", ":""}_temp${b}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),l()),c||i("return "),e.codegenNode?wi(e.codegenNode,n):i("null"),d&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function jce(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=[xS,CS,sp,TS,gR].filter(h=>c.includes(h)).map(NH).join(", ");i(`const { ${f} } = _Vue
`,-1)}Xce(e.hoists,t),o(),i("return ")}function NC(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n(t==="filter"?RS:t==="component"?ES:IS);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 ${Wh(l,t)} = ${a}(${JSON.stringify(l)}${u?", true":""})${o?"!":""}`),s<e.length-1&&i()}}function Xce(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} = `),wi(o,t),r())}t.pure=!1}function AR(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),zm(e,t,n),n&&t.deindent(),t.push("]")}function zm(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):et(s)?AR(s,t):wi(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function wi(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:wi(e.codegenNode,t);break;case 2:Yce(e,t);break;case 4:FH(e,t);break;case 5:Kce(e,t);break;case 12:wi(e.codegenNode,t);break;case 8:$H(e,t);break;case 3:qce(e,t);break;case 13:Jce(e,t);break;case 14:efe(e,t);break;case 15:tfe(e,t);break;case 17:nfe(e,t);break;case 18:rfe(e,t);break;case 19:ife(e,t);break;case 20:ofe(e,t);break;case 21:zm(e.body,t,!0,!1);break}}function Yce(e,t){t.push(JSON.stringify(e.content),-3,e)}function FH(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Kce(e,t){const{push:n,helper:r,pure:i}=t;i&&n($S),n(`${r(Bm)}(`),wi(e.content,t),n(")")}function $H(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Mt(r)?t.push(r,-3):wi(r,t)}}function Zce(e,t){const{push:n}=t;if(e.type===8)n("["),$H(e,t),n("]");else if(e.isStatic){const r=Vm(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function qce(e,t){const{push:n,helper:r,pure:i}=t;i&&n($S),n(`${r(sp)}(${JSON.stringify(e.content)})`,-3,e)}function Jce(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:h,isComponent:d}=e;let v;l&&(v=String(l)),c&&n(r(PS)+"("),f&&n(`(${r(ju)}(${h?"true":""}), `),i&&n($S);const m=f?jf(t.inSSR,d):Wf(t.inSSR,d);n(r(m)+"(",-2,e),zm(Qce([o,a,s,v,u]),t),n(")"),f&&n(")"),c&&(n(", "),wi(c,t),n(")"))}function Qce(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function efe(e,t){const{push:n,helper:r,pure:i}=t,o=Mt(e.callee)?e.callee:r(e.callee);i&&n($S),n(o+"(",-2,e),zm(e.arguments,t),n(")")}function tfe(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];Zce(u,t),n(": "),wi(c,t),l<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}function nfe(e,t){AR(e.elements,t)}function rfe(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${zf[NS]}(`),n("(",-2,e),et(o)?zm(o,t):o&&wi(o,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),et(a)?AR(a,t):wi(a,t)):s&&wi(s,t),(l||s)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ife(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=!Vm(n.content);f&&a("("),FH(n,t),f&&a(")")}else a("("),wi(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),wi(r,t),t.indentLevel--,o&&u(),o||a(" "),a(": ");const c=i.type===19;c||t.indentLevel++,wi(i,t),c||t.indentLevel--,o&&l(!0)}function ofe(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}] = `),wi(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 afe=(e,t)=>{if(e.type===5)e.content=J_(e.content,t);else if(e.type===1){const n=Ni(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=J_(o,t,i.name==="slot")),a&&a.type===4&&!a.isStatic&&(i.arg=J_(a,t))}}}};function J_(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function BH(e){return Mt(e)?e:e.type===4?e.content:e.children.map(BH).join("")}const sfe=ER(/^(if|else|else-if)$/,(e,t,n)=>VH(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=Mk(i,l,n);else{const u=lfe(r.codegenNode);u.alternate=Mk(i,l+r.branches.length-1,n)}}}));function VH(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=Pk(e,t),o={type:9,loc:$ce(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=Pk(e,t);a.branches.push(s);const l=r&&r(a,s,!1);Hm(s,n),l&&l(),n.currentNode=null}else n.onError(Wn(30,e.loc));break}}}function Pk(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Ni(e,"for")?e.children:[e],userKey:Um(e,"key"),isTemplateIf:n}}function Mk(e,t,n){return e.condition?eb(e.condition,Ok(e,t,n),br(n.helper(sp),['""',"true"])):Ok(e,t,n)}function Ok(e,t,n){const{helper:r}=n,i=cr("key",$t(`${t}`,!1,Dr,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 Hh(n,r(Vh),Oo([i]),o,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=a.codegenNode,u=xH(l);return u.type===13&&FS(u,n),nm(u,i,n),l}}function lfe(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 UH=(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:[cr(o,$t("",!0,i))]};HH(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(J1)}(${o.content})`:(o.children.unshift(`${n.helperString(J1)}(`),o.children.push(")"))),n.inSSR||(r.some(s=>s.content==="prop")&&Dk(o,"."),r.some(s=>s.content==="attr")&&Dk(o,"^")),{props:[cr(o,a)]}},HH=(e,t)=>{const n=e.arg,r=Vn(n.content);e.exp=$t(r,!1,n.loc)},Dk=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},ufe=ER("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return zH(e,t,n,o=>{const a=br(r(MS),[o.source]),s=Gh(e),l=Ni(e,"memo"),u=Um(e,"key",!1,!0);u&&u.type===7&&!u.exp&&HH(u);let f=u&&(u.type===6?u.value?$t(u.value.content,!0):void 0:u.exp);const h=u&&f?cr("key",f):null,d=o.source.type===4&&o.source.constType>0,v=d?64:u?128:256;return o.codegenNode=Hh(n,r(Vh),void 0,a,v,void 0,void 0,!0,!d,!1,e.loc),()=>{let m;const{children:y}=o,_=y.length!==1||y[0].type!==1,b=tm(e)?e:s&&e.children.length===1&&tm(e.children[0])?e.children[0]:null;if(b?(m=b.codegenNode,s&&h&&nm(m,h,n)):_?m=Hh(n,r(Vh),h?Oo([h]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(m=y[0].codegenNode,s&&h&&nm(m,h,n),m.isBlock!==!d&&(m.isBlock?(i(ju),i(jf(n.inSSR,m.isComponent))):i(Wf(n.inSSR,m.isComponent))),m.isBlock=!d,m.isBlock?(r(ju),r(jf(n.inSSR,m.isComponent))):r(Wf(n.inSSR,m.isComponent))),l){const S=Gf(nb(o.parseResult,[$t("_cached")]));S.body=fH([ma(["const _memo = (",l.exp,")"]),ma(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(_R)}(_cached, _memo)) return _cached`]),ma(["const _item = ",m]),$t("_item.memo = _memo"),$t("return _item")]),a.arguments.push(S,$t("_cache"),$t(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Gf(nb(o.parseResult),m,!0))}})});function zH(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}IR(i);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=i,h={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:i,children:Gh(e)?e.children:[e]};n.replaceNode(h),s.vFor++;const d=r&&r(h);return()=>{s.vFor--,d&&d()}}function IR(e,t){e.finalized||(e.finalized=!0)}function nb({value:e,key:t,index:n},r=[]){return cfe([e,t,n,...r])}function cfe(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 Lk=$t("undefined",!1),GH=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Ni(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},ffe=(e,t)=>{let n;if(Gh(e)&&e.props.some(xR)&&(n=Ni(e,"for"))){const r=n.forParseResult;if(r){IR(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)}}}},dfe=(e,t,n,r)=>Gf(e,n,!1,!0,n.length?n[0].loc:r);function WH(e,t,n=dfe){t.helper(NS);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Ni(e,"slot",!0);if(l){const{arg:y,exp:_}=l;y&&!$i(y)&&(s=!0),o.push(cr(y||$t("default",!0),n(_,void 0,r,i)))}let u=!1,c=!1;const f=[],h=new Set;let d=0;for(let y=0;y<r.length;y++){const _=r[y];let b;if(!Gh(_)||!(b=Ni(_,"slot",!0))){_.type!==3&&f.push(_);continue}if(l){t.onError(Wn(37,b.loc));break}u=!0;const{children:S,loc:w}=_,{arg:T=$t("default",!0),exp:C,loc:E}=b;let R;$i(T)?R=T?T.content:"default":s=!0;const I=Ni(_,"for"),P=n(C,I,S,w);let M,L;if(M=Ni(_,"if"))s=!0,a.push(eb(M.exp,S0(T,P,d++),Lk));else if(L=Ni(_,/^else(-if)?$/,!0)){let k=y,$;for(;k--&&($=r[k],$.type===3););if($&&Gh($)&&Ni($,/^(else-)?if$/)){let W=a[a.length-1];for(;W.alternate.type===19;)W=W.alternate;W.alternate=L.exp?eb(L.exp,S0(T,P,d++),Lk):S0(T,P,d++)}else t.onError(Wn(30,L.loc))}else if(I){s=!0;const k=I.forParseResult;k?(IR(k),a.push(br(t.helper(MS),[k.source,Gf(nb(k),S0(T,P),!0)]))):t.onError(Wn(32,I.loc))}else{if(R){if(h.has(R)){t.onError(Wn(38,E));continue}h.add(R),R==="default"&&(c=!0)}o.push(cr(T,P))}}if(!l){const y=(_,b)=>{const S=n(_,void 0,b,i);return t.compatConfig&&(S.isNonScopedSlot=!0),cr("default",S)};u?f.length&&f.some(_=>jH(_))&&(c?t.onError(Wn(39,f[0].loc)):o.push(y(void 0,f))):o.push(y(void 0,r))}const v=s?2:Q_(e.children)?3:1;let m=Oo(o.concat(cr("_",$t(v+"",!1))),i);return a.length&&(m=br(t.helper(yR),[m,Fu(a)])),{slots:m,hasDynamicSlots:s}}function S0(e,t,n){const r=[cr("name",e),cr("fn",t)];return n!=null&&r.push(cr("key",$t(String(n),!0))),Oo(r)}function Q_(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Q_(n.children))return!0;break;case 9:if(Q_(n.branches))return!0;break;case 10:case 11:if(Q_(n.children))return!0;break}}return!1}function jH(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():jH(e.content)}const XH=new WeakMap,YH=(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?KH(e,t):`"${r}"`;const s=mn(a)&&a.callee===AS;let l,u,c=0,f,h,d,v=s||a===mh||a===wS||!o&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const m=RR(e,t,void 0,o,s);l=m.props,c=m.patchFlag,h=m.dynamicPropNames;const y=m.directives;d=y&&y.length?Fu(y.map(_=>ZH(_,t))):void 0,m.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(a===Jg&&(v=!0,c|=1024),o&&a!==mh&&a!==Jg){const{slots:y,hasDynamicSlots:_}=WH(e,t);u=y,_&&(c|=1024)}else if(e.children.length===1&&a!==mh){const y=e.children[0],_=y.type,b=_===5||_===8;b&&so(y,t)===0&&(c|=1),b||_===2?u=y:u=e.children}else u=e.children;h&&h.length&&(f=pfe(h)),e.codegenNode=Hh(t,a,l,u,c===0?void 0:c,f,d,!!v,!1,o,e.loc)};function KH(e,t,n=!1){let{tag:r}=e;const i=AA(r),o=Um(e,"is",!1,!0);if(o)if(i||Rf("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(AS),[s])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=SR(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(ES),t.components.add(r),Wh(r,"component"))}function RR(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let u=[];const c=[],f=[],h=l.length>0;let d=!1,v=0,m=!1,y=!1,_=!1,b=!1,S=!1,w=!1;const T=[],C=P=>{u.length&&(c.push(Oo(Nk(u),s)),u=[]),P&&c.push(P)},E=()=>{t.scopes.vFor>0&&u.push(cr($t("ref_for",!0),$t("true")))},R=({key:P,value:M})=>{if($i(P)){const L=P.content,k=Ju(L);if(k&&(!r||i)&&L.toLowerCase()!=="onclick"&&L!=="onUpdate:modelValue"&&!gl(L)&&(b=!0),k&&gl(L)&&(w=!0),k&&M.type===14&&(M=M.arguments[0]),M.type===20||(M.type===4||M.type===8)&&so(M,t)>0)return;L==="ref"?m=!0:L==="class"?y=!0:L==="style"?_=!0:L!=="key"&&!T.includes(L)&&T.push(L),r&&(L==="class"||L==="style")&&!T.includes(L)&&T.push(L)}else S=!0};for(let P=0;P<n.length;P++){const M=n[P];if(M.type===6){const{loc:L,name:k,nameLoc:$,value:W}=M;let N=!0;if(k==="ref"&&(m=!0,E()),k==="is"&&(AA(a)||W&&W.content.startsWith("vue:")||Rf("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(cr($t(k,!0,$),$t(W?W.content:"",N,W?W.loc:L)))}else{const{name:L,arg:k,exp:$,loc:W,modifiers:N}=M,K=L==="bind",Y=L==="on";if(L==="slot"){r||t.onError(Wn(40,W));continue}if(L==="once"||L==="memo"||L==="is"||K&&Eu(k,"is")&&(AA(a)||Rf("COMPILER_IS_ON_ELEMENT",t))||Y&&o)continue;if((K&&Eu(k,"key")||Y&&h&&Eu(k,"vue:before-update"))&&(d=!0),K&&Eu(k,"ref")&&E(),!k&&(K||Y)){if(S=!0,$)if(K){if(E(),C(),Rf("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift($);continue}c.push($)}else C({type:14,loc:W,callee:t.helper(LS),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[L];if(ae){const{props:ge,needRuntime:ye}=ae(M,e,t);!o&&ge.forEach(R),Y&&k&&!$i(k)?C(Oo(ge,s)):u.push(...ge),ye&&(f.push(M),Vi(ye)&&XH.set(M,ye))}else J4(L)||(f.push(M),h&&(d=!0))}}let I;if(c.length?(C(),c.length>1?I=br(t.helper(Qg),c,s):I=c[0]):u.length&&(I=Oo(Nk(u),s)),S?v|=16:(y&&!r&&(v|=2),_&&!r&&(v|=4),T.length&&(v|=8),b&&(v|=32)),!d&&(v===0||v===32)&&(m||w||f.length>0)&&(v|=512),!t.inSSR&&I)switch(I.type){case 15:let P=-1,M=-1,L=!1;for(let W=0;W<I.properties.length;W++){const N=I.properties[W].key;$i(N)?N.content==="class"?P=W:N.content==="style"&&(M=W):N.isHandlerKey||(L=!0)}const k=I.properties[P],$=I.properties[M];L?I=br(t.helper(Uh),[I]):(k&&!$i(k.value)&&(k.value=br(t.helper(OS),[k.value])),$&&(_||$.value.type===4&&$.value.content.trim()[0]==="["||$.value.type===17)&&($.value=br(t.helper(DS),[$.value])));break;case 14:break;default:I=br(t.helper(Uh),[br(t.helper(lp),[I])]);break}return{props:I,directives:f,patchFlag:v,dynamicPropNames:T,shouldUseBlock:d}}function Nk(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"||Ju(o))&&hfe(a,i):(t.set(o,i),n.push(i))}return n}function hfe(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Fu([e.value,t.value],e.loc)}function ZH(e,t){const n=[],r=XH.get(e);r?n.push(t.helperString(r)):(t.helper(IS),t.directives.add(e.name),n.push(Wh(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=>cr(a,o)),i))}return Fu(n,e.loc)}function pfe(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 AA(e){return e==="component"||e==="Component"}const vfe=(e,t)=>{if(tm(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=qH(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=Gf([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=br(t.helper(mR),a,r)}};function qH(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"&&Eu(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}=RR(e,t,i,!1,!1);r=o,a.length&&t.onError(Wn(36,a[0].loc))}return{slotName:n,slotProps:r}}const PR=(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 h=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?mf(Vn(f)):`on:${f}`;s=$t(h,!0,a.loc)}else s=ma([`${n.helperString(Q1)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(Q1)}(`),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=wR(l),h=!(f||_H(l)),d=l.content.includes(";");(h||u&&f)&&(l=ma([`${h?"$event":"(...args)"} => ${d?"{":"("}`,l,d?"}":")"]))}let c={props:[cr(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},gfe=(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(Y_(a)){i=!0;for(let s=o+1;s<n.length;s++){const l=n[s];if(Y_(l))r||(r=n[o]=ma([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(Y_(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(TS),s)}}}}},kk=new WeakSet,mfe=(e,t)=>{if(e.type===1&&Ni(e,"once",!0))return kk.has(e)||t.inVOnce||t.inSSR?void 0:(kk.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))})},MR=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Wn(41,e.loc)),w0();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)),w0();if(!a.trim()||!wR(r))return n.onError(Wn(42,r.loc)),w0();const l=i||$t("modelValue",!0),u=i?$i(i)?`onUpdate:${Vn(i.content)}`:ma(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;const f=n.isTS?"($event: any)":"$event";c=ma([`${f} => ((`,r,") = $event)"]);const h=[cr(l,e.exp),cr(u,c)];if(e.modifiers.length&&t.tagType===1){const d=e.modifiers.map(m=>m.content).map(m=>(Vm(m)?m:JSON.stringify(m))+": true").join(", "),v=i?$i(i)?`${i.content}Modifiers`:ma([i,' + "Modifiers"']):"modelModifiers";h.push(cr(v,$t(`{ ${d} }`,!1,e.loc,2)))}return w0(h)};function w0(e=[]){return{props:e}}const yfe=/[\w).+\-_$\]]/,_fe=(e,t)=>{Rf("COMPILER_FILTERS",t)&&(e.type===5?rb(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&rb(n.exp,t)}))};function rb(e,t){if(e.type===4)Fk(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?Fk(r,t):r.type===8?rb(e,t):r.type===5&&rb(r.content,t))}}function Fk(e,t){const n=e.content;let r=!1,i=!1,o=!1,a=!1,s=0,l=0,u=0,c=0,f,h,d,v,m=[];for(d=0;d<n.length;d++)if(h=f,f=n.charCodeAt(d),r)f===39&&h!==92&&(r=!1);else if(i)f===34&&h!==92&&(i=!1);else if(o)f===96&&h!==92&&(o=!1);else if(a)f===47&&h!==92&&(a=!1);else if(f===124&&n.charCodeAt(d+1)!==124&&n.charCodeAt(d-1)!==124&&!s&&!l&&!u)v===void 0?(c=d+1,v=n.slice(0,d).trim()):y();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 _=d-1,b;for(;_>=0&&(b=n.charAt(_),b===" ");_--);(!b||!yfe.test(b))&&(a=!0)}}v===void 0?v=n.slice(0,d).trim():c!==0&&y();function y(){m.push(n.slice(c,d).trim()),c=d+1}if(m.length){for(d=0;d<m.length;d++)v=bfe(v,m[d],t);e.content=v,e.ast=void 0}}function bfe(e,t,n){n.helper(RS);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Wh(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${Wh(i,"filter")}(${e}${o!==")"?","+o:o}`}}const $k=new WeakSet,Sfe=(e,t)=>{if(e.type===1){const n=Ni(e,"memo");return!n||$k.has(e)?void 0:($k.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&FS(r,t),e.codegenNode=br(t.helper(kS),[n.exp,Gf(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function JH(e){return[[mfe,sfe,Sfe,ufe,_fe,vfe,YH,GH,gfe],{on:PR,bind:UH,model:MR}]}function QH(e,t={}){const n=t.onError||bR,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=nn({},t,{prefixIdentifiers:i}),a=Mt(e)?TR(e,o):e,[s,l]=JH();return LH(a,nn({},o,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:nn({},l,t.directiveTransforms||{})})),kH(a,o)}const wfe={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"},e6=()=>({props:[]});/**
* @vue/compiler-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const OR=Symbol(""),DR=Symbol(""),LR=Symbol(""),NR=Symbol(""),ib=Symbol(""),kR=Symbol(""),FR=Symbol(""),$R=Symbol(""),BR=Symbol(""),VR=Symbol("");lH({[OR]:"vModelRadio",[DR]:"vModelCheckbox",[LR]:"vModelText",[NR]:"vModelSelect",[ib]:"vModelDynamic",[kR]:"withModifiers",[FR]:"withKeys",[$R]:"vShow",[BR]:"Transition",[VR]:"TransitionGroup"});let Rd;function xfe(e,t=!1){return Rd||(Rd=document.createElement("div")),t?(Rd.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Rd.children[0].getAttribute("foo")):(Rd.innerHTML=e,Rd.textContent)}const UR={parseMode:"html",isVoidTag:i$,isNativeTag:e=>t$(e)||n$(e)||r$(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:xfe,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return BR;if(e==="TransitionGroup"||e==="transition-group")return VR},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}},t6=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:Cfe(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Cfe=(e,t)=>{const n=tI(e);return $t(JSON.stringify(n),!1,t,3)};function Sl(e,t){return Wn(e,t)}const Tfe={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__"},Efe={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."},Afe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Sl(53,i)),t.children.length&&(n.onError(Sl(54,i)),t.children.length=0),{props:[cr($t("innerHTML",!0,i),r||$t("",!0))]}},Ife=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Sl(55,i)),t.children.length&&(n.onError(Sl(56,i)),t.children.length=0),{props:[cr($t("textContent",!0),r?so(r,n)>0?r:br(n.helperString(Bm),[r],i):$t("",!0))]}},Rfe=(e,t,n)=>{const r=MR(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Sl(58,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let a=LR,s=!1;if(i==="input"||o){const l=Um(t,"type");if(l){if(l.type===7)a=ib;else if(l.value)switch(l.value.content){case"radio":a=OR;break;case"checkbox":a=DR;break;case"file":s=!0,n.onError(Sl(59,e.loc));break}}else SH(t)&&(a=ib)}else i==="select"&&(a=NR);s||(r.needRuntime=n.helper(a))}else n.onError(Sl(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Pfe=Hr("passive,once,capture"),Mfe=Hr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Ofe=Hr("left,right"),n6=Hr("onkeyup,onkeydown,onkeypress"),Dfe=(e,t,n,r)=>{const i=[],o=[],a=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&zh("COMPILER_V_ON_NATIVE",n)||Pfe(l)?a.push(l):Ofe(l)?$i(e)?n6(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):Mfe(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},Bk=(e,t)=>$i(e)&&e.content.toLowerCase()==="onclick"?$t(t,!0):e.type!==4?ma(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Lfe=(e,t,n)=>PR(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}=Dfe(o,i,n,e.loc);if(l.includes("right")&&(o=Bk(o,"onContextmenu")),l.includes("middle")&&(o=Bk(o,"onMouseup")),l.length&&(a=br(n.helper(kR),[a,JSON.stringify(l)])),s.length&&(!$i(o)||n6(o.content.toLowerCase()))&&(a=br(n.helper(FR),[a,JSON.stringify(s)])),u.length){const c=u.map(ec).join("");o=$i(o)?$t(`${o.content}${c}`,!0):ma(["(",o,`) + "${c}"`])}return{props:[cr(o,a)]}}),Nfe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Sl(61,i)),{props:[],needRuntime:n.helper($R)}},kfe=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},r6=[t6],i6={cloak:e6,html:Afe,text:Ife,model:Rfe,on:Lfe,show:Nfe};function Ffe(e,t={}){return QH(e,nn({},UR,t,{nodeTransforms:[kfe,...r6,...t.nodeTransforms||[]],directiveTransforms:nn({},i6,t.directiveTransforms||{}),transformHoist:null}))}function $fe(e,t={}){return TR(e,nn({},UR,t))}const Bfe=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:hR,BindingTypes:wfe,CAMELIZE:J1,CAPITALIZE:rH,CREATE_BLOCK:pR,CREATE_COMMENT:sp,CREATE_ELEMENT_BLOCK:vR,CREATE_ELEMENT_VNODE:CS,CREATE_SLOTS:yR,CREATE_STATIC:gR,CREATE_TEXT:TS,CREATE_VNODE:xS,CompilerDeprecationTypes:ice,ConstantTypes:Zue,DOMDirectiveTransforms:i6,DOMErrorCodes:Tfe,DOMErrorMessages:Efe,DOMNodeTransforms:r6,ElementTypes:Kue,ErrorCodes:sce,FRAGMENT:Vh,GUARD_REACTIVE_PROPS:lp,IS_MEMO_SAME:_R,IS_REF:sH,KEEP_ALIVE:Jg,MERGE_PROPS:Qg,NORMALIZE_CLASS:OS,NORMALIZE_PROPS:Uh,NORMALIZE_STYLE:DS,Namespaces:Xue,NodeTypes:Yue,OPEN_BLOCK:ju,POP_SCOPE_ID:oH,PUSH_SCOPE_ID:iH,RENDER_LIST:MS,RENDER_SLOT:mR,RESOLVE_COMPONENT:ES,RESOLVE_DIRECTIVE:IS,RESOLVE_DYNAMIC_COMPONENT:AS,RESOLVE_FILTER:RS,SET_BLOCK_TRACKING:em,SUSPENSE:wS,TELEPORT:mh,TO_DISPLAY_STRING:Bm,TO_HANDLERS:LS,TO_HANDLER_KEY:Q1,TRANSITION:BR,TRANSITION_GROUP:VR,TS_NODE_TYPES:pH,UNREF:aH,V_MODEL_CHECKBOX:DR,V_MODEL_DYNAMIC:ib,V_MODEL_RADIO:OR,V_MODEL_SELECT:NR,V_MODEL_TEXT:LR,V_ON_WITH_KEYS:FR,V_ON_WITH_MODIFIERS:kR,V_SHOW:$R,WITH_CTX:NS,WITH_DIRECTIVES:PS,WITH_MEMO:kS,advancePositionWithClone:Ece,advancePositionWithMutation:bH,assert:Ace,baseCompile:QH,baseParse:TR,buildDirectiveArgs:ZH,buildProps:RR,buildSlots:WH,checkCompatEnabled:zh,compile:Ffe,convertToBlock:FS,createArrayExpression:Fu,createAssignmentExpression:ece,createBlockStatement:fH,createCacheExpression:cH,createCallExpression:br,createCompilerError:Wn,createCompoundExpression:ma,createConditionalExpression:eb,createDOMCompilerError:Sl,createForLoopParams:nb,createFunctionExpression:Gf,createIfStatement:Que,createInterpolation:que,createObjectExpression:Oo,createObjectProperty:cr,createReturnStatement:nce,createRoot:uH,createSequenceExpression:tce,createSimpleExpression:$t,createStructuralDirectiveTransform:ER,createTemplateLiteral:Jue,createTransformContext:DH,createVNodeCall:Hh,errorMessages:lce,extractIdentifiers:cl,findDir:Ni,findProp:Um,forAliasRE:CH,generate:kH,generateCodeFrame:Q4,getBaseTransformPreset:JH,getConstantType:so,getMemoedVNodeCall:xH,getVNodeBlockHelper:jf,getVNodeHelper:Wf,hasDynamicKeyVBind:SH,hasScopeRef:$a,helperNameMap:zf,injectProp:nm,isCoreComponent:SR,isFnExpression:_H,isFnExpressionBrowser:yH,isFnExpressionNode:Tce,isFunctionType:mce,isInDestructureAssignment:fce,isInNewExpression:dce,isMemberExpression:wR,isMemberExpressionBrowser:mH,isMemberExpressionNode:xce,isReferencedIdentifier:cce,isSimpleIdentifier:Vm,isSlotOutlet:tm,isStaticArgOf:Eu,isStaticExp:$i,isStaticProperty:hH,isStaticPropertyKey:yce,isTemplateNode:Gh,isText:Y_,isVSlot:xR,locStub:Dr,noopDirectiveTransform:e6,parse:$fe,parserOptions:UR,processExpression:J_,processFor:zH,processIf:VH,processSlotOutlet:qH,registerRuntimeHelpers:lH,resolveComponentType:KH,stringifyExpression:BH,toValidAssetId:Wh,trackSlotScopes:GH,trackVForSlotScopes:ffe,transform:LH,transformBind:UH,transformElement:YH,transformExpression:afe,transformModel:MR,transformOn:PR,transformStyle:t6,traverseNode:Hm,unwrapTSNode:vH,walkBlockDeclarations:pce,walkFunctionParams:hce,walkIdentifiers:uce,warnDeprecation:ace},Symbol.toStringTag,{value:"Module"})),Vfe=Ub(Bfe),Ufe=Ub(Kee),Hfe=Ub(Bq);/**
* vue v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/var Vk;function zfe(){return Vk||(Vk=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Vfe,n=Ufe,r=Hfe;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 h=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!h.isCustomElement&&typeof customElements<"u"&&(h.isCustomElement=m=>!!customElements.get(m));const{code:d}=t.compile(l,h),v=new Function("Vue",d)(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])})}(LC)),LC}var Uk;function Gfe(){return Uk||(Uk=1,DC.exports=zfe()),DC.exports}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Hk(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?Hk(Object(n),!0).forEach(function(r){Wfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e1=function(t){return typeof t}:e1=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e1(e)}function Wfe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(){return Ta=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},Ta.apply(this,arguments)}function jfe(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 Xfe(e,t){if(e==null)return{};var n=jfe(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 Yfe(e){return Kfe(e)||Zfe(e)||qfe(e)||Jfe()}function Kfe(e){if(Array.isArray(e))return IA(e)}function Zfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qfe(e,t){if(e){if(typeof e=="string")return IA(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 IA(e,t)}}function IA(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 Jfe(){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 Qfe="1.14.0";function wl(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ll=wl(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Gm=wl(/Edge/i),zk=wl(/firefox/i),sg=wl(/safari/i)&&!wl(/chrome/i)&&!wl(/android/i),o6=wl(/iP(ad|od|hone)/i),ede=wl(/chrome/i)&&wl(/android/i),a6={capture:!1,passive:!1};function an(e,t,n){e.addEventListener(t,n,!Ll&&a6)}function Kt(e,t,n){e.removeEventListener(t,n,!Ll&&a6)}function ob(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 tde(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ga(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ob(e,t):ob(e,t))||r&&e===n)return e;if(e===n)break}while(e=tde(e))}return null}var Gk=/\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(Gk," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Gk," ")}}function ht(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 Pf(e,t){var n="";if(typeof e=="string")n=e;else do{var r=ht(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 s6(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 Zn(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&&(ht(i,"transform")!=="none"||n&&ht(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(ht(i,"border-top-width")),s-=h.left+parseInt(ht(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==window){var d=Pf(i||e),v=d&&d.a,m=d&&d.d;d&&(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 Wk(e,t,n){for(var r=Au(e,!0),i=Zn(e)[t];r;){var o=Zn(r)[n],a=void 0;if(a=i>=o,!a)return r;if(r===Cs())break;r=Au(r,!1)}return!1}function jh(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)&&Ga(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function HR(e,t){for(var n=e.lastElementChild;n&&(n===Pt.ghost||ht(n,"display")==="none"||t&&!ob(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||ob(e,t))&&n++;return n}function jk(e){var t=0,n=0,r=Cs();if(e)do{var i=Pf(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 nde(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 Au(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=ht(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 rde(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function kC(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 l6(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 ide(){clearTimeout(lg),lg=void 0}function u6(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function zR(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 Xk(e,t){ht(e,"position","absolute"),ht(e,"top",t.top),ht(e,"left",t.left),ht(e,"width",t.width),ht(e,"height",t.height)}function FC(e){ht(e,"position",""),ht(e,"top",""),ht(e,"left",""),ht(e,"width",""),ht(e,"height","")}var mi="Sortable"+new Date().getTime();function ode(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(ht(i,"display")==="none"||i===Pt.ghost)){e.push({target:i,rect:Zn(i)});var o=Ps({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=Pf(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(nde(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=Zn(u),h=u.prevFromRect,d=u.prevToRect,v=s.rect,m=Pf(u,!0);m&&(f.top-=m.f,f.left-=m.e),u.toRect=f,u.thisAnimationDuration&&kC(h,f)&&!kC(c,f)&&(v.top-f.top)/(v.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=sde(v,h,d,i.options)),kC(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){ht(r,"transition",""),ht(r,"transform","");var s=Pf(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,ht(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=ade(r),ht(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),ht(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ht(r,"transition",""),ht(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function ade(e){return e.offsetWidth}function sde(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 Pd=[],$C={initializeByDefault:!0},Wm={mount:function(t){for(var n in $C)$C.hasOwnProperty(n)&&!(n in t)&&(t[n]=$C[n]);Pd.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Pd.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";Pd.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){Pd.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,Ta(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 Pd.forEach(function(i){typeof i.eventProperties=="function"&&Ta(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return Pd.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function Ev(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,h=e.originalEvent,d=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[mi],!!t){var m,y=t.options,_="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ll&&!Gm?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=h,m.pullMode=d?d.lastPutMode:void 0;var b=Ps(Ps({},v),Wm.getEventProperties(r,t));for(var S in b)m[S]=b[S];n&&n.dispatchEvent(m),y[_]&&y[_].call(t,m)}}var lde=["evt"],Yi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=Xfe(r,lde);Wm.pluginEvent.bind(Pt)(t,n,Ps({dragEl:Ke,parentEl:ir,ghostEl:Ht,rootEl:Yn,nextEl:Jc,lastDownEl:t1,cloneEl:or,cloneHidden:_u,dragStarted:Av,putSortable:jr,activeSortable:Pt.active,originalEvent:i,oldIndex:oh,oldDraggableIndex:ug,newIndex:Io,newDraggableIndex:gu,hideGhostForTarget:h6,unhideGhostForTarget:p6,cloneNowHidden:function(){_u=!0},cloneNowShown:function(){_u=!1},dispatchSortableEvent:function(s){Ri({sortable:n,name:s,originalEvent:i})}},o))};function Ri(e){Ev(Ps({putSortable:jr,cloneEl:or,targetEl:Ke,rootEl:Yn,oldIndex:oh,oldDraggableIndex:ug,newIndex:Io,newDraggableIndex:gu},e))}var Ke,ir,Ht,Yn,Jc,t1,or,_u,oh,Io,ug,gu,x0,jr,th=!1,ab=!1,sb=[],wc,La,BC,VC,Yk,Kk,Av,Md,cg,fg=!1,C0=!1,n1,oi,UC=[],RA=!1,lb=[],BS=typeof document<"u",T0=o6,Zk=Gm||Ll?"cssFloat":"float",ude=BS&&!ede&&!o6&&"draggable"in document.createElement("div"),c6=function(){if(BS){if(Ll)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),f6=function(t,n){var r=ht(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=jh(t,0,n),a=jh(t,1,n),s=o&&ht(o),l=a&&ht(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Zn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Zn(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[Zk]==="none"||a&&r[Zk]==="none"&&u+c>i)?"vertical":"horizontal"},cde=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},fde=function(t,n){var r;return sb.some(function(i){var o=i[mi].options.emptyInsertThreshold;if(!(!o||HR(i))){var a=Zn(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},d6=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 h=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===h||o.join&&o.indexOf(h)>-1}}var r={},i=t.group;(!i||e1(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},h6=function(){!c6&&Ht&&ht(Ht,"display","none")},p6=function(){!c6&&Ht&&ht(Ht,"display","")};BS&&document.addEventListener("click",function(e){if(ab)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ab=!1,!1},!0);var xc=function(t){if(Ke){t=t.touches?t.touches[0]:t;var n=fde(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)}}},dde=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=Ta({},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 f6(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};Wm.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);d6(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:ude,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?an(e,"pointerdown",this._onTapStart):(an(e,"mousedown",this._onTapStart),an(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(an(e,"dragover",this),an(e,"dragenter",this)),sb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ta(this,ode())}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Md=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(bde(r),!Ke&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&sg&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ga(l,i.draggable,r,!1),!(l&&l.animated)&&t1!==l)){if(oh=ar(l),ug=ar(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){Ri({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=Ga(u,f.trim(),r,!1),f)return Ri({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&&!Ga(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=Zn(r);if(Yn=o,Ke=r,ir=Ke.parentNode,Jc=Ke.nextSibling,t1=r,x0=a.group,Pt.dragged=Ke,wc={target:Ke,clientX:(n||t).clientX,clientY:(n||t).clientY},Yk=wc.clientX-u.left,Kk=wc.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(),!zk&&i.nativeDraggable&&(Ke.draggable=!0),i._triggerDragStart(t,n),Ri({sortable:i,name:"choose",originalEvent:t}),tr(Ke,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){s6(Ke,c.trim(),HC)}),an(s,"dragover",xc),an(s,"mousemove",xc),an(s,"touchmove",xc),an(s,"mouseup",i._onDrop),an(s,"touchend",i._onDrop),an(s,"touchcancel",i._onDrop),zk&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ke.draggable=!0),Yi("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Gm||Ll))){if(Pt.eventCanceled){this._onDrop();return}an(s,"mouseup",i._disableDelayedDrag),an(s,"touchend",i._disableDelayedDrag),an(s,"touchcancel",i._disableDelayedDrag),an(s,"mousemove",i._delayedDragTouchMoveHandler),an(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&an(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&&HC(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?an(document,"pointermove",this._onTouchMove):n?an(document,"touchmove",this._onTouchMove):an(document,"mousemove",this._onTouchMove):(an(Ke,"dragend",this),an(Yn,"dragstart",this._onDragStart));try{document.selection?r1(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(th=!1,Yn&&Ke){Yi("dragStarted",this,{evt:n}),this.nativeDraggable&&an(document,"dragover",dde);var r=this.options;!t&&tr(Ke,r.dragClass,!1),tr(Ke,r.ghostClass,!0),Pt.active=this,t&&this._appendGhost(),Ri({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(La){this._lastX=La.clientX,this._lastY=La.clientY,h6();for(var t=document.elementFromPoint(La.clientX,La.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(La.clientX,La.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:La.clientX,clientY:La.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);p6()}},_onTouchMove:function(t){if(wc){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=Ht&&Pf(Ht,!0),s=Ht&&a&&a.a,l=Ht&&a&&a.d,u=T0&&oi&&jk(oi),c=(o.clientX-wc.clientX+i.x)/(s||1)+(u?u[0]-UC[0]:0)/(s||1),f=(o.clientY-wc.clientY+i.y)/(l||1)+(u?u[1]-UC[1]:0)/(l||1);if(!Pt.active&&!th){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-(BC||0),a.f+=f-(VC||0)):a={a:1,b:0,c:0,d:1,e:c,f};var h="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");ht(Ht,"webkitTransform",h),ht(Ht,"mozTransform",h),ht(Ht,"msTransform",h),ht(Ht,"transform",h),BC=c,VC=f,La=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ht){var t=this.options.fallbackOnBody?document.body:Yn,n=Zn(Ke,!0,T0,!0,t),r=this.options;if(T0){for(oi=t;ht(oi,"position")==="static"&&ht(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(),UC=jk(oi)}Ht=Ke.cloneNode(!0),tr(Ht,r.ghostClass,!1),tr(Ht,r.fallbackClass,!0),tr(Ht,r.dragClass,!0),ht(Ht,"transition",""),ht(Ht,"transform",""),ht(Ht,"box-sizing","border-box"),ht(Ht,"margin",0),ht(Ht,"top",n.top),ht(Ht,"left",n.left),ht(Ht,"width",n.width),ht(Ht,"height",n.height),ht(Ht,"opacity","0.8"),ht(Ht,"position",T0?"absolute":"fixed"),ht(Ht,"zIndex","100000"),ht(Ht,"pointerEvents","none"),Pt.ghost=Ht,t.appendChild(Ht),ht(Ht,"transform-origin",Yk/parseInt(Ht.style.width)*100+"% "+Kk/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=zR(Ke),or.draggable=!1,or.style["will-change"]="",this._hideClone(),tr(or,this.options.chosenClass,!1),Pt.clone=or),r.cloneId=r1(function(){Yi("clone",r),!Pt.eventCanceled&&(r.options.removeCloneOnHide||Yn.insertBefore(or,Ke),r._hideClone(),Ri({sortable:r,name:"clone"}))}),!n&&tr(Ke,o.dragClass,!0),n?(ab=!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)),an(document,"drop",r),ht(Ke,"transform","translateZ(0)")),th=!0,r._dragStartId=r1(r._dragStarted.bind(r,n,t)),an(document,"selectstart",r),Av=!0,sg&&ht(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=x0===l,f=s.sort,h=jr||u,d,v=this,m=!1;if(RA)return;function y(Y,ae){Yi(Y,v,Ps({evt:t,isOwner:c,axis:d?"vertical":"horizontal",revert:a,dragRect:i,targetRect:o,canSort:f,fromSortable:h,target:r,completed:b,onMove:function(ye,Oe){return E0(Yn,n,Ke,i,ye,Zn(ye),t,Oe)},changed:S},ae))}function _(){y("dragOverAnimationCapture"),v.captureAnimationState(),v!==h&&h.captureAnimationState()}function b(Y){return y("dragOverCompleted",{insertion:Y}),Y&&(c?u._hideClone():u._showClone(v),v!==h&&(tr(Ke,jr?jr.options.ghostClass:u.options.ghostClass,!1),tr(Ke,s.ghostClass,!0)),jr!==v&&v!==Pt.active?jr=v:v===Pt.active&&jr&&(jr=null),h===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){y("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Ke&&!Ke.animated||r===n&&!r.animated)&&(Md=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Ke.parentNode[mi]._isOutsideThisEl(t.target),!Y&&xc(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function S(){Io=ar(Ke),gu=ar(Ke,s.draggable),Ri({sortable:v,name:"change",toEl:n,newIndex:Io,newDraggableIndex:gu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ga(r,s.draggable,n,!0),y("dragOver"),Pt.eventCanceled)return m;if(Ke.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return b(!1);if(ab=!1,u&&!s.disabled&&(c?f||(a=ir!==Yn):jr===this||(this.lastPutMode=x0.checkPull(this,u,Ke,t))&&l.checkPut(this,u,Ke,t))){if(d=this._getDirection(t,r)==="vertical",i=Zn(Ke),y("dragOverValid"),Pt.eventCanceled)return m;if(a)return ir=Yn,_(),this._hideClone(),y("revert"),Pt.eventCanceled||(Jc?Yn.insertBefore(Ke,Jc):Yn.appendChild(Ke)),b(!0);var w=HR(n,s.draggable);if(!w||gde(t,d,this)&&!w.animated){if(w===Ke)return b(!1);if(w&&n===t.target&&(r=w),r&&(o=Zn(r)),E0(Yn,n,Ke,i,r,o,t,!!r)!==!1)return _(),n.appendChild(Ke),ir=n,S(),b(!0)}else if(w&&vde(t,d,this)){var T=jh(n,0,s,!0);if(T===Ke)return b(!1);if(r=T,o=Zn(r),E0(Yn,n,Ke,i,r,o,t,!1)!==!1)return _(),n.insertBefore(Ke,T),ir=n,S(),b(!0)}else if(r.parentNode===n){o=Zn(r);var C=0,E,R=Ke.parentNode!==n,I=!cde(Ke.animated&&Ke.toRect||i,r.animated&&r.toRect||o,d),P=d?"top":"left",M=Wk(r,"top","top")||Wk(Ke,"top","top"),L=M?M.scrollTop:void 0;Md!==r&&(E=o[P],fg=!1,C0=!I&&s.invertSwap||R),C=mde(t,r,o,d,I?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,C0,Md===r);var k;if(C!==0){var $=ar(Ke);do $-=C,k=ir.children[$];while(k&&(ht(k,"display")==="none"||k===Ht))}if(C===0||k===r)return b(!1);Md=r,cg=C;var W=r.nextElementSibling,N=!1;N=C===1;var K=E0(Yn,n,Ke,i,r,o,t,N);if(K!==!1)return(K===1||K===-1)&&(N=K===1),RA=!0,setTimeout(pde,30),_(),N&&!W?n.appendChild(Ke):r.parentNode.insertBefore(Ke,N?W:r),M&&u6(M,0,L-M.scrollTop),ir=Ke.parentNode,E!==void 0&&!C0&&(n1=Math.abs(E-Zn(r)[P])),S(),b(!0)}if(n.contains(Ke))return b(!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",xc),Kt(document,"mousemove",xc),Kt(document,"touchmove",xc)},_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}th=!1,C0=!1,fg=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),PA(this.cloneId),PA(this._dragStartId),this.nativeDraggable&&(Kt(document,"drop",this),Kt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),sg&&ht(document.body,"user-select",""),ht(Ke,"transform",""),t&&(Av&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ht&&Ht.parentNode&&Ht.parentNode.removeChild(Ht),(Yn===ir||jr&&jr.lastPutMode!=="clone")&&or&&or.parentNode&&or.parentNode.removeChild(or),Ke&&(this.nativeDraggable&&Kt(Ke,"dragend",this),HC(Ke),Ke.style["will-change"]="",Av&&!th&&tr(Ke,jr?jr.options.ghostClass:this.options.ghostClass,!1),tr(Ke,this.options.chosenClass,!1),Ri({sortable:this,name:"unchoose",toEl:ir,newIndex:null,newDraggableIndex:null,originalEvent:t}),Yn!==ir?(Io>=0&&(Ri({rootEl:ir,name:"add",toEl:ir,fromEl:Yn,originalEvent:t}),Ri({sortable:this,name:"remove",toEl:ir,originalEvent:t}),Ri({rootEl:ir,name:"sort",toEl:ir,fromEl:Yn,originalEvent:t}),Ri({sortable:this,name:"sort",toEl:ir,originalEvent:t})),jr&&jr.save()):Io!==oh&&Io>=0&&(Ri({sortable:this,name:"update",toEl:ir,originalEvent:t}),Ri({sortable:this,name:"sort",toEl:ir,originalEvent:t})),Pt.active&&((Io==null||Io===-1)&&(Io=oh,gu=ug),Ri({sortable:this,name:"end",toEl:ir,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Yi("nulling",this),Yn=Ke=ir=Ht=Jc=or=t1=_u=wc=La=Av=Io=gu=oh=ug=Md=cg=jr=x0=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,lb.forEach(function(t){t.checked=!0}),lb.length=BC=VC=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ke&&(this._onDragOver(t),hde(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],Ga(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||_de(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,a){var s=i.children[a];Ga(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 Ga(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=Wm.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&d6(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(),sb.splice(sb.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_u){if(Yi("hideClone",this),Pt.eventCanceled)return;ht(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==Yn&&!this.options.group.revertClone?Yn.insertBefore(or,Ke):Jc?Yn.insertBefore(or,Jc):Yn.appendChild(or),this.options.group.revertClone&&this.animate(Ke,or),ht(or,"display",""),_u=!1}}};function hde(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function E0(e,t,n,r,i,o,a,s){var l,u=e[mi],c=u.options.onMove,f;return window.CustomEvent&&!Ll&&!Gm?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||Zn(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),c&&(f=c.call(u,l,a)),f}function HC(e){e.draggable=!1}function pde(){RA=!1}function vde(e,t,n){var r=Zn(jh(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 gde(e,t,n){var r=Zn(HR(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 mde(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,h=!1;if(!a){if(s&&n1<u*i){if(!fg&&(cg===1?l>c+u*o/2:l<f-u*o/2)&&(fg=!0),fg)h=!0;else if(cg===1?l<c+n1:l>f-n1)return-cg}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return yde(t)}return h=h||a,h&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function yde(e){return ar(Ke)<ar(e)?1:-1}function _de(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 bde(e){lb.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&lb.push(r)}}function r1(e){return setTimeout(e,0)}function PA(e){return clearTimeout(e)}BS&&an(document,"touchmove",function(e){(Pt.active||th)&&e.cancelable&&e.preventDefault()});Pt.utils={on:an,off:Kt,css:ht,find:s6,is:function(t,n){return!!Ga(t,n,t,!1)},extend:rde,throttle:l6,closest:Ga,toggleClass:tr,clone:zR,index:ar,nextTick:r1,cancelNextTick:PA,detectDirection:f6,getChild:jh};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)),Wm.mount(r)})};Pt.create=function(e,t){return new Pt(e,t)};Pt.version=Qfe;var _r=[],Iv,MA,OA=!1,zC,GC,ub,Rv;function Sde(){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?an(document,"dragover",this._handleAutoScroll):this.options.supportPointer?an(document,"pointermove",this._handleFallbackAutoScroll):r.touches?an(document,"touchmove",this._handleFallbackAutoScroll):an(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)),qk(),i1(),ide()},nulling:function(){ub=MA=Iv=OA=Rv=zC=GC=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(ub=n,r||this.options.forceAutoScrollFallback||Gm||Ll||sg){WC(n,this.options,s,r);var l=Au(s,!0);OA&&(!Rv||o!==zC||a!==GC)&&(Rv&&qk(),Rv=setInterval(function(){var u=Au(document.elementFromPoint(o,a),!0);u!==l&&(l=u,i1()),WC(n,i.options,u,r)},10),zC=o,GC=a)}else{if(!this.options.bubbleScroll||Au(s,!0)===Cs()){i1();return}WC(n,this.options,Au(s,!1),!1)}}},Ta(e,{pluginName:"scroll",initializeByDefault:!0})}function i1(){_r.forEach(function(e){clearInterval(e.pid)}),_r=[]}function qk(){clearInterval(Rv)}var WC=l6(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;MA!==n&&(MA=n,i1(),Iv=t.scroll,c=t.scrollFn,Iv===!0&&(Iv=Au(n,!0)));var f=0,h=Iv;do{var d=h,v=Zn(d),m=v.top,y=v.bottom,_=v.left,b=v.right,S=v.width,w=v.height,T=void 0,C=void 0,E=d.scrollWidth,R=d.scrollHeight,I=ht(d),P=d.scrollLeft,M=d.scrollTop;d===l?(T=S<E&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),C=w<R&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(T=S<E&&(I.overflowX==="auto"||I.overflowX==="scroll"),C=w<R&&(I.overflowY==="auto"||I.overflowY==="scroll"));var L=T&&(Math.abs(b-i)<=a&&P+S<E)-(Math.abs(_-i)<=a&&!!P),k=C&&(Math.abs(y-o)<=a&&M+w<R)-(Math.abs(m-o)<=a&&!!M);if(!_r[f])for(var $=0;$<=f;$++)_r[$]||(_r[$]={});(_r[f].vx!=L||_r[f].vy!=k||_r[f].el!==d)&&(_r[f].el=d,_r[f].vx=L,_r[f].vy=k,clearInterval(_r[f].pid),(L!=0||k!=0)&&(u=!0,_r[f].pid=setInterval((function(){r&&this.layer===0&&Pt.active._onTouchMove(ub);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,ub,_r[this.layer].el)!=="continue"||u6(_r[this.layer].el,N,W)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&h!==l&&(h=Au(h,!1)));OA=u}},30),v6=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 GR(){}GR.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=jh(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:v6};Ta(GR,{pluginName:"revertOnSpill"});function WR(){}WR.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:v6};Ta(WR,{pluginName:"removeOnSpill"});var qo;function wde(){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(),xde(o,qo),a.animateAll(),a!==r&&r.animateAll())},nulling:function(){qo=null}},Ta(e,{pluginName:"swap",eventProperties:function(){return{swapItem:qo}}})}function xde(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=[],Zp,Na,qp=!1,Ki=!1,Od=!1,$n,Jp,A0;function Cde(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?an(document,"pointerup",this._deselectMultiDrag):(an(document,"mouseup",this._deselectMultiDrag),an(document,"touchend",this._deselectMultiDrag)),an(document,"keydown",this._checkKeyDown),an(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var a="";Ft.length&&Na===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;$n=r},delayEnded:function(){this.isMultiDrag=~Ft.indexOf($n)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<Ft.length;o++)Ao.push(zR(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]===$n&&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&&Na===r&&(Jk(!0,i),o("clone"),a()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(Jk(!1,i),Ao.forEach(function(a){ht(a,"display","")}),r(),A0=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Ao.forEach(function(a){ht(a,"display","none"),r.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),A0=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Na&&Na.multiDrag._deselectMultiDrag(),Ft.forEach(function(r){r.sortableIndex=ar(r)}),Ft=Ft.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),Od=!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!==$n&&ht(a,"position","absolute")});var o=Zn($n,!1,!0,!0);Ft.forEach(function(a){a!==$n&&Xk(a,o)}),Ki=!0,qp=!0}i.animateAll(function(){Ki=!1,qp=!1,r.options.animation&&Ft.forEach(function(a){FC(a)}),r.options.sort&&I0()})}},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?Zn(s):a}),FC(s),s.fromRect=a,r.removeAnimationState(s)}),Ki=!1,Tde(!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(),qp=!1,u.animation&&Ft.length>1&&(Ki||!i&&!a.options.sort&&!l)){var c=Zn($n,!1,!0,!0);Ft.forEach(function(h){h!==$n&&(Xk(h,c),s.appendChild(h))}),Ki=!0}if(!i)if(Ki||I0(),Ft.length>1){var f=A0;a._showClone(r),a.options.animation&&!A0&&f&&Ao.forEach(function(h){a.addAnimationState({target:h,rect:Jp}),h.fromRect=Jp,h.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){Jp=Ta({},r);var a=Pf($n,!0);Jp.top-=a.f,Jp.left-=a.e}},dragOverAnimationComplete:function(){Ki&&(Ki=!1,I0())},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,h=o.children;if(!Od)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),tr($n,f.selectedClass,!~Ft.indexOf($n)),~Ft.indexOf($n))Ft.splice(Ft.indexOf($n),1),Zp=null,Ev({sortable:a,rootEl:i,name:"deselect",targetEl:$n});else{if(Ft.push($n),Ev({sortable:a,rootEl:i,name:"select",targetEl:$n}),r.shiftKey&&Zp&&a.el.contains(Zp)){var d=ar(Zp),v=ar($n);if(~d&&~v&&d!==v){var m,y;for(v>d?(y=d,m=v):(y=v,m=d+1);y<m;y++)~Ft.indexOf(h[y])||(tr(h[y],f.selectedClass,!0),Ft.push(h[y]),Ev({sortable:a,rootEl:i,name:"select",targetEl:h[y]}))}}else Zp=$n;Na=c}if(Od&&this.isMultiDrag){if(Ki=!1,(o[mi].options.sort||o!==i)&&Ft.length>1){var _=Zn($n),b=ar($n,":not(."+this.options.selectedClass+")");if(!qp&&f.animation&&($n.thisAnimationDuration=null),c.captureAnimationState(),!qp&&(f.animation&&($n.fromRect=_,Ft.forEach(function(w){if(w.thisAnimationDuration=null,w!==$n){var T=Ki?Zn(w):_;w.fromRect=T,c.addAnimationState({target:w,rect:T})}})),I0(),Ft.forEach(function(w){h[b]?o.insertBefore(w,h[b]):o.appendChild(w),b++}),l===ar($n))){var S=!1;Ft.forEach(function(w){if(w.sortableIndex!==ar(w)){S=!0;return}}),S&&s("update")}Ft.forEach(function(w){FC(w)}),c.animateAll()}Na=c}(i===o||u&&u.lastPutMode!=="clone")&&Ao.forEach(function(w){w.parentNode&&w.parentNode.removeChild(w)})}},nullingGlobal:function(){this.isMultiDrag=Od=!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 Od<"u"&&Od)&&Na===this.sortable&&!(n&&Ga(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(),Ev({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)}},Ta(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[mi];!r||!r.options.multiDrag||~Ft.indexOf(n)||(Na&&Na!==r&&(Na.multiDrag._deselectMultiDrag(),Na=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!==$n?a=-1:Ki?a=ar(o,":not(."+n.options.selectedClass+")"):a=ar(o),i.push({multiDragElement:o,index:a})}),{items:Yfe(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 Tde(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 Jk(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 I0(){Ft.forEach(function(e){e!==$n&&e.parentNode&&e.parentNode.removeChild(e)})}Pt.mount(new Sde);Pt.mount(WR,GR);const Ede=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Cde,Sortable:Pt,Swap:wde,default:Pt},Symbol.toStringTag,{value:"Module"})),Ade=Ub(Ede);var Ide=X_.exports,Qk;function Rde(){return Qk||(Qk=1,function(e,t){(function(r,i){e.exports=i(Gfe(),Ade)})(typeof self<"u"?self:Ide,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,h){return l.call(u,f,h)};case 3:return function(f,h,d){return l.call(u,f,h,d)}}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(h){try{return l(h)}catch{return c.slice()}};i.exports.f=function(d){return c&&u.call(d)=="[object Window]"?f(d):l(s(d))}},"06cf":function(i,o,a){var s=a("83ab"),l=a("d1e7"),u=a("5c6c"),c=a("fc6a"),f=a("c04e"),h=a("5135"),d=a("0cfb"),v=Object.getOwnPropertyDescriptor;o.f=s?v:function(y,_){if(y=c(y),_=f(_,!0),d)try{return v(y,_)}catch{}if(h(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"),h=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!h},{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 h=f.call(u,c);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}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 h=s[f],d=h&&h.prototype;if(d&&d.forEach!==u)try{c(d,"forEach",u)}catch{d.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(d){return s(this,d,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(h,d){if(!d&&!u)return!1;var v=!1;try{var m={};m[l]=function(){return{next:function(){return{done:v=!0}}}},h(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 h=[],d=h.constructor={};return d[c]=function(){return{foo:1}},h[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 h=s(c);return h<0?l(h+f,0):u(h,f)}},"23e7":function(i,o,a){var s=a("da84"),l=a("06cf").f,u=a("9112"),c=a("6eeb"),f=a("ce4e"),h=a("e893"),d=a("94ca");i.exports=function(v,m){var y=v.target,_=v.global,b=v.stat,S,w,T,C,E,R;if(_?w=s:b?w=s[y]||f(y,{}):w=(s[y]||{}).prototype,w)for(T in m){if(E=m[T],v.noTargetGet?(R=l(w,T),C=R&&R.value):C=w[T],S=d(_?T:y+(b?".":"#")+T,v.forced),!S&&C!==void 0){if(typeof E==typeof C)continue;h(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",h=RegExp.prototype,d=h[f],v=u(function(){return d.call({source:"a",flags:"b"})!="/a/b"}),m=d.name!=f;(v||m)&&s(RegExp.prototype,f,function(){var _=l(this),b=String(_.source),S=_.flags,w=String(S===void 0&&_ instanceof RegExp&&!("flags"in h)?c.call(_):S);return"/"+b+"/"+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"),h=a("ab13"),d=a("c430"),v="".startsWith,m=Math.min,y=h("startsWith"),_=!d&&!y&&!!function(){var b=l(String.prototype,"startsWith");return b&&!b.writable}();s({target:"String",proto:!0,forced:!_&&!y},{startsWith:function(S){var w=String(f(this));c(S);var T=u(m(arguments.length>1?arguments[1]:void 0,w.length)),C=String(S);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,h,d;f?(h=f.split("."),d=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(d=h[1]))),i.exports=d&&+d},"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(h,d){u(h);for(var v=c(d),m=v.length,y=0,_;m>y;)l.f(h,_=v[y++],d[_]);return h}},"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,h=l.getterFor(c);u(String,"String",function(d){f(this,{type:c,string:String(d),index:0})},function(){var v=h(this),m=v.string,y=v.index,_;return y>=m.length?{value:void 0,done:!0}:(_=s(m,y),v.index+=_.length,{value:_,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(h){f[c][h]=!0}},"44e7":function(i,o,a){var s=a("861d"),l=a("c6b6"),u=a("b622"),c=u("match");i.exports=function(f){var h;return s(f)&&((h=f[c])!==void 0?!!h: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(h,d,v){var m=s(h),y=l(m.length),_=u(v,y),b;if(f&&d!=d){for(;y>_;)if(b=m[_++],b!=b)return!0}else for(;y>_;_++)if((f||_ in m)&&m[_]===d)return f||_||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"),h=c("filter");s({target:"Array",proto:!0,forced:!f||!h},{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"),h=a("8418"),d=a("35a1");i.exports=function(m){var y=l(m),_=typeof this=="function"?this:Array,b=arguments.length,S=b>1?arguments[1]:void 0,w=S!==void 0,T=d(y),C=0,E,R,I,P,M,L;if(w&&(S=s(S,b>2?arguments[2]:void 0,2)),T!=null&&!(_==Array&&c(T)))for(P=T.call(y),M=P.next,R=new _;!(I=M.call(P)).done;C++)L=w?u(P,S,[I.value,C],!0):I.value,h(R,C,L);else for(E=f(y.length),R=new _(E);E>C;C++)L=w?S(y[C],C):y[C],h(R,C,L);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"),h=a("1d80"),d=a("8aa5"),v=a("14c3"),m=Math.max,y=Math.min,_=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\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,P=R.REPLACE_KEEPS_$0,M=I?"$":"$0";return[function($,W){var N=h(this),K=$==null?void 0:$[T];return K!==void 0?K.call($,N,W):C.call(String(N),$,W)},function(k,$){if(!I&&P||typeof $=="string"&&$.indexOf(M)===-1){var W=E(C,k,this,$);if(W.done)return W.value}var N=l(k),K=String(this),Y=typeof $=="function";Y||($=String($));var ae=N.global;if(ae){var ge=N.unicode;N.lastIndex=0}for(var ye=[];;){var Oe=v(N,K);if(Oe===null||(ye.push(Oe),!ae))break;var ke=String(Oe[0]);ke===""&&(N.lastIndex=d(K,c(N.lastIndex),ge))}for(var Ue="",Le=0,Xe=0;Xe<ye.length;Xe++){Oe=ye[Xe];for(var fe=String(Oe[0]),Ae=m(y(f(Oe.index),K.length),0),Se=[],Te=1;Te<Oe.length;Te++)Se.push(w(Oe[Te]));var Ne=Oe.groups;if(Y){var Be=[fe].concat(Se,Ae,K);Ne!==void 0&&Be.push(Ne);var H=String($.apply(void 0,Be))}else H=L(fe,K,Ae,Se,Ne,$);Ae>=Le&&(Ue+=K.slice(Le,Ae)+H,Le=Ae+fe.length)}return Ue+K.slice(Le)}];function L(k,$,W,N,K,Y){var ae=W+k.length,ge=N.length,ye=S;return K!==void 0&&(K=u(K),ye=b),C.call(Y,ye,function(Oe,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 Oe;if(Le>ge){var Xe=_(Le/10);return Xe===0?Oe:Xe<=ge?N[Xe-1]===void 0?ke.charAt(1):N[Xe-1]+ke.charAt(1):Oe}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(h){var d=l.f(c(h)),v=u.f;return v?d.concat(v(h)):d}},"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"),h=a("65f0");s({target:"Array",proto:!0},{flatMap:function(v){var m=u(this),y=c(m.length),_;return f(v),_=h(m,0),_.length=l(_,m,m,y,0,1,v,arguments.length>1?arguments[1]:void 0),_}})},6547:function(i,o,a){var s=a("a691"),l=a("1d80"),u=function(c){return function(f,h){var d=String(l(f)),v=s(h),m=d.length,y,_;return v<0||v>=m?c?"":void 0:(y=d.charCodeAt(v),y<55296||y>56319||v+1===m||(_=d.charCodeAt(v+1))<56320||_>57343?c?d.charAt(v):y:c?d.slice(v,v+2):(y-55296<<10)+(_-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,h){var d;return l(f)&&(d=f.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:s(d)&&(d=d[c],d===null&&(d=void 0))),new(d===void 0?Array:d)(h===0?0:h)}},"69f3":function(i,o,a){var s=a("7f9a"),l=a("da84"),u=a("861d"),c=a("9112"),f=a("5135"),h=a("f772"),d=a("d012"),v=l.WeakMap,m,y,_,b=function(I){return _(I)?y(I):m(I,{})},S=function(I){return function(P){var M;if(!u(P)||(M=y(P)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return M}};if(s){var w=new v,T=w.get,C=w.has,E=w.set;m=function(I,P){return E.call(w,I,P),P},y=function(I){return T.call(w,I)||{}},_=function(I){return C.call(w,I)}}else{var R=h("state");d[R]=!0,m=function(I,P){return c(I,R,P),P},y=function(I){return f(I,R)?I[R]:{}},_=function(I){return f(I,R)}}i.exports={set:m,get:y,has:_,enforce:b,getterFor:S}},"6eeb":function(i,o,a){var s=a("da84"),l=a("9112"),u=a("5135"),c=a("ce4e"),f=a("8925"),h=a("69f3"),d=h.get,v=h.enforce,m=String(String).split("String");(i.exports=function(y,_,b,S){var w=S?!!S.unsafe:!1,T=S?!!S.enumerable:!1,C=S?!!S.noTargetGet:!1;if(typeof b=="function"&&(typeof _=="string"&&!u(b,"name")&&l(b,"name",_),v(b).source=m.join(typeof _=="string"?_:"")),y===s){T?y[_]=b:c(_,b);return}else w?!C&&y[_]&&(T=!0):delete y[_];T?y[_]=b:l(y,_,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(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(h){return function(d){for(var v=u(d),m=l(v),y=m.length,_=0,b=[],S;y>_;)S=m[_++],(!s||c.call(v,S))&&b.push(h?[S,v[S]]:v[S]);return b}};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 h=s.Symbol||(s.Symbol={});l(h,f)||c(h,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"),h=a("cc12"),d=a("f772"),v=">",m="<",y="prototype",_="script",b=d("IE_PROTO"),S=function(){},w=function(I){return m+_+v+I+m+"/"+_+v},T=function(I){I.write(w("")),I.close();var P=I.parentWindow.Object;return I=null,P},C=function(){var I=h("iframe"),P="java"+_+":",M;return I.style.display="none",f.appendChild(I),I.src=String(P),M=I.contentWindow.document,M.open(),M.write(w("document.F=Object")),M.close(),M.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[y][u[I]];return R()};c[b]=!0,i.exports=Object.create||function(P,M){var L;return P!==null?(S[y]=s(P),L=new S,S[y]=null,L[b]=P):L=R(),M===void 0?L:l(L,M)}},"7dd0":function(i,o,a){var s=a("23e7"),l=a("9ed3"),u=a("e163"),c=a("d2bb"),f=a("d44e"),h=a("9112"),d=a("6eeb"),v=a("b622"),m=a("c430"),y=a("3f8c"),_=a("ae93"),b=_.IteratorPrototype,S=_.BUGGY_SAFARI_ITERATORS,w=v("iterator"),T="keys",C="values",E="entries",R=function(){return this};i.exports=function(I,P,M,L,k,$,W){l(M,P,L);var N=function(Xe){if(Xe===k&&ye)return ye;if(!S&&Xe in ae)return ae[Xe];switch(Xe){case T:return function(){return new M(this,Xe)};case C:return function(){return new M(this,Xe)};case E:return function(){return new M(this,Xe)}}return function(){return new M(this)}},K=P+" Iterator",Y=!1,ae=I.prototype,ge=ae[w]||ae["@@iterator"]||k&&ae[k],ye=!S&&ge||N(k),Oe=P=="Array"&&ae.entries||ge,ke,Ue,Le;if(Oe&&(ke=u(Oe.call(new I)),b!==Object.prototype&&ke.next&&(!m&&u(ke)!==b&&(c?c(ke,b):typeof ke[w]!="function"&&h(ke,w,R)),f(ke,K,!0,!0),m&&(y[K]=R))),k==C&&ge&&ge.name!==C&&(Y=!0,ye=function(){return ge.call(this)}),(!m||W)&&ae[w]!==ye&&h(ae,w,ye),y[P]=ye,k)if(Ue={values:N(C),keys:$?ye:N(T),entries:N(E)},W)for(Le in Ue)(S||Y||!(Le in ae))&&d(ae,Le,Ue[Le]);else s({target:P,proto:!0,forced:S||Y},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,h){var d=s(f);d in c?l.f(c,d,u(0,h)):c[d]=h}},"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 h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,v=h.exec(E.stack)||d.exec(E.stack),m=v&&v[1]||!1,y=v&&v[2]||!1,_=document.location.href.replace(document.location.hash,""),b,S,w,T=document.getElementsByTagName("script");m===_&&(b=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),w=b.replace(S,"$1").trim());for(var C=0;C<T.length;C++)if(T[C].readyState==="interactive"||T[C].src===m||m===_&&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,h){return l.f(c,f,u(1,h))}:function(c,f,h){return c[f]=h,c}},9263:function(i,o,a){var s=a("ad6d"),l=a("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,h=function(){var y=/a/,_=/b*/g;return u.call(y,"a"),u.call(_,"a"),y.lastIndex!==0||_.lastIndex!==0}(),d=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,m=h||v||d;m&&(f=function(_){var b=this,S,w,T,C,E=d&&b.sticky,R=s.call(b),I=b.source,P=0,M=_;return E&&(R=R.replace("y",""),R.indexOf("g")===-1&&(R+="g"),M=String(_).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&_[b.lastIndex-1]!==`
`)&&(I="(?: "+I+")",M=" "+M,P++),w=new RegExp("^(?:"+I+")",R)),v&&(w=new RegExp("^"+I+"$(?!\\s)",R)),h&&(S=b.lastIndex),T=u.call(E?w:b,M),E?T?(T.input=T.input.slice(P),T[0]=T[0].slice(P),T.index=b.lastIndex,b.lastIndex+=T[0].length):b.lastIndex=0:h&&T&&(b.lastIndex=b.global?T.index+T[0].length:S),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 y=f[c(v)];return y==d?!0:y==h?!1:typeof m=="function"?s(m):!!m},c=u.normalize=function(v){return String(v).replace(l,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",d=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"),h=a("50c4"),d=a("8418"),v=a("65f0"),m=a("1dde"),y=a("b622"),_=a("2d00"),b=y("isConcatSpreadable"),S=9007199254740991,w="Maximum allowed index exceeded",T=_>=51||!l(function(){var I=[];return I[b]=!1,I.concat()[0]!==I}),C=m("concat"),E=function(I){if(!c(I))return!1;var P=I[b];return P!==void 0?!!P:u(I)},R=!T||!C;s({target:"Array",proto:!0,forced:R},{concat:function(P){var M=f(this),L=v(M,0),k=0,$,W,N,K,Y;for($=-1,N=arguments.length;$<N;$++)if(Y=$===-1?M:arguments[$],E(Y)){if(K=h(Y.length),k+K>S)throw TypeError(w);for(W=0;W<K;W++,k++)W in Y&&d(L,k,Y[W])}else{if(k>=S)throw TypeError(w);d(L,k++,Y)}return L.length=k,L}})},"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(d){var h=l.return;throw h!==void 0&&s(h.call(l)),d}}},"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(d,v,m){if(u(d),v=c(v,!0),u(m),l)try{return f(d,v,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(d[v]=m.value),d}},"9ed3":function(i,o,a){var s=a("ae93").IteratorPrototype,l=a("7c73"),u=a("5c6c"),c=a("d44e"),f=a("3f8c"),h=function(){return this};i.exports=function(d,v,m){var y=v+" Iterator";return d.prototype=l(s,{next:u(1,m)}),c(d,y,!1,!0),f[y]=h,d}},"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,h,d,v,m,y,_,b){for(var S=m,w=0,T=_?u(_,b,3):!1,C;w<v;){if(w in d){if(C=T?T(d[w],w,h):d[w],y>0&&s(C))S=c(f,h,C,l(C.length),S,y-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[S]=C}S++}w++}return S};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"),h=a("65f0"),d=a("8418"),v=a("1dde"),m=a("ae40"),y=v("splice"),_=m("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,S=Math.min,w=9007199254740991,T="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!y||!_},{splice:function(E,R){var I=f(this),P=c(I.length),M=l(E,P),L=arguments.length,k,$,W,N,K,Y;if(L===0?k=$=0:L===1?(k=0,$=P-M):(k=L-2,$=S(b(u(R),0),P-M)),P+k-$>w)throw TypeError(T);for(W=h(I,$),N=0;N<$;N++)K=M+N,K in I&&d(W,N,I[K]);if(W.length=$,k<$){for(N=M;N<P-$;N++)K=N+$,Y=N+k,K in I?I[Y]=I[K]:delete I[Y];for(N=P;N>P-$+k;N--)delete I[N-1]}else if(k>$)for(N=P-$;N>M;N--)K=N+$-1,Y=N+k-1,K in I?I[Y]=I[K]:delete I[Y];for(N=0;N<k;N++)I[N+M]=arguments[N+2];return I.length=P-$+k,W}})},a4d3:function(i,o,a){var s=a("23e7"),l=a("da84"),u=a("d066"),c=a("c430"),f=a("83ab"),h=a("4930"),d=a("fdbf"),v=a("d039"),m=a("5135"),y=a("e8b5"),_=a("861d"),b=a("825a"),S=a("7b0b"),w=a("fc6a"),T=a("c04e"),C=a("5c6c"),E=a("7c73"),R=a("df75"),I=a("241c"),P=a("057f"),M=a("7418"),L=a("06cf"),k=a("9bf2"),$=a("d1e7"),W=a("9112"),N=a("6eeb"),K=a("5692"),Y=a("f772"),ae=a("d012"),ge=a("90e3"),ye=a("b622"),Oe=a("e538"),ke=a("746f"),Ue=a("d44e"),Le=a("69f3"),Xe=a("b727").forEach,fe=Y("hidden"),Ae="Symbol",Se="prototype",Te=ye("toPrimitive"),Ne=Le.set,Be=Le.getterFor(Ae),H=Object[Se],G=l.Symbol,ue=u("JSON","stringify"),we=L.f,ve=k.f,U=P.f,j=$.f,Q=K("symbols"),de=K("op-symbols"),_e=K("string-to-symbol-registry"),De=K("symbol-to-string-registry"),J=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(je,Ye,rt){var Ot=we(H,Ye);Ot&&delete H[Ye],ve(je,Ye,rt),Ot&&je!==H&&ve(H,Ye,Ot)}:ve,St=function(je,Ye){var rt=Q[je]=E(G[Se]);return Ne(rt,{type:Ae,tag:je,description:Ye}),f||(rt.description=Ye),rt},re=d?function(je){return typeof je=="symbol"}:function(je){return Object(je)instanceof G},se=function(Ye,rt,Ot){Ye===H&&se(de,rt,Ot),b(Ye);var Lt=T(rt,!0);return b(Ot),m(Q,Lt)?(Ot.enumerable?(m(Ye,fe)&&Ye[fe][Lt]&&(Ye[fe][Lt]=!1),Ot=E(Ot,{enumerable:C(0,!1)})):(m(Ye,fe)||ve(Ye,fe,C(1,{})),Ye[fe][Lt]=!0),Ze(Ye,Lt,Ot)):ve(Ye,Lt,Ot)},pe=function(Ye,rt){b(Ye);var Ot=w(rt),Lt=R(Ot).concat($e(Ot));return Xe(Lt,function(kn){(!f||We.call(Ot,kn))&&se(Ye,kn,Ot[kn])}),Ye},Ee=function(Ye,rt){return rt===void 0?E(Ye):pe(E(Ye),rt)},We=function(Ye){var rt=T(Ye,!0),Ot=j.call(this,rt);return this===H&&m(Q,rt)&&!m(de,rt)?!1:Ot||!m(this,rt)||!m(Q,rt)||m(this,fe)&&this[fe][rt]?Ot:!0},oe=function(Ye,rt){var Ot=w(Ye),Lt=T(rt,!0);if(!(Ot===H&&m(Q,Lt)&&!m(de,Lt))){var kn=we(Ot,Lt);return kn&&m(Q,Lt)&&!(m(Ot,fe)&&Ot[fe][Lt])&&(kn.enumerable=!0),kn}},Ie=function(Ye){var rt=U(w(Ye)),Ot=[];return Xe(rt,function(Lt){!m(Q,Lt)&&!m(ae,Lt)&&Ot.push(Lt)}),Ot},$e=function(Ye){var rt=Ye===H,Ot=U(rt?de:w(Ye)),Lt=[];return Xe(Ot,function(kn){m(Q,kn)&&(!rt||m(H,kn))&&Lt.push(Q[kn])}),Lt};if(h||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var Ye=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),rt=ge(Ye),Ot=function(Lt){this===H&&Ot.call(de,Lt),m(this,fe)&&m(this[fe],rt)&&(this[fe][rt]=!1),Ze(this,rt,C(1,Lt))};return f&&Ve&&Ze(H,rt,{configurable:!0,set:Ot}),St(rt,Ye)},N(G[Se],"toString",function(){return Be(this).tag}),N(G,"withoutSetter",function(je){return St(ge(je),je)}),$.f=We,k.f=se,L.f=oe,I.f=P.f=Ie,M.f=$e,Oe.f=function(je){return St(ye(je),je)},f&&(ve(G[Se],"description",{configurable:!0,get:function(){return Be(this).description}}),c||N(H,"propertyIsEnumerable",We,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:G}),Xe(R(J),function(je){ke(je)}),s({target:Ae,stat:!0,forced:!h},{for:function(je){var Ye=String(je);if(m(_e,Ye))return _e[Ye];var rt=G(Ye);return _e[Ye]=rt,De[rt]=Ye,rt},keyFor:function(Ye){if(!re(Ye))throw TypeError(Ye+" is not a symbol");if(m(De,Ye))return De[Ye]},useSetter:function(){Ve=!0},useSimple:function(){Ve=!1}}),s({target:"Object",stat:!0,forced:!h,sham:!f},{create:Ee,defineProperty:se,defineProperties:pe,getOwnPropertyDescriptor:oe}),s({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ie,getOwnPropertySymbols:$e}),s({target:"Object",stat:!0,forced:v(function(){M.f(1)})},{getOwnPropertySymbols:function(Ye){return M.f(S(Ye))}}),ue){var nt=!h||v(function(){var je=G();return ue([je])!="[null]"||ue({a:je})!="{}"||ue(Object(je))!="{}"});s({target:"JSON",stat:!0,forced:nt},{stringify:function(Ye,rt,Ot){for(var Lt=[Ye],kn=1,Aa;arguments.length>kn;)Lt.push(arguments[kn++]);if(Aa=rt,!(!_(rt)&&Ye===void 0||re(Ye)))return y(rt)||(rt=function(Mn,yr){if(typeof Aa=="function"&&(yr=Aa.call(this,Mn,yr)),!re(yr))return yr}),Lt[1]=rt,ue.apply(null,Lt)}})}G[Se][Te]||W(G[Se],Te,G[Se].valueOf),Ue(G,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={},h=function(d){throw d};i.exports=function(d,v){if(u(f,d))return f[d];v||(v={});var m=[][d],y=u(v,"ACCESSORS")?v.ACCESSORS:!1,_=u(v,0)?v[0]:h,b=u(v,1)?v[1]:void 0;return f[d]=!!m&&!l(function(){if(y&&!s)return!0;var S={length:-1};y?c(S,1,{enumerable:!0,get:h}):S[1]=1,m.call(S,_,b)})}},ae93:function(i,o,a){var s=a("e163"),l=a("9112"),u=a("5135"),c=a("b622"),f=a("c430"),h=c("iterator"),d=!1,v=function(){return this},m,y,_;[].keys&&(_=[].keys(),"next"in _?(y=s(s(_)),y!==Object.prototype&&(m=y)):d=!0),m==null&&(m={}),!f&&!u(m,h)&&l(m,h,v),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:d}},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 ([^ (]*)/,h="name";s&&!(h in u)&&l(u,h,{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"),h=a("fdbf"),d=l("wks"),v=s.Symbol,m=h?v:v&&v.withoutSetter||c;i.exports=function(y){return u(d,y)||(f&&u(v,y)?d[y]=v[y]:d[y]=m("Symbol."+y)),d[y]}},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(d){return u(l(d))}})},b727:function(i,o,a){var s=a("0366"),l=a("44ad"),u=a("7b0b"),c=a("50c4"),f=a("65f0"),h=[].push,d=function(v){var m=v==1,y=v==2,_=v==3,b=v==4,S=v==6,w=v==5||S;return function(T,C,E,R){for(var I=u(T),P=l(I),M=s(C,E,3),L=c(P.length),k=0,$=R||f,W=m?$(T,L):y?$(T,0):void 0,N,K;L>k;k++)if((w||k in P)&&(N=P[k],K=M(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:h.call(W,N)}else if(b)return!1}return S?-1:_||b?b:W}};i.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(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",h=!0,d=c(f);f in[]&&Array(1)[f](function(){h=!1}),s({target:"Array",proto:!0,forced:h||!d},{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,h=!!f&&1/[1].indexOf(1,-0)<0,d=u("indexOf"),v=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:h||!d||!v},{indexOf:function(y){return h?f.apply(this,arguments)||0:l(this,y,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,h){var d=l(f),v=0,m=[],y;for(y in d)!s(c,y)&&s(d,y)&&m.push(y);for(;h.length>v;)s(d,y=h[v++])&&(~u(m,y)||m.push(y));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(d){return l(this,d,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 h=l(this,f);return!!h&&h.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(d,v){return s(d),l(v),u?f.call(d,v):d.__proto__=v,d}}():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,h,d){f&&!l(f=d?f:f.prototype,c)&&s(f,c,{configurable:!0,value:h})}},d58f:function(i,o,a){var s=a("1c0b"),l=a("7b0b"),u=a("44ad"),c=a("50c4"),f=function(h){return function(d,v,m,y){s(v);var _=l(d),b=u(_),S=c(_.length),w=h?S-1:0,T=h?-1:1;if(m<2)for(;;){if(w in b){y=b[w],w+=T;break}if(w+=T,h?w<0:S<=w)throw TypeError("Reduce of empty array with no initial value")}for(;h?w>=0:S>w;w+=T)w in b&&(y=v(y,b[w],w,_));return y}};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"),h=u("species"),d=!l(function(){var b=/./;return b.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(b,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),y=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),_=!l(function(){var b=/(?:)/,S=b.exec;b.exec=function(){return S.apply(this,arguments)};var w="ab".split(b);return w.length!==2||w[0]!=="a"||w[1]!=="b"});i.exports=function(b,S,w,T){var C=u(b),E=!l(function(){var k={};return k[C]=function(){return 7},""[b](k)!=7}),R=E&&!l(function(){var k=!1,$=/a/;return b==="split"&&($={},$.constructor={},$.constructor[h]=function(){return $},$.flags="",$[C]=/./[C]),$.exec=function(){return k=!0,null},$[C](""),!k});if(!E||!R||b==="replace"&&!(d&&v&&!y)||b==="split"&&!_){var I=/./[C],P=w(C,""[b],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:y}),M=P[0],L=P[1];s(String.prototype,b,M),s(RegExp.prototype,C,S==2?function(k,$){return L.call(k,this,$)}:function(k){return L.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"),h=c("map");s({target:"Array",proto:!0,forced:!f||!h},{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"),h=a("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(v){for(var m=c(v),y=f.f,_=u(m),b={},S=0,w,T;_.length>S;)T=y(m,w=_[S++]),T!==void 0&&h(b,w,T);return b}})},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"),h=f("iterator"),d=f("toStringTag"),v=u.values;for(var m in l){var y=s[m],_=y&&y.prototype;if(_){if(_[h]!==v)try{c(_,h,v)}catch{_[h]=v}if(_[d]||c(_,d,m),l[m]){for(var b in u)if(_[b]!==u[b])try{c(_,b,u[b])}catch{_[b]=u[b]}}}}},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"),h=a("9bf2").f,d=a("e893"),v=u.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var m={},y=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),E=this instanceof y?new v(C):C===void 0?v():v(C);return C===""&&(m[E]=!0),E};d(y,v);var _=y.prototype=v.prototype;_.constructor=y;var b=_.toString,S=String(v("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;h(_,"description",{configurable:!0,get:function(){var C=f(this)?this.valueOf():this,E=b.call(C);if(c(m,C))return"";var R=S?E.slice(7,-1):E.replace(w,"$1");return R===""?void 0:R}}),s({global:!0,forced:!0},{Symbol:y})}},e163:function(i,o,a){var s=a("5135"),l=a("7b0b"),u=a("f772"),c=a("e177"),f=u("IE_PROTO"),h=Object.prototype;i.exports=c?Object.getPrototypeOf:function(d){return d=l(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?h: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"),h="Array Iterator",d=c.set,v=c.getterFor(h);i.exports=f(Array,"Array",function(m,y){d(this,{type:h,target:s(m),index:0,kind:y})},function(){var m=v(this),y=m.target,_=m.kind,b=m.index++;return!y||b>=y.length?(m.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:b,done:!1}:_=="values"?{value:y[b],done:!1}:{value:[b,y[b]],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"),h=l(function(){c(1)}),d=!f||h;s({target:"Object",stat:!0,forced:d,sham:!f},{getOwnPropertyDescriptor:function(m,y){return c(u(m),y)}})},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,h){for(var d=l(h),v=c.f,m=u.f,y=0;y<d.length;y++){var _=d[y];s(f,_)||v(f,_,m(h,_))}}},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",h=function(d,v){try{return d[v]}catch{}};i.exports=s?l:function(d){var v,m,y;return d===void 0?"Undefined":d===null?"Null":typeof(m=h(v=Object(d),c))=="string"?m:f?l(v):(y=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":y}},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(re,se,pe){return se in re?Object.defineProperty(re,se,{value:pe,enumerable:!0,configurable:!0,writable:!0}):re[se]=pe,re}function f(re,se){var pe=Object.keys(re);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(re);se&&(Ee=Ee.filter(function(We){return Object.getOwnPropertyDescriptor(re,We).enumerable})),pe.push.apply(pe,Ee)}return pe}function h(re){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(re,Ee,pe[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(pe)):f(Object(pe)).forEach(function(Ee){Object.defineProperty(re,Ee,Object.getOwnPropertyDescriptor(pe,Ee))})}return re}function d(re){if(Array.isArray(re))return re}a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");function v(re,se){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(re)))){var pe=[],Ee=!0,We=!1,oe=void 0;try{for(var Ie=re[Symbol.iterator](),$e;!(Ee=($e=Ie.next()).done)&&(pe.push($e.value),!(se&&pe.length===se));Ee=!0);}catch(nt){We=!0,oe=nt}finally{try{!Ee&&Ie.return!=null&&Ie.return()}finally{if(We)throw oe}}return pe}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function m(re,se){(se==null||se>re.length)&&(se=re.length);for(var pe=0,Ee=new Array(se);pe<se;pe++)Ee[pe]=re[pe];return Ee}function y(re,se){if(re){if(typeof re=="string")return m(re,se);var pe=Object.prototype.toString.call(re).slice(8,-1);if(pe==="Object"&&re.constructor&&(pe=re.constructor.name),pe==="Map"||pe==="Set")return Array.from(re);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return m(re,se)}}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.`)}function b(re,se){return d(re)||v(re,se)||y(re,se)||_()}function S(re){if(Array.isArray(re))return m(re)}function w(re){if(typeof Symbol<"u"&&Symbol.iterator in Object(re))return Array.from(re)}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(re){return S(re)||w(re)||y(re)||T()}var E=a("a352"),R=a.n(E);function I(re){re.parentElement!==null&&re.parentElement.removeChild(re)}function P(re,se,pe){var Ee=pe===0?re.children[0]:re.children[pe-1].nextSibling;re.insertBefore(se,Ee)}var M=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function L(re){var se=Object.create(null);return function(Ee){var We=se[Ee];return We||(se[Ee]=re(Ee))}}var k=/-(\w)/g,$=L(function(re){return re.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"],Y=[K,W,N].flatMap(function(re){return re}).map(function(re){return"on".concat(re)}),ae={manage:K,manageAndEmit:W,emit:N};function ge(re){return Y.indexOf(re)!==-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 Oe(re){return ye.includes(re)}function ke(re){return["transition-group","TransitionGroup"].includes(re)}function Ue(re){return["id","class","role","style"].includes(re)||re.startsWith("data-")||re.startsWith("aria-")||re.startsWith("on")}function Le(re){return re.reduce(function(se,pe){var Ee=b(pe,2),We=Ee[0],oe=Ee[1];return se[We]=oe,se},{})}function Xe(re){var se=re.$attrs,pe=re.componentData,Ee=pe===void 0?{}:pe,We=Le(Object.entries(se).filter(function(oe){var Ie=b(oe,2),$e=Ie[0];return Ie[1],Ue($e)}));return h(h({},We),Ee)}function fe(re){var se=re.$attrs,pe=re.callBackBuilder,Ee=Le(Ae(se));Object.entries(pe).forEach(function(oe){var Ie=b(oe,2),$e=Ie[0],nt=Ie[1];ae[$e].forEach(function(je){Ee["on".concat(je)]=nt(je)})});var We="[data-draggable]".concat(Ee.draggable||"");return h(h({},Ee),{},{draggable:We})}function Ae(re){return Object.entries(re).filter(function(se){var pe=b(se,2),Ee=pe[0];return pe[1],!Ue(Ee)}).map(function(se){var pe=b(se,2),Ee=pe[0],We=pe[1];return[$(Ee),We]}).filter(function(se){var pe=b(se,2),Ee=pe[0];return pe[1],!ge(Ee)})}a("c740");function Se(re,se){if(!(re instanceof se))throw new TypeError("Cannot call a class as a function")}function Te(re,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(re,Ee.key,Ee)}}function Ne(re,se,pe){return se&&Te(re.prototype,se),re}var Be=function(se){var pe=se.el;return pe},H=function(se,pe){return se.__draggable_context=pe},G=function(se){return se.__draggable_context},ue=function(){function re(se){var pe=se.nodes,Ee=pe.header,We=pe.default,oe=pe.footer,Ie=se.root,$e=se.realList;Se(this,re),this.defaultNodes=We,this.children=[].concat(C(Ee),C(We),C(oe)),this.externalComponent=Ie.externalComponent,this.rootTransition=Ie.transition,this.tag=Ie.tag,this.realList=$e}return Ne(re,[{key:"render",value:function(pe,Ee){var We=this.tag,oe=this.children,Ie=this._isRootComponent,$e=Ie?{default:function(){return oe}}:oe;return pe(We,Ee,$e)}},{key:"updated",value:function(){var pe=this.defaultNodes,Ee=this.realList;pe.forEach(function(We,oe){H(Be(We),{element:Ee[oe],index:oe})})}},{key:"getUnderlyingVm",value:function(pe){return G(pe)}},{key:"getVmIndexFromDomIndex",value:function(pe,Ee){var We=this.defaultNodes,oe=We.length,Ie=Ee.children,$e=Ie.item(pe);if($e===null)return oe;var nt=G($e);if(nt)return nt.index;if(oe===0)return 0;var je=Be(We[0]),Ye=C(Ie).findIndex(function(rt){return rt===je});return pe<Ye?0:oe}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),re}(),we=a("8bbf");function ve(re,se){var pe=re[se];return pe?pe():[]}function U(re){var se=re.$slots,pe=re.realList,Ee=re.getKey,We=pe||[],oe=["header","footer"].map(function(rt){return ve(se,rt)}),Ie=b(oe,2),$e=Ie[0],nt=Ie[1],je=se.item;if(!je)throw new Error("draggable element must have an item slot");var Ye=We.flatMap(function(rt,Ot){return je({element:rt,index:Ot}).map(function(Lt){return Lt.key=Ee(rt),Lt.props=h(h({},Lt.props||{}),{},{"data-draggable":!0}),Lt})});if(Ye.length!==We.length)throw new Error("Item slot must have only one child");return{header:$e,footer:nt,default:Ye}}function j(re){var se=ke(re),pe=!Oe(re)&&!se;return{transition:se,externalComponent:pe,tag:pe?Object(we.resolveComponent)(re):se?we.TransitionGroup:re}}function Q(re){var se=re.$slots,pe=re.tag,Ee=re.realList,We=re.getKey,oe=U({$slots:se,realList:Ee,getKey:We}),Ie=j(pe);return new ue({nodes:oe,root:Ie,realList:Ee})}function de(re,se){var pe=this;Object(we.nextTick)(function(){return pe.$emit(re.toLowerCase(),se)})}function _e(re){var se=this;return function(pe,Ee){if(se.realList!==null)return se["onDrag".concat(re)](pe,Ee)}}function De(re){var se=this,pe=_e.call(this,re);return function(Ee,We){pe.call(se,Ee,We),de.call(se,re,Ee)}}var J=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(re){return re.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,We=this.componentData,oe=this.realList,Ie=this.getKey,$e=Q({$slots:se,tag:Ee,realList:oe,getKey:Ie});this.componentStructure=$e;var nt=Xe({$attrs:pe,componentData:We});return $e.render(we.h,nt)}catch(je){return this.error=!0,Object(we.h)("pre",{style:{color:"red"}},je.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&M.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,We=this.componentStructure;We.updated();var oe=fe({$attrs:pe,callBackBuilder:{manageAndEmit:function(nt){return De.call(se,nt)},emit:function(nt){return de.bind(se,nt)},manage:function(nt){return _e.call(se,nt)}}}),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 We=b(Ee,2),oe=We[0],Ie=We[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(We){return We.splice.apply(We,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,We=this.getUnderlyingPotencialDraggableComponent(pe);if(!We)return{component:We};var oe=We.realList,Ie={list:oe,component:We};if(pe!==Ee&&oe){var $e=We.getUnderlyingVm(Ee)||{};return h(h({},$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),J=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 We={element:pe,newIndex:Ee};this.emitChanges({added:We})}},onDragRemove:function(se){if(P(this.$el,se.item,se.oldIndex),se.pullMode==="clone"){I(se.clone);return}var pe=this.context,Ee=pe.index,We=pe.element;this.spliceList(Ee,1);var oe={element:We,oldIndex:Ee};this.emitChanges({removed:oe})},onDragUpdate:function(se){I(se.item),P(se.from,se.item,se.oldIndex);var pe=this.context.index,Ee=this.getVmIndexFromDomIndex(se.newIndex);this.updatePosition(pe,Ee);var We={element:this.context.element,oldIndex:pe,newIndex:Ee};this.emitChanges({moved:We})},computeFutureIndex:function(se,pe){if(!se.element)return 0;var Ee=C(pe.to.children).filter(function($e){return $e.style.display!=="none"}),We=Ee.indexOf(pe.related),oe=se.component.getVmIndexFromDomIndex(We),Ie=Ee.indexOf(J)!==-1;return Ie||!pe.willInsertAfter?oe:oe+1},onDragMove:function(se,pe){var Ee=this.move,We=this.realList;if(!Ee||!We)return!0;var oe=this.getRelatedContextFromMoveEvent(se),Ie=this.computeFutureIndex(oe,se),$e=h(h({},this.context),{},{futureIndex:Ie}),nt=h(h({},se),{},{relatedContext:oe,draggedContext:$e});return Ee(nt,pe)},onDragEnd:function(){J=null}}}),St=Ze;o.default=St},fb6a:function(i,o,a){var s=a("23e7"),l=a("861d"),u=a("e8b5"),c=a("23cb"),f=a("50c4"),h=a("fc6a"),d=a("8418"),v=a("b622"),m=a("1dde"),y=a("ae40"),_=m("slice"),b=y("slice",{ACCESSORS:!0,0:0,1:2}),S=v("species"),w=[].slice,T=Math.max;s({target:"Array",proto:!0,forced:!_||!b},{slice:function(E,R){var I=h(this),P=f(I.length),M=c(E,P),L=c(R===void 0?P:R,P),k,$,W;if(u(I)&&(k=I.constructor,typeof k=="function"&&(k===Array||u(k.prototype))?k=void 0:l(k)&&(k=k[S],k===null&&(k=void 0)),k===Array||k===void 0))return w.call(I,M,L);for($=new(k===void 0?Array:k)(T(L-M,0)),W=0;M<L;M++,W++)M in I&&d($,W,I[M]);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})}(X_)),X_.exports}var Pde=Rde();const Xh=Sm(Pde),Mde={class:"flex flex-col gap-3"},Ode={class:"flex items-center gap-2"},Dde={class:"relative flex flex-col rounded-sm"},Lde=["onClick"],Nde={class:"bg-neutral text-neutral-content flex h-8 cursor-move items-center rounded-sm px-2 select-none"},kde={class:"bg-base-200 text-base-content flex h-8 cursor-move items-center rounded-sm px-2 select-none"},Fde=tt({__name:"ConnectionCardSettings",setup(e){const t=Me([]),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)=>(X(),q("div",Mde,[D("span",null,ne(o.$t("customCardLines")),1),D("div",Ode,[D("button",{class:"btn btn-sm",onClick:a[0]||(a[0]=s=>(to.value=B(vne),n()))},ne(o.$t("simpleCardPreset")),1),D("button",{class:"btn btn-sm",onClick:a[1]||(a[1]=s=>(to.value=B(TV),n()))},ne(o.$t("detailedCardPreset")),1),a[3]||(a[3]=D("div",{class:"flex-1"},null,-1)),D("button",{class:"btn btn-circle btn-neutral btn-sm",onClick:r},[z(B(cS),{class:"h-4 w-4"})])]),D("div",Dde,[(X(!0),q(Ge,null,qt(B(to),(s,l)=>(X(),q("div",{key:l,class:mt(`flex items-center gap-2 p-2 ${l%2===0?"bg-base-200":"bg-base-300"}`)},[B(to).length>1?(X(),q("button",{key:0,class:"btn btn-circle btn-neutral btn-sm",onClick:u=>i(l)},[z(B(PI),{class:"h-4 w-4"})],8,Lde)):it("",!0),z(B(Xh),{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:jn(({element:u})=>[D("div",Nde,ne(o.$t(u)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","item-key"])],2))),128)),z(B(Xh),{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:jn(({element:s})=>[D("div",kde,ne(o.$t(s)),1)]),_:1},8,["modelValue","item-key"])])]))}}),$de={class:"flex gap-4 rounded-sm"},Bde={class:"bg-neutral text-neutral-content flex h-8 cursor-move items-center justify-center rounded-sm px-2 select-none"},Vde={class:"bg-base-200 text-base-content flex h-8 cursor-move items-center justify-center rounded-sm px-2 select-none"},Ude=tt({__name:"TableSettings",setup(e){const t=Me(Object.values(ze).filter(n=>!xu.value.includes(n)));return(n,r)=>(X(),q(Ge,null,[D("div",null,ne(n.$t("customTableColumns")),1),D("div",$de,[z(B(Xh),{class:"bg-base-200 flex flex-1 flex-col gap-2 p-4",modelValue:B(xu),"onUpdate:modelValue":r[0]||(r[0]=i=>pt(xu)?xu.value=i:null),group:"list",animation:150,"item-key":i=>i},{item:jn(({element:i})=>[D("div",Bde,ne(n.$t(i)),1)]),_:1},8,["modelValue","item-key"]),z(B(Xh),{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:jn(({element:i})=>[D("div",Vde,ne(n.$t(i)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),Hde={class:"tabs-box tabs tabs-xs"},zde=["onClick"],R0=tt({__name:"ConnectionTabs",props:{horizental:{type:Boolean,default:!0}},setup(e){const t=xe(()=>Lh.value.length!==gh.value.length?`${Lh.value.length} / ${gh.value.length}`:gh.value.length);return(n,r)=>(X(),q("div",Hde,[(X(!0),q(Ge,null,qt(Object.values(B(Om)),i=>(X(),q("a",{key:i,role:"tab",class:mt(B(bi)("tab",B(vh)===i&&"tab-active",!e.horizental&&"flex-1")),onClick:()=>vh.value=i},[qe(ne(n.$t(i))+" ",1),B(vh)===i?(X(),q(Ge,{key:0},[qe(" ("+ne(t.value)+") ",1)],64)):it("",!0)],10,zde))),128))]))}}),Gde={value:null},Wde=["value"],jde=["value"],P0=tt({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=xe(()=>mr.uniq(gh.value.map(r=>r.metadata.sourceIP)).sort()),n=Me([]);return Bt(t,(r,i)=>{mr.isEqual(r,i)||(n.value=t.value.map(o=>({label:Vb(o),value:o})))},{immediate:!0}),(r,i)=>r.horizontal?it("",!0):gt((X(),q("select",{key:0,class:"join-item select select-sm","onUpdate:modelValue":i[0]||(i[0]=o=>pt(rl)?rl.value=o:null)},[D("option",Gde,ne(r.$t("allSourceIP")),1),n.value.every(o=>o.value!==B(rl))&&B(rl)!==null?(X(),q("option",{key:0,value:B(rl)},ne(B(Vb)(B(rl))),9,Wde)):it("",!0),(X(!0),q(Ge,null,qt(n.value,o=>(X(),q("option",{key:o.value,value:o.value},ne(o.label),9,jde))),128))],512)),[[ur,B(rl)]])}}),Xde=()=>{Lh.value.forEach(e=>{ww(e.id)})},g6=tt({name:"ConnectionCtrl",components:{TextInput:Cr,ConnectionTabs:R0,SourceIPFilter:P0},props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),n=Me(!1),{showTip:r}=Ls(),i=xe(()=>Mo.value?Une.value:Gu.value);return()=>{const o=z("div",{class:["flex w-full items-center gap-1 text-sm",e.horizontal&&"lg:w-auto"]},[z("span",{class:"shrink-0"},[t("sortBy")]),z("div",{class:"join flex-1 max-lg:w-0"},[gt(z("select",{class:"join-item select select-sm flex-1 max-lg:w-0","onUpdate:modelValue":u=>aA.value=u},[Object.values(eo).map(u=>z("option",{key:u,value:u},[t(u)||u]))]),[[ur,aA.value]]),z("button",{class:"btn join-item btn-sm",onClick:()=>{z_.value=z_.value===tf.ASC?tf.DESC:tf.ASC}},[z_.value===tf.ASC?z(Pm,{class:"h-4 w-4"},null):z(uS,{class:"h-4 w-4"},null)])])]),a=z(Ge,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[z(fS,{class:"h-4 w-4"},null)]),z(id,{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[z("span",{class:"shrink-0"},[t("hideConnectionRegex")]),z(Cr,{class:"w-32 max-w-64 flex-1",modelValue:G1.value,"onUpdate:modelValue":u=>G1.value=u},null)]),z("div",{class:"flex items-center gap-2"},[t("hideConnection"),gt(z("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":u=>oA.value=u},null),[[En,oA.value]]),z("div",{onMouseenter:u=>r(u,t("hideConnectionTip"),{appendTo:"parent"})},[z(RI,{class:"h-4 w-4"},null)])]),Mo.value?z(Fde,null,null):z(Ude,null,null)])]})]),s=z(Cr,{modelValue:W1.value,"onUpdate:modelValue":u=>W1.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=z(Ge,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>{G_.value=!G_.value}},[G_.value?z(uV,{class:"h-4 w-4"},null):z(lV,{class:"h-4 w-4"},null)]),z("button",{class:"btn btn-circle btn-sm",onClick:Xde},[z($f,{class:"h-4 w-4"},null)])]);return e.horizontal?i.value?z("div",{class:"flex flex-wrap items-center gap-2 p-2"},[z("div",{class:"flex w-full items-center justify-between gap-2"},[z(R0,null,null),!Mo.value&&z("div",{class:"flex items-center gap-1"},[a,l])]),Mo.value&&z("div",{class:"flex w-full items-center gap-2"},[o,a,l]),z("div",{class:"join w-full"},[z(P0,{class:"w-40"},null),s])]):z("div",{class:"flex items-center gap-2 p-2"},[z(R0,null,null),Mo.value&&o,z(P0,{class:"w-40"},null),z("div",{class:"flex flex-1"},[s]),a,l]):z("div",{class:"flex flex-wrap items-center gap-2 p-2"},[z(R0,{class:"w-full",horizental:!1},null),z("div",{class:"flex w-full items-center gap-2"},[z(P0,{class:"w-40 flex-1"},null),a,l]),s,Mo.value&&o])}}}),Yh=Me([]),dg=Me(""),o1=Me(!1),DA=dt("config/log-level",Di.Info);let M0,cb=[];const Yde=mr.throttle(()=>{Yh.value=cb.concat(Yh.value).slice(0,jE.value),cb=[]},500),LA=[],Kde=()=>{LA.length=0;for(const{key:e,label:t}of ia.value){if(e.startsWith("/"))continue;const n=new RegExp(e+":","ig");LA.push([n,`${e} (${t}) :`])}};Bt(ia,()=>{Kde()},{immediate:!0});const m6=()=>{M0==null||M0(),Yh.value=[],cb=[];let e=1;const t=nIe({level:DA.value}),n=Bt(t.data,r=>{if(r){if(o1.value){e++;return}for(const[i,o]of LA)r.payload=r.payload.replace(i,o);cb.unshift({...r,time:po().locale(Su.value).format("HH:mm:ss"),seq:e++}),Yde()}});M0=()=>{n(),t.close()}},y6=tt({props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),n=Me(!1),r=mr.debounce(o=>{if(!o)return;const a=Ed.value.indexOf(o);a!==-1&&Ed.value.splice(a,1),Ed.value.unshift(o),Ed.value.length>5&&Ed.value.pop()},1500);Bt(dg,r);const i=xe(()=>Tl.value?Object.values(Di):[Di.Debug,Di.Info,Di.Warning,Di.Error,Di.Silent]);return()=>{const o=gt(z("select",{class:["join-item select select-sm",!e.horizontal&&"w-full"],"onUpdate:modelValue":u=>DA.value=u,onChange:m6},[i.value.map(u=>z("option",{key:u,value:u},[u]))]),[[ur,DA.value]]),a=z(Cr,{modelValue:dg.value,"onUpdate:modelValue":u=>dg.value=u,beforeClose:!0,class:"flex-1",placeholder:t("search"),clearable:!0,menus:Ed.value},null),s=z(Ge,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[z(fS,{class:"h-4 w-4"},null)]),z(id,{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[t("logRetentionLimit"),gt(z("input",{class:"input input-sm w-20",type:"number",max:"9999","onUpdate:modelValue":u=>jE.value=u},null),[[vi,jE.value]])])])]})]),l=z("div",{class:"flex items-center gap-2"},[s,z("button",{class:"btn btn-circle btn-sm",onClick:()=>o1.value=!o1.value},[o1.value?z(uV,{class:"h-4 w-4"},null):z(lV,{class:"h-4 w-4"},null)]),z("button",{class:"btn btn-circle btn-sm",onClick:()=>Yh.value=[]},[z($f,{class:"h-4 w-4"},null)])]);return e.horizontal?z("div",{class:"flex items-center justify-between gap-2 p-2"},[z("div",{class:"join max-w-96 flex-1"},[o,a]),l]):z("div",{class:"flex w-full flex-col items-center gap-2 p-2"},[z("div",{class:"flex w-full items-center gap-2"},[o,l]),z("div",{class:"w-full"},[a])])}}}),NA=$ne("collapsedBus"),_6=tt({name:"ProxiesCtrl",props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),{proxiesTabShow:n}=bm(),r=Me(!1),i=Me(!1),o=Me(!1),a=async()=>{if(!r.value){r.value=!0;try{await Promise.all(Af.value.map(y=>E7(y.name))),await Sa(),r.value=!1}catch{await Sa(),r.value=!1}}},s=xe(()=>Af.value.length>0),l=xe(()=>{var y,_;return((y=Br.value)==null?void 0:y["mode-list"])||((_=Br.value)==null?void 0:_.modes)||["direct","rule","global"]}),u=y=>{const _=y.target.value;E1({mode:_})},c=async()=>{if(!i.value){i.value=!0;try{await Loe(),i.value=!1}catch{i.value=!1}}},{renderGroups:f}=bm(),h=xe(()=>f.value.some(y=>VE.value[y])),d=()=>{NA.emit({open:!h.value})},v=()=>{Jv.value=BI(nf.value)},m=xe(()=>Object.values(fa).map(y=>({type:y,count:y===fa.PROXIES?j1.value.length:Af.value.length})));return()=>{const y=z("div",{role:"tablist",class:"tabs-box tabs tabs-xs"},[m.value.map(({type:I,count:P})=>z("a",{role:"tab",key:I,class:["tab",n.value===I&&"tab-active",!e.horizontal&&"flex-1"],onClick:()=>n.value=I},[t(I),qe(" ("),P,qe(")")]))]),_=n.value===fa.PROVIDER&&z("button",{class:"btn btn-sm",onClick:a},[r.value?z("span",{class:"loading loading-dots loading-md"},null):t("updateAllProviders")]),b=n.value===fa.PROVIDER&&z("button",{class:"btn btn-circle btn-sm",onClick:a},[z(Rm,{class:["h-4 w-4",r.value&&"animate-spin"]},null)]),S=Br.value&&gt(z("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=>Br.value.mode=I,onChange:u},[l.value.map(I=>z("option",{key:I,value:I},[["global","rule","direct"].includes(I.toLowerCase())?t(I.toLowerCase()):I]))]),[[ur,Br.value.mode]]),w=gt(z("select",{class:["select select-sm"],"onUpdate:modelValue":I=>UE.value=I},[Object.values(yu).map(I=>z("option",{key:I,value:I},[t(I)]))]),[[ur,UE.value]]),T=z("button",{class:"btn btn-circle btn-sm",onClick:c},[i.value?z("span",{class:"loading loading-spinner loading-sm"},null):z(Mm,{class:"h-4 w-4"},null)]),C=z("button",{class:["btn btn-circle btn-sm",Cf.value&&n.value===fa.PROXIES&&"max-sm:hidden"],onClick:d},[h.value?z(ete,{class:"h-4 w-4"},null):z(Qee,{class:"h-4 w-4"},null)]),E=z(Cr,{class:e.horizontal&&!Gu.value?"w-32 max-w-80 flex-1":"w-80",modelValue:Bb.value,"onUpdate:modelValue":I=>Bb.value=I,placeholder:t("search"),clearable:!0},null),R=z(Ge,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>o.value=!0},[z(fS,{class:"h-4 w-4"},null)]),z(id,{modelValue:o.value,"onUpdate:modelValue":I=>o.value=I},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[t("sortBy"),w]),z("div",{class:"flex items-center gap-2"},[t("unavailableProxy"),gt(z("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":I=>zE.value=I},null),[[En,zE.value]])]),z("div",{class:"flex items-center gap-2"},[t("manageHiddenGroup"),gt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":I=>Wg.value=I},null),[[En,Wg.value]])]),z("div",{class:"flex items-center gap-2"},[t("automaticDisconnection"),gt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":I=>HE.value=I},null),[[En,HE.value]])]),z("div",{class:"flex items-center gap-2"},[t("minProxyCardWidth"),z("div",{class:"join"},[gt(z("input",{class:"input input-sm join-item w-20",type:"number","onUpdate:modelValue":I=>Jv.value=I},null),[[vi,Jv.value]]),z("button",{class:"btn join-item btn-sm",onClick:v},[t("reset")])])])])]})]);return e.horizontal?Gu.value?z("div",{class:"flex flex-col gap-2 p-2"},[s.value&&z("div",{class:"flex gap-2"},[y,b]),z("div",{class:"flex w-full gap-2"},[S,E,R,C,T])]):z("div",{class:"flex gap-2 p-2"},[s.value&&y,S,z("div",{class:"flex flex-1"},[E]),b,R,C,T]):z("div",{class:"flex flex-col gap-2 p-2"},[_,s.value&&y,z("div",{class:"flex gap-2"},[S,R,C,T]),z("div",{class:"flex gap-2"},[E])])}}}),Iu=Me(fl.RULES),Kh=Me([]),ms=Me([]),Zh=Me(""),O0=xe(()=>Zh.value===""?Kh.value:Kh.value.filter(e=>[e.type.toLowerCase(),e.payload.toLowerCase(),e.proxy.toLowerCase()].some(t=>t.includes(Zh.value.toLowerCase())))),Zde=xe(()=>Zh.value===""?ms.value:ms.value.filter(e=>[e.name.toLowerCase(),e.behavior.toLowerCase(),e.vehicleType.toLowerCase()].some(t=>t.includes(Zh.value.toLowerCase())))),qh=async()=>{const{data:e}=await X2e(),{data:t}=await Y2e();Kh.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)},b6=tt({name:"RulesCtrl",props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Qr(),n=Me(!1),r=Me(!1),i=xe(()=>ms.value.length>0),{showNotification:o}=rd(),a=async()=>{if(!r.value){r.value=!0;try{let l=0;await Promise.all(ms.value.map(u=>A7(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 qh(),r.value=!1}catch{await qh(),r.value=!1}}},s=xe(()=>Object.values(fl).map(l=>({type:l,count:l===fl.RULES?Kh.value.length:ms.value.length})));return()=>{const l=z("div",{role:"tablist",class:"tabs-box tabs tabs-xs"},[s.value.map(({type:d,count:v})=>z("a",{role:"tab",key:d,class:["tab",Iu.value===d&&"tab-active",!e.horizontal&&"flex-1"],onClick:()=>Iu.value=d},[t(d),qe(" ("),v,qe(")")]))]),u=Iu.value===fl.PROVIDER&&z("button",{class:"btn btn-sm",onClick:a},[r.value?z("span",{class:"loading loading-dots loading-md"},null):t("updateAllProviders")]),c=Iu.value===fl.PROVIDER&&z("button",{class:"btn btn-circle btn-sm",onClick:a},[z(Rm,{class:["h-4 w-4",r.value&&"animate-spin"]},null)]),f=z(Cr,{class:"w-full md:w-80",modelValue:Zh.value,"onUpdate:modelValue":d=>Zh.value=d,placeholder:t("search"),clearable:!0},null),h=z(Ge,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[z(fS,{class:"h-4 w-4"},null)]),z(id,{modelValue:n.value,"onUpdate:modelValue":d=>n.value=d},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[t("displaySelectedNode"),gt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d=>GE.value=d},null),[[En,GE.value]])]),z("div",{class:"flex items-center gap-2"},[t("displayLatencyNumber"),gt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d=>WE.value=d},null),[[En,WE.value]])])])]})]);return e.horizontal?Gu.value?z("div",{class:"flex flex-col gap-2 p-2"},[i.value&&z("div",{class:"flex gap-2"},[l,c]),z("div",{class:"flex w-full gap-2"},[f,h])]):z("div",{class:"flex flex-wrap gap-2 p-2"},[i.value&&l,f,z("div",{class:"flex-1"},null),c,h]):z("div",{class:"flex flex-col gap-2 p-2"},[u,i.value&&l,z("div",{class:"flex gap-2"},[f,h])])}}}),qde=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,Jde="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",Qde={class:"flex items-center gap-1"},ehe=["src"],jR=tt({__name:"BackendVersion",setup(e){return(t,n)=>(X(),q("div",Qde,[D("img",{src:B(Tl)?B(Jde):B(qde),class:"h-4 w-4 rounded-xs"},null,8,ehe),qe(" "+ne(B(np)),1)]))}}),af=60,Mf=new Array(af).fill(0).map((e,t)=>({name:t,value:e})),S6=Me(0),Pv=Me([...Mf]),a1=Me([...Mf]),w6=Me(0),x6=Me(0),Mv=Me([...Mf]),Ov=Me([...Mf]);let D0;const the=()=>{D0==null||D0(),Mv.value=[...Mf],Ov.value=[...Mf],Pv.value=[...Mf];const{data:e,close:t}=rIe(),n=Bt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();S6.value=a.inuse,Pv.value.push({value:a.inuse,name:s}),a1.value.push({value:bs.value.length,name:s}),Pv.value=Pv.value.slice(-1*af),a1.value=a1.value.slice(-1*af)}),{data:r,close:i}=iIe(),o=Bt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();w6.value=a.down,x6.value=a.up,Mv.value.push({value:a.down,name:s}),Ov.value.push({value:a.up,name:s}),Mv.value=Mv.value.slice(-1*af),Ov.value=Ov.value.slice(-1*af)});D0=()=>{t(),i(),n(),o()}};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=xe(()=>({connections:bs.value.length,memoryUsage:Gn(S6.value,{binary:!0}),download:Gn(rA.value),upload:Gn(iA.value),dlSpeed:Gn(w6.value)+"/s",ulSpeed:Gn(x6.value)+"/s"})),XR=tt({__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=xe(()=>n[t.type]),o=xe(()=>r[t.type]);return(a,s)=>(X(),q("div",{class:mt(i.value.list)},[(X(!0),q(Ge,null,qt(o.value,l=>(X(),q("div",{key:l,class:mt(i.value.item)},[D("div",{class:mt(i.value.label)},ne(a.$t(l)),3),D("div",{class:mt(i.value.value)},ne(B(Qc)[l]),3)],2))),128))],2))}}),nhe={class:"join flex"},rhe=["value"],C6=tt({__name:"BackendSwitch",setup(e){const t=xe(()=>ha.value.map(r=>({label:r.label||qu(r),value:r.uuid}))),n=()=>{gi.value=null,Ds.push({name:jt.setup})};return(r,i)=>(X(),q("div",nhe,[gt(D("select",{class:"join-item select select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>pt(gi)?gi.value=o:null)},[(X(!0),q(Ge,null,qt(t.value,o=>(X(),q("option",{key:o.value,value:o.value},ne(o.label),9,rhe))),128))],512),[[ur,B(gi)]]),D("button",{class:"btn join-item btn-sm",onClick:n},[z(B(cS),{class:"h-4 w-4"})])]))}}),ihe={class:"flex flex-col gap-2 p-2 text-sm"},ohe={class:"flex gap-2"},ahe={class:"flex"},she=tt({__name:"CommonCtrl",setup(e){return(t,n)=>(X(),q("div",ihe,[z(XR,{type:"ctrl"}),D("div",ohe,[qe(ne(t.$t("version"))+" ",1),z(jR)]),D("div",ahe,[D("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>za.value=!0)},[z(B(qee),{class:"h-5 w-5"})]),n[1]||(n[1]=D("div",{class:"flex-1"},null,-1)),z(C6)])]))}});/*! *****************************************************************************
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 kA=function(e,t){return kA=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])},kA(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");kA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var YR=12,lhe="sans-serif",Xf=YR+"px "+lhe,uhe=20,che=100,fhe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function dhe(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)-uhe)/che;t[r]=i}return t}var hhe=dhe(fhe),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||Xf),e.measureText(n);n=n||"",r=r||Xf;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||YR,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=hhe[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}},T6=cp(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),E6=cp(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),jm=Object.prototype.toString,VS=Array.prototype,phe=VS.forEach,vhe=VS.filter,KR=VS.slice,ghe=VS.map,eF=(function(){}).constructor,L0=eF?eF.prototype:null,ZR="__proto__",mhe=2311;function A6(){return mhe++}function qR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function fn(e){if(e==null||typeof e!="object")return e;var t=e,n=jm.call(e);if(n==="[object Array]"){if(!hg(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=fn(e[r])}}else if(E6[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(!T6[n]&&!hg(e)&&!im(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==ZR&&(t[a]=fn(e[a]))}return t}function Sn(e,t,n){if(!Rt(t)||!Rt(e))return n?fn(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==ZR){var i=e[r],o=t[r];Rt(o)&&Rt(i)&&!ft(o)&&!ft(i)&&!im(o)&&!im(i)&&!tF(o)&&!tF(i)&&!hg(o)&&!hg(i)?Sn(i,o,n):(n||!(r in e))&&(e[r]=fn(t[r]))}return e}function Je(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==ZR&&(e[n]=t[n]);return e}function An(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 Rn(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 yhe(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 An(e,t)}function go(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function te(e,t,n){if(e&&t)if(e.forEach&&e.forEach===phe)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 JR(e);if(e.map&&e.map===ghe)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 Kr(e,t,n){if(!e)return[];if(!t)return JR(e);if(e.filter&&e.filter===vhe)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 _he(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(KR.call(arguments)))}}var qn=L0&&Gt(L0.bind)?L0.call.bind(L0.bind):_he;function Vr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(KR.call(arguments)))}}function ft(e){return Array.isArray?Array.isArray(e):jm.call(e)==="[object Array]"}function Gt(e){return typeof e=="function"}function bt(e){return typeof e=="string"}function FA(e){return jm.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 tF(e){return!!T6[jm.call(e)]}function mo(e){return!!E6[jm.call(e)]}function im(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function US(e){return e.colorStops!=null}function bhe(e){return e.image!=null}function fb(e){return e!==e}function om(){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 sn(e,t){return e??t}function s1(e,t,n){return e??t??n}function JR(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return KR.apply(e,t)}function I6(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 R6="__ec_primitive__";function $A(e){e[R6]=!0}function hg(e){return e[R6]}var She=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}(),P6=typeof Map=="function";function whe(){return P6?new Map:new She}var xhe=function(){function e(t){var n=ft(t);this.data=whe();var r=this;t instanceof e?t.each(i):t&&te(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 P6?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Zt(e){return new xhe(e)}function Che(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 HS(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Je(n,t),n}function M6(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Yf(e,t){return e.hasOwnProperty(t)}function fo(){}var The=180/Math.PI,Ehe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ahe=function(){function e(){this.browser=new Ehe,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 Ahe;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):Ihe(navigator.userAgent,Nt);function Ihe(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 Rhe=".",Cc="___EC__COMPONENT__CONTAINER___",O6="___EC__EXTENDED_CLASS___";function ws(e){var t={main:"",sub:""};if(e){var n=e.split(Rhe);t.main=n[0]||"",t.sub=n[1]||""}return t}function Phe(e){Ml(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Mhe(e){return!!(e&&e[O6])}function QR(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return Ohe(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)},yhe(i,this)),Je(i.prototype,n),i[O6]=!0,i.extend=this.extend,i.superCall=Nhe,i.superApply=khe,i.superClass=r,i}}function Ohe(e){return Gt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function D6(e,t){e.extend=t.extend}var Dhe=Math.round(Math.random()*10);function Lhe(e){var t=["__\0is_clz",Dhe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function Nhe(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 khe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function zS(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){Phe(i),r.prototype.type=i;var o=ws(i);if(!o.sub)t[o.main]=r;else if(o.sub!==Cc){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[Cc]&&(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[Cc]?te(a,function(s,l){l!==Cc&&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 te(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=ws(r),o=t[i.main];return o&&o[Cc]};function n(r){var i=t[r.main];return(!i||!i[Cc])&&(i=t[r.main]={},i[Cc]=!0),i}}function am(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&&Rn(i,l)>=0||o&&Rn(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var Fhe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],$he=am(Fhe),Bhe=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return $he(this,t,n)},e}(),L6=function(){function e(t){this.value=t}return e}(),Vhe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new L6(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}(),Xm=function(){function e(t){this._list=new Vhe,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 L6(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}(),BA=new Xm(50);function Uhe(e){if(typeof e=="string"){var t=BA.get(e);return t&&t.image}else return e}function N6(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=BA.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!GS(t)&&o.pending.push(a)):(t=up.loadImage(e,nF,nF),t.__zrImageSrc=e,BA.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function nF(){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 GS(e){return e&&e.width&&e.height}function yh(){return[1,0,0,1,0,0]}function eP(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Hhe(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 _h(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 VA(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 tP(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 zhe(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 nP(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 Dn=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,Tc=new Dn,Ec=new Dn,Ac=new Dn,Ic=new Dn,Qp=new Dn,ev=new Dn,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=yh();return VA(o,o,[-n.x,-n.y]),zhe(o,o,[r,i]),VA(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,h=!(o<l||u<i||s<c||f<a);if(n){var d=1/0,v=0,m=Math.abs(o-l),y=Math.abs(u-i),_=Math.abs(s-c),b=Math.abs(f-a),S=Math.min(m,y),w=Math.min(_,b);o<l||u<i?S>v&&(v=S,m<y?Dn.set(ev,-m,0):Dn.set(ev,y,0)):S<d&&(d=S,m<y?Dn.set(Qp,m,0):Dn.set(Qp,-y,0)),s<c||f<a?w>v&&(v=w,_<b?Dn.set(ev,0,-_):Dn.set(ev,0,b)):S<d&&(d=S,_<b?Dn.set(Qp,0,_):Dn.set(Qp,0,-b))}return n&&Dn.copy(n,h?Qp:ev),h},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}Tc.x=Ac.x=n.x,Tc.y=Ic.y=n.y,Ec.x=Ic.x=n.x+n.width,Ec.y=Ac.y=n.y+n.height,Tc.transform(r),Ic.transform(r),Ec.transform(r),Ac.transform(r),t.x=N0(Tc.x,Ec.x,Ac.x,Ic.x),t.y=N0(Tc.y,Ec.y,Ac.y,Ic.y);var l=k0(Tc.x,Ec.x,Ac.x,Ic.x),u=k0(Tc.y,Ec.y,Ac.y,Ic.y);t.width=l-t.x,t.height=u-t.y},e}(),rF={};function No(e,t){t=t||Xf;var n=rF[t];n||(n=rF[t]=new Xm(500));var r=n.get(e);return r==null&&(r=up.measureText(e,t).width,n.put(e,r)),r}function iF(e,t,n,r){var i=No(e,t),o=iP(t),a=Dv(0,i,n),s=nh(0,o,r),l=new wn(a,s,i,o);return l}function rP(e,t,n,r){var i=((e||"")+"").split(`
`),o=i.length;if(o===1)return iF(i[0],t,n,r);for(var a=new wn(0,0,0,0),s=0;s<i.length;s++){var l=iF(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function Dv(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function nh(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function iP(e){return No("国",e)}function Kf(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function k6(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+=Kf(r[0],n.width),u+=Kf(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 jC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ghe(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
`);o=F6(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)$6(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
`),e.isTruncated=s}function F6(e,t,n,r){r=r||{};var i=Je({},r);i.font=t,n=sn(n,"..."),i.maxIterations=sn(r.maxIterations,2);var o=i.minChar=sn(r.minChar,0);i.cnCharWidth=No("国",t);var a=i.ascCharWidth=No("a",t);i.placeholder=sn(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=No(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 $6(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=No(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?Whe(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=No(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Whe(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 jhe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,o=n==="truncate",a=iP(i),s=sn(t.lineHeight,a),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,h;f!=null&&(n==="break"||n==="breakAll")?h=e?B6(e,t.font,f,n==="breakAll",0).lines:[]:h=e?e.split(`
`):[];var d=h.length*s,v=sn(t.height,d);if(d>v&&u){var m=Math.floor(v/s);c=c||h.length>m,h=h.slice(0,m)}if(e&&o&&f!=null)for(var y=F6(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},b=0;b<h.length;b++)$6(_,h[b],y),h[b]=_.textLine,c=c||_.isTruncated;for(var S=v,w=0,b=0;b<h.length;b++)w=Math.max(No(h[b],i),w);f==null&&(f=w);var T=w;return r&&(S+=r[0]+r[2],T+=r[1]+r[3],f+=r[1]+r[3]),l&&(T=f),{lines:h,height:v,outerWidth:T,outerHeight:S,lineHeight:s,calculatedLineHeight:a,contentWidth:w,contentHeight:d,width:f,isTruncated:c}}var Xhe=function(){function e(){}return e}(),oF=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Yhe=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 Khe(e,t){var n=new Yhe;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=jC.lastIndex=0,l;(l=jC.exec(e))!=null;){var u=l.index;u>s&&XC(n,e.substring(s,u),t,a),XC(n,l[2],t,a,l[1]),s=jC.lastIndex}s<e.length&&XC(n,e.substring(s,e.length),t,a);var c=[],f=0,h=0,d=t.padding,v=o==="truncate",m=t.lineOverflow==="truncate",y={};function _(ge,ye,Oe){ge.width=ye,ge.lineHeight=Oe,f+=Oe,h=Math.max(h,ye)}e:for(var b=0;b<n.lines.length;b++){for(var S=n.lines[b],w=0,T=0,C=0;C<S.tokens.length;C++){var E=S.tokens[C],R=E.styleName&&t.rich[E.styleName]||{},I=E.textPadding=R.padding,P=I?I[1]+I[3]:0,M=E.font=R.font||t.font;E.contentHeight=iP(M);var L=sn(R.height,E.contentHeight);if(E.innerHeight=L,I&&(L+=I[0]+I[2]),E.height=L,E.lineHeight=s1(R.lineHeight,t.lineHeight,L),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?(S.tokens=S.tokens.slice(0,C),_(S,T,w),n.lines=n.lines.slice(0,b+1)):n.lines=n.lines.slice(0,b),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=No(E.text,M);else{if(W){var N=R.backgroundColor,K=N&&N.image;K&&(K=Uhe(K),GS(K)&&(E.width=Math.max(E.width,K.width*L/K.height)))}var Y=v&&r!=null?r-T:null;Y!=null&&Y<E.width?!W||Y<P?(E.text="",E.width=E.contentWidth=0):(Ghe(y,E.text,Y-P,M,t.ellipsis,{minChar:t.truncateMinChar}),E.text=y.text,n.isTruncated=n.isTruncated||y.isTruncated,E.width=E.contentWidth=No(E.text,M)):E.contentWidth=No(E.text,M)}E.width+=P,T+=E.width,R&&(w=Math.max(w,E.lineHeight))}_(S,T,w)}n.outerWidth=n.width=sn(r,h),n.outerHeight=n.height=sn(i,f),n.contentHeight=f,n.contentWidth=h,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(var b=0;b<c.length;b++){var E=c[b],ae=E.percentWidth;E.width=parseInt(ae,10)/100*n.width}return n}function XC(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 h=a.padding,d=h?h[1]+h[3]:0;if(a.width!=null&&a.width!=="auto"){var v=Kf(a.width,r.width)+d;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
`),u=!0),r.accumWidth=v}else{var m=B6(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+d,f=m.linesWidths,c=m.lines}}else c=t.split(`
`);for(var y=0;y<c.length;y++){var _=c[y],b=new Xhe;if(b.styleName=i,b.text=_,b.isLineHolder=!_&&!o,typeof a.width=="number"?b.width=a.width:b.width=f?f[y]:No(_,l),!y&&!u){var S=(s[s.length-1]||(s[0]=new oF)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=b:(_||!w||o)&&S.push(b)}else s.push(new oF([b]))}}function Zhe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qhe=cp(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Jhe(e){return Zhe(e)?!!qhe[e]:!0}function B6(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var h=e.charAt(f);if(h===`
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var d=No(h,t),v=r?!1:!Jhe(h);if(o.length?c+d>n:i+c+d>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=d)):v?(o.push(l),a.push(u),l=h,u=d):(o.push(h),a.push(d));continue}c+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}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 Qhe(e){return[e[0],e[1]]}function aF(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function epe(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function tpe(e){return Math.sqrt(npe(e))}function npe(e){return e[0]*e[0]+e[1]*e[1]}function YC(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function rpe(e,t){var n=tpe(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function UA(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ipe=UA;function ope(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var bh=ope;function ya(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 ah(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function sh(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var sF=eP,ape=5e-5;function Rc(e){return e>ape||e<-5e-5}var Pc=[],Dd=[],KC=yh(),ZC=Math.abs,oP=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 Rc(this.rotation)||Rc(this.x)||Rc(this.y)||Rc(this.scaleX-1)||Rc(this.scaleY-1)||Rc(this.skewX)||Rc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(sF(r),this.invTransform=null);return}r=r||yh(),n?this.getLocalTransform(r):sF(r),t&&(n?_h(r,t,r):Hhe(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Pc);var r=Pc[0]<0?-1:1,i=Pc[1]<0?-1:1,o=((Pc[0]-r)*n+r)/Pc[0]||0,a=((Pc[1]-i)*n+i)/Pc[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||yh(),nP(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||yh(),_h(Dd,t.invTransform,n),n=Dd);var r=this.originX,i=this.originY;(r||i)&&(KC[4]=r,KC[5]=i,_h(Dd,n,KC),Dd[4]-=r,Dd[5]-=i,n=Dd),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&&ya(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&ya(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&ZC(t[0]-1)>1e-10&&ZC(t[3]-1)>1e-10?Math.sqrt(ZC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){spe(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,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var v=r+s,m=i+l;n[4]=-v*o-h*m*a,n[5]=-m*a-d*v*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=d*o,n[2]=h*a,u&&tP(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}(),sm=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function spe(e,t){for(var n=0;n<sm.length;n++){var r=sm[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,$u=Math.sqrt,V6=1e-8,U6=1e-4,lF=$u(3),$0=1/3,ys=fp(),sa=fp(),Sh=fp();function Ru(e){return e>-1e-8&&e<V6}function H6(e){return e>V6||e<-1e-8}function Zr(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 uF(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function db(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,h=l*l-3*s*u,d=0;if(Ru(c)&&Ru(f))if(Ru(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[d++]=v)}else{var m=f*f-4*c*h;if(Ru(m)){var y=f/c,v=-s/a+y,_=-y/2;v>=0&&v<=1&&(o[d++]=v),_>=0&&_<=1&&(o[d++]=_)}else if(m>0){var b=$u(m),S=c*s+1.5*a*(-f+b),w=c*s+1.5*a*(-f-b);S<0?S=-F0(-S,$0):S=F0(S,$0),w<0?w=-F0(-w,$0):w=F0(w,$0);var v=(-s-(S+w))/(3*a);v>=0&&v<=1&&(o[d++]=v)}else{var T=(2*c*s-3*a*f)/(2*$u(c*c*c)),C=Math.acos(T)/3,E=$u(c),R=Math.cos(C),v=(-s-2*E*R)/(3*a),_=(-s+E*(R+lF*Math.sin(C)))/(3*a),I=(-s+E*(R-lF*Math.sin(C)))/(3*a);v>=0&&v<=1&&(o[d++]=v),_>=0&&_<=1&&(o[d++]=_),I>=0&&I<=1&&(o[d++]=I)}}return d}function z6(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(Ru(a)){if(H6(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ru(c))i[0]=-o/(2*a);else if(c>0){var f=$u(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function hb(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 lpe(e,t,n,r,i,o,a,s,l,u,c){var f,h=.005,d=1/0,v,m,y,_;ys[0]=l,ys[1]=u;for(var b=0;b<1;b+=.05)sa[0]=Zr(e,n,i,a,b),sa[1]=Zr(t,r,o,s,b),y=bh(ys,sa),y<d&&(f=b,d=y);d=1/0;for(var S=0;S<32&&!(h<U6);S++)v=f-h,m=f+h,sa[0]=Zr(e,n,i,a,v),sa[1]=Zr(t,r,o,s,v),y=bh(sa,ys),v>=0&&y<d?(f=v,d=y):(Sh[0]=Zr(e,n,i,a,m),Sh[1]=Zr(t,r,o,s,m),_=bh(Sh,ys),m<=1&&_<d?(f=m,d=_):h*=.5);return $u(d)}function upe(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,h=1/l,d=1;d<=l;d++){var v=d*h,m=Zr(e,n,i,a,v),y=Zr(t,r,o,s,v),_=m-u,b=y-c;f+=Math.sqrt(_*_+b*b),u=m,c=y}return f}function ro(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function cF(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function cpe(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(Ru(o)){if(H6(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ru(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=$u(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function G6(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function pb(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 fpe(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;ys[0]=a,ys[1]=s;for(var h=0;h<1;h+=.05){sa[0]=ro(e,n,i,h),sa[1]=ro(t,r,o,h);var d=bh(ys,sa);d<f&&(u=h,f=d)}f=1/0;for(var v=0;v<32&&!(c<U6);v++){var m=u-c,y=u+c;sa[0]=ro(e,n,i,m),sa[1]=ro(t,r,o,m);var d=bh(sa,ys);if(m>=0&&d<f)u=m,f=d;else{Sh[0]=ro(e,n,i,y),Sh[1]=ro(t,r,o,y);var _=bh(Sh,ys);y<=1&&_<f?(u=y,f=_):c*=.5}}return $u(f)}function dpe(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var h=f*c,d=ro(e,n,i,h),v=ro(t,r,o,h),m=d-s,y=v-l;u+=Math.sqrt(m*m+y*y),s=d,l=v}return u}var hpe=/cubic-bezier\(([0-9,\.e ]+)\)/;function W6(e){var t=e&&hpe.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:db(0,r,o,1,l,s)&&Zr(0,i,a,1,s[0])}}}var ppe=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||fo,this.ondestroy=t.ondestroy||fo,this.onrestart=t.onrestart||fo,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]||W6(t)},e}(),fF={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 Bu(e){return e=Math.round(e),e<0?0:e>255?255:e}function HA(e){return e<0?0:e>1?1:e}function qC(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Bu(parseFloat(t)/100*255):Bu(parseInt(t,10))}function vg(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?HA(parseFloat(t)/100):HA(parseFloat(t))}function JC(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 zA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var j6=new Xm(20),V0=null;function Ld(e,t){V0&&zA(V0,t),V0=j6.put(e,V0||t.slice())}function xl(e,t){if(e){t=t||[];var n=j6.get(e);if(n)return zA(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in fF)return zA(t,fF[r]),Ld(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),Ld(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),Ld(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,qC(u[0]),qC(u[1]),qC(u[2]),u.length===3?c:vg(u[3])),Ld(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]),dF(u,t),Ld(e,t),t;case"hsl":if(u.length!==3){ea(t,0,0,0,1);return}return dF(u,t),Ld(e,t),t;default:return}}ea(t,0,0,0,1)}}function dF(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,Bu(JC(a,o,n+1/3)*255),Bu(JC(a,o,n)*255),Bu(JC(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function hF(e,t){var n=xl(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 WS(n,n.length===4?"rgba":"rgb")}}function vpe(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=xl(t[i]),s=xl(t[o]),l=r-i,u=WS([Bu(B0(a[0],s[0],l)),Bu(B0(a[1],s[1],l)),Bu(B0(a[2],s[2],l)),HA(B0(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function WS(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 vb(e,t){var n=xl(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var pF=new Xm(100);function vF(e){if(bt(e)){var t=pF.get(e);return t||(t=hF(e,-.1),pF.put(e,t)),t}else if(US(e)){var n=Je({},e);return n.colorStops=Dt(e.colorStops,function(r){return{offset:r.offset,color:hF(r.color,-.1)}}),n}return e}function gpe(e){return e.type==="linear"}function mpe(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 GA=Array.prototype.slice;function ol(e,t,n){return(t-e)*n+e}function QC(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 ype(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 gF(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 _pe(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 bpe(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]:GA.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 l1(e){if(go(e)){var t=e.length;if(go(e[0])){for(var n=[],r=0;r<t;r++)n.push(GA.call(e[r]));return n}return GA.call(e)}return e}function u1(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 Spe(e){return go(e&&e[0])?2:1}var H0=0,c1=1,X6=2,Lv=3,WA=4,jA=5,mF=6;function yF(e){return e===WA||e===jA}function z0(e){return e===c1||e===X6}var tv=[0,0,0,0],wpe=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=mF,l=n;if(go(n)){var u=Spe(n);s=u,(u===1&&!Qn(n[0])||u===2&&!Qn(n[0][0]))&&(a=!0)}else if(Qn(n)&&!fb(n))s=H0;else if(bt(n))if(!isNaN(+n))s=H0;else{var c=xl(n);c&&(l=c,s=Lv)}else if(US(n)){var f=Je({},l);f.colorStops=Dt(n.colorStops,function(d){return{offset:d.offset,color:xl(d.color)}}),gpe(n)?s=WA:mpe(n)&&(s=jA),l=f}o===0?this.valType=s:(s!==this.valType||s===mF)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:l,rawValue:n,percent:0};return r&&(h.easing=r,h.easingFunc=Gt(r)?r:pg[r]||W6(r)),i.push(h),h},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,y){return m.time-y.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=z0(i),u=yF(i),c=0;c<o;c++){var f=r[c],h=f.value,d=a.value;f.percent=f.time/t,s||(l&&c!==o-1?bpe(h,d,i):u&&_pe(h.colorStops,d.colorStops))}if(!s&&i!==jA&&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===Lv?r[c].additiveValue=U0([],r[c].value,v,-1):z0(i)&&(r[c].additiveValue=i===c1?U0([],r[c].value,v,-1):gF([],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===Lv,c,f=this._lastFr,h=Math.min,d,v;if(s===1)d=v=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var m=h(f+1,s-1);for(c=m;c>=0&&!(a[c].percent<=n);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);c++);c=h(c-1,s-2)}v=a[c+1],d=a[c]}if(d&&v){this._lastFr=c,this._lastFrP=n;var y=v.percent-d.percent,_=y===0?1:h((n-d.percent)/y,1);v.easingFunc&&(_=v.easingFunc(_));var b=r?this._additiveValue:u?tv:t[l];if((z0(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=_<1?d.rawValue:v.rawValue;else if(z0(o))o===c1?QC(b,d[i],v[i],_):ype(b,d[i],v[i],_);else if(yF(o)){var S=d[i],w=v[i],T=o===WA;t[l]={type:T?"linear":"radial",x:ol(S.x,w.x,_),y:ol(S.y,w.y,_),colorStops:Dt(S.colorStops,function(E,R){var I=w.colorStops[R];return{offset:ol(E.offset,I.offset,_),color:u1(QC([],E.color,I.color,_))}}),global:w.global},T?(t[l].x2=ol(S.x2,w.x2,_),t[l].y2=ol(S.y2,w.y2,_)):t[l].r=ol(S.r,w.r,_)}else if(u)QC(b,d[i],v[i],_),r||(t[l]=u1(b));else{var C=ol(d[i],v[i],_);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===Lv?(xl(t[r],tv),U0(tv,tv,i,1),t[r]=u1(tv)):n===c1?U0(t[r],t[r],i,1):n===X6&&gF(t[r],t[r],i,1)},e}(),aP=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){qR("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 wpe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===Lv&&u&&(u=u1(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,l1(u),i),this._trackKeys.push(s)}l.addKeyframe(t,l1(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 h=new ppe({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){n._started=2;var v=n._additiveAnimators;if(v){for(var m=!1,y=0;y<v.length;y++)if(v[y]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var y=0;y<r.length;y++)r[y].step(n._target,d);var _=n._onframeCbs;if(_)for(var y=0;y<_.length;y++)_[y](n._target,d)},ondestroy:function(){n._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.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]=l1(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}(),Y6=1;Nt.hasGlobalWindow&&(Y6=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var gb=Y6,XA=.4,YA="#333",KA="#ccc",xpe="#eee",Ts=1,f1=2,Nv=4,eT="__zr_normal__",tT=sm.concat(["ignore"]),Cpe=cp(sm,function(e,t){return e[t]=!0,e},{ignore:!1}),Nd={},Tpe=new wn(0,0,0,0),jS=function(){function e(t){this.id=A6(),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=Tpe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Nd,r,c):k6(Nd,r,c),o.x=Nd.x,o.y=Nd.y,a=Nd.align,s=Nd.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=Kf(f[0],c.width),d=Kf(f[1],c.height)),u=!0,o.originX=-o.x+h+(i?0:c.x),o.originY=-o.y+d+(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,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,b=void 0,S=void 0;m&&this.canBeInsideText()?(_=r.insideFill,b=r.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(_),S=!0)):(_=r.outsideFill,b=r.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(_),S=!0)),_=_||"#000",(_!==y.fill||b!==y.stroke||S!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=_,y.stroke=b,y.autoStroke=S,y.align=a,y.verticalAlign=s,n.setDefaultTextStyle(y)),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()?KA:YA},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&xl(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,WS(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||{},Je(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!==eT)){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,tT)},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(eT,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===eT,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(Rn(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){qR("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,h=this._textGuide;return f&&f.useState(t,n,r,c),h&&h.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],h=!!(f&&f.hoverLayer||r);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var m=this._textContent,y=this._textGuide;m&&m.useStates(t,n,h),y&&y.useStates(t,n,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&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=Rn(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=Rn(i,t),a=Rn(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];Je(n,o),o.textConfig&&(r=r||{},Je(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=Je({},i?this.textConfig:r.textConfig),Je(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<tT.length;c++){var f=tT[c],h=o&&Cpe[f];n&&n[f]!=null?h?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(h?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],v=d.targetName;d.getLoop()||d.__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 oP,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Je(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 aP(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=Rn(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){nT(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){nT(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=nT(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,oP);function nT(e,t,n,r,i){n=n||{};var o=[];K6(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 h=0;h<o.length;h++){var d=o[h];c&&d.done(c),f&&d.aborted(f),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function rT(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Epe(e){return go(e[0])}function Ape(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),rT(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(Epe(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?rT(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else rT(o,i,a);o.length=i.length}else e[n]=t[n]}function Ipe(e,t){return e===t||go(e)&&go(t)&&Rpe(e,t)}function Rpe(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 K6(e,t,n,r,i,o,a,s){for(var l=Jn(r),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,d=!Rt(o),v=e.animators,m=[],y=0;y<l.length;y++){var _=l[y],b=r[_];if(b!=null&&n[_]!=null&&(d||o[_]))if(Rt(b)&&!go(b)&&!US(b)){if(t){s||(n[_]=b,e.updateDuringAnimation(t));continue}K6(e,_,n[_],b,i,o&&o[_],a,s)}else m.push(_);else s||(n[_]=b,e.updateDuringAnimation(t),m.push(_))}var S=m.length;if(!f&&S)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=Rn(v,T);v.splice(E,1)}}}if(i.force||(m=Kr(m,function(M){return!Ipe(r[M],n[M])}),S=m.length),S>0||i.force&&!a.length){var R=void 0,I=void 0,P=void 0;if(s){I={},h&&(R={});for(var w=0;w<S;w++){var _=m[w];I[_]=n[_],h?R[_]=r[_]:n[_]=r[_]}}else if(h){P={};for(var w=0;w<S;w++){var _=m[w];P[_]=l1(n[_]),Ape(n,r,_)}}var T=new aP(n,!1,!1,f?Kr(v,function(L){return L.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),h&&R&&T.whenWithKeys(0,R,m),P&&T.whenWithKeys(0,P,m),T.whenWithKeys(u??500,s?I:r,m).delay(c||0),e.addAnimator(T,t),a.push(T)}}var ZA="__zr_style_"+Math.round(Math.random()*10),Of={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},XS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Of[ZA]=!0;var _F=["z","z2","invisible"],Ppe=["invisible"],Ym=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&&Mpe(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:Je(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=f1,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&f1)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(n){return HS(Of,n)},t.prototype.useStyle=function(n){n[ZA]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[ZA]},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),h=0;h<f.length;h++){var d=f[h];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var v=Jn(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?Ppe:_F,h=0;h<m.length;h++){var d=m[h];r&&r[d]!=null?this[d]=r[d]:l&&i[d]!=null&&(this[d]=i[d])}},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 Je(n,r),n},t.prototype.getAnimationStyleProps=function(){return XS},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|f1}(),t}(jS),iT=new wn(0,0,0,0),oT=new wn(0,0,0,0);function Mpe(e,t,n){return iT.copy(e.getBoundingRect()),e.transform&&iT.applyTransform(e.transform),oT.width=t,oT.height=n,!iT.intersect(oT)}var la=Math.min,ua=Math.max,aT=Math.sin,sT=Math.cos,Mc=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 SF=[],wF=[];function Ope(e,t,n,r,i,o,a,s,l,u){var c=z6,f=Zr,h=c(e,n,i,a,SF);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=f(e,n,i,a,SF[d]);l[0]=la(v,l[0]),u[0]=ua(v,u[0])}h=c(t,r,o,s,wF);for(var d=0;d<h;d++){var m=f(t,r,o,s,wF[d]);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 Dpe(e,t,n,r,i,o,a,s){var l=G6,u=ro,c=ua(la(l(e,n,i),1),0),f=ua(la(l(t,r,o),1),0),h=u(e,n,i,c),d=u(t,r,o,f);a[0]=la(e,i,h),a[1]=la(t,o,d),s[0]=ua(e,i,h),s[1]=ua(t,o,d)}function Lpe(e,t,n,r,i,o,a,s,l){var u=ah,c=sh,f=Math.abs(i-o);if(f%Mc<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]=sT(i)*n+e,G0[1]=aT(i)*r+t,W0[0]=sT(o)*n+e,W0[1]=aT(o)*r+t,u(s,G0,W0),c(l,G0,W0),i=i%Mc,i<0&&(i=i+Mc),o=o%Mc,o<0&&(o=o+Mc),i>o&&!a?o+=Mc:i<o&&a&&(i+=Mc),a){var h=o;o=i,i=h}for(var d=0;d<o;d+=Math.PI/2)d>i&&(j0[0]=sT(d)*n+e,j0[1]=aT(d)*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},Oc=[],Dc=[],ls=[],Jl=[],us=[],cs=[],lT=Math.min,uT=Math.max,Lc=Math.cos,Nc=Math.sin,Qs=Math.abs,qA=Math.PI,lu=qA*2,cT=typeof Float32Array<"u",nv=[];function fT(e){var t=Math.round(e/qA*1e8)/1e8;return t%2*qA}function Npe(e,t){var n=fT(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-fT(n-i)):t&&n<i&&(i=n-(lu-fT(i-n))),e[0]=n,e[1]=i}var Zf=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/gb/t)||0,this._uy=Qs(r/gb/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(),nv[0]=i,nv[1]=o,Npe(nv,a),i=nv[0],o=nv[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=Lc(o)*r+t,this._yi=Nc(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)&&cT&&(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();cT&&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,cT&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ls[0]=ls[1]=us[0]=us[1]=Number.MAX_VALUE,Jl[0]=Jl[1]=cs[0]=cs[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++],us[0]=i,us[1]=o,cs[0]=i,cs[1]=o;break;case _n.L:bF(n,r,t[a],t[a+1],us,cs),n=t[a++],r=t[a++];break;case _n.C:Ope(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],us,cs),n=t[a++],r=t[a++];break;case _n.Q:Dpe(n,r,t[a++],t[a++],t[a],t[a+1],us,cs),n=t[a++],r=t[a++];break;case _n.A:var u=t[a++],c=t[a++],f=t[a++],h=t[a++],d=t[a++],v=t[a++]+d;a+=1;var m=!t[a++];l&&(i=Lc(d)*f+u,o=Nc(d)*h+c),Lpe(u,c,f,h,d,v,m,us,cs),n=Lc(v)*f+u,r=Nc(v)*h+c;break;case _n.R:i=n=t[a++],o=r=t[a++];var y=t[a++],_=t[a++];bF(i,o,i+y,o+_,us,cs);break;case _n.Z:n=i,r=o;break}ah(ls,ls,us),sh(Jl,Jl,cs)}return a===0&&(ls[0]=ls[1]=Jl[0]=Jl[1]=0),new wn(ls[0],ls[1],Jl[0]-ls[0],Jl[1]-ls[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,h=0;h<n;){var d=t[h++],v=h===1;v&&(o=t[h],a=t[h+1],s=o,l=a);var m=-1;switch(d){case _n.M:o=s=t[h++],a=l=t[h++];break;case _n.L:{var y=t[h++],_=t[h++],b=y-o,S=_-a;(Qs(b)>r||Qs(S)>i||h===n-1)&&(m=Math.sqrt(b*b+S*S),o=y,a=_);break}case _n.C:{var w=t[h++],T=t[h++],y=t[h++],_=t[h++],C=t[h++],E=t[h++];m=upe(o,a,w,T,y,_,C,E,10),o=C,a=E;break}case _n.Q:{var w=t[h++],T=t[h++],y=t[h++],_=t[h++];m=dpe(o,a,w,T,y,_,10),o=y,a=_;break}case _n.A:var R=t[h++],I=t[h++],P=t[h++],M=t[h++],L=t[h++],k=t[h++],$=k+L;h+=1,v&&(s=Lc(L)*P+R,l=Nc(L)*M+I),m=uT(P,M)*lT(lu,Math.abs(k)),o=Lc($)*P+R,a=Nc($)*M+I;break;case _n.R:{s=o=t[h++],l=a=t[h++];var W=t[h++],N=t[h++];m=W*2+N*2;break}case _n.Z:{var b=s-o,S=l-a;m=Math.sqrt(b*b+S*S),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,h,d=n<1,v,m,y=0,_=0,b,S=0,w,T;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,b=n*m,!b)))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&&S>0&&(t.lineTo(w,T),S=0),E){case _n.M:s=u=r[C++],l=c=r[C++],t.moveTo(u,c);break;case _n.L:{f=r[C++],h=r[C++];var I=Qs(f-u),P=Qs(h-c);if(I>i||P>o){if(d){var M=v[_++];if(y+M>b){var L=(b-y)/M;t.lineTo(u*(1-L)+f*L,c*(1-L)+h*L);break e}y+=M}t.lineTo(f,h),u=f,c=h,S=0}else{var k=I*I+P*P;k>S&&(w=f,T=h,S=k)}break}case _n.C:{var $=r[C++],W=r[C++],N=r[C++],K=r[C++],Y=r[C++],ae=r[C++];if(d){var M=v[_++];if(y+M>b){var L=(b-y)/M;hb(u,$,N,Y,L,Oc),hb(c,W,K,ae,L,Dc),t.bezierCurveTo(Oc[1],Dc[1],Oc[2],Dc[2],Oc[3],Dc[3]);break e}y+=M}t.bezierCurveTo($,W,N,K,Y,ae),u=Y,c=ae;break}case _n.Q:{var $=r[C++],W=r[C++],N=r[C++],K=r[C++];if(d){var M=v[_++];if(y+M>b){var L=(b-y)/M;pb(u,$,N,L,Oc),pb(c,W,K,L,Dc),t.quadraticCurveTo(Oc[1],Dc[1],Oc[2],Dc[2]);break e}y+=M}t.quadraticCurveTo($,W,N,K),u=N,c=K;break}case _n.A:var ge=r[C++],ye=r[C++],Oe=r[C++],ke=r[C++],Ue=r[C++],Le=r[C++],Xe=r[C++],fe=!r[C++],Ae=Oe>ke?Oe:ke,Se=Qs(Oe-ke)>.001,Te=Ue+Le,Ne=!1;if(d){var M=v[_++];y+M>b&&(Te=Ue+Le*(b-y)/M,Ne=!0),y+=M}if(Se&&t.ellipse?t.ellipse(ge,ye,Oe,ke,Xe,Ue,Te,fe):t.arc(ge,ye,Ae,Ue,Te,fe),Ne)break e;R&&(s=Lc(Ue)*Oe+ge,l=Nc(Ue)*ke+ye),u=Lc(Te)*Oe+ge,c=Nc(Te)*ke+ye;break;case _n.R:s=u=r[C],l=c=r[C+1],f=r[C++],h=r[C++];var Be=r[C++],H=r[C++];if(d){var M=v[_++];if(y+M>b){var G=b-y;t.moveTo(f,h),t.lineTo(f+lT(G,Be),h),G-=Be,G>0&&t.lineTo(f+Be,h+lT(G,H)),G-=H,G>0&&t.lineTo(f+uT(Be-G,0),h+H),G-=Be,G>0&&t.lineTo(f,h+uT(H-G,0));break e}y+=M}t.rect(f,h,Be,H);break;case _n.Z:if(d){var M=v[_++];if(y+M>b){var L=(b-y)/M;t.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break e}y+=M}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 kd(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 kpe(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 h=lpe(e,t,n,r,i,o,a,s,u,c);return h<=f/2}function Fpe(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=fpe(e,t,n,r,i,o,s,l);return c<=u/2}var xF=Math.PI*2;function X0(e){return e%=xF,e<0&&(e+=xF),e}var rv=Math.PI*2;function $pe(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)%rv<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+=rv);var h=Math.atan2(l,s);return h<0&&(h+=rv),h>=r&&h<=i||h+rv>=r&&h+rv<=i}function kc(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=Zf.CMD,Fc=Math.PI*2,Bpe=1e-4;function Vpe(e,t){return Math.abs(e-t)<Bpe}var Oi=[-1,-1,-1],oa=[-1,-1];function Upe(){var e=oa[0];oa[0]=oa[1],oa[1]=e}function Hpe(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=db(t,r,o,s,u,Oi);if(c===0)return 0;for(var f=0,h=-1,d=void 0,v=void 0,m=0;m<c;m++){var y=Oi[m],_=y===0||y===1?.5:1,b=Zr(e,n,i,a,y);b<l||(h<0&&(h=z6(t,r,o,s,oa),oa[1]<oa[0]&&h>1&&Upe(),d=Zr(t,r,o,s,oa[0]),h>1&&(v=Zr(t,r,o,s,oa[1]))),h===2?y<oa[0]?f+=d<t?_:-_:y<oa[1]?f+=v<d?_:-_:f+=s<v?_:-_:y<oa[0]?f+=d<t?_:-_:f+=s<d?_:-_)}return f}function zpe(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=cpe(t,r,o,s,Oi);if(l===0)return 0;var u=G6(t,r,o);if(u>=0&&u<=1){for(var c=0,f=ro(t,r,o,u),h=0;h<l;h++){var d=Oi[h]===0||Oi[h]===1?.5:1,v=ro(e,n,i,Oi[h]);v<a||(Oi[h]<u?c+=f<t?d:-d:c+=o<f?d:-d)}return c}else{var d=Oi[0]===0||Oi[0]===1?.5:1,v=ro(e,n,i,Oi[0]);return v<a?0:o<t?d:-d}}function Gpe(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);Oi[0]=-l,Oi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Fc-1e-4){r=0,i=Fc;var c=o?1:-1;return a>=Oi[0]+e&&a<=Oi[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Fc,i+=Fc);for(var h=0,d=0;d<2;d++){var v=Oi[d];if(v+e>a){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=Fc+m),(m>=r&&m<=i||m+Fc>=r&&m+Fc<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),h+=c)}}return h}function Z6(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,f=0,h,d,v=0;v<a;){var m=o[v++],y=v===1;switch(m===Ql.M&&v>1&&(n||(s+=kc(l,u,c,f,r,i))),y&&(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(kd(l,u,o[v],o[v+1],t,r,i))return!0}else s+=kc(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Ql.C:if(n){if(kpe(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=Hpe(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(Fpe(l,u,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=zpe(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 _=o[v++],b=o[v++],S=o[v++],w=o[v++],T=o[v++],C=o[v++];v+=1;var E=!!(1-o[v++]);h=Math.cos(T)*S+_,d=Math.sin(T)*w+b,y?(c=h,f=d):s+=kc(l,u,h,d,r,i);var R=(r-_)*w/S+_;if(n){if($pe(_,b,w,T,T+C,E,t,R,i))return!0}else s+=Gpe(_,b,w,T,T+C,E,R,i);l=Math.cos(T+C)*S+_,u=Math.sin(T+C)*w+b;break;case Ql.R:c=l=o[v++],f=u=o[v++];var I=o[v++],P=o[v++];if(h=c+I,d=f+P,n){if(kd(c,f,h,f,t,r,i)||kd(h,f,h,d,t,r,i)||kd(h,d,c,d,t,r,i)||kd(c,d,c,f,t,r,i))return!0}else s+=kc(h,f,h,d,r,i),s+=kc(c,d,c,f,r,i);break;case Ql.Z:if(n){if(kd(l,u,c,f,t,r,i))return!0}else s+=kc(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!Vpe(u,f)&&(s+=kc(l,u,c,f,r,i)||0),s!==0}function Wpe(e,t,n){return Z6(e,0,!1,t,n)}function jpe(e,t,n,r){return Z6(e,t,!0,n,r)}var q6=An({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Of),Xpe={style:An({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},XS.style)},dT=sm.concat(["invisible","culling","z","z2","zlevel","parent"]),Nn=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<dT.length;++s)i[dT[s]]=this[dT[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?Je(this.style,s):this.useStyle(s):a==="shape"?Je(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(bt(n)){var r=vb(n,0);return r>.5?YA:r>.2?xpe:KA}else if(n)return KA}return YA},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(bt(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=vb(n,0)<XA;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 Zf(!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&Nv)&&(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)),jpe(s,l/u,n,r)))return!0}if(this.hasFill())return Wpe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Nv,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:Je(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Nv)},t.prototype.createStyle=function(n){return HS(q6,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Je({},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=Je({},i.shape),Je(u,r.shape)):(u=Je({},o?this.shape:i.shape),Je(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Je({},this.shape);for(var c={},f=Jn(u),h=0;h<f.length;h++){var d=f[h];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}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 Xpe},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 fn(n.style)},a.prototype.getDefaultShape=function(){return fn(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|f1|Nv}(),t}(Ym),Ype=An({strokeFirst:!0,font:Xf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},q6),mb=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 HS(Ype,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=rP(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}(Ym);mb.prototype.type="tspan";var Kpe=An({x:0,y:0},Of),Zpe={style:An({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},XS.style)};function qpe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var sc=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return HS(Kpe,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=qpe(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 Zpe},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}(Ym);sc.prototype.type="image";function Jpe(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 lh=Math.round;function J6(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&&(lh(r*2)===lh(i*2)&&(e.x1=e.x2=sf(r,s,!0)),lh(o*2)===lh(a*2)&&(e.y1=e.y2=sf(o,s,!0))),e}}function Q6(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=sf(r,s,!0),e.y=sf(i,s,!0),e.width=Math.max(sf(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(sf(i+a,s,!1)-e.y,a===0?0:1)),e}}function sf(e,t,n){if(!t)return e;var r=lh(e*2);return(r+lh(t))%2===0?r/2:(r+(n?1:-1))/2}var Qpe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),eve={},qr=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Qpe},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=Q6(eve,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?Jpe(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Nn);qr.prototype.type="rect";var CF={fill:"#000"},TF=2,tve={style:An({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},XS.style)},yo=function(e){st(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=CF,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,ave(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||CF},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return Je(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]||{},Je(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return tve},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||Xf,i=n.padding,o=OF(n),a=jhe(o,n),s=hT(n),l=!!n.backgroundColor,u=a.outerHeight,c=a.outerWidth,f=a.contentWidth,h=a.lines,d=a.lineHeight,v=this._defaultStyle;this.isTruncated=!!a.isTruncated;var m=n.x||0,y=n.y||0,_=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",S=m,w=nh(y,a.contentHeight,b);if(s||i){var T=Dv(m,c,_),C=nh(y,u,b);s&&this._renderBackground(n,n,T,C,c,u)}w+=d/2,i&&(S=MF(m,_,i),b==="top"?w+=i[0]:b==="bottom"&&(w-=i[2]));for(var E=0,R=!1,I=PF("fill"in n?n.fill:(R=!0,v.fill)),P=RF("stroke"in n?n.stroke:!l&&(!v.autoStroke||R)?(E=TF,v.stroke):null),M=n.textShadowBlur>0,L=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),k=a.calculatedLineHeight,$=0;$<h.length;$++){var W=this._getOrCreateChild(mb),N=W.createStyle();W.useStyle(N),N.text=h[$],N.x=S,N.y=w,N.textAlign=_,N.textBaseline="middle",N.opacity=n.opacity,N.strokeFirst=!0,M&&(N.shadowBlur=n.textShadowBlur||0,N.shadowColor=n.textShadowColor||"transparent",N.shadowOffsetX=n.textShadowOffsetX||0,N.shadowOffsetY=n.textShadowOffsetY||0),N.stroke=P,N.fill=I,P&&(N.lineWidth=n.lineWidth||E,N.lineDash=n.lineDash,N.lineDashOffset=n.lineDashOffset||0),N.font=r,AF(N,n),w+=d,L&&W.setBoundingRect(new wn(Dv(N.x,f,N.textAlign),nh(N.y,k,N.textBaseline),f,k))}},t.prototype._updateRichTexts=function(){var n=this.style,r=OF(n),i=Khe(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,h=n.align||f.align,d=n.verticalAlign||f.verticalAlign;this.isTruncated=!!i.isTruncated;var v=Dv(u,a,h),m=nh(c,s,d),y=v,_=m;l&&(y+=l[3],_+=l[0]);var b=y+o;hT(n)&&this._renderBackground(n,n,v,m,a,s);for(var S=!!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,P=0,M=y,L=b,k=E-1,$=void 0;P<E&&($=C[P],!$.align||$.align==="left");)this._placeToken($,n,R,_,M,"left",S),I-=$.width,M+=$.width,P++;for(;k>=0&&($=C[k],$.align==="right");)this._placeToken($,n,R,_,L,"right",S),I-=$.width,L-=$.width,k--;for(M+=(o-(M-y)-(b-L)-I)/2;P<=k;)$=C[P],this._placeToken($,n,R,_,M+$.width/2,"center",S),M+=$.width,P++;_+=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 h=!n.isLineHolder&&hT(u);h&&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 d=!!u.backgroundColor,v=n.textPadding;v&&(a=MF(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var m=this._getOrCreateChild(mb),y=m.createStyle();m.useStyle(y);var _=this._defaultStyle,b=!1,S=0,w=PF("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,_.fill)),T=RF("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!_.autoStroke||b)?(S=TF,_.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;y.text=n.text,y.x=a,y.y=f,C&&(y.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,y.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=n.font||Xf,y.opacity=s1(u.opacity,r.opacity,1),AF(y,u),T&&(y.lineWidth=s1(u.lineWidth,r.lineWidth,S),y.lineDash=sn(u.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=T),w&&(y.fill=w);var E=n.contentWidth,R=n.contentHeight;m.setBoundingRect(new wn(Dv(y.x,E,y.textAlign),nh(y.y,R,y.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,h=l&&!f,d=n.borderRadius,v=this,m,y;if(h||n.lineHeight||u&&c){m=this._getOrCreateChild(qr),m.useStyle(m.createStyle()),m.style.fill=null;var _=m.shape;_.x=i,_.y=o,_.width=a,_.height=s,_.r=d,m.dirtyShape()}if(h){var b=m.style;b.fill=l||null,b.fillOpacity=sn(n.fillOpacity,1)}else if(f){y=this._getOrCreateChild(sc),y.onload=function(){v.dirtyStyle()};var S=y.style;S.image=l.image,S.x=i,S.y=o,S.width=a,S.height=s}if(u&&c){var b=m.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=sn(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(m||y).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=s1(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return ove(n)&&(r=[n.fontStyle,n.fontWeight,ive(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Ss(r)||n.textFont||n.font},t}(Ym),nve={left:!0,right:1,center:1},rve={top:1,bottom:1,middle:1},EF=["fontStyle","fontWeight","fontSize","fontFamily"];function ive(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?YR+"px":e+"px"}function AF(e,t){for(var n=0;n<EF.length;n++){var r=EF[n],i=t[r];i!=null&&(e[r]=i)}}function ove(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function ave(e){return IF(e),te(e.rich,IF),e}function IF(e){if(e){e.font=yo.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||nve[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||rve[n]?n:"top";var r=e.padding;r&&(e.padding=I6(e.padding))}}function RF(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function PF(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function MF(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function OF(e){var t=e.text;return t!=null&&(t+=""),t}function hT(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var sve=1e-4,e8=20;function lve(e){return e.replace(/^\s+|\s+$/g,"")}function DF(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 ki(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 bt(e)?lve(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Tr(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),e8),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 uve(e)}function uve(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 cve(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 fve(e,t){var n=Math.max(pl(e),pl(t)),r=e+t;return n>e8?r:Tr(r,n)}function t8(e){var t=Math.PI*2;return(e%t+t)%t}function yb(e){return e>-1e-4&&e<sve}var dve=/^(?:(\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(bt(e)){var t=dve.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 hve(e){return Math.pow(10,sP(e))}function sP(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 n8(e,t){var n=sP(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 _b(e){var t=parseFloat(e);return t==e&&(t!==0||!bt(e)||e.indexOf("x")<=0)?t:NaN}function pve(e){return!isNaN(_b(e))}function r8(){return Math.round(Math.random()*9)}function i8(e,t){return t===0?e:i8(t,e%t)}function LF(e,t){return e==null?t:t==null?e:e*t/i8(e,t)}function io(e){throw new Error(e)}function NF(e,t,n){return(t-e)*n+e}var o8="series\0",vve="\0_ec_\0";function Bi(e){return e instanceof Array?e:e==null?[]:[e]}function kF(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 FF=["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 Km(e){return Rt(e)&&!ft(e)&&!(e instanceof Date)?e.value:e}function gve(e){return Rt(e)&&!(e instanceof Array)}function mve(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Zt();te(t,function(l,u){if(!Rt(l)){t[u]=null;return}});var s=yve(e,a,n);return(r||i)&&_ve(s,e,a,t),r&&bve(s,t),r||i?Sve(s,t,i):o&&wve(s,t),xve(s),s}function yve(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"||lm(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function _ve(e,t,n,r){te(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 bve(e,t){te(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)&&!lm(n)&&!lm(o)&&a8("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function Sve(e,t,n){te(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||lm(i.existing)||i.existing&&r.id!=null&&!a8("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function wve(e,t){te(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function xve(e){var t=Zt();te(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),te(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={})}),te(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:o8+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 a8(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:bt(e)?e:Qn(e)||FA(e)?e+"":t}function lP(e){var t=e.name;return!!(t&&t.indexOf(o8))}function lm(e){return e&&e.id!=null&&gg(e.id).indexOf(vve)===0}function Cve(e,t,n){te(e,function(r){var i=r.newOption;Rt(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=Tve(t,i,r.existing,n))})}function Tve(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function qf(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 Lr(){var e="__ec_inner_"+Eve++;return function(t){return t[e]||(t[e]={})}}var Eve=r8();function pT(e,t,n){var r=uP(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=Zm(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 uP(e,t){var n;if(bt(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Zt(),o={},a=!1;return te(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&&Rn(t.includeMainTypes,c)<0)){a=a||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Ka={useDefault:!0,enableAll:!1,enableNone:!1};function Zm(e,t,n,r){r=r||Ka;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 s8(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ave(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Ive(e){return e==="auto"?Nt.domSupported?"html":"richText":e||"html"}function Rve(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(Qn(r)){var a=NF(n||0,r,i);return Tr(a,o?Math.max(pl(n||0),pl(r)):t)}else{if(bt(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 h=e.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,v=u[f],a=NF(d,v,i);s[f]=Tr(a,o?Math.max(pl(d),pl(v)):t)}}return s}}var Ln=Lr(),Pve=function(e,t,n,r){if(r){var i=Ln(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Ln(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},$F=1,BF={},l8=Lr(),cP=Lr(),fP=0,YS=1,KS=2,Ms=["emphasis","blur","select"],VF=["normal","emphasis","blur","select"],Mve=10,Ove=9,Df="highlight",d1="downplay",mg="select",h1="unselect",yg="toggleSelect";function Fd(e){return e!=null&&e!=="none"}function ZS(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function u8(e){ZS(e,"emphasis",KS)}function c8(e){e.hoverState===KS&&ZS(e,"normal",fP)}function dP(e){ZS(e,"blur",YS)}function f8(e){e.hoverState===YS&&ZS(e,"normal",fP)}function Dve(e){e.selected=!0}function Lve(e){e.selected=!1}function UF(e,t,n){t(e,n)}function Nl(e,t,n){UF(e,t,n),e.isGroup&&e.traverse(function(r){UF(r,t,n)})}function HF(e,t){switch(t){case"emphasis":e.hoverState=KS;break;case"normal":e.hoverState=fP;break;case"blur":e.hoverState=YS;break;case"select":e.selected=!0}}function Nve(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 kve(e,t,n,r){var i=n&&Rn(n,"select")>=0,o=!1;if(e instanceof Nn){var a=l8(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Fd(s)||Fd(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Je({},r),u=Je({},u),u.fill=s):!Fd(u.fill)&&Fd(s)?(o=!0,r=Je({},r),u=Je({},u),u.fill=vF(s)):!Fd(u.stroke)&&Fd(l)&&(o||(r=Je({},r),u=Je({},u)),u.stroke=vF(l)),r.style=u}}if(r&&r.z2==null){o||(r=Je({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Mve)}return r}function Fve(e,t,n){if(n&&n.z2==null){n=Je({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Ove)}return n}function $ve(e,t,n){var r=Rn(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:Nve(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Je({},n),a=Je({opacity:r?i:o.opacity*.1},a),n.style=a),n}function vT(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return kve(this,e,t,n);if(e==="blur")return $ve(this,e,n);if(e==="select")return Fve(this,e,n)}return n}function Bve(e){e.stateProxy=vT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=vT),n&&(n.stateProxy=vT)}function zF(e,t){!v8(e,t)&&!e.__highByOuter&&Nl(e,u8)}function GF(e,t){!v8(e,t)&&!e.__highByOuter&&Nl(e,c8)}function bb(e,t){e.__highByOuter|=1<<(t||0),Nl(e,u8)}function Sb(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Nl(e,c8)}function Vve(e){Nl(e,dP)}function d8(e){Nl(e,f8)}function h8(e){Nl(e,Dve)}function p8(e){Nl(e,Lve)}function v8(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function g8(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=cP(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){f8(u)}),s&&n.push(o)),a.isBlured=!1}),te(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function JA(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&d8(h)}}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 h=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!h||t==="series"&&c)){var d=r.getViewOfSeriesModel(u);if(d.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||dP(y)}),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),cP(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 QA(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){cP(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){dP(o)})}}}function Uve(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=qf(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=Ln(a);JA(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&JA(r,c,f,n)}}}function hP(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(Ln(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Hve(e,t,n){var r=Ln(e),i=hP(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&QA(r.componentMainType,r.componentIndex,n),te(o,function(s){return zF(s,t)})):(JA(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&QA(r.componentMainType,r.componentIndex,n),zF(e,t))}function zve(e,t,n){g8(n);var r=Ln(e),i=hP(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?te(i,function(o){return GF(o,t)}):GF(e,t)}function Gve(e,t,n){if(r2(t)){var r=t.dataType,i=e.getData(r),o=qf(i,t);ft(o)||(o=[o]),e[t.type===yg?"toggleSelect":t.type===mg?"select":"unselect"](o,r)}}function WF(e){var t=e.getAllData();te(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?h8(o):p8(o)})})}function Wve(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();te(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 e2(e,t,n){m8(e,!0),Nl(e,Bve),Xve(e,t,n)}function jve(e){m8(e,!1)}function t2(e,t,n,r){r?jve(e):e2(e,t,n)}function Xve(e,t,n){var r=Ln(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var jF=["emphasis","blur","select"],Yve={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function XF(e,t,n,r){n=n||"itemStyle";for(var i=0;i<jF.length;i++){var o=jF[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[Yve[n]]()}}function m8(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 n2(e){return!!(e&&e.__highDownDispatcher)}function Kve(e){var t=BF[e];return t==null&&$F<=32&&(t=BF[e]=$F++),t}function r2(e){var t=e.type;return t===mg||t===h1||t===yg}function YF(e){var t=e.type;return t===Df||t===d1}function Zve(e){var t=l8(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 $d=Zf.CMD,qve=[[],[],[]],KF=Math.sqrt,Jve=Math.atan2;function Qve(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,u,c=$d.M,f=$d.C,h=$d.L,d=$d.R,v=$d.A,m=$d.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case h:o=1;break;case f:o=3;break;case m:o=2;break;case v:var y=t[4],_=t[5],b=KF(t[0]*t[0]+t[1]*t[1]),S=KF(t[2]*t[2]+t[3]*t[3]),w=Jve(-t[1]/S,t[0]/b);n[a]*=b,n[a++]+=y,n[a]*=S,n[a++]+=_,n[a++]*=b,n[a++]*=S,n[a++]+=w,n[a++]+=w,a+=2,s=a;break;case d:u[0]=n[a++],u[1]=n[a++],ya(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],ya(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var T=qve[l];T[0]=n[a++],T[1]=n[a++],ya(T,T,t),n[s++]=T[0],n[s++]=T[1]}}e.increaseVersion()}}var gT=Math.sqrt,Y0=Math.sin,K0=Math.cos,iv=Math.PI;function ZF(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function i2(e,t){return(e[0]*t[0]+e[1]*t[1])/(ZF(e)*ZF(t))}function qF(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(i2(e,t))}function JF(e,t,n,r,i,o,a,s,l,u,c){var f=l*(iv/180),h=K0(f)*(e-n)/2+Y0(f)*(t-r)/2,d=-1*Y0(f)*(e-n)/2+K0(f)*(t-r)/2,v=h*h/(a*a)+d*d/(s*s);v>1&&(a*=gT(v),s*=gT(v));var m=(i===o?-1:1)*gT((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,y=m*a*d/s,_=m*-s*h/a,b=(e+n)/2+K0(f)*y-Y0(f)*_,S=(t+r)/2+Y0(f)*y+K0(f)*_,w=qF([1,0],[(h-y)/a,(d-_)/s]),T=[(h-y)/a,(d-_)/s],C=[(-1*h-y)/a,(-1*d-_)/s],E=qF(T,C);if(i2(T,C)<=-1&&(E=iv),i2(T,C)>=1&&(E=0),E<0){var R=Math.round(E/iv*1e6)/1e6;E=iv*2+R%2*iv}c.addData(u,b,S,a,s,w,E,f,o)}var ege=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,tge=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nge(e){var t=new Zf;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=Zf.CMD,l=e.match(ege);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,d=c.match(tge)||[],v=d.length,m=0;m<v;m++)d[m]=parseFloat(d[m]);for(var y=0;y<v;){var _=void 0,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0,E=void 0,R=n,I=r,P=void 0,M=void 0;switch(f){case"l":n+=d[y++],r+=d[y++],h=s.L,t.addData(h,n,r);break;case"L":n=d[y++],r=d[y++],h=s.L,t.addData(h,n,r);break;case"m":n+=d[y++],r+=d[y++],h=s.M,t.addData(h,n,r),i=n,o=r,f="l";break;case"M":n=d[y++],r=d[y++],h=s.M,t.addData(h,n,r),i=n,o=r,f="L";break;case"h":n+=d[y++],h=s.L,t.addData(h,n,r);break;case"H":n=d[y++],h=s.L,t.addData(h,n,r);break;case"v":r+=d[y++],h=s.L,t.addData(h,n,r);break;case"V":r=d[y++],h=s.L,t.addData(h,n,r);break;case"C":h=s.C,t.addData(h,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],r=d[y-1];break;case"c":h=s.C,t.addData(h,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r),n+=d[y-2],r+=d[y-1];break;case"S":_=n,b=r,P=t.len(),M=t.data,a===s.C&&(_+=n-M[P-4],b+=r-M[P-3]),h=s.C,R=d[y++],I=d[y++],n=d[y++],r=d[y++],t.addData(h,_,b,R,I,n,r);break;case"s":_=n,b=r,P=t.len(),M=t.data,a===s.C&&(_+=n-M[P-4],b+=r-M[P-3]),h=s.C,R=n+d[y++],I=r+d[y++],n+=d[y++],r+=d[y++],t.addData(h,_,b,R,I,n,r);break;case"Q":R=d[y++],I=d[y++],n=d[y++],r=d[y++],h=s.Q,t.addData(h,R,I,n,r);break;case"q":R=d[y++]+n,I=d[y++]+r,n+=d[y++],r+=d[y++],h=s.Q,t.addData(h,R,I,n,r);break;case"T":_=n,b=r,P=t.len(),M=t.data,a===s.Q&&(_+=n-M[P-4],b+=r-M[P-3]),n=d[y++],r=d[y++],h=s.Q,t.addData(h,_,b,n,r);break;case"t":_=n,b=r,P=t.len(),M=t.data,a===s.Q&&(_+=n-M[P-4],b+=r-M[P-3]),n+=d[y++],r+=d[y++],h=s.Q,t.addData(h,_,b,n,r);break;case"A":S=d[y++],w=d[y++],T=d[y++],C=d[y++],E=d[y++],R=n,I=r,n=d[y++],r=d[y++],h=s.A,JF(R,I,n,r,C,E,S,w,T,h,t);break;case"a":S=d[y++],w=d[y++],T=d[y++],C=d[y++],E=d[y++],R=n,I=r,n+=d[y++],r+=d[y++],h=s.A,JF(R,I,n,r,C,E,S,w,T,h,t);break}}(f==="z"||f==="Z")&&(h=s.Z,t.addData(h),n=i,r=o),a=h}return t.toStatic(),t}var y8=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(Nn);function _8(e){return e.setData!=null}function b8(e,t){var n=nge(e),r=Je({},t);return r.buildPath=function(i){if(_8(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){Qve(n,i),this.dirtyShape()},r}function rge(e,t){return new y8(b8(e,t))}function ige(e,t){var n=b8(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}(y8);return r}function oge(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 Nn(t);return a.createPathProxy(),a.buildPath=function(s){if(_8(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var xi=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=Rn(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=Rn(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);xi.prototype.type="group";var age=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),qS=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new age},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}(Nn);qS.prototype.type="circle";var sge=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),pP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new sge},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}(Nn);pP.prototype.type="ellipse";var S8=Math.PI,mT=S8*2,$c=Math.sin,Bd=Math.cos,lge=Math.acos,ai=Math.atan2,QF=Math.abs,_g=Math.sqrt,kv=Math.max,fs=Math.min,Ba=1e-4;function uge(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,h=f*l-c*u;if(!(h*h<Ba))return h=(c*(t-o)-f*(e-i))/h,[e+h*l,t+h*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,h=e+c,d=t+f,v=n+c,m=r+f,y=(h+v)/2,_=(d+m)/2,b=v-h,S=m-d,w=b*b+S*S,T=i-o,C=h*m-v*d,E=(S<0?-1:1)*_g(kv(0,T*T*w-C*C)),R=(C*S-b*E)/w,I=(-C*b-S*E)/w,P=(C*S+b*E)/w,M=(-C*b+S*E)/w,L=R-y,k=I-_,$=P-y,W=M-_;return L*L+k*k>$*$+W*W&&(R=P,I=M),{cx:R,cy:I,x0:-c,y0:-f,x1:R*(i/T-1),y1:I*(i/T-1)}}function cge(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 fge(e,t){var n,r=kv(t.r,0),i=kv(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,h=!!t.clockwise,d=QF(u-l),v=d>mT&&d%mT;if(v>Ba&&(d=v),!(r>Ba))e.moveTo(c,f);else if(d>mT-Ba)e.moveTo(c+r*Bd(l),f+r*$c(l)),e.arc(c,f,r,l,u,!h),i>Ba&&(e.moveTo(c+i*Bd(u),f+i*$c(u)),e.arc(c,f,i,u,l,h));else{var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0,E=void 0,R=void 0,I=void 0,P=void 0,M=void 0,L=void 0,k=void 0,$=void 0,W=r*Bd(l),N=r*$c(l),K=i*Bd(u),Y=i*$c(u),ae=d>Ba;if(ae){var ge=t.cornerRadius;ge&&(n=cge(ge),m=n[0],y=n[1],_=n[2],b=n[3]);var ye=QF(r-i)/2;if(S=fs(ye,_),w=fs(ye,b),T=fs(ye,m),C=fs(ye,y),I=E=kv(S,w),P=R=kv(T,C),(E>Ba||R>Ba)&&(M=r*Bd(u),L=r*$c(u),k=i*Bd(l),$=i*$c(l),d<S8)){var Oe=uge(W,N,k,$,M,L,K,Y);if(Oe){var ke=W-Oe[0],Ue=N-Oe[1],Le=M-Oe[0],Xe=L-Oe[1],fe=1/$c(lge((ke*Le+Ue*Xe)/(_g(ke*ke+Ue*Ue)*_g(Le*Le+Xe*Xe)))/2),Ae=_g(Oe[0]*Oe[0]+Oe[1]*Oe[1]);I=fs(E,(r-Ae)/(fe+1)),P=fs(R,(i-Ae)/(fe-1))}}}if(!ae)e.moveTo(c+W,f+N);else if(I>Ba){var Se=fs(_,I),Te=fs(b,I),Ne=Z0(k,$,W,N,r,Se,h),Be=Z0(M,L,K,Y,r,Te,h);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),!h):(Se>0&&e.arc(c+Ne.cx,f+Ne.cy,Se,ai(Ne.y0,Ne.x0),ai(Ne.y1,Ne.x1),!h),e.arc(c,f,r,ai(Ne.cy+Ne.y1,Ne.cx+Ne.x1),ai(Be.cy+Be.y1,Be.cx+Be.x1),!h),Te>0&&e.arc(c+Be.cx,f+Be.cy,Te,ai(Be.y1,Be.x1),ai(Be.y0,Be.x0),!h))}else e.moveTo(c+W,f+N),e.arc(c,f,r,l,u,!h);if(!(i>Ba)||!ae)e.lineTo(c+K,f+Y);else if(P>Ba){var Se=fs(m,P),Te=fs(y,P),Ne=Z0(K,Y,M,L,i,-Te,h),Be=Z0(W,N,k,$,i,-Se,h);e.lineTo(c+Ne.cx+Ne.x0,f+Ne.cy+Ne.y0),P<R&&Se===Te?e.arc(c+Ne.cx,f+Ne.cy,P,ai(Ne.y0,Ne.x0),ai(Be.y0,Be.x0),!h):(Te>0&&e.arc(c+Ne.cx,f+Ne.cy,Te,ai(Ne.y0,Ne.x0),ai(Ne.y1,Ne.x1),!h),e.arc(c,f,i,ai(Ne.cy+Ne.y1,Ne.cx+Ne.x1),ai(Be.cy+Be.y1,Be.cx+Be.x1),h),Se>0&&e.arc(c+Be.cx,f+Be.cy,Se,ai(Be.y1,Be.x1),ai(Be.y0,Be.x0),!h))}else e.lineTo(c+K,f+Y),e.arc(c,f,i,u,l,h)}e.closePath()}}}var dge=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}(),JS=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new dge},t.prototype.buildPath=function(n,r){fge(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Nn);JS.prototype.type="sector";var hge=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),vP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new hge},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}(Nn);vP.prototype.type="ring";function pge(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 h=0,d=e.length;h<d;h++)ah(c,c,e[h]),sh(f,f,e[h]);ah(c,c,r[0]),sh(f,f,r[1])}for(var h=0,d=e.length;h<d;h++){var v=e[h];if(n)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(Qhe(e[h]));continue}else l=e[h-1],u=e[h+1];epe(o,u,l),YC(o,o,t);var m=UA(v,l),y=UA(v,u),_=m+y;_!==0&&(m/=_,y/=_),YC(a,o,-m),YC(s,o,y);var b=aF([],v,a),S=aF([],v,s);r&&(sh(b,b,c),ah(b,b,f),sh(S,S,c),ah(S,S,f)),i.push(b),i.push(S)}return n&&i.push(i.shift()),i}function w8(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=pge(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 vge=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),gP=function(e){st(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new vge},t.prototype.buildPath=function(n,r){w8(n,r,!0)},t}(Nn);gP.prototype.type="polygon";var gge=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),mP=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 gge},t.prototype.buildPath=function(n,r){w8(n,r,!1)},t}(Nn);mP.prototype.type="polyline";var mge={},yge=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Xu=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 yge},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=J6(mge,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}(Nn);Xu.prototype.type="line";var Zi=[],_ge=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 e5(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?uF:Zr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?uF:Zr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?cF:ro)(e.x1,e.cpx1,e.x2,t),(n?cF:ro)(e.y1,e.cpy1,e.y2,t)]}var yP=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 _ge},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,h=r.percent;h!==0&&(n.moveTo(i,o),c==null||f==null?(h<1&&(pb(i,l,a,h,Zi),l=Zi[1],a=Zi[2],pb(o,u,s,h,Zi),u=Zi[1],s=Zi[2]),n.quadraticCurveTo(l,u,a,s)):(h<1&&(hb(i,l,c,a,h,Zi),l=Zi[1],c=Zi[2],a=Zi[3],hb(o,u,f,s,h,Zi),u=Zi[1],f=Zi[2],s=Zi[3]),n.bezierCurveTo(l,u,c,f,a,s)))},t.prototype.pointAt=function(n){return e5(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=e5(this.shape,n,!0);return rpe(r,r)},t}(Nn);yP.prototype.type="bezier-curve";var bge=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}(),QS=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 bge},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}(Nn);QS.prototype.type="arc";var Sge=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),Nn.prototype.getBoundingRect.call(this)},t}(Nn),x8=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}(),_P=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}(x8),wge=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}(x8),Bc=[0,0],Vc=[0,0],q0=new Dn,J0=new Dn,wb=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Dn;for(var r=0;r<2;r++)this._axes[r]=new Dn;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);Dn.sub(i[0],r[1],r[0]),Dn.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||Dn.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,Bc),this._getProjMinMaxOnAxis(l,n._corners,Vc),Bc[1]<Vc[0]||Bc[0]>Vc[1]){if(s=!1,o)return s;var c=Math.abs(Vc[0]-Bc[1]),f=Math.abs(Bc[0]-Vc[1]);Math.min(c,f)>i.len()&&(c<f?Dn.scale(i,u,-c*a):Dn.scale(i,u,f*a))}else if(r){var c=Math.abs(Vc[0]-Bc[1]),f=Math.abs(Bc[0]-Vc[1]);Math.min(c,f)<r.len()&&(c<f?Dn.scale(r,u,c*a):Dn.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}(),xge=[],Cge=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(xge)),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}(Ym),Tge=Lr();function Ege(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=sn(r.duration,200),c=sn(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 h={duration:u||0,delay:f,easing:c};return h}else return null}function bP(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=Ege(e,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,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 Yu(e,t,n,r,i,o){bP("update",e,t,n,r,i,o)}function qm(e,t,n,r,i,o){bP("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 xb(e,t,n,r,i,o){bg(e)||bP("leave",e,t,n,r,i,o)}function t5(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),xb(e,{style:{opacity:0}},t,n,r)}function Age(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||t5(i,t,n,r)}):t5(e,t,n,r)}function Ige(e){Tge(e).oldStyle=e.style}var Cb=Math.max,Tb=Math.min,o2={};function Rge(e){return Nn.extend(e)}var Pge=ige;function Mge(e,t){return Pge(e,t)}function es(e,t){o2[e]=t}function Oge(e){if(o2.hasOwnProperty(e))return o2[e]}function SP(e,t,n,r){var i=rge(e,t);return n&&(r==="center"&&(n=T8(n,i.getBoundingRect())),E8(i,n)),i}function C8(e,t,n){var r=new sc({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(T8(t,o))}}});return r}function T8(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 Dge=oge;function E8(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function um(e,t){return J6(e,e,{lineWidth:t}),e}function Lge(e){return Q6(e.shape,e.shape,e.style),e}var Nge=sf;function kge(e,t){for(var n=eP([]);e&&e!==t;)_h(n,e.getLocalTransform(),n),e=e.parent;return n}function wP(e,t,n){return t&&!go(t)&&(t=oP.getLocalTransform(t)),n&&(t=nP([],t)),ya([],e,t)}function Fge(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=wP(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function n5(e){return!e.isGroup}function $ge(e){return e.shape!=null}function A8(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){n5(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return $ge(a)&&(s.shape=Je({},a.shape)),s}var o=r(e);t.traverse(function(a){if(n5(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Yu(a,l,n,Ln(a).dataIndex)}}})}function Bge(e,t){return Dt(e,function(n){var r=n[0];r=Cb(r,t.x),r=Tb(r,t.x+t.width);var i=n[1];return i=Cb(i,t.y),i=Tb(i,t.y+t.height),[r,i]})}function Vge(e,t){var n=Cb(e.x,t.x),r=Tb(e.x+e.width,t.x+t.width),i=Cb(e.y,t.y),o=Tb(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 xP(e,t,n){var r=Je({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),An(i,n),new sc(r)):SP(e.replace("path://",""),r,n,"center")}function Uge(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(I8(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function I8(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,h=yT(c,f,l,u);if(Hge(h))return!1;var d=e-i,v=t-o,m=yT(d,v,l,u)/h;if(m<0||m>1)return!1;var y=yT(d,v,c,f)/h;return!(y<0||y>1)}function yT(e,t,n,r){return e*r-n*t}function Hge(e){return e<=1e-6&&e>=-1e-6}function ew(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=bt(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&&te(Jn(l),function(c){Yf(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ln(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:An({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function r5(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function CP(e,t){if(e)if(ft(e))for(var n=0;n<e.length;n++)r5(e[n],t);else r5(e,t)}es("circle",qS);es("ellipse",pP);es("sector",JS);es("ring",vP);es("polygon",gP);es("polyline",mP);es("rect",qr);es("line",Xu);es("bezierCurve",yP);es("arc",QS);const zge=Object.freeze(Object.defineProperty({__proto__:null,Arc:QS,BezierCurve:yP,BoundingRect:wn,Circle:qS,CompoundPath:Sge,Ellipse:pP,Group:xi,Image:sc,IncrementalDisplayable:Cge,Line:Xu,LinearGradient:_P,OrientedBoundingRect:wb,Path:Nn,Point:Dn,Polygon:gP,Polyline:mP,RadialGradient:wge,Rect:qr,Ring:vP,Sector:JS,Text:yo,applyTransform:wP,clipPointsByRect:Bge,clipRectByRect:Vge,createIcon:xP,extendPath:Mge,extendShape:Rge,getShapeClass:Oge,getTransform:kge,groupTransition:A8,initProps:qm,isElementRemoved:bg,lineLineIntersect:I8,linePolygonIntersect:Uge,makeImage:C8,makePath:SP,mergePath:Dge,registerShape:es,removeElement:xb,removeElementWithFadeOut:Age,resizePath:E8,setTooltipConfig:ew,subPixelOptimize:Nge,subPixelOptimizeLine:um,subPixelOptimizeRect:Lge,transformDirection:Fge,traverseElements:CP,updateProps:Yu},Symbol.toStringTag,{value:"Module"}));var tw={};function Gge(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 i5(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]=sn(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function TP(e,t,n,r){n=n||tw;for(var i=e instanceof yo,o=!1,a=0;a<VF.length;a++){var s=t[VF[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=i5(n,t),c=t.normal,f=!!c.getShallow("show"),h=Jh(c,r&&r.normal,n,!1,!i);h.text=u.normal,i||e.setTextConfig(o5(c,n,!1));for(var a=0;a<Ms.length;a++){var d=Ms[a],s=t[d];if(s){var v=l.ensureState(d),m=!!sn(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Jh(s,r&&r[d],n,!0,!i),v.style.text=u[d],!i){var y=e.ensureState(d);y.textConfig=o5(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),n.enableTextSetter&&(R8(l).setLabelText=function(_){var b=i5(n,t,_);Gge(l,b)})}else l&&(l.ignore=!0);e.dirty()}function EP(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 Jh(e,t,n,r,i){var o={};return Wge(o,e,n,r,i),t&&Je(o,t),o}function o5(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=sn(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 Wge(e,t,n,r,i){n=n||tw;var o=t.ecModel,a=o&&o.option.textStyle,s=jge(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);u5(l[u]={},c,a,n,r,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var h=t.get("minMargin");h!=null&&(e.margin=h),u5(e,t,a,n,r,i,!0,!1)}function jge(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||tw).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 a5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],s5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],l5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function u5(e,t,n,r,i,o,a,s){n=!i&&n||tw;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=sn(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 h=sn(t.getShallow("textBorderWidth"),n.textBorderWidth);h!=null&&(e.lineWidth=h);var d=sn(t.getShallow("textBorderType"),n.textBorderType);d!=null&&(e.lineDash=d);var v=sn(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<a5.length;m++){var y=a5[m],_=sn(t.getShallow(y),n[y]);_!=null&&(e[y]=_)}for(var m=0;m<s5.length;m++){var y=s5[m],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!a||!r.disableBox){for(var m=0;m<l5.length;m++){var y=l5[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var S=t.getShallow("borderType");S!=null&&(e.borderDash=S),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function Xge(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 R8=Lr(),Yge=["textStyle","color"],_T=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],bT=new yo,Kge=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(Yge):null)},e.prototype.getFont=function(){return Xge({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<_T.length;r++)n[_T[r]]=this.getShallow(_T[r]);return bT.useStyle(n),bT.update(),bT.getBoundingRect()},e}(),P8=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Zge=am(P8),qge=function(){function e(){}return e.prototype.getLineStyle=function(t){return Zge(this,t)},e}(),M8=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Jge=am(M8),Qge=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return Jge(this,t,n)},e}(),fr=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(fn(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}();QR(fr);Lhe(fr);Ns(fr,qge);Ns(fr,Qge);Ns(fr,Bhe);Ns(fr,Kge);function ov(e){return e==null?0:e.length||1}function c5(e){return e}var eme=function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||c5,this._newKeyGetter=i||c5,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=ov(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=ov(u),h=ov(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(u[d]);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=ov(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=ov(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e}(),O8=Zt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ea="original",_o="arrayRows",Fs="objectRows",kl="keyedColumns",Vu="typedArray",D8="unknown",Cl="column",dp="row",Ro={Must:1,Might:2,Not:3},L8=Lr();function tme(e){L8(e).datasetMap=Zt()}function nme(e,t,n){var r={},i=N8(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=L8(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),te(e,function(m,y){var _=Rt(m)?m:e[y]={name:m};_.type==="ordinal"&&c==null&&(c=y,f=v(_)),r[_.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});te(e,function(m,y){var _=m.name,b=v(m);if(c==null){var S=h.valueWayDim;d(r[_],S,b),d(a,S,b),h.valueWayDim+=b}else if(c===y)d(r[_],0,b),d(o,0,b);else{var S=h.categoryWayDim;d(r[_],S,b),d(a,S,b),h.categoryWayDim+=b}});function d(m,y,_){for(var b=0;b<_;b++)m.push(y+b)}function v(m){var y=m.dimsDef;return y?y.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function N8(e){var t=e.get("data",!0);if(!t)return Zm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ka).models[0]}function rme(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Zm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ka).models}function k8(e,t){return ime(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ime(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):bt(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ro.Must:Ro.Not;if(t===_o){var f=e;if(n===dp){for(var h=f[o],d=0;d<(h||[]).length&&d<s;d++)if((a=w(h[i+d]))!=null)return a}else for(var d=0;d<f.length&&d<s;d++){var v=f[i+d];if(v&&(a=w(v[o]))!=null)return a}}else if(t===Fs){var m=e;if(!l)return Ro.Not;for(var d=0;d<m.length&&d<s;d++){var y=m[d];if(y&&(a=w(y[l]))!=null)return a}}else if(t===kl){var _=e;if(!l)return Ro.Not;var h=_[l];if(!h||mo(h))return Ro.Not;for(var d=0;d<h.length&&d<s;d++)if((a=w(h[d]))!=null)return a}else if(t===Ea)for(var b=e,d=0;d<b.length&&d<s;d++){var y=b[d],S=Km(y);if(!ft(S))return Ro.Not;if((a=w(S[o]))!=null)return a}function w(T){var C=bt(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 nw=function(){function e(t){this.data=t.data||(t.sourceFormat===kl?{}:[]),this.sourceFormat=t.sourceFormat||D8,this.seriesLayoutBy=t.seriesLayoutBy||Cl,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&&k8(this,r)===Ro.Must&&(i.type="ordinal")}}return e}();function AP(e){return e instanceof nw}function a2(e,t,n){n=n||$8(e);var r=t.seriesLayoutBy,i=ame(e,n,r,t.sourceHeader,t.dimensions),o=new nw({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:fn(t)});return o}function F8(e){return new nw({data:e,sourceFormat:mo(e)?Vu:Ea})}function ome(e){return new nw({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:fn(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function $8(e){var t=D8;if(mo(e))t=Vu;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(Yf(e,o)&&go(e[o])){t=kl;break}}return t}function ame(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:f5(i),startIndex:a,dimensionsDetectedCount:o};if(t===_o){var s=e;r==="auto"||r==null?d5(function(u){u!=null&&u!=="-"&&(bt(u)?a==null&&(a=1):a=0)},n,s,10):a=Qn(r)?r:r?1:0,!i&&a===1&&(i=[],d5(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=sme(e));else if(t===kl)i||(i=[],te(e,function(u,c){i.push(c)}));else if(t===Ea){var l=Km(e[0]);o=ft(l)&&l.length||1}return{startIndex:a,dimensionsDefine:f5(i),dimensionsDetectedCount:o}}function sme(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Jn(n)}function f5(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 d5(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 B8(e){var t=e.sourceFormat;return t===Fs||t===kl}var Uc,Hc,zc,h5,p5,V8=function(){function e(t,n){var r=AP(t)?t:F8(t);this._source=r;var i=this._data=r.data;r.sourceFormat===Vu&&(this._offset=0,this._dimSize=n,this._data=i),p5(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;p5=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,d=h5[IP(u,c)];if(Je(a,d),u===Vu)a.getItem=n,a.count=i,a.fillStorage=r;else{var v=U8(u,c);a.getItem=qn(v,null,s,f,h);var m=H8(u,c);a.count=qn(m,null,s,f,h)}};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,h=0;h<f;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],m=d[1]==null?-1/0:d[1],y=s-a,_=l[h],b=0;b<y;b++){var S=c[b*f+h];_[a+b]=S,S<v&&(v=S),S>m&&(m=S)}d[0]=v,d[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};h5=(t={},t[_o+"_"+Cl]={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;te(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ea]={appendData:o},t[Vu]={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}(),v5=function(e,t,n,r){return e[r]},lme=(Uc={},Uc[_o+"_"+Cl]=function(e,t,n,r){return e[r+t]},Uc[_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},Uc[Fs]=v5,Uc[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},Uc[Ea]=v5,Uc);function U8(e,t){var n=lme[IP(e,t)];return n}var g5=function(e,t,n){return e.length},ume=(Hc={},Hc[_o+"_"+Cl]=function(e,t,n){return Math.max(0,e.length-t)},Hc[_o+"_"+dp]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Hc[Fs]=g5,Hc[kl]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},Hc[Ea]=g5,Hc);function H8(e,t){var n=ume[IP(e,t)];return n}var ST=function(e,t,n){return e[t]},cme=(zc={},zc[_o]=ST,zc[Fs]=function(e,t,n){return e[n]},zc[kl]=ST,zc[Ea]=function(e,t,n){var r=Km(e);return r instanceof Array?r[t]:r},zc[Vu]=ST,zc);function z8(e){var t=cme[e];return t}function IP(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 z8(o)(r,a,s)}else{var l=r;return o===Ea&&(l=Km(r)),l}}}}var fme=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 dme(e,t){var n={},r=n.encode={},i=Zt(),o=[],a=[],s={};te(e.dimensions,function(h){var d=e.getDimensionInfo(h),v=d.coordDim;if(v){var m=d.coordDimIndex;wT(r,v)[m]=h,d.isExtraCoord||(i.set(v,1),pme(d.type)&&(o[0]=h),wT(s,v)[m]=e.getDimensionIndex(d.name)),d.defaultTooltip&&a.push(h)}O8.each(function(y,_){var b=wT(r,_),S=d.otherDims[_];S!=null&&S!==!1&&(b[S]=d.name)})});var l=[],u={};i.each(function(h,d){var v=r[d];u[d]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Dt(l,function(h){return e.getDimensionInfo(h).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 fme(s,t),n}function wT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function hme(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function pme(e){return!(e==="ordinal"||e==="time")}var p1=function(){function e(t){this.otherDims={},t!=null&&Je(this,t)}return e}();function v1(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 bt(e)?Ss(e):e}});var vme=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:_b(t),i=Qn(n)?n:_b(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=bt(t),l=bt(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e}(),rw="undefined",gme=typeof Uint32Array===rw?Array:Uint32Array,mme=typeof Uint16Array===rw?Array:Uint16Array,G8=typeof Int32Array===rw?Array:Int32Array,m5=typeof Float64Array===rw?Array:Float64Array,W8={float:m5,int:G8,ordinal:Array,number:Array,time:m5},xT;function Vd(e){return e>65535?gme:mme}function Ud(){return[1/0,-1/0]}function yme(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function y5(e,t,n,r,i){var o=W8[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 s2=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=xT[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],B8(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 W8[n||"float"](this._rawCount),this._rawExtent[o]=Ud(),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]=Ud());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];y5(r,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var d=h-s,v=0;v<o;v++){var c=i[v],m=xT.arrayRows.call(this,t[d]||f,c.property,d,v);r[v][h]=m;var y=a[v];m<y[0]&&(y[0]=m),m>y[1]&&(y[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(b){return b.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=Ud()),y5(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var h=[],d=t;d<n;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var m=o[v],y=this._dimValueGetter(h,u[v],d,v);m[d]=y;var _=l[v];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}}!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 h=this.getRawIndex(c),d=n-o[h],v=Math.abs(d);v<=r&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===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=Vd(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=Vd(r._rawCount),a=new o(i),s=[],l=t.length,u=0,c=t[0],f=r._chunks,h=0;h<i;h++){var d=void 0,v=r.getRawIndex(h);if(l===0)d=n(h);else if(l===1){var m=f[c][v];d=n(m,h)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][v];s[y]=h,d=n.apply(null,s)}d&&(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=Vd(n._rawCount),l=new s(a),u=0,c=i[0],f=t[c][0],h=t[c][1],d=n._chunks,v=!1;if(!n._indices){var m=0;if(o===1){for(var y=d[i[0]],_=0;_<r;_++){var b=y[_];(b>=f&&b<=h||isNaN(b))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var y=d[i[0]],S=d[i[1]],w=t[i[1]][0],T=t[i[1]][1],_=0;_<r;_++){var b=y[_],C=S[_];(b>=f&&b<=h||isNaN(b))&&(C>=w&&C<=T||isNaN(C))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var _=0;_<a;_++){var E=n.getRawIndex(_),b=d[i[0]][E];(b>=f&&b<=h||isNaN(b))&&(l[u++]=E)}else for(var _=0;_<a;_++){for(var R=!0,E=n.getRawIndex(_),I=0;I<o;I++){var P=i[I],b=d[P][E];(b<t[P][0]||b>t[P][1])&&(R=!1)}R&&(l[u++]=n.getRawIndex(_))}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]]=Ud();for(var f=0;f<s;f++){for(var h=t.getRawIndex(f),d=0;d<a;d++)l[d]=i[n[d]][h];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],y=v[c],_=u[m],b=i[m];b&&(b[h]=y),y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}}}},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,h,d=new(Vd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var v=1;v<a-1;v+=l){for(var m=Math.min(v+l,a-1),y=Math.min(v+l*2,a),_=(y+m)/2,b=0,S=m;S<y;S++){var w=this.getRawIndex(S),T=o[w];isNaN(T)||(b+=T)}b/=y-m;var C=v,E=Math.min(v+l,a),R=v-1,I=o[u];c=-1,h=C;for(var P=-1,M=0,S=C;S<E;S++){var w=this.getRawIndex(S),T=o[w];if(isNaN(T)){M++,P<0&&(P=w);continue}f=Math.abs((R-_)*(T-I)-(R-S)*(b-I)),f>c&&(c=f,h=w)}M>0&&M<E-C&&(d[s++]=Math.min(P,h),h=Math.max(P,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(a-1),r._count=s,r._indices=d,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(Vd(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,h=a[this.getRawIndex(f)],d=c,v=a[this.getRawIndex(d)],m=o;c+o>s&&(m=s-c);for(var y=0;y<m;y++){var _=this.getRawIndex(c+y),b=a[_];b<h&&(h=b,f=c+y),b>v&&(v=b,d=c+y)}var S=this.getRawIndex(f),w=this.getRawIndex(d);f<d?(l[u++]=S,l[u++]=w):(l[u++]=w,l[u++]=S)}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]=Ud(),h=new(Vd(this._rawCount))(Math.ceil(c/l)),d=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var y=this.getRawIndex(v+m);s[m]=u[y]}var _=r(s),b=this.getRawIndex(Math.min(v+i(s,_)||0,c-1));u[b]=_,_<f[0]&&(f[0]=_),_>f[1]&&(f[1]=_),h[d++]=b}return o._count=d,o._indices=h,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=Ud();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]?yme(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=fn(this._extent),t._rawExtent=fn(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 v1(n[o],this._dimensions[o])}xT={arrayRows:t,objectRows:function(n,r,i,o){return v1(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return v1(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),_me=Lr(),bme={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},j8=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=K8(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return sn(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=B8(this.source),r=!Z8(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 h=this.getSourceDimension(a);h&&(l=n?h.name:null,u=h.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+=bme[u]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.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 X8(e){return e instanceof j8}function Y8(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 K8(e){var t=_me(e);return t.dimNameMap||(t.dimNameMap=Y8(e.dimensionsDefine))}function Z8(e){return e>30}var av=Rt,eu=Dt,Sme=typeof Int32Array>"u"?Array:Int32Array,wme="e\0\0",_5=-1,xme=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Cme=["_approximateExtent"],b5,Q0,sv,lv,CT,uv,TT,Tme=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;X8(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],h=bt(f)?new p1({name:f}):f instanceof p1?f:new p1(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};a.push(d),o[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(h.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();te(a,function(y){m.set(o[y].storeDimIndex,y)})}}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 s2&&(o=t),!o){var a=this.dimensions,s=AP(t)||go(t)?new V8(t,a.length):t;o=new s2;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=dme(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&&TT(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!==Vu&&!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===Ea;if(l&&!i.pure)for(var u=[],c=t;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&gve(f)&&(this.hasItemOption=!0),f){var h=f.name;o[c]==null&&h!=null&&(o[c]=Es(h,null));var d=f.id;a[c]==null&&d!=null&&(a[c]=Es(d,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)TT(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){av(t)?Je(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=sv(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(lv(t),this._getStoreDimIndex,this);this._store.each(o,i?qn(n,i):n)},e.prototype.filterSelf=function(t,n,r){Gt(t)&&(r=n,n=t,t=[]);var i=r||this,o=eu(lv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?qn(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=Jn(t);return te(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(lv(t),this._getStoreDimIndex,this),s=uv(this);return s._store=this._store.map(a,o?qn(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=eu(lv(t),this._getStoreDimIndex,this);this._store.modify(a,o?qn(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=uv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=uv(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=uv(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 fr(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new eme(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||{},av(t)?Je(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():av(o)&&(o=Je({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,av(n)?Je(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){av(t)?Je(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?Je(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;Pve(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){te(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)),CT(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(JR(arguments)))})},e.internalField=function(){b5=function(t){var n=t._invertedIndicesMap;te(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Sme(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}})},sv=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=sv(t,t._idDimIdx,n)),r==null&&(r=wme+n),r},lv=function(t){return ft(t)||(t=t!=null?[t]:[]),t},uv=function(t){var n=new e(t._schema?t._schema:eu(t.dimensions,t._getDimInfo,t),t.hostModel);return CT(n,t),n},CT=function(t,n){te(xme.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,te(Cme,function(r){t[r]=fn(n[r])}),t._calculationInfo=Je({},n._calculationInfo)},TT=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=sv(t,o,n)),l==null&&a!=null&&(i[n]=l=sv(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 Eme(e,t){AP(e)||(e=F8(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Zt(),o=[],a=Ime(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Z8(a),l=r===e.dimensionsDefine,u=l?K8(e):Y8(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Zt(c),h=new G8(a),d=0;d<h.length;d++)h[d]=-1;function v(I){var P=h[I];if(P<0){var M=r[I],L=Rt(M)?M:{name:M},k=new p1,$=L.name;$!=null&&u.get($)!=null&&(k.name=k.displayName=$),L.type!=null&&(k.type=L.type),L.displayName!=null&&(k.displayName=L.displayName);var W=o.length;return h[I]=W,k.storeDimIndex=I,o.push(k),k}return o[P]}if(!s)for(var d=0;d<a;d++)v(d);f.each(function(I,P){var M=Bi(I).slice();if(M.length===1&&!bt(M[0])&&M[0]<0){f.set(P,!1);return}var L=f.set(P,[]);te(M,function(k,$){var W=bt(k)?u.get(k):k;W!=null&&W<a&&(L[$]=W,y(v(W),P,$))})});var m=0;te(n,function(I){var P,M,L,k;if(bt(I))P=I,k={};else{k=I,P=k.name;var $=k.ordinalMeta;k.ordinalMeta=null,k=Je({},k),k.ordinalMeta=$,M=k.dimsDef,L=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var W=f.get(P);if(W!==!1){if(W=Bi(W),!W.length)for(var N=0;N<(M&&M.length||1);N++){for(;m<a&&v(m).coordDim!=null;)m++;m<a&&W.push(m++)}te(W,function(K,Y){var ae=v(K);if(l&&k.type!=null&&(ae.type=k.type),y(An(ae,k),P,Y),ae.name==null&&M){var ge=M[Y];!Rt(ge)&&(ge={name:ge}),ae.name=ae.displayName=ge.name,ae.defaultTooltip=ge.defaultTooltip}L&&An(ae.otherDims,L)})}});function y(I,P,M){O8.get(P)!=null?I.otherDims[P]=M:(I.coordDim=P,I.coordDimIndex=M,i.set(P,!0))}var _=t.generateCoord,b=t.generateCoordCount,S=b!=null;b=_?b||1:0;var w=_||"value";function T(I){I.name==null&&(I.name=I.coordDim)}if(s)te(o,function(I){T(I)}),o.sort(function(I,P){return I.storeDimIndex-P.storeDimIndex});else for(var C=0;C<a;C++){var E=v(C),R=E.coordDim;R==null&&(E.coordDim=Rme(w,i,S),E.coordDimIndex=0,(!_||b<=0)&&(E.isExtraCoord=!0),b--),T(E),E.type==null&&(k8(e,C)===Ro.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return Ame(o),new j8({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ame(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 Ime(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return te(t,function(o){var a;Rt(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Rme(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 ET={},RP=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];te(ET,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){te(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){ET[t]=n},e.get=function(t){return ET[t]},e}(),Pme=function(){function e(t){this.coordSysDims=[],this.axisMap=Zt(),this.categoryAxisMap=Zt(),this.coordSysName=t}return e}();function Mme(e){var t=e.get("coordinateSystem"),n=new Pme(t),r=Ome[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Ome={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ka).models[0],o=e.getReferringComponents("yAxis",Ka).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Hd(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Hd(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ka).models[0];t.coordSysDims=["single"],n.set("single",i),Hd(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ka).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Hd(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Hd(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();te(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Hd(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Hd(e){return e.get("type")==="category"}function Dme(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;Lme(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(te(o,function(b,S){bt(b)&&(o[S]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,v=c.type,m=0;te(o,function(b){b.coordDim===d&&m++});var y={name:f,coordDim:d,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,v),_.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(o.push(y),o.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:f}}function Lme(e){return!X8(e.schema)}function cm(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Nme(e,t){return cm(e,t)?e.getCalculationInfo("stackResultDimension"):t}function kme(e,t){var n=e.get("coordinateSystem"),r=RP.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=hme(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Fme(e,t,n){var r,i;return n&&te(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 $me(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===Ea;var a=Mme(t),s=kme(t,a),l=n.useEncodeDefaulter,u=Gt(l)?l:l?Vr(nme,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Eme(i,c),h=Fme(f.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(f),v=Dme(t,{schema:f,store:d}),m=new Tme(f,t);m.setCalculationInfo(v);var y=h!=null&&Bme(i)?function(_,b,S,w){return w===h?S:this.defaultDimValueGetter(_,b,S,w)}:null;return m.hasItemOption=!1,m.initData(o?i:d,null,y),m}function Bme(e){if(e.sourceFormat===Ea){var t=Vme(e.data||[]);return!ft(Km(t))}}function Vme(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Ume=Math.round(Math.random()*10);function iw(e){return[e||"",Ume++].join("_")}function Hme(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 zme(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,h={};for(te(o,function(b){h[b]=!0});f.length;){var d=f.pop(),v=c[d],m=!!h[d];m&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),te(v.successor,m?_:y)}te(h,function(){var b="";throw new Error(b)});function y(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function _(b){h[b]=!0,y(b)}};function n(o){var a={},s=[];return te(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),te(f,function(h){Rn(u.predecessor,h)<0&&u.predecessor.push(h);var d=r(a,h);Rn(d.successor,h)<0&&d.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 te(o,function(l){Rn(a,l)>=0&&s.push(l)}),s}}function Gme(e,t){return Sn(Sn({},e,!0),t,!0)}var Wme=Math.log(2);function l2(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)/Wme);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(f+=(d%2?-1:1)*e[n][h]*l2(e,t-1,c,u,i|v,o),d++)}return o[a]=f,f}function S5(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=l2(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)*l2(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 w5="___zrEVENTSAVED",AT=[];function jme(e,t,n,r,i){return u2(AT,t,r,i,!0)&&u2(e,n,AT[0],AT[1])}function u2(e,t,n,r,i){if(t.getBoundingClientRect&&Nt.domSupported&&!q8(t)){var o=t[w5]||(t[w5]={}),a=Xme(t,o),s=Yme(a,o,i);if(s)return s(e,n,r),!0}return!1}function Xme(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 Yme(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,h=c.left,d=c.top;a.push(h,d),l=l&&o&&h===o[f]&&d===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?S5(s,a):S5(a,s))}function q8(e){return e.nodeName.toUpperCase()==="CANVAS"}var Kme=/([&<>"'])/g,Zme={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function oo(e){return e==null?"":(e+"").replace(Kme,function(t,n){return Zme[n]})}const qme={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:". "}}}},Jme={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 Eb="ZH",PP="EN",wh=PP,g1={},MP={},J8=Nt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||wh).toUpperCase();return e.indexOf(Eb)>-1?Eb:wh}():wh;function Q8(e,t){e=e.toUpperCase(),MP[e]=new fr(t),g1[e]=t}function Qme(e){if(bt(e)){var t=g1[e.toUpperCase()]||{};return e===Eb||e===PP?fn(t):Sn(fn(t),fn(g1[wh]),!1)}else return Sn(fn(e),fn(g1[wh]),!1)}function eye(e){return MP[e]}function tye(){return MP[wh]}Q8(PP,qme);Q8(Eb,Jme);var OP=1e3,DP=OP*60,Sg=DP*60,da=Sg*24,x5=da*365,Fv={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}",C5={year:"{yyyy}",month:"{yyyy}-{MM}",day:e_,hour:e_+" "+Fv.hour,minute:e_+" "+Fv.minute,second:e_+" "+Fv.second,millisecond:Fv.none},IT=["year","month","day","hour","minute","second","millisecond"],ez=["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 xh(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 nye(e){return e===xh(e)}function rye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ow(e,t,n,r){var i=Ol(e),o=i[LP(n)](),a=i[Ch(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[aw(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[fm(n)](),f=(c-1)%12+1,h=i[sw(n)](),d=i[lw(n)](),v=i[uw(n)](),m=c>=12?"pm":"am",y=m.toUpperCase(),_=r instanceof fr?r:eye(r||J8)||tye(),b=_.getModel("time"),S=b.get("month"),w=b.get("monthAbbr"),T=b.get("dayOfWeek"),C=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tu(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[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(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,tu(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,tu(v,3)).replace(/{S}/g,v+"")}function iye(e,t,n,r,i){var o=null;if(bt(n))o=n;else if(Gt(n))o=n(e.value,t,{level:e.level});else{var a=Je({},Fv);if(e.level>0)for(var s=0;s<IT.length;++s)a[IT[s]]="{primary|"+a[IT[s]]+"}";var l=n?n.inherit===!1?n:An(n,a):a,u=tz(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=ez.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 ow(new Date(e.value),o,i,r)}function tz(e,t){var n=Ol(e),r=n[Ch(t)]()+1,i=n[aw(t)](),o=n[fm(t)](),a=n[sw(t)](),s=n[lw(t)](),l=n[uw(t)](),u=l===0,c=u&&s===0,f=c&&a===0,h=f&&o===0,d=h&&i===1,v=d&&r===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function T5(e,t,n){var r=Qn(e)?Ol(e):e;switch(t=t||tz(e,n),t){case"year":return r[LP(n)]();case"half-year":return r[Ch(n)]()>=6?1:0;case"quarter":return Math.floor((r[Ch(n)]()+1)/4);case"month":return r[Ch(n)]();case"day":return r[aw(n)]();case"half-day":return r[fm(n)]()/24;case"hour":return r[fm(n)]();case"minute":return r[sw(n)]();case"second":return r[lw(n)]();case"millisecond":return r[uw(n)]()}}function LP(e){return e?"getUTCFullYear":"getFullYear"}function Ch(e){return e?"getUTCMonth":"getMonth"}function aw(e){return e?"getUTCDate":"getDate"}function fm(e){return e?"getUTCHours":"getHours"}function sw(e){return e?"getUTCMinutes":"getMinutes"}function lw(e){return e?"getUTCSeconds":"getSeconds"}function uw(e){return e?"getUTCMilliseconds":"getMilliseconds"}function oye(e){return e?"setUTCFullYear":"setFullYear"}function nz(e){return e?"setUTCMonth":"setMonth"}function rz(e){return e?"setUTCDate":"setDate"}function iz(e){return e?"setUTCHours":"setHours"}function oz(e){return e?"setUTCMinutes":"setMinutes"}function az(e){return e?"setUTCSeconds":"setSeconds"}function sz(e){return e?"setUTCMilliseconds":"setMilliseconds"}function lz(e){if(!pve(e))return bt(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 cw=I6;function c2(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 ow(l,r,n)}if(t==="ordinal")return FA(e)?i(e):Qn(e)&&o(e)?e+"":"-";var u=_b(e);return o(u)?lz(u):FA(e)?i(e):typeof e=="boolean"?e+"":"-"}var E5=["a","b","c","d","e","f","g"],RT=function(e,t){return"{"+e+(t??"")+"}"};function cz(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=E5[o];e=e.replace(RT(a),RT(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(RT(E5[l],s),n?oo(u):u)}return e}function aye(e,t){var n=bt(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 Jf(e,t){return t=t||"transparent",bt(e)?e:Rt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var m1=te,sye=["left","right","top","bottom","width","height"],t_=[["width","left","right"],["height","top","bottom"]];function NP(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),h=f&&f.getBoundingRect(),d,v;if(e==="horizontal"){var m=c.width+(h?-h.x+c.x:0);d=o+m,d>r||l.newline?(o=0,d=m,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(h?-h.y+c.y:0);v=a+y,v>i||l.newline?(o+=s+n,a=0,v=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=d+n:a=v+n)})}var wg=NP;Vr(NP,"vertical");Vr(NP,"horizontal");function Ab(e,t,n){n=cw(n||0);var r=t.width,i=t.height,o=ki(e.left,r),a=ki(e.top,i),s=ki(e.right,r),l=ki(e.bottom,i),u=ki(e.width,r),c=ki(e.height,i),f=n[2]+n[0],h=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-f-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-h),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-h;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-h-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 dm(e){var t=e.layoutMode||e.constructor.layoutMode;return Rt(t)?t:t?{type:t}:null}function ep(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 h={},d=0,v={},m=0,y=2;if(m1(c,function(S){v[S]=e[S]}),m1(c,function(S){s(t,S)&&(h[S]=v[S]=t[S]),l(h,S)&&d++,l(v,S)&&m++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===y||!d)return v;if(d>=y)return h;for(var _=0;_<c.length;_++){var b=c[_];if(!s(h,b)&&s(e,b)){h[b]=e[b];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){m1(c,function(d){f[d]=h[d]})}}function fw(e){return lye({},e)}function lye(e,t){return t&&e&&m1(sye,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var uye=Lr(),In=function(e){st(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=iw("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=dm(this),o=i?fw(n):{},a=r.getTheme();Sn(n,a.get(this.mainType)),Sn(n,this.getDefaultOption()),i&&ep(n,o,i)},t.prototype.mergeOption=function(n,r){Sn(this.option,n,!0);var i=dm(this);i&&ep(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!Mhe(n))return n.defaultOption;var r=uye(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 Zm(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}(fr);D6(In,fr);zS(In);Hme(In);zme(In,cye);function cye(e){var t=[];return te(In.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Dt(t,function(n){return ws(n).main}),e!=="dataset"&&Rn(t,"dataset")<=0&&t.unshift("dataset"),t}var A5=Lr();Lr();var kP=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Bi(this.get("color",!0)),o=this.get("colorLayer",!0);return dye(this,A5,i,o,t,n,r)},e.prototype.clearColorPalette=function(){hye(this,A5)},e}();function fye(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 dye(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:fye(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 hye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var pye=/\{@(.+?)\}/g,vye=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,h=f==="series",d=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.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(bt(o)){var c=cz(o,l);return c.replace(pye,function(f,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var m=Qh(s,t,v);if(a&&ft(a.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(m=a.interpolatedValue[y])}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 I5(e){var t,n;return Rt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function xg(e){return new gye(e)}var gye=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(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(f||d<v)){var m=this._progress;if(ft(m))for(var y=0;y<m.length;y++)this._doProgress(m[y],d,v,l,u);else this._doProgress(m,d,v,l,u)}this._dueIndex=v;var _=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=_}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){R5.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:R5.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}(),R5=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}}(),mye=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 v1(t,n)},e}();function yye(e,t){var n=new mye,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Cl&&io(a);var s=[],l={},u=e.dimensionsDefine;if(u)te(u,function(m,y){var _=m.name,b={index:y,name:_,displayName:m.displayName};if(s.push(b),_!=null){var S="";Yf(l,_)&&io(S),l[_]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=U8(i,Cl);t.__isBuiltIn&&(n.getRawDataItem=function(m){return f(r,o,s,m)},n.getRawData=qn(_ye,null,e)),n.cloneRawData=qn(bye,null,e);var h=H8(i,Cl);n.count=qn(h,null,r,o,s);var d=z8(i);n.retrieveValue=function(m,y){var _=f(r,o,s,m);return v(_,y)};var v=n.retrieveValueFromItem=function(m,y){if(m!=null){var _=s[y];if(_)return d(m,y,_.name)}};return n.getDimensionInfo=qn(Sye,null,s,l),n.cloneAllDimensionInfo=qn(wye,null,s),n}function _ye(e){var t=e.sourceFormat;if(!FP(t)){var n="";io(n)}return e.data}function bye(e){var t=e.sourceFormat,n=e.data;if(!FP(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(Je({},n[o]));return i}}function Sye(e,t,n){if(n!=null){if(Qn(n)||!isNaN(n)&&!Yf(t,n))return e[n];if(Yf(t,n))return t[n]}}function wye(e){return fn(e)}var fz=Zt();function xye(e){e=fn(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,fz.set(t,e)}function Cye(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=Tye(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Tye(e,t,n,r){var i="";t.length||io(i),Rt(e)||io(i);var o=e.type,a=fz.get(o);a||io(i);var s=Dt(t,function(u){return yye(u,a)}),l=Bi(a.transform({upstream:s[0],upstreamList:s,config:fn(e.config)}));return Dt(l,function(u,c){var f="";Rt(u)||io(f),u.data||io(f);var h=$8(u.data);FP(h)||io(f);var d,v=t[0];if(v&&c===0&&!u.dimensions){var m=v.startIndex;m&&(u.data=v.data.slice(0,m).concat(u.data)),d={seriesLayoutBy:Cl,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Cl,sourceHeader:0,dimensions:u.dimensions};return a2(u.data,d,null)})}function FP(e){return e===_o||e===Fs}var Eye=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)?Vu:Ea,o=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=sn(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=sn(f.sourceHeader,h.sourceHeader),m=sn(f.dimensions,h.dimensions),y=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||m;i=y?[a2(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:m},l)]:[]}else{var _=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var S=_.get("source",!0);i=[a2(S,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&&P5(o)}var a,s=[],l=[];return te(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&P5(f),s.push(c),l.push(u._getVersionSign())}),r?a=Cye(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[ome(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 s2,s.initData(new V8(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(n_(t)){var n=N8(t);return n?[n.getSourceManager()]:[]}else return Dt(rme(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 P5(e){throw new Error(e)}var Aye="line-height:1";function dz(e){var t=e.lineHeight;return t==null?Aye:"line-height:"+oo(t+"")+"px"}function hz(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 Iye=[0,10,20,30],Rye=["",`
`,`
`,`
`];function hm(e,t){return t.type=e,t}function f2(e){return e.type==="section"}function pz(e){return f2(e)?Pye:Mye}function vz(e){if(f2(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return te(e.blocks,function(i){var o=vz(i);o>=t&&(t=o+ +(r&&(!o||f2(i)&&!i.noHeader)))}),t}return 0}function Pye(e,t,n,r){var i=t.noHeader,o=Oye(vz(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(Yf(u,l)){var c=new vme(u[l],null);s.sort(function(m,y){return c.evaluate(m.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}te(s,function(m,y){var _=t.valueFormatter,b=pz(m)(_?Je(Je({},e),{valueFormatter:_}):e,m,y>0?o.html:0,r);b!=null&&a.push(b)});var f=e.renderMode==="richText"?a.join(o.richText):d2(r,a.join(""),i?n:o.html);if(i)return f;var h=c2(t.header,"ordinal",e.useUTC),d=hz(r,e.renderMode).nameStyle,v=dz(r);return e.renderMode==="richText"?gz(e,h,d)+o.richText+f:d2(r,'<div style="'+d+";"+v+';">'+oo(h)+"</div>"+f,n)}function Mye(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 c2(T,ft(d)?d[C]:d,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":c2(l,"ordinal",u),d=t.valueType,v=a?[]:c(t.value,t.dataIndex),m=!s||!o,y=!s&&o,_=hz(r,i),b=_.nameStyle,S=_.valueStyle;return i==="richText"?(s?"":f)+(o?"":gz(e,h,b))+(a?"":Nye(e,v,m,y,S)):d2(r,(s?"":f)+(o?"":Dye(h,!s,b))+(a?"":Lye(v,m,y,S)),n)}}function M5(e,t,n,r,i,o){if(e){var a=pz(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Oye(e){return{html:Iye[e],richText:Rye[e]}}function d2(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=dz(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function Dye(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+oo(e)+"</span>"}function Lye(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("&nbsp;&nbsp;")+"</span>"}function gz(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Nye(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 kye(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Jf(r)}function mz(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var PT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=r8()}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=aye({color:n,type:t,renderMode:r,markerId:i});return bt(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ft(n)?te(n,function(o){return Je(r,o)}):Je(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function Fye(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=kye(t,n),c,f,h,d;if(a>1||l&&!a){var v=$ye(s,t,n,o,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);d=c=Qh(i,n,o[0]),f=m.type}else d=c=l?s[0]:s;var y=lP(t),_=y&&t.name||"",b=i.getName(n),S=r?_:b;return hm("section",{header:_,noHeader:r||!y,sortParam:d,blocks:[hm("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Ss(S),value:c,valueType:f,dataIndex:n})].concat(h||[])})}function $ye(e,t,n,r,i){var o=t.getData(),a=cp(e,function(f,h,d){var v=o.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?te(r,function(f){c(Qh(o,n,f),f)}):te(e,c);function c(f,h){var d=o.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(a?u.push(hm("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var nu=Lr();function r_(e,t){return e.getName(t)||e.getId(t)}var Bye="__universalTransitionEnabled",Ku=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:Uye,reset:Hye}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=nu(this).sourceManager=new Eye(this);o.prepareSource();var a=this.getInitialData(n,i);D5(a,this),this.dataTask.context.data=a,nu(this).dataBeforeProcessed=a,O5(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=dm(this),o=i?fw(n):{},a=this.subType;In.hasClass(a)&&(a+="Series"),Sn(n,r.getTheme().get(this.subType)),Sn(n,this.getDefaultOption()),kF(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&ep(n,o,i)},t.prototype.mergeOption=function(n,r){n=Sn(this.option,n,!0),this.fillDataTextStyle(n.data);var i=dm(this);i&&ep(this.option,n,i);var o=nu(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);D5(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,nu(this).dataBeforeProcessed=a,O5(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&&kF(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=h2(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=h2(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 Fye({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=kP.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[Bye])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],h=r_(n,f);u[h]=!0,this._selectedDataIndicesMap[h]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var d=r[l-1],h=r_(n,d);a.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(o={},o[h]=n.getRawIndex(d),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 In.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}(In);Ns(Ku,vye);Ns(Ku,kP);D6(Ku,In);function O5(e){var t=e.name;lP(e)||(e.name=Vye(e)||t)}function Vye(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return te(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function Uye(e){return e.model.getRawData().count()}function Hye(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),zye}function zye(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function D5(e,t){te(Che(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Vr(Gye,t))})}function Gye(e,t){var n=h2(e);return n&&n.setOutputEnd((t||this).count()),t}function h2(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 Wye=Nn.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()}}),jye=Nn.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()}}),Xye=Nn.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),h=Math.cos(u),d=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*d,l+s+h*d,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*d,l+s+h*d,n-c,l+s),e.closePath()}}),Yye=Nn.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()}}),Kye={line:Xu,rect:qr,roundRect:qr,square:qr,circle:qS,diamond:jye,pin:Xye,arrow:Yye,triangle:Wye},Zye={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}},p2={};te(Kye,function(e,t){p2[t]=new e});var qye=Nn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=k6(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=p2[r];i||(r="rect",i=p2[r]),Zye[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Jye(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 tp(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=C8(e.slice(8),new wn(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=SP(e.slice(7),{},new wn(t,n,r,i),a?"center":"cover"):l=new qye({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=Jye,o&&l.setColor(o),l}function Qye(e){return ft(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function yz(e,t){if(e!=null)return ft(e)||(e=[e,e]),[ki(e[0],t[0])||0,ki(sn(e[1],e[0]),t[1])||0]}var e0e=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 $me(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new xi,i=tp("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=tp(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}(Ku);function _z(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 t0e(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 $P=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=tp(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=n0e,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(){bb(this.childAt(0))},t.prototype.downplay=function(){Sb(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 h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Yu(h,d,s,r),Ige(h)}if(this._updateCommon(n,r,l,i,o),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,qm(h,d,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,h,d,v,m,y,_;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,h=o.focus,d=o.blurScope,m=o.labelStatesModels,y=o.hoverScale,_=o.cursorStyle,v=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),h=S.get("focus"),d=S.get("blurScope"),v=S.get("disabled"),m=EP(b),y=S.getShallow("scale"),_=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var T=yz(n.getItemVisual(r,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),_&&s.attr("cursor",_);var C=n.getItemVisual(r,"style"),E=C.fill;if(s instanceof sc){var R=s.style;s.useStyle(Je({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},C))}else s.__isEmptyBrush?s.useStyle(Je({},C)):s.useStyle(C),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),P=this._z2;I!=null?P==null&&(this._z2=s.z2,s.z2+=I):P!=null&&(s.z2=P,this._z2=null);var M=a&&a.useNameLabel;TP(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:L,inheritColor:E,defaultOpacity:C.opacity});function L(W){return M?n.getName(W):_z(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 $=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;k.scaleX=this._sizeX*$,k.scaleY=this._sizeY*$,this.setSymbolScale(1),t2(this,h,d,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Ln(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&xb(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();xb(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Qye(n.getItemVisual(r,"symbolSize"))},t}(xi);function n0e(e,t){this.parent.drift(e,t)}function MT(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 L5(e){return e!=null&&!Rt(e)&&(e={isIgnore:e}),e||{}}function N5(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:EP(t),cursorStyle:t.get("cursor")}}var r0e=function(){function e(t){this.group=new xi,this._SymbolCtor=t||$P}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=L5(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=N5(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var h=c(f);if(MT(t,h,f,n)){var d=new a(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),r.add(d)}}).update(function(f,h){var d=o.getItemGraphicEl(h),v=c(f);if(!MT(t,v,f,n)){r.remove(d);return}var m=t.getItemVisual(f,"symbol")||"circle",y=d&&d.getSymbolType&&d.getSymbolType();if(!d||y&&y!==m)r.remove(d),d=new a(t,f,l,u),d.setPosition(v);else{d.updateData(t,f,l,u);var _={x:v[0],y:v[1]};s?d.attr(_):Yu(d,_,i)}r.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&h.fadeOut(function(){r.remove(h)},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=N5(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=L5(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(MT(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){CP(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 bz(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=i0e(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)}),h=!1,d=t.getCalculationInfo("stackResultDimension");return cm(t,f[0])&&(h=!0,f[0]=d),cm(t,f[1])&&(h=!0,f[1]=d),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function i0e(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 Sz(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 wz=typeof Float32Array<"u",o0e=wz?Float32Array:Array;function uh(e){return ft(e)?wz?new Float32Array(e):e:new o0e(e)}function a0e(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 s0e(e,t,n,r,i,o,a,s){for(var l=a0e(e,t),u=[],c=[],f=[],h=[],d=[],v=[],m=[],y=bz(i,t,a),_=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S<l.length;S++){var w=l[S],T=!0,C=void 0,E=void 0;switch(w.cmd){case"=":C=w.idx*2,E=w.idx1*2;var R=_[C],I=_[C+1],P=b[E],M=b[E+1];(isNaN(R)||isNaN(I))&&(R=P,I=M),u.push(R,I),c.push(P,M),f.push(n[C],n[C+1]),h.push(r[E],r[E+1]),m.push(t.getRawIndex(w.idx1));break;case"+":var L=w.idx,k=y.dataDimsForPoint,$=i.dataToPoint([t.get(k[0],L),t.get(k[1],L)]);E=L*2,u.push($[0],$[1]),c.push(b[E],b[E+1]);var W=Sz(y,i,t,L);f.push(W[0],W[1]),h.push(r[E],r[E+1]),m.push(t.getRawIndex(L));break;case"-":T=!1}T&&(d.push(w),v.push(v.length))}v.sort(function(Le,Xe){return m[Le]-m[Xe]});for(var N=u.length,K=uh(N),Y=uh(N),ae=uh(N),ge=uh(N),ye=[],S=0;S<v.length;S++){var Oe=v[S],ke=S*2,Ue=Oe*2;K[ke]=u[Ue],K[ke+1]=u[Ue+1],Y[ke]=c[Ue],Y[ke+1]=c[Ue+1],ae[ke]=f[Ue],ae[ke+1]=f[Ue+1],ge[ke]=h[Ue],ge[ke+1]=h[Ue+1],ye[S]=d[Oe]}return{current:K,next:Y,stackedOnCurrent:ae,stackedOnNext:ge,status:ye}}var ru=Math.min,iu=Math.max;function Lf(e,t){return isNaN(e)||isNaN(t)}function v2(e,t,n,r,i,o,a,s,l){for(var u,c,f,h,d,v,m=n,y=0;y<r;y++){var _=t[m*2],b=t[m*2+1];if(m>=i||m<0)break;if(Lf(_,b)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](_,b),f=_,h=b;else{var S=_-u,w=b-c;if(S*S+w*w<.5){m+=o;continue}if(a>0){for(var T=m+o,C=t[T*2],E=t[T*2+1];C===_&&E===b&&y<r;)y++,T+=o,m+=o,C=t[T*2],E=t[T*2+1],_=t[m*2],b=t[m*2+1],S=_-u,w=b-c;var R=y+1;if(l)for(;Lf(C,E)&&R<r;)R++,T+=o,C=t[T*2],E=t[T*2+1];var I=.5,P=0,M=0,L=void 0,k=void 0;if(R>=r||Lf(C,E))d=_,v=b;else{P=C-u,M=E-c;var $=_-u,W=C-_,N=b-c,K=E-b,Y=void 0,ae=void 0;if(s==="x"){Y=Math.abs($),ae=Math.abs(W);var ge=P>0?1:-1;d=_-ge*Y*a,v=b,L=_+ge*ae*a,k=b}else if(s==="y"){Y=Math.abs(N),ae=Math.abs(K);var ye=M>0?1:-1;d=_,v=b-ye*Y*a,L=_,k=b+ye*ae*a}else Y=Math.sqrt($*$+N*N),ae=Math.sqrt(W*W+K*K),I=ae/(ae+Y),d=_-P*a*(1-I),v=b-M*a*(1-I),L=_+P*a*I,k=b+M*a*I,L=ru(L,iu(C,_)),k=ru(k,iu(E,b)),L=iu(L,ru(C,_)),k=iu(k,ru(E,b)),P=L-_,M=k-b,d=_-P*Y/ae,v=b-M*Y/ae,d=ru(d,iu(u,_)),v=ru(v,iu(c,b)),d=iu(d,ru(u,_)),v=iu(v,ru(c,b)),P=_-d,M=b-v,L=_+P*ae/Y,k=b+M*ae/Y}e.bezierCurveTo(f,h,d,v,_,b),f=L,h=k}else e.lineTo(_,b)}u=_,c=b,m+=o}return y}var xz=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),l0e=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 xz},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&Lf(i[a*2-2],i[a*2-1]);a--);for(;o<a&&Lf(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=v2(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=Zf.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var h=o[f++],d=void 0,v=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0;switch(h){case a.M:s=o[f++],l=o[f++];break;case a.L:if(d=o[f++],v=o[f++],S=u?(n-s)/(d-s):(n-l)/(v-l),S<=1&&S>=0){var w=u?(v-l)*S+l:(d-s)*S+s;return u?[n,w]:[w,n]}s=d,l=v;break;case a.C:d=o[f++],v=o[f++],m=o[f++],y=o[f++],_=o[f++],b=o[f++];var T=u?db(s,d,m,_,n,c):db(l,v,y,b,n,c);if(T>0)for(var C=0;C<T;C++){var E=c[C];if(E<=1&&E>=0){var w=u?Zr(l,v,y,b,E):Zr(s,d,m,_,E);return u?[n,w]:[w,n]}}s=_,l=b;break}}},t}(Nn),u0e=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(xz),c0e=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 u0e},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&&Lf(i[s*2-2],i[s*2-1]);s--);for(;a<s&&Lf(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=v2(n,i,a,s,s,1,r.smooth,l,r.connectNulls);v2(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},t}(Nn);function Cz(){var e=Lr();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 Tz=Lr(),f0e=Cz(),As=function(){function e(){this.group=new xi,this.uid=iw("viewChart"),this.renderTask=xg({plan:d0e,reset:h0e}),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&&F5(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&F5(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){CP(this.group,t)},e.markUpdateMethod=function(t,n){Tz(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function k5(e,t,n){e&&n2(e)&&(t==="emphasis"?bb:Sb)(e,n)}function F5(e,t,n){var r=qf(e,t),i=t&&t.highlightKey!=null?Kve(t.highlightKey):null;r!=null?te(Bi(r),function(o){k5(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){k5(o,n,i)})}QR(As);zS(As);function d0e(e){return f0e(e.model)}function h0e(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&Tz(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),p0e[l]}var p0e={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 v0e(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 h=e.getBaseAxis(),d=h.isHorizontal(),v=h.inverse;d?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=Gt(i)?function(y){i(y,f)}:null;qm(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,m)}return f}function g0e(e,t,n){var r=e.getArea(),i=Tr(r.r0,1),o=Tr(r.r,1),a=new JS({shape:{cx:Tr(e.cx,1),cy:Tr(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,qm(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function m0e(e,t){return e.type===t}function $5(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function B5(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 V5(e,t){var n=B5(e),r=n[0],i=n[1],o=B5(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 U5(e){return Qn(e)?e:e?.5:0}function y0e(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=uh(r*2),o=0;o<r;o++){var a=Sz(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=[],h=[];if(i){for(l=0;l<e.length;l+=2){var d=t||e;!isNaN(d[l])&&!isNaN(d[l+1])&&h.push(e[l],e[l+1])}e=h}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 _0e(e,t){var n=[],r=e.length,i,o;function a(c,f,h){var d=c.coord,v=(h-d)/(f.coord-d),m=vpe(v,[c.color,f.color]);return{coord:h,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 b0e(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(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=_0e(u,i==="x"?n.getWidth():n.getHeight()),d=h.length;if(!d&&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=h[0].coord-v,y=h[d-1].coord+v,_=y-m;if(_<.001)return"transparent";te(h,function(S){S.offset=(S.coord-m)/_}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var b=new _P(0,0,0,0,h,!0);return b[i]=m,b[i+"2"]=y,b}}}function S0e(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&w0e(o,t))){var a=t.mapDimension(o.dim),s={};return te(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function w0e(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($P.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function x0e(e,t){return isNaN(e)||isNaN(t)}function C0e(e){for(var t=e.length/2;t>0&&x0e(e[t*2-2],e[t*2-1]);t--);return t-1}function H5(e,t){return[e[t*2],e[t*2+1]]}function T0e(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 Ez(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 OT(e,t,n,r){if(m0e(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Ez(r)?function(d,v){e._endLabelOnDuring(d,v,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=v0e(t,n,r,function(){var d=e._endLabel;d&&n&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return g0e(t,n,r)}function E0e(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 A0e=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new xi,r=new r0e;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=qn(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",h=this._coordSys,d=this._symbolDraw,v=this._polyline,m=this._polygon,y=this._lineGroup,_=!r.ssr&&n.get("animation"),b=!u.isEmpty(),S=u.get("origin"),w=bz(o,s,S),T=b&&y0e(o,s,w),C=n.get("showSymbol"),E=n.get("connectNulls"),R=C&&!f&&S0e(n,s,o),I=this._data;I&&I.eachItemGraphicEl(function(Le,Xe){Le.__temp&&(a.remove(Le),I.setItemGraphicEl(Xe,null))}),C||d.remove(),a.add(y);var P=f?!1:n.get("step"),M;o&&o.getArea&&n.get("clip",!0)&&(M=o.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var L=b0e(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&h.type===o.type&&P===this._step))C&&d.updateData(s,{isIgnore:R,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Le){return[c[Le*2],c[Le*2+1]]}}),_&&this._initSymbolLabelAnimation(s,o,M),P&&(T&&(T=ou(T,c,o,P,E)),c=ou(c,null,o,P,E)),v=this._newPolyline(c),b?m=this._newPolygon(c,T):m&&(y.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,Jf(L)),y.setClipPath(OT(this,o,!0,n));else{b&&!m?m=this._newPolygon(c,T):m&&!b&&(y.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,Jf(L));var k=y.getClipPath();if(k){var $=OT(this,o,!1,n);qm(k,{shape:$.shape},n)}else y.setClipPath(OT(this,o,!0,n));C&&d.updateData(s,{isIgnore:R,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Le){return[c[Le*2],c[Le*2+1]]}}),(!$5(this._stackedOnPoints,T)||!$5(this._points,c))&&(_?this._doUpdateAnimation(s,T,o,i,P,S,E):(P&&(T&&(T=ou(T,c,o,P,E)),c=ou(c,null,o,P,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"),Y=W.get("disabled");if(v.useStyle(An(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),XF(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}Ln(v).seriesIndex=n.seriesIndex,t2(v,N,K,Y);var ge=U5(n.get("smooth")),ye=n.get("smoothMonotone");if(v.setShape({smooth:ge,smoothMonotone:ye,connectNulls:E}),m){var Oe=s.getCalculationInfo("stackedOnSeries"),ke=0;m.useStyle(An(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Oe&&(ke=U5(Oe.get("smooth"))),m.setShape({smooth:ge,stackedOnSmooth:ke,smoothMonotone:ye,connectNulls:E}),XF(m,n,"areaStyle"),Ln(m).seriesIndex=n.seriesIndex,t2(m,N,K,Y)}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=P,this._valueOrigin=S,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){Ln(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=qf(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 h=n.get("zlevel")||0,d=n.get("z")||0;u=new $P(a,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,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=qf(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;HF(this._polyline,n),r&&HF(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new l0e({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 c0e({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,h=Gt(f)?f(null):f;n.eachItemGraphicEl(function(d,v){var m=d;if(m){var y=[d.x,d.y],_=void 0,b=void 0,S=void 0;if(i)if(a){var w=i,T=r.pointToCoord(y);o?(_=w.startAngle,b=w.endAngle,S=-T[1]/180*Math.PI):(_=w.r0,b=w.r,S=T[0])}else{var C=i;o?(_=C.x,b=C.x+C.width,S=d.x):(_=C.y+C.height,b=C.y,S=d.y)}var E=b===_?0:(S-_)/(b-_);l&&(E=1-E);var R=Gt(f)?f(v):c*E+h,I=m.getSymbolPath(),P=I.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:R}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:R}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(Ez(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=C0e(l);c>=0&&(TP(s,EP(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?t0e(a,d):_z(a,f)},enableTextSetter:!0},E0e(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"),h=i.hostModel,d=h.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,y=l.getBaseAxis(),_=y.isHorizontal(),b=y.inverse,S=r.shape,w=b?_?S.x:S.y+S.height:_?S.x+S.width:S.y,T=(_?m:0)*(b?-1:1),C=(_?0:-m)*(b?-1:1),E=_?"x":"y",R=T0e(f,w,E),I=R.range,P=I[1]-I[0],M=void 0;if(P>=1){if(P>1&&!d){var L=H5(f,I[0]);u.attr({x:L[0]+T,y:L[1]+C}),a&&(M=h.getRawValue(I[0]))}else{var L=c.getPointOn(w,E);L&&u.attr({x:L[0]+T,y:L[1]+C});var k=h.getRawValue(I[0]),$=h.getRawValue(I[1]);a&&(M=Rve(i,v,k,$,R.t))}o.lastFrameIndex=I[0]}else{var W=n===1||o.lastFrameIndex>0?I[0]:0,L=H5(f,W);a&&(M=h.getRawValue(W)),u.attr({x:L[0]+T,y:L[1]+C})}if(a){var N=R8(u);typeof N.setLabelText=="function"&&N.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,h=s0e(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,m=h.next,y=h.stackedOnNext;if(a&&(v=ou(h.stackedOnCurrent,h.current,i,a,l),d=ou(h.current,null,i,a,l),y=ou(h.stackedOnNext,h.next,i,a,l),m=ou(h.next,null,i,a,l)),V5(d,m)>3e3||c&&V5(v,y)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=d;var _={shape:{points:m}};h.current!==d&&(_.shape.__points=h.next),u.stopAnimation(),Yu(u,_,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Yu(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=h.status,w=0;w<S.length;w++){var T=S[w].cmd;if(T==="="){var C=n.getItemGraphicEl(S[w].idx1);C&&b.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<b.length;R++){var I=b[R].el,P=b[R].ptIdx*2;I.x=E[P],I.y=E[P+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 I0e(e,t){return{seriesType:e,plan:Cz(),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");cm(r,o[0])&&(o[0]=s),cm(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,h){for(var d=f.end-f.start,v=uh(d*a),m=[],y=[],_=f.start,b=0;_<f.end;_++){var S=void 0;if(a===1){var w=l.get(u,_);S=i.dataToPoint(w,null,y)}else m[0]=l.get(u,_),m[1]=l.get(c,_),S=i.dataToPoint(m,null,y);v[b++]=S[0],v[b++]=S[1]}h.setLayout("points",v)}}}}}}var R0e={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]}},P0e=function(e){return Math.round(e.length/2)};function M0e(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(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/d));var v=void 0;bt(o)?v=R0e[o]:Gt(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,P0e))}}}}}function O0e(e){e.registerChartView(A0e),e.registerSeriesModel(e0e),e.registerLayout(I0e("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,M0e("line"))}var D0e="__ec_stack_";function L0e(e){return e.get("stack")||D0e+e.seriesIndex}function Az(e){return e.dim+e.index}function N0e(e,t){var n=[];return t.eachSeriesByType(e,function(r){V0e(r)&&n.push(r)}),n}function k0e(e){var t={};te(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,y=v.count();m<y;++m){var _=v.get(d,m);t[h]?t[h].push(_):t[h]=[_]}});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 F0e(e){var t=k0e(e),n=[];return te(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(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=r.getData();s=Math.abs(a[1]-a[0])/d.count()}var v=ki(r.get("barWidth"),s),m=ki(r.get("barMaxWidth"),s),y=ki(r.get("barMinWidth")||(U0e(r)?.5:1),s),_=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:y,barGap:_,barCategoryGap:b,axisKey:Az(o),stackId:L0e(r)})}),$0e(n)}function $0e(e){var t={};te(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 h=r.barMinWidth;h&&(l[u].minWidth=h);var d=r.barGap;d!=null&&(s.gap=d);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return te(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=ki(s,a),c=ki(r.gap,1),f=r.remainedWidth,h=r.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),te(o,function(_){var b=_.maxWidth,S=_.minWidth;if(_.width){var w=_.width;b&&(w=Math.min(w,b)),S&&(w=Math.max(w,S)),_.width=w,f-=w+c*w,h--}else{var w=d;b&&b<w&&(w=Math.min(b,f)),S&&S>w&&(w=S),w!==d&&(_.width=w,f-=w+c*w,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,m;te(o,function(_,b){_.width||(_.width=d),m=_,v+=_.width*(1+c)}),m&&(v-=m.width*c);var y=-v/2;te(o,function(_,b){n[i][b]=n[i][b]||{bandWidth:a,offset:y,width:_.width},y+=_.width*(1+c)})}),n}function B0e(e,t,n){if(e&&t){var r=e[Az(t)];return r}}function V0e(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function U0e(e){return e.pipelineContext&&e.pipelineContext.large}var Ib="\0__throttleOriginMethod",z5="\0__throttleRate",G5="\0__throttleType";function Iz(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 h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];r=new Date().getTime(),l=this,u=d;var m=c||t,y=c||n;c=null,s=r-(y?i:o)-m,clearTimeout(a),y?a=setTimeout(f,m):s>=0?f():a=setTimeout(f,-s),i=r};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(d){c=d},h}function Rz(e,t,n,r){var i=e[t];if(i){var o=i[Ib]||i,a=i[G5],s=i[z5];if(s!==n||a!==r){if(n==null)return e[t]=o;i=e[t]=Iz(o,n,r==="debounce"),i[Ib]=o,i[G5]=r,i[z5]=n}return i}}function g2(e,t){var n=e[t];n&&n[Ib]&&(n.clear&&n.clear(),e[t]=n[Ib])}function zd(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(),h=qf(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:ft(h)?f.getName(h[0]):f.getName(h),selected:bt(l)?l:Je({},l)})}})}function H0e(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(zd("map","selectchanged",t,i,r),zd("pie","selectchanged",t,i,r)):r.fromAction==="select"?(zd("map","selected",t,i,r),zd("pie","selected",t,i,r)):r.fromAction==="unselect"&&(zd("map","unselected",t,i,r),zd("pie","unselected",t,i,r))})}function z0e(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 wb(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 G0e(e){var t=[];e.sort(function(m,y){return y.priority-m.priority});var n=new wn(0,0,0,0);function r(m){if(!m.ignore){var y=m.ensureState("emphasis");y.ignore==null&&(y.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,h=!1,d=0;d<t.length;d++){var v=t[d];if(n.intersect(v.rect)){if(a&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new wb(v.localRect,v.transform)),f||(f=new wb(s,l)),f.intersect(v.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var Gd=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),W0e=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 Gd(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 Gd(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 Gd(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Gd(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Gd(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Gd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),j0e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,DT=[],X0e=Nt.browser.firefox&&+Nt.browser.version.split(".")[0]<39;function m2(e,t,n,r){return n=n||{},r?W5(e,t,n):X0e&&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):W5(e,t,n),n}function W5(e,t,n){if(Nt.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(q8(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(u2(DT,e,r,i)){n.zrX=DT[0],n.zrY=DT[1];return}}n.zrX=n.zrY=0}function BP(e){return e||window.event}function ta(e,t,n){if(t=BP(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&&m2(e,a,t,n)}else{m2(e,t,t,n);var o=Y0e(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&j0e.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Y0e(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 K0e(e,t,n,r){e.addEventListener(t,n,r)}function Z0e(e,t,n,r){e.removeEventListener(t,n,r)}var Pz=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},q0e=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=m2(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 LT)if(LT.hasOwnProperty(n)){var r=LT[n](this._track,t);if(r)return r}},e}();function j5(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function J0e(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var LT={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=j5(r)/j5(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=J0e(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},Mz="silent";function Q0e(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:e_e}}function e_e(){Pz(this.event)}var t_e=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),cv=function(){function e(t,n){this.x=t,this.y=n}return e}(),n_e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],NT=new wn(0,0,0,0),Oz=function(e){st(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new cv(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new t_e,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new W0e(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(te(n_e,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=Dz(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 cv(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 cv(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=Q0e(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 cv(n,r);if(X5(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 h=o[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(NT.copy(h.getBoundingRect()),h.transform&&NT.applyTransform(h.transform),NT.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,m=Math.PI*2,y=0;y<u;y+=d)for(var _=0;_<m;_+=v){var b=n+y*Math.cos(_),S=r+y*Math.sin(_);if(X5(s,a,b,S,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new q0e);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 cv;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(ks);te(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Oz.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Dz(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||ipe(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function r_e(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?Mz:!0}return!1}function X5(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=r_e(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Mz)){t.target=a;break}}}function Dz(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Lz=32,fv=7;function i_e(e){for(var t=0;e>=Lz;)t|=e&1,e>>=1;return e+t}function Y5(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++;o_e(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function o_e(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function K5(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 kT(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 FT(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 a_e(e,t){var n=fv,r,i,o=0,a=[];r=[],i=[];function s(d,v){r[o]=d,i[o]=v,o+=1}function l(){for(;o>1;){var d=o-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;o>1;){var d=o-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var v=r[d],m=i[d],y=r[d+1],_=i[d+1];i[d]=m+_,d===o-3&&(r[d+1]=r[d+2],i[d+1]=i[d+2]),o--;var b=FT(e[y],e,v,m,0,t);v+=b,m-=b,m!==0&&(_=kT(e[v+m-1],e,y,_,_-1,t),_!==0&&(m<=_?f(v,m,y,_):h(v,m,y,_)))}function f(d,v,m,y){var _=0;for(_=0;_<v;_++)a[_]=e[d+_];var b=0,S=m,w=d;if(e[w++]=e[S++],--y===0){for(_=0;_<v;_++)e[w+_]=a[b+_];return}if(v===1){for(_=0;_<y;_++)e[w+_]=e[S+_];e[w+y]=a[b];return}for(var T=n,C,E,R;;){C=0,E=0,R=!1;do if(t(e[S],a[b])<0){if(e[w++]=e[S++],E++,C=0,--y===0){R=!0;break}}else if(e[w++]=a[b++],C++,E=0,--v===1){R=!0;break}while((C|E)<T);if(R)break;do{if(C=FT(e[S],a,b,v,0,t),C!==0){for(_=0;_<C;_++)e[w+_]=a[b+_];if(w+=C,b+=C,v-=C,v<=1){R=!0;break}}if(e[w++]=e[S++],--y===0){R=!0;break}if(E=kT(a[b],e,S,y,0,t),E!==0){for(_=0;_<E;_++)e[w+_]=e[S+_];if(w+=E,S+=E,y-=E,y===0){R=!0;break}}if(e[w++]=a[b++],--v===1){R=!0;break}T--}while(C>=fv||E>=fv);if(R)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),v===1){for(_=0;_<y;_++)e[w+_]=e[S+_];e[w+y]=a[b]}else{if(v===0)throw new Error;for(_=0;_<v;_++)e[w+_]=a[b+_]}}function h(d,v,m,y){var _=0;for(_=0;_<y;_++)a[_]=e[m+_];var b=d+v-1,S=y-1,w=m+y-1,T=0,C=0;if(e[w--]=e[b--],--v===0){for(T=w-(y-1),_=0;_<y;_++)e[T+_]=a[_];return}if(y===1){for(w-=v,b-=v,C=w+1,T=b+1,_=v-1;_>=0;_--)e[C+_]=e[T+_];e[w]=a[S];return}for(var E=n;;){var R=0,I=0,P=!1;do if(t(a[S],e[b])<0){if(e[w--]=e[b--],R++,I=0,--v===0){P=!0;break}}else if(e[w--]=a[S--],I++,R=0,--y===1){P=!0;break}while((R|I)<E);if(P)break;do{if(R=v-FT(a[S],e,d,v,v-1,t),R!==0){for(w-=R,b-=R,v-=R,C=w+1,T=b+1,_=R-1;_>=0;_--)e[C+_]=e[T+_];if(v===0){P=!0;break}}if(e[w--]=a[S--],--y===1){P=!0;break}if(I=y-kT(e[b],a,0,y,y-1,t),I!==0){for(w-=I,S-=I,y-=I,C=w+1,T=S+1,_=0;_<I;_++)e[C+_]=a[T+_];if(y<=1){P=!0;break}}if(e[w--]=e[b--],--v===0){P=!0;break}E--}while(R>=fv||I>=fv);if(P)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),y===1){for(w-=v,b-=v,C=w+1,T=b+1,_=v-1;_>=0;_--)e[C+_]=e[T+_];e[w]=a[S]}else{if(y===0)throw new Error;for(T=w-(y-1),_=0;_<y;_++)e[T+_]=a[_]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function y1(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<Lz){o=Y5(e,n,r,t),K5(e,n,r,n+o,t);return}var a=a_e(e,t),s=i_e(i);do{if(o=Y5(e,n,r,t),o<s){var l=i;l>s&&(l=s),K5(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 Z5=!1;function $T(){Z5||(Z5=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function q5(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var s_e=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=q5}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,y1(r,q5)},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)&&($T(),c.z=0),isNaN(c.z2)&&($T(),c.z2=0),isNaN(c.zlevel)&&($T(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,n,r);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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=Rn(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}(),Rb;Rb=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 ch(){return new Date().getTime()}var l_e=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=ch()-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&&(Rb(r),!n._paused&&n.update())}Rb(r)},t.prototype.start=function(){this._running||(this._time=ch(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ch(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ch()-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 aP(n,r.loop);return this.addAnimator(i),i},t}(ks),u_e=300,BT=Nt.domSupported,VT=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}}(),J5={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Q5=!1;function y2(e){var t=e.pointerType;return t==="pen"||t==="touch"}function c_e(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 UT(e){e&&(e.zrByTouch=!0)}function f_e(e,t){return ta(e.dom,new d_e(e,t),!0)}function Nz(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 d_e=function(){function e(t,n){this.stopPropagation=fo,this.stopImmediatePropagation=fo,this.preventDefault=fo,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ua={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;Nz(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Q5=!0,e=ta(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Q5||(e=ta(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ta(this.dom,e),UT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ua.mousemove.call(this,e),Ua.mousedown.call(this,e)},touchmove:function(e){e=ta(this.dom,e),UT(e),this.handler.processGesture(e,"change"),Ua.mousemove.call(this,e)},touchend:function(e){e=ta(this.dom,e),UT(e),this.handler.processGesture(e,"end"),Ua.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<u_e&&Ua.click.call(this,e)},pointerdown:function(e){Ua.mousedown.call(this,e)},pointermove:function(e){y2(e)||Ua.mousemove.call(this,e)},pointerup:function(e){Ua.mouseup.call(this,e)},pointerout:function(e){y2(e)||Ua.mouseout.call(this,e)}};te(["click","dblclick","contextmenu"],function(e){Ua[e]=function(t){t=ta(this.dom,t),this.trigger(e,t)}});var _2={pointermove:function(e){y2(e)||_2.mousemove.call(this,e)},pointerup:function(e){_2.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 h_e(e,t){var n=t.domHandlers;Nt.pointerEventsSupported?te(VT.pointer,function(r){_1(t,r,function(i){n[r].call(e,i)})}):(Nt.touchEventsSupported&&te(VT.touch,function(r){_1(t,r,function(i){n[r].call(e,i),c_e(t)})}),te(VT.mouse,function(r){_1(t,r,function(i){i=BP(i),t.touching||n[r].call(e,i)})}))}function p_e(e,t){Nt.pointerEventsSupported?te(J5.pointer,n):Nt.touchEventsSupported||te(J5.mouse,n);function n(r){function i(o){o=BP(o),Nz(e,o.target)||(o=f_e(e,o),t.domHandlers[r].call(e,o))}_1(t,r,i,{capture:!0})}}function _1(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,K0e(e.domTarget,t,n,r)}function HT(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Z0e(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var e3=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),v_e=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 e3(n,Ua),BT&&(i._globalHandlerScope=new e3(document,_2)),h_e(i,i._localHandlerScope),i}return t.prototype.dispose=function(){HT(this._localHandlerScope),BT&&HT(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,BT&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?p_e(this,r):HT(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 b1={},kz={};function g_e(e){delete kz[e]}function m_e(e){if(!e)return!1;if(typeof e=="string")return vb(e,1)<XA;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=vb(t[i].color,1);return n/=r,n<XA}return!1}var y_e=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 s_e,a=r.renderer||"canvas";b1[a]||(a=Jn(b1)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new b1[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Nt.node&&!Nt.worker&&!l?new v_e(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Nt.touchEventsSupported:!!c,h=44,d;f&&(d=sn(r.pointerSize,h)),this.handler=new Oz(o,s,u,s.root,d),this.animation=new l_e({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=m_e(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=ch();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=ch();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 xi&&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,g_e(this.id))},e}();function t3(e,t){var n=new y_e(A6(),e,t);return kz[n.id]=n,n}function __e(e,t){b1[e]=t}var Fz="";typeof navigator<"u"&&(Fz=navigator.platform||"");var Wd="rgba(0, 0, 0, 0.2)";const b_e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fz.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 S_e=Zt();function w_e(e,t,n){var r=S_e.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var i_,dv,n3,r3="\0_ec_inner",x_e=1,VP=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 fr(o),this._locale=new fr(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=a3(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,a3(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"?n3(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&&te(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;tme(this),te(n,function(f,h){f!=null&&(In.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?fn(f):Sn(i[h],f,!0))}),u&&u.each(function(f,h){In.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),In.topologicalTravel(s,In.getAllClassMainTypes(),c,this);function c(f){var h=w_e(this,f,Bi(n[f])),d=o.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=mve(d,h,v);Cve(m,f,In),i[f]=null,o.set(f,null),a.set(f,0);var y=[],_=[],b=0,S;te(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=In.getClass(f,w.keyInfo.subType,!R);if(!I)return;if(f==="tooltip"){if(S)return;S=!0}if(C&&C.constructor===I)C.name=w.keyInfo.name,C.mergeOption(E,this),C.optionUpdated(E,!1);else{var P=Je({componentIndex:T},w.keyInfo);C=new I(E,this,this,P),Je(C,P),w.brandNew&&(C.__requireNewView=!0),C.init(E,this,this),C.optionUpdated(null,!0)}}C?(y.push(C.option),_.push(C),b++):(y.push(void 0),_.push(void 0))},this),i[f]=y,o.set(f,_),a.set(f,b),f==="series"&&i_(this)}this._seriesIndices||i_(this)},t.prototype.getOption=function(){var n=fn(this.option);return te(n,function(r,i){if(In.hasClass(i)){for(var o=Bi(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!lm(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[r3],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=[],te(Bi(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=i3("id",o,s):a!=null?l=i3("name",a,s):l=Kr(s,function(u){return!!u}),o3(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Kr(this._componentsMap.get(i),function(u){return!!u});return l(o3(a,n));function s(u){var c=i+"Index",f=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[f],name:u[h]}:null}function l(u){return n.filter?Kr(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,h){for(var d=0;f&&d<f.length;d++){var v=f[d];v&&s.call(a,h,v,v.componentIndex)}})}else for(var l=bt(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 Kr(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 Kr(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return Kr(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){dv(this),te(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){te(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){dv(this),te(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 te(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return dv(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){dv(this);var i=[];te(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){In.hasClass(a)&&i.push(a)}),In.topologicalTravel(i,In.getAllClassMainTypes(),function(o){te(r.get(o),function(a){a&&(o!=="series"||!C_e(a,n))&&a.restoreData()})})},t.internalField=function(){i_=function(n){var r=n._seriesIndices=[];te(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Zt(r)},dv=function(n){},n3=function(n,r){n.option={},n.option[r3]=x_e,n._componentsMap=Zt({series:[]}),n._componentsCount=Zt();var i=r.aria;Rt(i)&&i.enabled==null&&(i.enabled=!0),T_e(r,n._theme.option),Sn(r,b_e,!1),n._mergeOption(r,null)}}(),t}(fr);function C_e(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 T_e(e,t){var n=e.color&&!e.colorLayer;te(t,function(r,i){i==="colorLayer"&&n||In.hasClass(i)||(typeof r=="object"?e[i]=e[i]?Sn(e[i],r,!1):fn(r):e[i]==null&&(e[i]=r))})}function i3(e,t,n){if(ft(t)){var r=Zt();return te(t,function(o){if(o!=null){var a=Es(o,null);a!=null&&r.set(o,!0)}}),Kr(n,function(o){return o&&r.get(o[e])})}else{var i=Es(t,null);return Kr(n,function(o){return o&&i!=null&&o[e]===i})}}function o3(e,t){return t.hasOwnProperty("subType")?Kr(e,function(n){return n&&n.subType===t.subType}):e}function a3(e){var t=Zt();return e&&te(Bi(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Ns(VP,kP);var E_e=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],$z=function(){function e(t){te(E_e,function(n){this[n]=qn(t[n],t)},this)}return e}(),A_e=/^(min|max)?(.+)$/,I_e=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(te(Bi(t.series),function(a){a&&a.data&&mo(a.data)&&$A(a.data)}),te(Bi(t.dataset),function(a){a&&a.source&&mo(a.source)&&$A(a.source)})),t=fn(t);var i=this._optionBackup,o=R_e(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=[],fn(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=fn(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++)P_e(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!O_e(a,this._currentMediaIndices)&&(s=Dt(a,function(c){return fn(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},e}();function R_e(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)&&te(u,function(d){d&&d.option&&(d.query?r.push(d):i||(i=d))}),h(o),te(l,function(d){return h(d)}),te(r,function(d){return h(d.option)});function h(d){te(t,function(v){v(d,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function P_e(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return te(e,function(o,a){var s=a.match(A_e);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();M_e(r[u],o,l)||(i=!1)}}),i}function M_e(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function O_e(e,t){return e.join(",")===t.join(",")}var ka=te,pm=Rt,s3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=s3.length;n<r;n++){var i=s3[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,An(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 $v(e){ci(e,"itemStyle"),ci(e,"lineStyle"),ci(e,"areaStyle"),ci(e,"label"),ci(e,"labelLine"),ci(e,"upperLabel"),ci(e,"edgeLabel")}function vr(e,t){var n=pm(e)&&e[t],r=pm(n)&&n.textStyle;if(r)for(var i=0,o=FF.length;i<o;i++){var a=FF[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function na(e){e&&($v(e),vr(e,"label"),e.emphasis&&vr(e.emphasis,"label"))}function D_e(e){if(pm(e)){zT(e),$v(e),vr(e,"label"),vr(e,"upperLabel"),vr(e,"edgeLabel"),e.emphasis&&(vr(e.emphasis,"label"),vr(e.emphasis,"upperLabel"),vr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(zT(t),na(t));var n=e.markLine;n&&(zT(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]);te(e.categories,function(u){$v(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"?(vr(e,"axisLabel"),vr(e,"title"),vr(e,"detail")):e.type==="treemap"?(ci(e.breadcrumb,"itemStyle"),te(e.levels,function(u){$v(u)})):e.type==="tree"&&$v(e.leaves)}}function el(e){return ft(e)?e:e?[e]:[]}function l3(e){return(ft(e)?e[0]:e)||{}}function L_e(e,t){ka(el(e.series),function(r){pm(r)&&D_e(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ka(n,function(r){ka(el(e[r]),function(i){i&&(vr(i,"axisLabel"),vr(i.axisPointer,"label"))})}),ka(el(e.parallel),function(r){var i=r&&r.parallelAxisDefault;vr(i,"axisLabel"),vr(i&&i.axisPointer,"label")}),ka(el(e.calendar),function(r){ci(r,"itemStyle"),vr(r,"dayLabel"),vr(r,"monthLabel"),vr(r,"yearLabel")}),ka(el(e.radar),function(r){vr(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)}),ka(el(e.geo),function(r){pm(r)&&(na(r),ka(el(r.regions),function(i){na(i)}))}),ka(el(e.timeline),function(r){na(r),ci(r,"label"),ci(r,"itemStyle"),ci(r,"controlStyle",!0);var i=r.data;ft(i)&&te(i,function(o){Rt(o)&&(ci(o,"label"),ci(o,"itemStyle"))})}),ka(el(e.toolbox),function(r){ci(r,"iconStyle"),ka(r.feature,function(i){ci(i,"iconStyle")})}),vr(l3(e.axisPointer),"label"),vr(l3(e.tooltip).axisPointer,"label")}function N_e(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 k_e(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 u3(e){e&&te(F_e,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var F_e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$_e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],GT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hv(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<GT.length;n++){var r=GT[n][1],i=GT[n][0];t[r]!=null&&(t[i]=t[r])}}function c3(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function f3(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function B_e(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Bz(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Bz(e[n].children,t)}function Vz(e,t){L_e(e,t),e.series=Bi(e.series),te(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),c3(n.label);var i=n.data;if(i&&!mo(i))for(var o=0;o<i.length;o++)c3(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=N_e(n,"pointer.color");a!=null&&k_e(n,"itemStyle.color",a)}else if(r==="bar"){hv(n),hv(n.backgroundStyle),hv(n.emphasis);var i=n.data;if(i&&!mo(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(hv(i[o]),hv(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)),f3(n),Bz(n.data,f3)}else r==="graph"||r==="sankey"?B_e(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&An(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),u3(n)}}),e.dataRange&&(e.visualMap=e.dataRange),te($_e,function(n){var r=e[n];r&&(ft(r)||(r=[r]),te(r,function(i){u3(i)}))})}function V_e(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(U_e)}function U_e(e){te(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 h=a.get(t.stackedDimension,f);if(isNaN(h))return i;var d,v;s?v=a.getRawIndex(f):d=a.get(t.stackedByDimension,f);for(var m=NaN,y=n-1;y>=0;y--){var _=e[y];if(s||(v=_.data.rawIndexOf(_.stackedByDimension,d)),v>=0){var b=_.data.getByRawIndex(_.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&h>=0&&b>0||l==="samesign"&&h<=0&&b<0){h=fve(h,b),m=b;break}}}return r[0]=h,r[1]=m,r})})}var Os=function(){function e(){this.group=new xi,this.uid=iw("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}();QR(Os);zS(Os);var d3=Lr(),h3={itemStyle:am(M8,!0),lineStyle:am(P8,!0)},H_e={lineStyle:"stroke",itemStyle:"fill"};function Uz(e,t){var n=e.visualStyleMapper||h3[t];return n||(console.warn("Unknown style type '"+t+"'."),h3.itemStyle)}function Hz(e,t){var n=e.visualDrawType||H_e[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var z_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Uz(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Hz(e,r),u=a[l],c=Gt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Gt(a.fill)?h:a.fill,a.stroke=a.stroke==="auto"||Gt(a.stroke)?h:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var m=e.getDataParams(v),y=Je({},a);y[l]=c(m),d.setItemVisual(v,"style",y)}}}},pv=new fr,G_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Uz(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){pv.option=l[r];var u=i(pv),c=a.ensureUniqueItemVisual(s,"style");Je(c,u),pv.option.decal&&(a.setItemVisual(s,"decal",pv.option.decal),pv.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},W_e={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)),d3(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=d3(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Hz(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 h=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",v=r.count();h[l]=n.getColorFromPalette(d,a,v)}})}})}},o_=Math.PI;function j_e(e,t){t=t||{},An(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 xi,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 QS({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 zz=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;te(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;te(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),d=!0)}),d&&h.dirty(),a.updatePayload(h,r);var m=a.getPerformArgs(h,i.block);v.each(function(y){y.perform(m)}),h.perform(m)&&(o=!0)}else f&&f.each(function(y,_){s(i,y)&&y.dirty();var b=a.getPerformArgs(y,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(y.context.model),a.updatePayload(y,r),y.perform(b)&&(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 h=f.uid,d=s.set(h,a&&a.get(h)||xg({plan:q_e,reset:J_e,count:e1e}));d.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||xg({reset:X_e});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,h=!1,d="";Ml(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,v):c?c(r,i).each(v):(f=!1,te(r.getSeries(),v));function v(m){var y=m.uid,_=l.set(y,s&&s.get(y)||(h=!0,xg({reset:Y_e,onDirty:Z_e})));_.context={model:m,overallProgress:f},_.agent=a,_.__block=f,o._pipe(m,_)}h&&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:t1e(t)}),t.uid=iw("stageHandler"),n&&(t.visualType=n),t},e}();function X_e(e){e.overallReset(e.ecModel,e.api,e.payload)}function Y_e(e){return e.overallProgress&&K_e}function K_e(){this.agent.dirty(),this.getDownstream().dirty()}function Z_e(){this.agent&&this.agent.dirty()}function q_e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function J_e(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 Gz(r)}):Q_e}var Q_e=Gz(0);function Gz(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 e1e(e){return e.data.count()}function t1e(e){Pb=null;try{e(vm,Wz)}catch{}return Pb}var vm={},Wz={},Pb;jz(vm,VP);jz(Wz,$z);vm.eachSeriesByType=vm.eachRawSeriesByType=function(e){Pb=e};vm.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Pb=e.subType)};function jz(e,t){for(var n in t.prototype)e[n]=fo}var p3=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const n1e={color:p3,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],p3]};var li="#B9B8CE",v3="#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"}}}},g3=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Xz={darkMode:!0,color:g3,backgroundColor:v3,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:v3},dayLabel:{color:li},monthLabel:{color:li},yearLabel:{color:li}},timeAxis:a_(),logAxis:a_(),valueAxis:a_(),categoryAxis:a_(),line:{symbol:"circle"},graph:{color:g3},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"}}};Xz.categoryAxis.splitLine.show=!1;var r1e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(bt(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};te(t,function(l,u){for(var c=!1,f=0;f<a.length;f++){var h=a[f],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(n.mainType=v,n[h.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,h,d,v){return f[d]==null||h[v||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),b2=["symbol","symbolSize","symbolRotate","symbolOffset"],m3=b2.concat(["symbolKeepAspect"]),i1e={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<b2.length;a++){var s=b2[a],l=e.get(s);Gt(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Je({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Jn(i);function c(f,h){for(var d=e.getRawValue(h),v=e.getDataParams(h),m=0;m<u.length;m++){var y=u[m];f.setItemVisual(h,y,i[y](d,v))}}return{dataEach:o?c:null}}},o1e={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<m3.length;s++){var l=m3[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function a1e(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 s1e(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 Bv(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var l1e=Math.round(Math.random()*9),u1e=typeof Object.defineProperty=="function",c1e=function(){function e(){this._id="__ec_inner_"+l1e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return u1e?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 lf(e){return isFinite(e)}function f1e(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=lf(r)?r:0,i=lf(i)?i:1,o=lf(o)?o:0,a=lf(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function d1e(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=lf(a)?a:.5,s=lf(s)?s:.5,l=l>=0&&lf(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function S2(e,t,n){for(var r=t.type==="radial"?d1e(e,t,n):f1e(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function h1e(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 p1e(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 Yz(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&p1e(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 v1e=new Zf(!0);function Mb(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function y3(e){return typeof e=="string"&&e!=="none"}function Ob(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 w2(e,t,n){var r=N6(t.image,t.__image,n);if(GS(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)*The),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function g1e(e,t,n,r){var i,o=Mb(n),a=Ob(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||v1e,f=t.__dirty;if(!r){var h=n.fill,d=n.stroke,v=a&&!!h.colorStops,m=o&&!!d.colorStops,y=a&&!!h.image,_=o&&!!d.image,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0;(v||m)&&(C=t.getBoundingRect()),v&&(b=f?S2(e,h,C):t.__canvasFillGradient,t.__canvasFillGradient=b),m&&(S=f?S2(e,d,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(w=f||!t.__canvasFillPattern?w2(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=w),_&&(T=f||!t.__canvasStrokePattern?w2(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=b:y&&(w?e.fillStyle=w:a=!1),m?e.strokeStyle=S:_&&(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=Yz(t),R=i[0],I=i[1]);var P=!0;(u||f&Nv)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),P=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),P&&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 m1e(e,t,n){var r=t.__image=N6(n.image,t.__image,t,t.onload);if(!(!r||!GS(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,h=s-c;e.drawImage(r,u,c,f,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function y1e(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||Xf,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Yz(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Mb(n)&&e.strokeText(i,n.x,n.y),Ob(n)&&e.fillText(i,n.x,n.y)):(Ob(n)&&e.fillText(i,n.x,n.y),Mb(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var S3=["shadowBlur","shadowOffsetX","shadowOffsetY"],w3=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Kz(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)?Of.opacity:a}(r||t.blend!==n.blend)&&(o||(ao(e,i),o=!0),e.globalCompositeOperation=t.blend||Of.blend);for(var s=0;s<S3.length;s++){var l=S3[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||Of.shadowColor),o}function x3(e,t,n,r,i){var o=gm(t,i.inHover),a=r?null:n&&gm(n,i.inHover)||{};if(o===a)return!1;var s=Kz(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(ao(e,i),s=!0),y3(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(ao(e,i),s=!0),y3(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<w3.length;c++){var f=w3[c],h=f[0];(r||o[h]!==a[h])&&(s||(ao(e,i),s=!0),e[h]=o[h]||f[1])}return s}function _1e(e,t,n,r,i){return Kz(e,gm(t,i.inHover),n&&gm(n,i.inHover),r,i)}function Zz(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 b1e(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Zz(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function S1e(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 C3=1,T3=2,E3=3,A3=4;function w1e(e){var t=Ob(e),n=Mb(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 gm(e,t){return t&&e.__hoverStyle||e.style}function qz(e,t){uf(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function uf(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||h1e(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(),b1e(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 Nn&&t.autoBatch&&w1e(t.style);s||S1e(i,u.transform)?(ao(e,n),Zz(e,t)):c||ao(e,n);var f=gm(t,n.inHover);t instanceof Nn?(n.lastDrawType!==C3&&(l=!0,n.lastDrawType=C3),x3(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),g1e(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof mb?(n.lastDrawType!==E3&&(l=!0,n.lastDrawType=E3),x3(e,t,u,l,n),y1e(e,t,f)):t instanceof sc?(n.lastDrawType!==T3&&(l=!0,n.lastDrawType=T3),_1e(e,t,u,l,n),m1e(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==A3&&(l=!0,n.lastDrawType=A3),x1e(e,t,n)),c&&r&&ao(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function x1e(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(),uf(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(),uf(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var WT=new c1e,I3=new Xm(100),R3=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function x2(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&WT.delete(e);var o=WT.get(e);if(o)return o;var a=An(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,WT.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,h=0;h<R3.length;++h){var d=a[R3[h]];if(d!=null&&!ft(d)&&!bt(d)&&!Qn(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var v;if(f){v=c.join(",")+(i?"-svg":"");var m=I3.get(v);m&&(i?u.svgElement=m:u.image=m)}var y=Qz(a.dashArrayX),_=C1e(a.dashArrayY),b=Jz(a.symbol),S=T1e(y),w=eG(_),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")),P(),f&&I3.put(v,T||C),u.image=T,u.svgElement=C,u.svgWidth=E.width,u.svgHeight=E.height;function I(){for(var M=1,L=0,k=S.length;L<k;++L)M=LF(M,S[L]);for(var $=1,L=0,k=b.length;L<k;++L)$=LF($,b[L].length);M*=$;var W=w*S.length*b.length;return{width:Math.max(1,Math.min(M,a.maxTileWidth)),height:Math.max(1,Math.min(W,a.maxTileHeight))}}function P(){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 M=0,L=0;L<_.length;++L)M+=_[L];if(M<=0)return;for(var k=-w,$=0,W=0,N=0;k<E.height;){if($%2===0){for(var K=W/2%b.length,Y=0,ae=0,ge=0;Y<E.width*2;){for(var ye=0,L=0;L<y[N].length;++L)ye+=y[N][L];if(ye<=0)break;if(ae%2===0){var Oe=(1-a.symbolSize)*.5,ke=Y+y[N][ae]*Oe,Ue=k+_[$]*Oe,Le=y[N][ae]*a.symbolSize,Xe=_[$]*a.symbolSize,fe=ge/2%b[K].length;Ae(ke,Ue,Le,Xe,b[K][fe])}Y+=y[N][ae],++ge,++ae,ae===y[N].length&&(ae=0)}++N,N===y.length&&(N=0)}k+=_[$],++W,++$,$===_.length&&($=0)}function Ae(Se,Te,Ne,Be,H){var G=i?1:n,ue=tp(H,Se*G,Te*G,Ne*G,Be*G,a.color,a.symbolKeepAspect);if(i){var we=r.painter.renderOneToVNode(ue);we&&C.children.push(we)}else qz(R,ue)}}}}function Jz(e){if(!e||e.length===0)return[["rect"]];if(bt(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!bt(e[n])){t=!1;break}if(t)return Jz([e]);for(var r=[],n=0;n<e.length;++n)bt(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Qz(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 Qz([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 C1e(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 T1e(e){return Dt(e,function(t){return eG(t)})}function eG(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function E1e(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=x2(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=x2(i,t)}}})}var Ha=new ks,tG={};function A1e(e,t){tG[e]=t}function I1e(e){return tG[e]}var R1e=1,P1e=800,M1e=900,O1e=1e3,D1e=2e3,L1e=5e3,nG=1e3,N1e=1100,UP=2e3,rG=3e3,k1e=4e3,dw=4500,F1e=4600,$1e=5e3,B1e=6e3,iG=7e3,V1e={PROCESSOR:{FILTER:O1e,SERIES_FILTER:P1e,STATISTIC:L1e},VISUAL:{LAYOUT:nG,PROGRESSIVE_LAYOUT:N1e,GLOBAL:UP,CHART:rG,POST_CHART_LAYOUT:F1e,COMPONENT:k1e,BRUSH:$1e,CHART_ITEM:dw,ARIA:B1e,DECAL:iG}},si="__flagInMainProcess",qi="__pendingUpdate",jT="__needsUpdateStatus",P3=/^[a-zA-Z0-9_]+$/,XT="__connectUpdateStatus",M3=0,U1e=1,H1e=2;function oG(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return sG(this,e,t)}}function aG(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sG(this,e,t)}}function sG(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ks.prototype[t].apply(e,n)}var lG=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ks),uG=lG.prototype;uG.on=aG("on");uG.off=aG("off");var jd,YT,u_,au,KT,ZT,qT,vv,gv,O3,D3,JT,L3,c_,N3,cG,Jo,k3,fG=function(e){st(t,e);function t(n,r,i){var o=e.call(this,new r1e)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},bt(r)&&(r=dG[r]),o._dom=n;var a="canvas",s="auto",l=!1;i.ssr;var u=o._zr=t3(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:sn(i.useDirtyRect,l),useCoarsePointer:sn(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=Iz(qn(u.flush,u),17),r=fn(r),r&&Vz(r,!0),o._theme=r,o._locale=Qme(i.locale||J8),o._coordSysMgr=new RP;var c=o._api=N3(o);function f(h,d){return h.__prio-d.__prio}return y1(Lb,f),y1(C2,f),o._scheduler=new zz(o,c,C2,Lb),o._messageCenter=new lG,o._initEvents(),o.resize=qn(o.resize,o),u.animation.on("frame",o._onframe,o),O3(u,o),D3(u,o),$A(o),o}return t.prototype._onframe=function(){if(!this._disposed){k3(this);var n=this._scheduler;if(this[qi]){var r=this[qi].silent;this[si]=!0;try{jd(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,vv.call(this,r),gv.call(this,r)}else if(n.unfinished){var i=R1e,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),ZT(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 I_e(this._api),u=this._theme,c=this._model=new VP;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},T2);var f={seriesTransition:s,optionChanged:!0};if(i)this[qi]={silent:o,updateParams:f},this[si]=!1,this.getZr().wakeUp();else{try{jd(this),au.update.call(this,null,f)}catch(h){throw this[qi]=null,this[si]=!1,h}this._ssr||this._zr.flush(),this[qi]=null,this[si]=!1,vv.call(this,o),gv.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 te(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;te(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 te(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(F3[i]){var l=s,u=s,c=-s,f=-s,h=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();te(Tg,function(S,w){if(S.group===i){var T=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(fn(n)),C=S.getDom().getBoundingClientRect();l=o(C.left,l),u=o(C.top,u),c=a(C.right,c),f=a(C.bottom,f),h.push({dom:T,left:C.left,top:C.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,m=f-u,y=up.createCanvas(),_=t3(y,{renderer:r?"svg":"canvas"});if(_.resize({width:v,height:m}),r){var b="";return te(h,function(S){var w=S.left-l,T=S.top-u;b+='<g transform="translate('+w+","+T+')">'+S.dom+"</g>"}),_.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&_.painter.setBackgroundColor(n.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return n.connectedBackgroundColor&&_.add(new qr({shape:{x:0,y:0,width:v,height:m},style:{fill:n.connectedBackgroundColor}})),te(h,function(S){var w=new sc({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});_.add(w)}),_.refreshImmediately(),y.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return KT(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return KT(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=pT(i,n);return te(a,function(s,l){l.indexOf("Models")>=0&&te(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=pT(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?a1e(s,l,r):s1e(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;te(z1e,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Bv(s,function(v){var m=Ln(v);if(m&&m.dataIndex!=null){var y=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=y&&y.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Je({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&a.getComponent(c,f),d=h&&n[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),te(Cg,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),te(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),H0e(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&&s8(this.getDom(),zP,"");var r=this,i=r._api,o=r._model;te(r._componentsViews,function(a){a.dispose(o,i)}),te(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&&jd(this),au.update.call(this,{type:"resize",animation:Je({duration:0},n&&n.animation)})}catch(a){throw this[si]=!1,a}this[si]=!1,vv.call(this,o),gv.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(),!!E2[n]){var i=E2[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=Je({},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}),!!Db[n.type]&&this._model){if(this[si]){this._pendingActions.push(n);return}var i=r.silent;qT.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Nt.browser.weChat&&this._throttledZrFlush(),vv.call(this,i),gv.call(this,i)}},t.prototype.updateLabelLayout=function(){Ha.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(){jd=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),YT(f,!0),YT(f,!1),h.plan()},YT=function(f,h){for(var d=f._model,v=f._scheduler,m=h?f._componentsViews:f._chartsViews,y=h?f._componentsMap:f._chartsMap,_=f._zr,b=f._api,S=0;S<m.length;S++)m[S].__alive=!1;h?d.eachComponent(function(C,E){C!=="series"&&w(E)}):d.eachSeries(w);function w(C){var E=C.__requireNewView;C.__requireNewView=!1;var R="_ec_"+C.id+"_"+C.type,I=!E&&y[R];if(!I){var P=ws(C.type),M=h?Os.getClass(P.main,P.sub):As.getClass(P.sub);I=new M,I.init(d,b),y[R]=I,m.push(I),_.add(I.group)}C.__viewId=I.__id=R,I.__alive=!0,I.__model=C,I.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!h&&v.prepareView(I,C,d,b)}for(var S=0;S<m.length;){var T=m[S];T.__alive?S++:(!h&&T.renderTask.dispose(),_.remove(T.group),T.dispose(d,b),m.splice(S,1),y[T.__id]===T&&delete y[T.__id],T.__id=T.group.__ecComponentInfo=null)}},u_=function(f,h,d,v,m){var y=f._model;if(y.setUpdatePayload(d),!v){te([].concat(f._componentsViews).concat(f._chartsViews),T);return}var _={};_[v+"Id"]=d[v+"Id"],_[v+"Index"]=d[v+"Index"],_[v+"Name"]=d[v+"Name"];var b={mainType:v,query:_};m&&(b.subType=m);var S=d.excludeSeriesId,w;S!=null&&(w=Zt(),te(Bi(S),function(C){var E=Es(C,null);E!=null&&w.set(E,!0)})),y&&y.eachComponent(b,function(C){var E=w&&w.get(C.id)!=null;if(!E)if(YF(d))if(C instanceof Ku)d.type===Df&&!d.notBlur&&!C.get(["emphasis","disabled"])&&Uve(C,d,f._api);else{var R=hP(C.mainType,C.componentIndex,d.name,f._api),I=R.focusSelf,P=R.dispatchers;d.type===Df&&I&&!d.notBlur&&QA(C.mainType,C.componentIndex,f._api),P&&te(P,function(M){d.type===Df?bb(M):Sb(M)})}else r2(d)&&C instanceof Ku&&(Gve(C,d,f._api),WF(C),Jo(f))},f),y&&y.eachComponent(b,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[h]&&C[h](C.__model,y,f._api,d)}},au={prepareAndUpdate:function(f){jd(this),au.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var d=this._model,v=this._api,m=this._zr,y=this._coordSysMgr,_=this._scheduler;if(d){d.setUpdatePayload(f),_.restoreData(d,f),_.performSeriesTasks(d),y.create(d,v),_.performDataProcessorTasks(d,f),ZT(this,d),y.update(d,v),n(d),_.performVisualTasks(d,f),JT(this,d,v,f,h);var b=d.get("backgroundColor")||"transparent",S=d.get("darkMode");m.setBackgroundColor(b),S!=null&&S!=="auto"&&m.setDarkMode(S),Ha.trigger("afterupdate",d,v)}},updateTransform:function(f){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(f);var m=[];d.eachComponent(function(_,b){if(_!=="series"){var S=h.getViewOfComponentModel(b);if(S&&S.__alive)if(S.updateTransform){var w=S.updateTransform(b,d,v,f);w&&w.update&&m.push(S)}else m.push(S)}});var y=Zt();d.eachSeries(function(_){var b=h._chartsMap[_.__viewId];if(b.updateTransform){var S=b.updateTransform(_,d,v,f);S&&S.update&&y.set(_.uid,1)}else y.set(_.uid,1)}),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:y}),c_(this,d,v,f,{},y),Ha.trigger("afterupdate",d,v)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),As.markUpdateMethod(f,"updateView"),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),JT(this,h,this._api,f,{}),Ha.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(v){v.getData().clearAllVisual()}),As.markUpdateMethod(f,"updateVisual"),n(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,m){if(v!=="series"){var y=h.getViewOfComponentModel(m);y&&y.__alive&&y.updateVisual(m,d,h._api,f)}}),d.eachSeries(function(v){var m=h._chartsMap[v.__viewId];m.updateVisual(v,d,h._api,f)}),Ha.trigger("afterupdate",d,this._api))},updateLayout:function(f){au.update.call(this,f)}},KT=function(f,h,d,v){if(f._disposed){f.id;return}for(var m=f._model,y=f._coordSysMgr.getCoordinateSystems(),_,b=pT(m,d),S=0;S<y.length;S++){var w=y[S];if(w[h]&&(_=w[h](m,b,v))!=null)return _}},ZT=function(f,h){var d=f._chartsMap,v=f._scheduler;h.eachSeries(function(m){v.updateStreamModes(m,d[m.__viewId])})},qT=function(f,h){var d=this,v=this.getModel(),m=f.type,y=f.escapeConnect,_=Db[m],b=_.actionInfo,S=(b.update||"update").split(":"),w=S.pop(),T=S[0]!=null&&ws(S[0]);this[si]=!0;var C=[f],E=!1;f.batch&&(E=!0,C=Dt(f.batch,function($){return $=An(Je({},$),f),$.batch=null,$}));var R=[],I,P=r2(f),M=YF(f);if(M&&g8(this._api),te(C,function($){if(I=_.action($,d._model,d._api),I=I||Je({},$),I.type=b.event||I.type,R.push(I),M){var W=uP(f),N=W.queryOptionMap,K=W.mainTypeSpecified,Y=K?N.keys()[0]:"series";u_(d,w,$,Y),Jo(d)}else P?(u_(d,w,$,"series"),Jo(d)):T&&u_(d,w,$,T.main,T.sub)}),w!=="none"&&!M&&!P&&!T)try{this[qi]?(jd(this),au.update.call(this,f),this[qi]=null):au[w].call(this,f)}catch($){throw this[si]=!1,$}if(E?I={type:b.event||m,escapeConnect:y,batch:R}:I=R[0],this[si]=!1,!h){var L=this._messageCenter;if(L.trigger(I.type,I),P){var k={type:"selectchanged",escapeConnect:y,selected:Wve(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};L.trigger(k.type,k)}}},vv=function(f){for(var h=this._pendingActions;h.length;){var d=h.shift();qT.call(this,d,f)}},gv=function(f){!f&&this.trigger("updated")},O3=function(f,h){f.on("rendered",function(d){h.trigger("rendered",d),f.animation.isFinished()&&!h[qi]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},D3=function(f,h){f.on("mouseover",function(d){var v=d.target,m=Bv(v,n2);m&&(Hve(m,d,h._api),Jo(h))}).on("mouseout",function(d){var v=d.target,m=Bv(v,n2);m&&(zve(m,d,h._api),Jo(h))}).on("click",function(d){var v=d.target,m=Bv(v,function(b){return Ln(b).dataIndex!=null},!0);if(m){var y=m.selected?"unselect":"select",_=Ln(m);h._api.dispatchAction({type:y,dataType:_.dataType,dataIndexInside:_.dataIndex,seriesIndex:_.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function r(f){var h=[],d=[],v=!1;if(f.eachComponent(function(b,S){var w=S.get("zlevel")||0,T=S.get("z")||0,C=S.getZLevelKey();v=v||!!C,(b==="series"?d:h).push({zlevel:w,z:T,idx:S.componentIndex,type:b,key:C})}),v){var m=h.concat(d),y,_;y1(m,function(b,S){return b.zlevel===S.zlevel?b.z-S.z:b.zlevel-S.zlevel}),te(m,function(b){var S=f.getComponent(b.type,b.idx),w=b.zlevel,T=b.key;y!=null&&(w=Math.max(y,w)),T?(w===y&&T!==_&&w++,_=T):_&&(w===y&&w++,_=""),y=w,S.setZLevel(w)})}}JT=function(f,h,d,v,m){r(h),L3(f,h,d,v,m),te(f._chartsViews,function(y){y.__alive=!1}),c_(f,h,d,v,m),te(f._chartsViews,function(y){y.__alive||y.remove(h,d)})},L3=function(f,h,d,v,m,y){te(y||f._componentsViews,function(_){var b=_.__model;u(b,_),_.render(b,h,d,v),s(b,_),c(b,_)})},c_=function(f,h,d,v,m,y){var _=f._scheduler;m=Je(m||{},{updatedSeries:h.getSeries()}),Ha.trigger("series:beforeupdate",h,d,m);var b=!1;h.eachSeries(function(S){var w=f._chartsMap[S.__viewId];w.__alive=!0;var T=w.renderTask;_.updatePayload(T,v),u(S,w),y&&y.get(S.uid)&&T.dirty(),T.perform(_.getPerformArgs(T))&&(b=!0),w.group.silent=!!S.get("silent"),a(S,w),WF(S)}),_.unfinished=b||_.unfinished,Ha.trigger("series:layoutlabels",h,d,m),Ha.trigger("series:transition",h,d,m),h.eachSeries(function(S){var w=f._chartsMap[S.__viewId];s(S,w),c(S,w)}),o(f,h),Ha.trigger("series:afterupdate",h,d,m)},Jo=function(f){f[jT]=!0,f.getZr().wakeUp()},k3=function(f){f[jT]&&(f.getZr().storage.traverse(function(h){bg(h)||i(h)}),f[jT]=!1)};function i(f){for(var h=[],d=f.currentStates,v=0;v<d.length;v++){var m=d[v];m==="emphasis"||m==="blur"||m==="select"||h.push(m)}f.selected&&f.states.select&&h.push("select"),f.hoverState===KS&&f.states.emphasis?h.push("emphasis"):f.hoverState===YS&&f.states.blur&&h.push("blur"),f.useStates(h)}function o(f,h){var d=f._zr,v=d.storage,m=0;v.traverse(function(y){y.isGroup||m++}),m>h.get("hoverLayerThreshold")&&!Nt.node&&!Nt.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var _=f._chartsMap[y.__viewId];_.__alive&&_.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,h){var d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,v=f.get("zlevel")||0;h.eachRendered(function(m){return l(m,d,v,-1/0),!0})}}function l(f,h,d,v){var m=f.getTextContent(),y=f.getTextGuideLine(),_=f.isGroup;if(_)for(var b=f.childrenRef(),S=0;S<b.length;S++)v=Math.max(l(b[S],h,d,v),v);else f.z=h,f.zlevel=d,v=Math.max(f.z2,v);if(m&&(m.z=h,m.zlevel=d,isFinite(v)&&(m.z2=v+2)),y){var w=f.textGuideLineConfig;y.z=h,y.zlevel=d,isFinite(v)&&(y.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,h){h.eachRendered(function(d){if(!bg(d)){var v=d.getTextContent(),m=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,h){var d=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),m=d.get("duration"),y=m>0?{duration:m,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(_){if(_.states&&_.states.emphasis){if(bg(_))return;if(_ instanceof Nn&&Zve(_),_.__dirty){var b=_.prevStates;b&&_.useStates(b)}if(v){_.stateTransition=y;var S=_.getTextContent(),w=_.getTextGuideLine();S&&(S.stateTransition=y),w&&(w.stateTransition=y)}_.__dirty&&i(_)}})}N3=function(f){return new(function(h){st(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},d.prototype.enterEmphasis=function(v,m){bb(v,m),Jo(f)},d.prototype.leaveEmphasis=function(v,m){Sb(v,m),Jo(f)},d.prototype.enterBlur=function(v){Vve(v),Jo(f)},d.prototype.leaveBlur=function(v){d8(v),Jo(f)},d.prototype.enterSelect=function(v){h8(v),Jo(f)},d.prototype.leaveSelect=function(v){p8(v),Jo(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d}($z))(f)},cG=function(f){function h(d,v){for(var m=0;m<d.length;m++){var y=d[m];y[XT]=v}}te(Cg,function(d,v){f._messageCenter.on(v,function(m){if(F3[f.group]&&f[XT]!==M3){if(m&&m.escapeConnect)return;var y=f.makeActionFromEvent(m),_=[];te(Tg,function(b){b!==f&&b.group===f.group&&_.push(b)}),h(_,M3),te(_,function(b){b[XT]!==U1e&&b.dispatchAction(y)}),h(_,H1e)}})})}}(),t}(ks),HP=fG.prototype;HP.on=oG("on");HP.off=oG("off");HP.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 z1e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Db={},Cg={},C2=[],T2=[],Lb=[],dG={},E2={},Tg={},F3={},G1e=+new Date-0,zP="_echarts_instance_";function W1e(e,t,n){{var r=j1e(e);if(r)return r}var i=new fG(e,t,n);return i.id="ec_"+G1e++,Tg[i.id]=i,s8(e,zP,i.id),cG(i),Ha.trigger("afterinit",i),i}function j1e(e){return Tg[Ave(e,zP)]}function hG(e,t){dG[e]=t}function pG(e){Rn(T2,e)<0&&T2.push(e)}function vG(e,t){WP(C2,e,t,D1e)}function X1e(e){GP("afterinit",e)}function Y1e(e){GP("afterupdate",e)}function GP(e,t){Ha.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(P3.test(r)&&P3.test(t)),Db[r]||(Db[r]={action:n,actionInfo:e}),Cg[t]=r)}function K1e(e,t){RP.register(e,t)}function Z1e(e,t){WP(Lb,e,t,nG,"layout")}function od(e,t){WP(Lb,e,t,rG,"visual")}var $3=[];function WP(e,t,n,r,i){if((Gt(t)||Rt(t))&&(n=t,t=r),!(Rn($3,n)>=0)){$3.push(n);var o=zz.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function gG(e,t){E2[e]=t}function q1e(e,t,n){var r=I1e("registerMap");r&&r(e,t,n)}var J1e=xye;od(UP,z_e);od(dw,G_e);od(dw,W_e);od(UP,i1e);od(dw,o1e);od(iG,E1e);pG(Vz);vG(M1e,V_e);gG("default",j_e);hp({type:Df,event:Df,update:Df},fo);hp({type:d1,event:d1,update:d1},fo);hp({type:mg,event:mg,update:mg},fo);hp({type:h1,event:h1,update:h1},fo);hp({type:yg,event:yg,update:yg},fo);hG("light",n1e);hG("dark",Xz);var B3=[],Q1e={registerPreprocessor:pG,registerProcessor:vG,registerPostInit:X1e,registerPostUpdate:Y1e,registerUpdateLifecycle:GP,registerAction:hp,registerCoordinateSystem:K1e,registerLayout:Z1e,registerVisual:od,registerTransform:J1e,registerLoading:gG,registerMap:q1e,registerImpl:A1e,PRIORITY:V1e,ComponentModel:In,ComponentView:Os,SeriesModel:Ku,ChartView:As,registerComponentModel:function(e){In.registerClass(e)},registerComponentView:function(e){Os.registerClass(e)},registerSeriesModel:function(e){Ku.registerClass(e)},registerChartView:function(e){As.registerClass(e)},registerSubTypeDefaulter:function(e,t){In.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){__e(e,t)}};function Zu(e){if(ft(e)){te(e,function(t){Zu(t)});return}Rn(B3,e)>=0||(B3.push(e),Gt(e)&&(e={install:e}),e.install(Q1e))}var ebe=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}(In),tbe=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),A2=function(e){st(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ka).models[0]},t.type="cartesian2dAxis",t}(In);Ns(A2,tbe);var mG={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)"]}}},nbe=Sn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mG),jP=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}}},mG),rbe=Sn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jP),ibe=An({logBase:10},jP);const obe={category:nbe,value:jP,time:rbe,log:ibe};var abe=0,I2=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++abe}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Dt(r,sbe);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(!bt(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 sbe(e){return Rt(e)&&e.value!=null?e.value:e+""}var lbe={value:1,category:1,time:1,log:1};function V3(e,t,n,r){te(lbe,function(i,o){var a=Sn(Sn({},obe[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 h=dm(this),d=h?fw(c):{},v=f.getTheme();Sn(c,v.get(o+"Axis")),Sn(c,this.getDefaultOption()),c.type=U3(c),h&&ep(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=I2.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",U3)}function U3(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}();zS($s);function R2(e){return e.type==="interval"||e.type==="log"}function ube(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=n8(o/t);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=yG(a),l=i.niceTickExtent=[Tr(Math.ceil(e[0]/a)*a,s),Tr(Math.floor(e[1]/a)*a,s)];return cbe(l,e),i}function QT(e){var t=Math.pow(10,sP(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Tr(n*t)}function yG(e){return pl(e)+2}function H3(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function cbe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),H3(e,0,t),H3(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function hw(e,t){return e>=t[0]&&e<=t[1]}function pw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function vw(e,t){return e*(t[1]-t[0])+t[0]}var XP=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 I2({})),ft(i)&&(i=new I2({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:bt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),hw(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),pw(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(vw(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(XP);var Gc=Tr,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 hw(n,this._extent)},t.prototype.normalize=function(n){return pw(n,this._extent)},t.prototype.scale=function(n){return vw(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=yG(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:Gc(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Gc(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:Gc(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,h=f/n;u<n-1;){var d=Gc(l.value+(u+1)*h);d>o[0]&&d<o[1]&&c.push(d),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=Gc(n.value,i,!0);return lz(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=ube(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]=Gc(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=Gc(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 fbe=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},_G=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 ow(n.value,C5[rye(xh(this._minLevelUnit))]||C5.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return iye(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=ybe(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]-=da,r[1]+=da),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]-da}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(fbe(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 hw(this.parse(n),this._extent)},t.prototype.normalize=function(n){return pw(this.parse(n),this._extent)},t.prototype.scale=function(n){return vw(n,this._extent)},t.type="time",t}(pp),f_=[["second",OP],["minute",DP],["hour",Sg],["quarter-day",Sg*6],["half-day",Sg*12],["day",da*1.2],["half-week",da*3.5],["week",da*7],["month",da*31],["quarter",da*95],["half-year",x5/2],["year",x5]];function dbe(e,t,n,r){var i=Ol(t),o=Ol(n),a=function(v){return T5(i,v,r)===T5(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")},h=function(){return f()&&a("second")},d=function(){return h()&&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 h();case"millisecond":return d()}}function hbe(e,t){return e/=da,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function pbe(e){var t=30*da;return e/=t,e>6?6:e>3?3:e>2?2:1}function vbe(e){return e/=Sg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function z3(e,t){return e/=t?DP:OP,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function gbe(e){return n8(e)}function mbe(e,t,n){var r=new Date(e);switch(xh(t)){case"year":case"month":r[nz(n)](0);case"day":r[rz(n)](1);case"hour":r[iz(n)](0);case"minute":r[oz(n)](0);case"second":r[az(n)](0),r[sz(n)](0)}return r.getTime()}function ybe(e,t,n,r){var i=1e4,o=ez,a=0;function s(P,M,L,k,$,W,N){for(var K=new Date(M),Y=M,ae=K[k]();Y<L&&Y<=r[1];)N.push({value:Y}),ae+=P,K[$](ae),Y=K.getTime();N.push({value:Y,notAdd:!0})}function l(P,M,L){var k=[],$=!M.length;if(!dbe(xh(P),r[0],r[1],n)){$&&(M=[{value:mbe(new Date(r[0]),P,n)},{value:r[1]}]);for(var W=0;W<M.length-1;W++){var N=M[W].value,K=M[W+1].value;if(N!==K){var Y=void 0,ae=void 0,ge=void 0,ye=!1;switch(P){case"year":Y=Math.max(1,Math.round(t/da/365)),ae=LP(n),ge=oye(n);break;case"half-year":case"quarter":case"month":Y=pbe(t),ae=Ch(n),ge=nz(n);break;case"week":case"half-week":case"day":Y=hbe(t),ae=aw(n),ge=rz(n),ye=!0;break;case"half-day":case"quarter-day":case"hour":Y=vbe(t),ae=fm(n),ge=iz(n);break;case"minute":Y=z3(t,!0),ae=sw(n),ge=oz(n);break;case"second":Y=z3(t,!1),ae=lw(n),ge=az(n);break;case"millisecond":Y=gbe(t),ae=uw(n),ge=sz(n);break}s(Y,N,K,ae,ge,ye,k),P==="year"&&L.length>1&&W===0&&L.unshift({value:L[0].value-Y})}}for(var W=0;W<k.length;W++)L.push(k[W]);return k}}for(var u=[],c=[],f=0,h=0,d=0;d<o.length&&a++<i;++d){var v=xh(o[d]);if(nye(o[d])){l(o[d],u[u.length-1]||[],c);var m=o[d+1]?xh(o[d+1]):null;if(v!==m){if(c.length){h=f,c.sort(function(P,M){return P.value-M.value});for(var y=[],_=0;_<c.length;++_){var b=c[_].value;(_===0||c[_-1].value!==b)&&(y.push(c[_]),b>=r[0]&&b<=r[1]&&f++)}var S=(r[1]-r[0])/t;if(f>S*1.5&&h>S/1.5||(u.push(y),f>S||e===o[d]))break}c=[]}}}for(var w=Kr(Dt(u,function(P){return Kr(P,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(P){return P.length>0}),T=[],C=w.length-1,d=0;d<w.length;++d)for(var E=w[d],R=0;R<E.length;++R)T.push({value:E[R].value,level:C-d});T.sort(function(P,M){return P.value-M.value});for(var I=[],d=0;d<T.length;++d)(d===0||T[d].value!==T[d-1].value)&&I.push(T[d]);return I}$s.registerClass(_G);var G3=$s.prototype,Eg=pp.prototype,_be=Tr,bbe=Math.floor,Sbe=Math.ceil,d_=Math.pow,Fa=Math.log,YP=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=Tr(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=Fa(this.base);n=Fa(Math.max(0,n))/i,r=Fa(Math.max(0,r))/i,Eg.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=G3.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]=Fa(n[0])/Fa(r),n[1]=Fa(n[1])/Fa(r),G3.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=hve(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Tr(Sbe(r[0]/o)*o),Tr(bbe(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=Fa(n)/Fa(this.base),hw(n,this._extent)},t.prototype.normalize=function(n){return n=Fa(n)/Fa(this.base),pw(n,this._extent)},t.prototype.scale=function(n){return n=vw(n,this._extent),d_(this.base,n)},t.type="log",t}($s),bG=YP.prototype;bG.getMinorTicks=Eg.getMinorTicks;bG.getLabel=Eg.getLabel;function h_(e,t){return _be(e,pl(t))}$s.registerClass(YP);var wbe=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=[Kf(u[0],1),Kf(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=fb(s)||fb(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Cbe[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=xbe[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),xbe={min:"_determinedMin",max:"_determinedMax"},Cbe={min:"_dataMin",max:"_dataMax"};function Tbe(e,t,n){var r=e.rawExtentInfo;return r||(r=new wbe(e,t,n),e.rawExtentInfo=r,r)}function p_(e,t){return t==null?null:fb(t)?NaN:e.parse(t)}function SG(e,t){var n=e.type,r=Tbe(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=N0e("bar",a),l=!1;if(te(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=F0e(s),c=Ebe(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Ebe(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=B0e(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;te(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;te(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function W3(e,t){var n=t,r=SG(e,n),i=r.extent,o=n.get("splitNumber");e instanceof YP&&(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 Abe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new XP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new _G({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new($s.getClass(t)||pp)}}function Ibe(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):bt(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(KP(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function KP(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Rbe(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof XP?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},h=s(f,c),d=a.getTextRect(h),v=Pbe(d,a.get("rotate")||0);l?l.union(v):l=v}return l}}function Pbe(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 ZP(e){var t=e.get("interval");return t??"auto"}function wG(e){return e.type==="category"&&ZP(e.getLabelModel())===0}function Mbe(e,t){var n={};return te(e.mapDimensionsAll(t),function(r){n[Nme(e,r)]=!0}),Jn(n)}var Obe=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(),Kr(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}(),P2=["x","y"];function j3(e){return e.type==="interval"||e.type==="time"}var Dbe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=P2,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!j3(n)||!j3(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,h=a[0]-i[0]*c,d=a[1]-o[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=nP([],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 ya(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 ya(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}(Obe),mm=Lr();function xG(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 Lbe(e){var t=e.getLabelModel().get("customValues");if(t){var n=vp(e),r=e.scale.getExtent(),i=xG(e,t),o=Kr(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"?kbe(e):$be(e)}function Nbe(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=xG(e,n);return{ticks:Kr(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?Fbe(e,t):{ticks:Dt(e.scale.getTicks(),function(o){return o.value})}}function kbe(e){var t=e.getLabelModel(),n=CG(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function CG(e,t){var n=TG(e,"labels"),r=ZP(t),i=EG(n,r);if(i)return i;var o,a;return Gt(r)?o=RG(e,r):(a=r==="auto"?Bbe(e):r,o=IG(e,a)),AG(n,r,{labels:o,labelCategoryInterval:a})}function Fbe(e,t){var n=TG(e,"ticks"),r=ZP(t),i=EG(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Gt(r))o=RG(e,r,!0);else if(r==="auto"){var s=CG(e,e.getLabelModel());a=s.labelCategoryInterval,o=Dt(s.labels,function(l){return l.tickValue})}else a=r,o=IG(e,a,!0);return AG(n,r,{ticks:o,tickCategoryInterval:a})}function $be(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 TG(e,t){return mm(e)[t]||(mm(e)[t]=[])}function EG(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function AG(e,t,n){return e.push({key:t,value:n}),n}function Bbe(e){var t=mm(e).autoInterval;return t??(mm(e).autoInterval=e.calculateCategoryInterval())}function Vbe(e){var t=Ube(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)),h=0,d=0;l<=o[1];l+=s){var v=0,m=0,y=rP(n({value:l}),t.font,"center","top");v=y.width*1.3,m=y.height*1.3,h=Math.max(h,v,7),d=Math.max(d,m,7)}var _=h/c,b=d/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b))),w=mm(e.model),T=e.getExtent(),C=w.lastAutoInterval,E=w.lastTickCount;return C!=null&&E!=null&&Math.abs(C-S)<=1&&Math.abs(E-a)<=1&&C>S&&w.axisExtent0===T[0]&&w.axisExtent1===T[1]?S=C:(w.lastTickCount=a,w.lastAutoInterval=S,w.axisExtent0=T[0],w.axisExtent1=T[1]),S}function Ube(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 IG(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=wG(e),h=a.get("showMinLabel")||f,d=a.get("showMaxLabel")||f;h&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);d&&v-l!==o[1]&&m(o[1]);function m(y){var _={value:y};s.push(n?y:{formattedLabel:r(_),rawLabel:i.getLabel(_),tickValue:y})}return s}function RG(e,t,n){var r=e.scale,i=vp(e),o=[];return te(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 X3=[0,1],Hbe=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 cve(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(),Y3(r,i.count())),DF(t,X3,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),Y3(r,i.count()));var o=DF(t,r,X3,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=Nbe(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 zbe(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 Lbe(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 Vbe(this)},e}();function Y3(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function zbe(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;te(t,function(d){d.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];h(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&h(o[0],t[0].coord)&&t.unshift({coord:o[0]}),h(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&h(a.coord,o[1])&&t.push({coord:o[1]});function h(d,v){return d=Tr(d),v=Tr(v),f?d>v:d<v}}var Gbe=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}(Hbe);function M2(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],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,v=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));v[h.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[h[l]]:f[0],u==="x"?v[h[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),om(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var _=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-_:_,o.z2=1,o}function K3(e){return e.get("coordinateSystem")==="cartesian2d"}function Z3(e){var t={xAxisModel:null,yAxisModel:null};return te(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ka).models[0];t[r]=o}),t}var eE=Math.log;function Wbe(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=SG(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=eE(e.base);u=[eE(u[0])/h,eE(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var d=r.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=r.getInterval.call(e),m=u[0],y=u[1];if(c&&f)v=(y-m)/a;else if(c)for(y=u[0]+v*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)v=QT(v),y=u[0]+v*a;else if(f)for(m=u[1]-v*a;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=QT(v),m=u[1]-v*a;else{var _=e.getTicks().length-1;_>a&&(v=QT(v));var b=v*a;y=Math.ceil(u[1]/v)*v,m=Tr(y-b),m<0&&u[0]>=0?(m=0,y=Tr(b)):y>0&&u[1]<=0&&(y=0,m=-Tr(b))}var S=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+v*S,y+v*w),r.setInterval.call(e,v),(S||w)&&r.setNiceExtent.call(e,m+v,y-v)}var jbe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=P2,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 h=+l[f],d=a[h],v=d.model,m=d.scale;R2(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(W3(m,v),R2(m)&&(s=d))}c.length&&(s||(s=c.pop(),W3(s.scale,s.model)),te(c,function(y){Wbe(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var o={};te(r.x,function(a){q3(r,"y",a,o)}),te(r.y,function(a){q3(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=Ab(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(te(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Rbe(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+h,u.position==="top"?a.y+=c.height+h:u.position==="left"&&(a.x+=c.width+h)}}}),l()),te(this._coordsList,function(u){u.calcAffineTransform()});function l(){te(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Xbe(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",Ka).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",Ka).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,Rn(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,te(s.x,function(c,f){te(s.y,function(h,d){var v="x"+f+"y"+d,m=new Dbe(v);m.master=i,m.model=t,i._coordsMap[v]=m,i._coordsList.push(m),m.addAxis(c),m.addAxis(h)})});function u(c){return function(f,h){if(tE(f,t)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=a.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=a.left?"right":"left"),a[d]=!0;var v=new Gbe(c,Abe(f),[0,0],f.get("type"),d),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=h,o._axesList.push(v),s[c][h]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){te(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(K3(i)){var o=Z3(i),a=o.xAxisModel,s=o.yAxisModel;if(!tE(a,n)||!tE(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){te(Mbe(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return te(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);Rn(n,o)<0&&n.push(o),Rn(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(K3(i)){var o=Z3(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},e.dimensions=P2,e}();function tE(e,t){return e.getCoordSysModel()===t}function q3(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)J3(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&J3(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function J3(e){return e&&e.type!=="category"&&e.type!=="time"&&Ibe(e)}function Xbe(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 Pu=Math.PI,Uu=function(){function e(t,n){this.group=new xi,this.opt=n,this.axisModel=t,An(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new xi({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!Q3[t]},e.prototype.add=function(t){Q3[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=t8(n-t),o,a;return yb(i)?(a=r>0?"top":"bottom",o="center"):yb(i-Pu)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<Pu?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}(),Q3={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&&(ya(s,s,a),ya(l,l,a));var c=Je({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Xu({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});um(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);bt(h)&&(h=[h,h]),(bt(d)||Qn(d))&&(d=[d,d]);var v=yz(t.get(["axisLine","symbolOffset"])||0,d),m=d[0],y=d[1];te([{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(_,b){if(h[b]!=="none"&&h[b]!=null){var S=tp(h[b],-m/2,-y/2,m,y,c.stroke,!0),w=_.r+_.offset,T=u?l:s;S.attr({rotation:_.rotate,x:T[0]+w*Math.cos(e.rotation),y:T[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=Zbe(n,r,t,e),o=Jbe(n,r,t,e);if(Kbe(t,o,i),qbe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=z0e(Dt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));G0e(a)}},axisName:function(e,t,n,r){var i=om(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,t4(o)?e.labelOffset+a*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*Pu/180);var v;t4(o)?h=Uu.innerTextLayout(e.rotation,d??e.rotation,a):(h=Ybe(e.rotation,o,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),y=t.get("nameTruncate",!0)||{},_=y.ellipsis,b=om(e.nameTruncateMaxWidth,y.maxWidth,v),S=new yo({x:f[0],y:f[1],rotation:h.rotation,silent:Uu.isLabelSilent(t),style:Jh(s,{text:i,font:m,overflow:"truncate",width:b,ellipsis:_,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(ew({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var w=Uu.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ln(S).eventData=w}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function Ybe(e,t,n,r){var i=t8(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return yb(i-Pu/2)?(a=l?"bottom":"top",o="center"):yb(i-Pu*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<Pu*1.5&&i>Pu/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function Kbe(e,t,n){if(!wG(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],h=n[n.length-2];r===!1?(Qo(o),Qo(u)):e4(o,a)&&(r?(Qo(a),Qo(c)):(Qo(o),Qo(u))),i===!1?(Qo(s),Qo(f)):e4(l,s)&&(i?(Qo(l),Qo(h)):(Qo(s),Qo(f)))}}function Qo(e){e&&(e.ignore=!0)}function e4(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=eP([]);return tP(i,i,-e.rotation),n.applyTransform(_h([],i,e.getLocalTransform())),r.applyTransform(_h([],i,t.getLocalTransform())),n.intersect(r)}}function t4(e){return e==="middle"||e==="center"}function PG(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&&(ya(a,a,t),ya(s,s,t));var c=new Xu({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});um(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function Zbe(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=PG(u,t.transform,l,An(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function qbe(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=An(s.getLineStyle(),An(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=PG(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function Jbe(e,t,n,r){var i=n.axis,o=om(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(om(r.labelRotate,a.get("rotate"))||0)*Pu/180,c=Uu.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),h=[],d=Uu.isLabelSilent(n),v=n.get("triggerEvent");return te(l,function(m,y){var _=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,b=m.formattedLabel,S=m.rawLabel,w=a;if(f&&f[_]){var T=f[_];Rt(T)&&T.textStyle&&(w=new fr(T.textStyle,a,n.ecModel))}var C=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(_),R=w.getShallow("align",!0)||c.textAlign,I=sn(w.getShallow("alignMinLabel",!0),R),P=sn(w.getShallow("alignMaxLabel",!0),R),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,L=sn(w.getShallow("verticalAlignMinLabel",!0),M),k=sn(w.getShallow("verticalAlignMaxLabel",!0),M),$=new yo({x:E,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(m.level||0),style:Jh(w,{text:b,align:y===0?I:y===l.length-1?P:R,verticalAlign:y===0?L:y===l.length-1?k:M,fill:Gt(C)?C(i.type==="category"?S:i.type==="value"?_+"":_,y):C})});if($.anid="label_"+_,ew({el:$,componentModel:n,itemName:b,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:S,tickIndex:y}}),v){var W=Uu.makeAxisEventDataBase(n);W.targetType="axisLabel",W.value=S,W.tickIndex=y,i.type==="category"&&(W.dataIndex=_),Ln($).eventData=W}t.add($),$.updateTransform(),h.push($),e.add($),$.decomposeTransform()}),h}}function Qbe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return eSe(n,e,t),n.seriesInvolved&&nSe(n,e),n}function eSe(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];te(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ym(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(te(s.getAxes(),Vr(m,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var h=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||d)&&te(v.baseAxes,Vr(m,d?"cross":!0,h)),d&&te(v.otherAxes,Vr(m,"cross",!1))}function m(y,_,b){var S=b.model.getModel("axisPointer",i),w=S.get("show");if(!(!w||w==="auto"&&!y&&!O2(S))){_==null&&(_=S.get("triggerTooltip")),S=y?tSe(b,f,i,t,y,_):S;var T=S.get("snap"),C=S.get("triggerEmphasis"),E=ym(b.model),R=_||T||b.type==="category",I=e.axesInfo[E]={key:E,axis:b,coordSys:s,axisPointerModel:S,triggerTooltip:_,triggerEmphasis:C,involveSeries:R,snap:T,useHandle:O2(S),seriesModels:[],linkGroup:null};u[E]=I,e.seriesInvolved=e.seriesInvolved||R;var P=rSe(o,b);if(P!=null){var M=a[P]||(a[P]={axesInfo:{}});M.axesInfo[E]=I,M.mapper=o[P].mapper,I.linkGroup=M}}}})}function tSe(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};te(s,function(h){l[h]=fn(a.get(h))}),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&&An(u,f.textStyle)}}return e.model.getModel("axisPointer",new fr(l,n,r))}function nSe(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||te(e.coordSysAxesInfo[ym(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 rSe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(nE(o[r+"AxisId"],n.id)||nE(o[r+"AxisIndex"],n.componentIndex)||nE(o[r+"AxisName"],n.name))return i}}function nE(e,t){return e==="all"||ft(e)&&Rn(e,t)>=0||e===t}function iSe(e){var t=qP(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=O2(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 qP(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ym(e)]}function oSe(e){var t=qP(e);return t&&t.axisPointerModel}function O2(e){return!!e.get(["handle","show"])}function ym(e){return e.type+"||"+e.id}var n4={},MG=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&&iSe(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=oSe(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){n4[n]=r},t.getAxisPointerClass=function(n){return n&&n4[n]},t.type="axis",t}(Os),D2=Lr();function aSe(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=D2(e).splitAreaColors,h=Zt(),d=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){d=(m+(c-1)*v)%c;break}}var y=i.toGlobalCoord(u[0].coord),_=a.getAreaStyle();s=ft(s)?s:[s];for(var v=1;v<u.length;v++){var b=i.toGlobalCoord(u[v].coord),S=void 0,w=void 0,T=void 0,C=void 0;i.isHorizontal()?(S=y,w=l.y,T=b-S,C=l.height,y=S+T):(S=l.x,w=y,T=l.width,C=b-w,y=w+C);var E=u[v-1].tickValue;E!=null&&h.set(E,d),t.add(new qr({anid:E!=null?"area_"+E:null,shape:{x:S,y:w,width:T,height:C},style:An({fill:s[d]},_),autoBatch:!0,silent:!0})),d=(d+1)%c}D2(e).splitAreaColors=h}}}function sSe(e){D2(e).splitAreaColors=null}var lSe=["axisLine","axisTickLabel","axisName"],uSe=["splitArea","splitLine","minorSplitLine"],OG=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 xi,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=M2(s,n),u=new Uu(n,Je({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),d=0;d<h.length;d++)if(R2(h[d].getOtherAxis(n.axis).scale))return!0;return!1}},l));te(lSe,u.add,u),this._axisGroup.add(u.getGroup()),te(uSe,function(f){n.get([f,"show"])&&cSe[f](this,this._axisGroup,n,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||A8(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){sSe(this)},t.type="cartesianAxis",t}(MG),cSe={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(),h=0,d=i.getTicksCoords({tickModel:o}),v=[],m=[],y=a.getLineStyle(),_=0;_<d.length;_++){var b=i.toGlobalCoord(d[_].coord);if(!(_===0&&!l||_===d.length-1&&!u)){var S=d[_].tickValue;f?(v[0]=b,v[1]=c.y,m[0]=b,m[1]=c.y+c.height):(v[0]=c.x,v[1]=b,m[0]=c.x+c.width,m[1]=b);var w=h++%s.length,T=new Xu({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:An({stroke:s[w]},y),silent:!0});um(T.shape,y.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=[],h=a.getLineStyle(),d=0;d<u.length;d++)for(var v=0;v<u[d].length;v++){var m=i.toGlobalCoord(u[d][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 y=new Xu({anid:"minor_line_"+u[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});um(y.shape,h.lineWidth),t.add(y)}},splitArea:function(e,t,n,r){aSe(e,t,n,r)}},DG=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}(OG),fSe=function(e){st(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=DG.type,n}return t.type="yAxis",t}(OG),dSe=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:An({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Os),r4={offset:0};function hSe(e){e.registerComponentView(dSe),e.registerComponentModel(ebe),e.registerCoordinateSystem("cartesian2d",jbe),V3(e,"x",A2,r4),V3(e,"y",A2,r4),e.registerComponentView(DG),e.registerComponentView(fSe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var ef=Lr(),i4=fn,rE=qn,pSe=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 xi,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var h=Vr(o4,n,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,n)}s4(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=qP(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=ef(t).pointerEl=new zge[o.type](i4(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=ef(t).labelEl=new yo(i4(n.label));t.add(o),a4(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=ef(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=ef(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),a4(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=xP(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Pz(u.event)},onmousedown:rE(this._onHandleDragMove,this,0,0),drift:rE(this._onHandleDragMove,this),ondragend:rE(this._onHandleDragEnd,this)}),r.add(i)),s4(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,Rz(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){o4(this._axisPointerModel,!n&&this._moveAnimation,this._handle,iE(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(iE(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(iE(i)),ef(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),g2(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 o4(e,t,n,r){LG(ef(n).lastProp,r)||(ef(n).lastProp=r,t?Yu(n,r,e):(n.stopAnimation(),n.attr(r)))}function LG(e,t){if(Rt(e)&&Rt(t)){var n=!0;return te(t,function(r,i){n=n&&LG(e[i],r)}),!!n}else return e===t}function a4(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function s4(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 vSe(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 gSe(e,t,n,r,i){var o=n.get("value"),a=NG(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=cw(s.get("padding")||0),u=s.getFont(),c=rP(a,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var m=i.verticalAlign;m==="bottom"&&(f[1]-=d),m==="middle"&&(f[1]-=d/2),mSe(f,h,d,r);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Jh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function mSe(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 NG(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:KP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};te(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),bt(a)?o=a.replace("{value}",o):Gt(a)&&(o=a(s))}return o}function kG(e,t,n){var r=yh();return tP(r,r,n.rotation),VA(r,r,n.position),wP([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function ySe(e,t,n,r,i,o){var a=Uu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),gSe(t,r,i,o,{position:kG(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function _Se(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function bSe(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var SSe=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=l4(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var h=vSe(o),d=wSe[u](s,f,c);d.style=h,n.graphicKey=d.type,n.pointer=d}var v=M2(l.model,i);ySe(r,n,v,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=M2(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=kG(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=l4(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 h=(u[1]+u[0])/2,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:d,tooltipOption:v[c]}},t}(pSe);function l4(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var wSe={line:function(e,t,n){var r=_Se([t,n[0]],[t,n[1]],u4(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:bSe([t-r/2,n[0]],[r,i],u4(e))}}};function u4(e){return e.dim==="x"?0:1}var xSe=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}(In),vl=Lr(),CSe=te;function FG(e,t,n){if(!Nt.node){var r=t.getZr();vl(r).records||(vl(r).records={}),TSe(r,t);var i=vl(r).records[e]||(vl(r).records[e]={});i.handler=n}}function TSe(e,t){if(vl(e).initialized)return;vl(e).initialized=!0,n("click",Vr(c4,"click")),n("mousemove",Vr(c4,"mousemove")),n("globalout",ASe);function n(r,i){e.on(r,function(o){var a=ISe(t);CSe(vl(e).records,function(s){s&&i(s,o,a.dispatchAction)}),ESe(a.pendings,t)})}}function ESe(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 ASe(e,t,n){e.handler("leave",null,n)}function c4(e,t,n,r){t.handler(e,n,r)}function ISe(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 L2(e,t){if(!Nt.node){var n=t.getZr(),r=(vl(n).records||{})[e];r&&(vl(n).records[e]=null)}}var RSe=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";FG("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){L2("axisPointer",r)},t.prototype.dispose=function(n,r){L2("axisPointer",r)},t.type="axisPointer",t}(Os);function $G(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=qf(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,h=u.dim,d=f==="x"||f==="radius"?1:0,v=o.mapDimension(h),m=[];m[d]=o.get(v,a),m[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Dt(l.dimensions,function(_){return o.mapDimension(_)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),n=[y.x+y.width/2,y.y+y.height/2]}return{point:n,el:s}}var f4=Lr();function PSe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||qn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){S1(i)&&(i=$G({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=S1(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||S1(i),h={},d={},v={list:[],map:{}},m={showPointer:Vr(OSe,d),showTooltip:Vr(DSe,v)};te(s.coordSysMap,function(_,b){var S=l||_.containPoint(i);te(s.coordSysAxesInfo[b],function(w,T){var C=w.axis,E=FSe(u,w);if(!f&&S&&(!u||E)){var R=E&&E.value;R==null&&!l&&(R=C.pointToData(i)),R!=null&&d4(w,R,m,!1,h)}})});var y={};return te(c,function(_,b){var S=_.linkGroup;S&&!d[b]&&te(S.axesInfo,function(w,T){var C=d[T];if(w!==_&&C){var E=C.value;S.mapper&&(E=_.axis.scale.parse(S.mapper(E,h4(w),h4(_)))),y[_.key]=E}})}),te(y,function(_,b){d4(c[b],_,m,!0,h)}),LSe(d,c,h),NSe(v,i,e,a),kSe(c,a,n),h}}function d4(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=MSe(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Je(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function MSe(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return te(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);h=d.dataIndices,f=d.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[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),te(h,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function OSe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function DSe(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=ym(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 LSe(e,t,n){var r=n.axesInfo=[];te(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 NSe(e,t,n,r){if(S1(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 kSe(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=f4(r)[i]||{},a=f4(r)[i]={};te(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&te(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;a[d]=h})});var s=[],l=[];te(o,function(u,c){!a[c]&&l.push(u)}),te(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 FSe(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 h4(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 S1(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function BG(e){MG.registerAxisPointerClass("CartesianAxisPointer",SSe),e.registerComponentModel(xSe),e.registerComponentView(RSe),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=Qbe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PSe)}function $Se(e){Zu(hSe),Zu(BG)}function BSe(e,t){var n=cw(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 VSe=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}(In);function VG(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function UG(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 HG=UG(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),USe=UG(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zG(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 HSe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var zSe=zG(USe,"transition"),JP=zG(HG,"transform"),GSe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Nt.transform3dSupported?"will-change:transform;":"");function WSe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function jSe(e,t,n){if(!bt(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Jf(t);var o=WSe(n),a=Math.max(Math.round(i)*1.5,6),s="",l=JP+":",u;Rn(["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,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+o+":-"+d+"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 XSe(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?","+JP+r:",left"+r+",top"+r),zSe+":"+i}function p4(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;"+JP+":"+a+";":[["top",0],["left",0],[HG,a]]}function YSe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=sn(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),te(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function KSe(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=mz(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(XSe(i,n)),o&&r.push("background-color:"+o),te(["width","color","radius"],function(d){var v="border-"+d,m=uz(v),y=e.get(m);y!=null&&r.push(v+":"+y+(d==="color"?"":"px"))}),r.push(YSe(c)),f!=null&&r.push("padding:"+cw(f).join("px ")+"px"),r.join(";")+";"}function v4(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&jme(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 ZSe=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&&(bt(o)?document.querySelector(o):im(o)?o:Gt(o)&&o(t.getDom()));v4(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=HSe(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=GSe+KSe(t,!this._firstShow,this._longHide)+p4(o[0],o[1],!0)+("border-color:"+Jf(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(bt(o)&&r.get("trigger")==="item"&&!VG(r)&&(s=jSe(r,i,o)),bt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ft(t)||(t=[t]);for(var l=0;l<t.length;l++)im(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(v4(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=p4(r[0],r[1]);te(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(qn(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}(),qSe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),m4(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:mz(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),te(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),te(["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=g4(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;m4(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=uu(o.borderWidth||0),s=g4(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(qn(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 g4(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 m4(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var JSe=new qr({shape:{x:-1,y:-1,width:2,height:2}}),QSe=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=Ive(i.get("renderMode"));this._tooltipContent=o==="richText"?new qSe(r):new ZSe(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")?Rz(this,"_updatePosition",50,"fixRate"):g2(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");FG("itemTooltip",this._api,qn(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=y4(o,i);this._ticket="";var s=o.dataByCoordSys,l=rwe(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=JSe;c.x=o.x,c.y=o.y,c.update(),Ln(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=$G(o,r),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,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(y4(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=mv([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=Ln(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Bv(i,function(c){if(Ln(c).dataIndex!=null)return l=c,!0;if(Ln(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=qn(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=mv([r.tooltipOption],o),l=this._renderMode,u=[],c=hm("section",{blocks:[],noHeader:!0}),f=[],h=new PT;te(n,function(b){te(b.dataByAxis,function(S){var w=i.getComponent(S.axisDim+"Axis",S.axisIndex),T=S.value;if(!(!w||T==null)){var C=NG(T,w.axis,i,S.seriesDataIndices,S.valueLabelOpt),E=hm("section",{header:C,noHeader:!Ss(C),sortBlocks:!0,blocks:[]});c.blocks.push(E),te(S.seriesDataIndices,function(R){var I=i.getSeriesByIndex(R.seriesIndex),P=R.dataIndexInside,M=I.getDataParams(P);if(!(M.dataIndex<0)){M.axisDim=S.axisDim,M.axisIndex=S.axisIndex,M.axisType=S.axisType,M.axisId=S.axisId,M.axisValue=KP(w.axis,{value:T}),M.axisValueLabel=C,M.marker=h.makeTooltipMarker("item",Jf(M.color),l);var L=I5(I.formatTooltip(P,!0,null)),k=L.frag;if(k){var $=mv([I],o).get("valueFormatter");E.blocks.push($?Je({valueFormatter:$},k):k)}L.text&&f.push(L.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var d=r.position,v=s.get("order"),m=M5(c,h,l,v,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var y=l==="richText"?`
`:"<br/>",_=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,_,u,Math.random()+"",a[0],a[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Ln(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,h=u.getData(f),d=this._renderMode,v=n.positionDefault,m=mv([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=m.get("trigger");if(!(y!=null&&y!=="item")){var _=u.getDataParams(c,f),b=new PT;_.marker=b.makeTooltipMarker("item",Jf(_.color),d);var S=I5(u.formatTooltip(c,!1,f)),w=m.get("order"),T=m.get("valueFormatter"),C=S.frag,E=C?M5(T?Je({valueFormatter:T},C):C,b,d,w,o.get("useUTC"),m.get("textStyle")):S.text,R="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,E,_,R,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Ln(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(bt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=fn(l),l.content=oo(l.content));var f=[l],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=n.positionDefault,v=mv(f,this._tooltipModel,d?{position:d}:null),m=v.get("content"),y=Math.random()+"",_=new PT;this._showOrMove(v,function(){var b=fn(v.get("formatterParams")||{});this._showTooltipContent(v,m,b,y,n.offsetX,n.offsetY,n.position,r,_)}),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 h=n.get("formatter");l=l||n.get("position");var d=r,v=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=v.color;if(h)if(bt(h)){var y=n.ecModel.get("useUTC"),_=ft(i)?i[0]:i,b=_&&_.axisType&&_.axisType.indexOf("time")>=0;d=h,b&&(d=ow(_.axisValue,d,y)),d=cz(d,i,!0)}else if(Gt(h)){var S=qn(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,d=h(i,o,S)}else d=h;f.setContent(d,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(),h=n.get("align"),d=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=ki(r[0],u),o=ki(r[1],c);else if(Rt(r)){var m=r;m.width=f[0],m.height=f[1];var y=Ab(m,{width:u,height:c});i=y.x,o=y.y,h=null,d=null}else if(bt(r)&&l){var _=nwe(r,v,f,n.get("borderWidth"));i=_[0],o=_[1]}else{var _=ewe(i,o,a,u,c,h?null:20,d?null:20);i=_[0],o=_[1]}if(h&&(i-=_4(h)?f[0]/2:h==="right"?f[0]:0),d&&(o-=_4(d)?f[1]/2:d==="bottom"?f[1]:0),VG(n)){var _=twe(i,o,a,u,c);i=_[0],o=_[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&&te(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&te(u,function(h,d){var v=f[d]||{},m=h.seriesDataIndices||[],y=v.seriesDataIndices||[];a=a&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&m.length===y.length,a&&te(m,function(_,b){var S=y[b];a=a&&_.seriesIndex===S.seriesIndex&&_.dataIndex===S.dataIndex}),o&&te(h.seriesDataIndices,function(_){var b=_.seriesIndex,S=r[b],w=o[b];S&&w&&w.data!==S.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()||(g2(this,"_updatePosition"),this._tooltipContent.dispose(),L2("itemTooltip",r))},t.type="tooltip",t}(Os);function mv(e,t,n){var r=t.ecModel,i;n?(i=new fr(n,r,r),i=new fr(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof fr&&(a=a.get("tooltip",!0)),bt(a)&&(a={formatter:a}),a&&(i=new fr(a,i,r)))}return i}function y4(e,t){return e.dispatchAction||qn(t.dispatchAction,t)}function ewe(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 twe(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 nwe(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 rwe(e,t,n){var r=uP(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Zm(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=Ln(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function iwe(e){Zu(BG),e.registerComponentModel(VSe),e.registerComponentView(QSe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},fo),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},fo)}var owe=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"])}},N2=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)&&te(r,function(o,a){bt(o)&&(o={type:o}),r[a]=Sn(o,owe(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,h=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(h)),h.length?r=r.concat(h):c=!0}else c=!0;c&&lP(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Zt(),s=Dt(o,function(l){return(bt(l)||Qn(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new fr(l,this,this.ecModel))},this);this._data=Kr(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;te(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;te(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;te(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])&&Rn(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}(In),Xd=Vr,k2=te,v_=xi,GG=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()},h=n.get("padding"),d=Ab(c,f,h),v=this.layoutInner(n,a,d,o,l,u),m=Ab(An({width:v.width,height:v.height},c),f,h);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=BSe(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"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),k2(r.getData(),function(d,v){var m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var y=new v_;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!c.get(m))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),T=b.getVisual("style"),C=this._createItem(_,m,v,d,r,n,S,T,w,f,o);C.on("click",Xd(b4,m,null,o,h)).on("mouseover",Xd(F2,_.name,null,o,h)).on("mouseout",Xd($2,_.name,null,o,h)),i.ssr&&C.eachChild(function(E){var R=Ln(E);R.seriesIndex=_.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),P=R.getItemVisual(I,"style"),M=R.getItemVisual(I,"legendIcon"),L=xl(P.fill);L&&L[3]===0&&(L[3]=.2,P=Je(Je({},P),{fill:WS(L,"rgba")}));var k=this._createItem(E,m,v,d,r,n,{},P,M,f,o);k.on("click",Xd(b4,null,m,o,h)).on("mouseover",Xd(F2,null,m,o,h)).on("mouseout",Xd($2,null,m,o,h)),i.ssr&&k.eachChild(function($){var W=Ln($);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();k2(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 h=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);TP(f,{normal:h,emphasis:d},{defaultText:u.title}),e2(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,h){var d=n.visualDrawType,v=a.get("itemWidth"),m=a.get("itemHeight"),y=a.isSelected(r),_=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var w=awe(c,o,l,u,d,y,h),T=new v_,C=o.getModel("textStyle");if(Gt(n.getLegendIcon)&&(!S||S==="inherit"))T.add(n.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:_,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var E=S==="inherit"&&n.getData().getVisual("symbol")?_==="inherit"?n.getData().getVisual("symbolRotate"):_:0;T.add(swe({itemWidth:v,itemHeight:m,icon:c,iconRotate:E,itemStyle:w.itemStyle,symbolKeepAspect:b}))}var R=s==="left"?v+5:-5,I=s,P=a.get("formatter"),M=r;bt(P)&&P?M=P.replace("{name}",r??""):Gt(P)&&(M=P(r));var L=y?C.getTextColor():o.get("inactiveColor");T.add(new yo({style:Jh(C,{text:M,x:R,y:m/2,fill:L,align:I,verticalAlign:"middle"},{inheritColor:L})}));var k=new qr({shape:T.getBoundingRect(),style:{fill:"transparent"}}),$=o.getModel("tooltip");return $.get("show")&&ew({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),e2(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 h=u.getBoundingRect(),d=[-h.x,-h.y],v=n.get("selectorButtonGap",!0),m=n.getOrient().index,y=m===0?"width":"height",_=m===0?"height":"width",b=m===0?"y":"x";s==="end"?d[m]+=c[y]+v:f[m]+=h[y]+v,d[1-m]+=c[_]/2-h[_]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[y]=c[y]+v+h[y],S[_]=Math.max(c[_],h[_]),S[b]=Math.min(0,h[b]+d[1-m]),S}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 awe(e,t,n,r,i,o,a){function s(y,_){y.lineWidth==="auto"&&(y.lineWidth=_.lineWidth>0?2:0),k2(y,function(b,S){y[S]==="inherit"&&(y[S]=_[S])})}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:x2(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 h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.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"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function swe(e){var t=e.icon||"roundRect",n=tp(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){$2(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),F2(e,t,n,r)}function WG(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 F2(e,t,n,r){WG(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function $2(e,t,n,r){WG(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function lwe(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 yv(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),S4(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){te(i,function(l,u){s[l?"select":"unSelect"](u)}),S4(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function S4(e,t){var n=t||{};return te(e.getData(),function(r){var i=r.get("name");if(!(i===`
`||i==="")){var o=e.isSelected(i);Yf(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function uwe(e){e.registerAction("legendToggleSelect","legendselectchanged",Vr(yv,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Vr(yv,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Vr(yv,"inverseSelect")),e.registerAction("legendSelect","legendselected",Vr(yv,"select")),e.registerAction("legendUnSelect","legendunselected",Vr(yv,"unSelect"))}function jG(e){e.registerComponentModel(N2),e.registerComponentView(GG),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,lwe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),uwe(e)}var cwe=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=fw(n);e.prototype.init.call(this,n,r,i),w4(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),w4(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Gme(N2.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}(N2);function w4(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,ep(t,n,{type:"box",ignoreSize:!!i})}var x4=xi,oE=["width","height"],aE=["x","y"],fwe=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 x4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new x4)},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),h=ft(f)?f:[f,f];v("pagePrev",0);var d=r.getModel("pageTextStyle");c.add(new yo({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,y){var _=m+"DataIndex",b=xP(r.get("pageIcons",!0)[r.getOrient().name][y],{onclick:qn(u._pageGo,u,_,r,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});b.name=m,c.add(b)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=oE[u],f=aE[u],h=oE[1-u],d=aE[1-u];a&&wg("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),y=[-m.x,-m.y],_=fn(i);a&&(_[c]=i[c]-m[c]-v);var b=this._layoutContentAndController(n,o,_,u,c,h,d,f);if(a){if(s==="end")y[u]+=b[c]+v;else{var S=m[c]+v;y[u]-=S,b[f]-=S}b[c]+=m[c]+v,y[1-u]+=b[d]+b[h]/2-m[h]/2,b[h]=Math.max(b[h],m[h]),b[d]=Math.min(b[d],m[d]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;wg(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),wg("horizontal",h,n.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),v=h.getBoundingRect(),m=this._showController=d[a]>i[a],y=[-d.x,-d.y];r||(y[o]=c[u]);var _=[0,0],b=[-v.x,-v.y],S=sn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var w=n.get("pageButtonPosition",!0);w==="end"?b[o]+=i[a]-v[a]:_[o]+=v[a]+S}b[1-o]+=d[s]/2-v[s]/2,c.setPosition(y),f.setPosition(_),h.setPosition(b);var T={x:0,y:0};if(T[a]=m?i[a]:d[a],T[s]=Math.max(d[s],v[s]),T[l]=Math.min(0,v[l]+b[1-o]),f.__rectSize=i[a],m){var C={x:0,y:0};C[a]=Math.max(i[a]-v[a]-S,0),C[s]=T[s],f.setClipPath(new qr({shape:C})),f.__rectSize=C[a]}else h.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(n);return E.pageIndex!=null&&Yu(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;te(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=r[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=h?"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",bt(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=oE[a],l=aE[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=w(f);v.contentPosition[a]=-m.s;for(var y=u+1,_=m,b=m,S=null;y<=h;++y)S=w(c[y]),(!S&&b.e>_.s+o||S&&!T(S,_.s))&&(b.i>_.i?_=b:_=S,_&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=_.i),++v.pageCount)),b=S;for(var y=u-1,_=m,b=m,S=null;y>=-1;--y)S=w(c[y]),(!S||!T(b,S.s))&&_.i<b.i&&(b=_,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=_.i),++v.pageCount,++v.pageIndex),_=S;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}(GG);function dwe(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 hwe(e){Zu(jG),e.registerComponentModel(cwe),e.registerComponentView(fwe),dwe(e)}function pwe(e){Zu(jG),Zu(hwe)}function C4(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 sE=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||gb,typeof n=="string"?a=C4(n,r,i):Rt(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(M6(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=C4("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(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new wn(0,0,0,0);S.copy(b),a.push(S)}else{for(var w=!1,T=1/0,C=0,E=0;E<a.length;++E){var R=a[E];if(R.intersect(b)){var I=new wn(0,0,0,0);I.copy(R),I.union(b),a[E]=I,w=!0;break}else if(l){u.copy(b),u.union(R);var P=b.width*b.height,M=R.width*R.height,L=u.width*u.height,k=L-P-M;k<T&&(T=k,C=E)}}if(l&&(a[C].union(b),w=!0),!w){var S=new wn(0,0,0,0);S.copy(b),a.push(S)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=n[f];if(h){var d=h.shouldBePainted(i,o,!0,!0),v=h.__isRendered&&(h.__dirty&Ts||!d)?h.getPrevPaintRect():null;v&&c(v);var m=d&&(h.__dirty&Ts||!h.__isRendered)?h.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=r[f],d=h&&h.shouldBePainted(i,o,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&c(v)}}var y;do{y=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var _=f+1;_<a.length;)a[f].intersect(a[_])?(y=!0,a[f].union(a[_]),a.splice(_,1)):_++;f++}}while(y);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,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var d=this.domBack;function v(m,y,_,b){if(a.clearRect(m,y,_,b),r&&r!=="transparent"){var S=void 0;if(US(r)){var w=r.global||r.__width===_&&r.__height===b;S=w&&r.__canvasGradient||S2(a,r,{x:0,y:0,width:_,height:b}),r.__canvasGradient=S,r.__width=_,r.__height=b}else bhe(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,S=w2(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));a.save(),a.fillStyle=S||r,a.fillRect(m,y,_,b),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(d,m,y,_,b),a.restore())}!i||u?v(0,0,s,l):i.length&&te(i,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(ks),T4=1e5,Wc=314159,g_=.01,vwe=.001;function gwe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function mwe(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 ywe=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=Je({},r||{}),this.dpr=r.devicePixelRatio||gb,this._singleCanvas=o,this.root=t;var a=t.style;a&&(M6(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,h=c.height;r.width!=null&&(f=r.width),r.height!=null&&(h=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var d=new sE(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Wc]=d,d.zlevel=Wc,s.push(Wc),this._domRoot=t}else{this._width=l_(t,0,r),this._height=l_(t,1,r);var u=this._domRoot=mwe(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(T4)),o||(o=r.ctx,o.save()),uf(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(T4)},e.prototype.paintOne=function(t,n){qz(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;Rb(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Wc).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,h=function(m){var y=o[m],_=y.ctx,b=a&&y.createRepaintRects(t,n,d._width,d._height),S=r?y.__startIndex:y.__drawIndex,w=!r&&y.incremental&&Date.now,T=w&&Date.now(),C=y.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,C,b);else if(S===y.__startIndex){var E=t[S];(!E.incremental||!E.notClear||r)&&y.clear(!1,C,b)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=y.__startIndex);var R,I=function(k){var $={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(R=S;R<y.__endIndex;R++){var W=t[R];if(W.__inHover&&(f=!0),i._doPaintEl(W,y,a,k,$,R===y.__endIndex-1),w){var N=Date.now()-T;if(N>15)break}}$.prevElClipPaths&&_.restore()};if(b)if(b.length===0)R=y.__endIndex;else for(var P=d.dpr,M=0;M<b.length;++M){var L=b[M];_.save(),_.beginPath(),_.rect(L.x*P,L.y*P,L.width*P,L.height*P),_.clip(),I(L),_.restore()}else _.save(),I(),_.restore();y.__drawIndex=R,y.__drawIndex<y.__endIndex&&(c=!1)},d=this,v=0;v<o.length;v++)h(v);return Nt.wxa&&te(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))&&(uf(s,t,o,a),t.setPrevPaintRect(l))}else uf(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wc);var r=this._layers[t];return r||(r=new sE("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]&&gwe(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,h){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+vwe,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?g_:0),this._needsManuallyCompositing),c.__builtin__||qR("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,h){!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,te(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(Rn(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(Wc).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[Wc].dom;var n=new sE("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];uf(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 _we(e){e.registerPainter("canvas",ywe)}const bwe={class:"relative h-28 w-full overflow-hidden"},QP=tt({__name:"BasicCharts",props:{data:{},labelFormatter:{type:Function},toolTipFormatter:{type:Function},min:{}},setup(e){Zu([O0e,$Se,pwe,iwe,_we]);const t=e,n=Me(),r=Me(),i=Me(!1),o=Me();return Vo(()=>{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,f=a.fontFamily,h=s.color,d=s.backgroundColor,v=s.borderBottomColor,m=s.borderTopColor;Bt(()=>BE.value,()=>{const w=getComputedStyle(n.value),T=getComputedStyle(r.value);l=w.color,u=w.backgroundColor,c=w.borderColor,h=T.color,d=T.backgroundColor,v=T.borderBottomColor,m=T.borderTopColor}),Bt(()=>Zv.value,()=>{f=getComputedStyle(n.value).fontFamily});const y=xe(()=>({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?h:d,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 _P(0,0,0,1,[{offset:0,color:C},{offset:1,color:E}])},type:"line",color:C,smooth:!0}})})),_=W1e(o.value);_.setOption(y.value),Bt(y,()=>{i.value||_==null||_.setOption(y.value)});const{width:b}=$I(o),S=mr.debounce(()=>{_.resize()},100);Bt(()=>b.value,()=>{S()})}),(a,s)=>(X(),q("div",bwe,[D("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),D("span",{class:"border-base-content/10 bg-base-100/70 text-base-content hidden",ref_key:"baseColorRef",ref:n},null,512),D("span",{class:"border-b-primary/30 border-t-info/30 bg-info/60 text-primary/60 hidden",ref_key:"themeColorRef",ref:r},null,512),D("button",{class:"btn btn-ghost btn-xs absolute right-1 bottom-0",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(X(),_t(ml(i.value?B(ste):B(ate)),{class:"h-4 w-4"}))])]))}}),eM=tt({__name:"ConnectionsCharts",setup(e){const{t}=Qr(),n=xe(()=>[{name:t("connections"),data:a1.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name<af+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)=>(X(),_t(QP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),tM=tt({__name:"MemoryCharts",setup(e){const{t}=Qr(),n=xe(()=>[{name:t("memoryUsage"),data:Pv.value}]),r=o=>`${Gn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>k7(o[0],{binary:!0,suffix:""});return(o,a)=>(X(),_t(QP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),nM=tt({__name:"SpeedCharts",setup(e){const t=Me(),{t:n}=Qr(),r=xe(()=>[{name:n("ulSpeed"),data:Ov.value},{name:n("dlSpeed"),data:Mv.value}]),i=a=>`${Gn(a,{maximumFractionDigits:1,binary:!1})}/s`,o=a=>a.map(s=>k7(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(X(),_t(QP,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),Swe={class:"card carousel carousel-vertical hover:scrollbar-thin h-28 shrink-0 overflow-x-hidden text-sm"},wwe=tt({__name:"OverviewCarousel",setup(e){return(t,n)=>(X(),q("div",Swe,[z(nM,{class:"carousel-item box-border"}),z(tM,{class:"carousel-item box-border"}),z(eM,{class:"carousel-item box-border"})]))}}),xwe={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},Cwe={class:"flex flex-col items-center justify-center"},Twe={class:"flex flex-col items-center justify-center"},Ewe={class:"flex flex-col items-center justify-center"},Awe={class:"flex flex-col items-center justify-center"},Iwe={class:"flex flex-col items-center justify-center"},Rwe=tt({__name:"VerticalInfos",setup(e){return(t,n)=>(X(),q("div",xwe,[D("div",Cwe,[z(B(iV),{class:"h-4 w-4"}),qe(" "+ne(B(Qc)[B(Hn).CONNECTIONS]),1)]),D("div",Twe,[z(B(uS),{class:"h-4 w-4"}),qe(" "+ne(B(Qc)[B(Hn).DOWNLOAD])+" ",1),D("span",null,ne(B(Qc)[B(Hn).DL_SPEED]),1)]),D("div",Ewe,[z(B(Pm),{class:"h-4 w-4"}),qe(" "+ne(B(Qc)[B(Hn).UPLOAD])+" ",1),D("span",null,ne(B(Qc)[B(Hn).UL_SPEED]),1)]),D("div",Awe,[z(B(nte),{class:"h-4 w-4"}),qe(" "+ne(B(Qc)[B(Hn).MEMORY_USAGE]),1)]),D("div",Iwe,[D("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>za.value=!1)},[z(B(Rl),{class:"h-5 w-5"})])])]))}}),Pwe={class:"menu w-full flex-1"},Mwe=["onMouseenter"],Owe=["onClick"],Dwe={key:1,class:"flex w-full items-center justify-center"},Lwe={class:"card"},Nwe=tt({__name:"SideBar",setup(e){const{showTip:t}=Ls(),{t:n}=Qr(),r=(s,l)=>{za.value&&t(s,n(l),{placement:"right"})},i={[jt.connections]:g6,[jt.logs]:y6,[jt.proxies]:_6,[jt.rules]:b6},o=xe(()=>a.name?i[a.name]:null),a=LI();return(s,l)=>(X(),q("div",{class:mt(["bg-base-200 text-base-content scrollbar-hidden h-full overflow-x-hidden p-2 transition-all",B(za)?"w-18 px-0":"w-[21rem]"])},[D("div",{class:mt(B(bi)("flex h-full flex-col gap-2",B(za)?"w-18":"w-xs"))},[D("ul",Pwe,[(X(!0),q(Ge,null,qt(B(df),u=>(X(),q("li",{key:u,onMouseenter:c=>r(c,u)},[D("a",{class:mt([u===B(a).name?"menu-active":"",B(za)&&"justify-center","py-2"]),onClick:()=>B(Ds).push({name:u})},[(X(),_t(ml(B(CV)[u]),{class:"h-5 w-5"})),B(za)?it("",!0):(X(),q(Ge,{key:0},[qe(ne(s.$t(u)),1)],64))],10,Owe)],40,Mwe))),128))]),B(za)?(X(),q(Ge,{key:0},[B(k_)?(X(),_t(Rwe,{key:0})):(X(),q("div",Dwe,[D("button",{class:"btn btn-circle btn-sm bg-base-300",onClick:l[0]||(l[0]=u=>za.value=!1)},[z(B(Rl),{class:"h-5 w-5"})])]))],64)):(X(),q(Ge,{key:1},[B(a).name!==B(jt).overview?(X(),_t(wwe,{key:0,class:"w-xs"})):it("",!0),D("div",Lwe,[o.value?(X(),_t(ml(o.value),{key:0})):it("",!0),z(she)])],64))],2)],2))}}),lE=Me(!1),XG=()=>({isUIUpdateAvailable:lE,checkUIUpdate:async()=>{lE.value=await oIe(),lE.value&&O_.value&&I7()}}),B2=Me(!1),kwe=()=>{const e=LI(),t=wV(),{proxiesTabShow:n}=bm(),r=Me(),{direction:i}=Bne(r,{threshold:75}),o=xe(()=>mr.flatten(df.value.map(c=>{if(D_.value){if(c===jt.proxies&&Af.value.length>0)return Object.values(fa).map(f=>[()=>e.name===jt.proxies&&n.value===f,()=>{t.push({name:jt.proxies}),n.value=f}]);if(c===jt.connections)return Object.values(Om).map(f=>[()=>e.name===jt.connections&&vh.value===f,()=>{t.push({name:jt.connections}),vh.value=f}]);if(c===jt.rules&&ms.value.length>0)return Object.values(fl).map(f=>[()=>e.name===jt.rules&&Iu.value===f,()=>{t.push({name:jt.rules}),Iu.value=f}])}return[[()=>e.name===c,()=>t.push({name:c})]]}))),a=()=>o.value.findIndex(c=>c[0]()),s=()=>{var f,h;return e.name===jt.setup?t.push({name:jt.proxies}):(h=(f=o.value[(a()+1)%o.value.length])==null?void 0:f[1])==null?void 0:h.call(f)},l=()=>{var f,h;return e.name===jt.setup?t.push({name:jt.proxies}):(h=(f=o.value[(a()-1+o.value.length)%o.value.length])==null?void 0:f[1])==null?void 0:h.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||B2.value||(i.value==="right"?l():i.value==="left"&&s())}),{swiperRef:r}},Fwe={class:"bg-base-200/50 home-page flex size-full"},$we={key:0,class:"bg-base-100 w-full"},Bwe={class:"relative h-0 flex-1"},Vwe={class:"absolute flex h-full w-full flex-col overflow-y-auto"},Uwe=["onClick"],Hwe={class:"dock-label"},zwe={class:"text-lg font-bold"},Gwe={class:"flex justify-end gap-2"},Wwe=tt({__name:"HomePage",setup(e){const t={[jt.connections]:g6,[jt.logs]:y6,[jt.proxies]:_6,[jt.rules]:b6},n=wV(),r=LI(),i=xe(()=>t[r.name]),{proxiesTabShow:o}=bm(),{swiperRef:a}=kwe();Bt(gi,()=>{gi.value&&(Iu.value=fl.RULES,o.value=fa.PROXIES,cM(),Sa(),qh(),poe(),m6(),the())},{immediate:!0});const s=Me(!1),{showNotification:l}=rd(),u=async()=>{const h=ha.value.filter(v=>v.uuid!==gi.value);s.value=!1;const d=await Promise.race(h.map(v=>new Promise((m,y)=>{setTimeout(()=>{y()},1e4),W4(v).then(_=>{_&&m(v)})})));d&&(gi.value=d.uuid,l({content:"backendSwitchTo",params:{backend:qu(d)}}))},c=kne();Bt(c,async()=>{if(!(!Lo.value||ha.value.length<2||c.value!=="visible"))try{const h=Lo.value.uuid,d=await W4(Lo.value);if(h!==gi.value)return;d||(s.value=!0)}catch{s.value=!0}},{immediate:!0});const{checkUIUpdate:f}=XG();return f(),(h,d)=>(X(),q("div",Fwe,[B(Gu)?it("",!0):(X(),_t(Nwe,{key:0})),D("div",{class:"flex flex-1 flex-col overflow-hidden",ref_key:"swiperRef",ref:a},[i.value&&B(za)?(X(),q("div",$we,[(X(),_t(ml(i.value),{horizontal:!0}))])):it("",!0),D("div",Bwe,[D("div",Vwe,[z(B(DI),null,{default:jn(({Component:v,route:m})=>[z(BB,{name:m.meta.transition||"fade"},{default:jn(()=>[(X(),_t(ml(v)))]),_:2},1032,["name"])]),_:1})])]),B(Gu)?(X(),q(Ge,{key:1},[D("div",{class:mt(["shrink-0",B($E)?"h-[5.5rem]":"h-14"])},null,2),D("div",{class:mt(["dock dock-sm bg-base-200 z-30",B($E)?"h-[5.5rem] pb-8":"h-14"])},[(X(!0),q(Ge,null,qt(B(df),v=>(X(),q("button",{key:v,onClick:m=>B(n).push({name:v}),class:mt(v===B(r).name&&"dock-active")},[(X(),_t(ml(B(CV)[v]),{class:"size-[1.2em]"})),D("span",Hwe,ne(h.$t(v)),1)],10,Uwe))),128))],2)],64)):it("",!0)],512),z(id,{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=v=>s.value=v)},{default:jn(()=>[D("h3",zwe,ne(h.$t("currentBackendUnavailable")),1),D("div",Gwe,[D("button",{class:"btn btn-sm",onClick:d[0]||(d[0]=v=>s.value=!1)},ne(h.$t("cancel")),1),D("button",{class:"btn btn-primary btn-sm",onClick:u},ne(h.$t("confirm")),1)])]),_:1},8,["modelValue"])]))}}),jwe={class:"size-full overflow-x-hidden"},Xwe={key:0,class:"card m-2 flex-row p-2 text-sm"},Ywe={class:"card mb-1 block p-2 text-sm break-all"},Kwe={class:"text-main mx-2"},Zwe={class:"ml-2"},qwe=tt({__name:"LogsPage",setup(e){const t={[Di.Trace]:"text-success",[Di.Debug]:"text-accent",[Di.Info]:"text-info",[Di.Warning]:"text-warning",[Di.Error]:"text-error",[Di.Fatal]:"text-error",[Di.Panic]:"text-error"},n=xe(()=>{if(dg.value){const r=new RegExp(dg.value,"i");return Yh.value.filter(i=>[i.payload,i.time,i.type].some(o=>r.test(o)))}return Yh.value});return(r,i)=>(X(),q("div",jwe,[n.value.length?(X(),_t(ZI,{key:1,data:n.value,size:B(Gu)?96:64,class:"p-2"},{default:jn(({item:o})=>[D("div",Ywe,[D("span",null,ne(o.seq),1),D("span",Kwe,ne(o.time),1),D("span",{class:mt(t[o.type])},ne(o.type),3),D("span",Zwe,ne(o.payload),1)])]),_:1},8,["data","size"])):(X(),q("div",Xwe,ne(r.$t("noContent")),1))]))}}),Jwe={class:"card w-full"},Qwe={class:"card-title px-4 pt-4"},exe={class:"card-body gap-4"},txe={class:"grid grid-cols-1 gap-2 lg:grid-cols-3"},nxe=tt({__name:"ChartsCard",setup(e){return(t,n)=>(X(),q("div",Jwe,[D("div",Qwe,ne(t.$t("overview")),1),D("div",exe,[z(XR,{type:"overview"}),D("div",txe,[z(nM,{class:"xl:h-64"}),z(tM,{class:"xl:h-64"}),z(eM,{class:"xl:h-64"})])])]))}}),rxe={class:"card w-full"},ixe={class:"card-title px-4 pt-4"},oxe={class:"text-base-content/80 font-normal"},axe={class:"card-body gap-4"},sxe={class:"bg-base-200/50 grid grid-cols-1 gap-2 rounded-lg px-4 py-2 lg:grid-cols-3"},lxe={class:"flex h-14 flex-col items-start justify-center gap-1"},uxe={class:"text-sm"},cxe={class:"text-base"},fxe={class:"flex h-14 flex-col items-start justify-center gap-1"},dxe={class:"text-sm"},hxe={class:"text-base"},pxe={class:"flex h-14 flex-col items-start justify-center gap-1"},vxe={class:"text-sm"},gxe={class:"text-base"},mxe={class:"flex h-14 flex-col items-start justify-center gap-1"},yxe={class:"text-sm"},_xe={class:"text-base"},bxe={class:"flex h-14 flex-col items-start justify-center gap-1"},Sxe={class:"text-sm"},wxe={class:"text-base"},xxe={class:"flex h-14 flex-col items-start justify-center gap-1"},Cxe={class:"text-sm"},Txe={class:"text-base"},Exe=tt({__name:"ConnectionHistory",setup(e){const t=xe(()=>bs.value.concat(tg.value)),n=xe(()=>{const u={},c={},f={},h=m=>{var b;const _=((b=m.metadata.host||m.metadata.sniffHost)==null?void 0:b.split(".").slice(-2).join("."))||m.metadata.destinationIP;_ in u?(u[_].download+=m.download,u[_].upload+=m.upload):u[_]={key:_,download:m.download,upload:m.upload}},d=m=>{const y=m.chains[0];y in c?(c[y].download+=m.download,c[y].upload+=m.upload):c[y]={key:y,download:m.download,upload:m.upload}},v=m=>{const y=m.metadata.sourceIP;y in f?(f[y].download+=m.download,f[y].upload+=m.upload):f[y]={key:y,download:m.download,upload:m.upload}};return t.value.forEach(m=>{h(m),d(m),v(m)}),{hostMap:u,proxyMap:c,sourceIPMap:f}}),r=xe(()=>{var c;const u=(c=Object.entries(n.value.hostMap).sort((f,h)=>h[1].download-f[1].download))==null?void 0:c[0];return u?{host:u[0],download:Gn(u[1].download)}:{host:"",download:0}}),i=xe(()=>{var c;const u=(c=Object.entries(n.value.hostMap).sort((f,h)=>h[1].upload-f[1].upload))==null?void 0:c[0];return u?{host:u[0],upload:Gn(u[1].upload)}:{host:"",upload:0}}),o=xe(()=>{var c;const u=(c=Object.entries(n.value.sourceIPMap).sort((f,h)=>h[1].download-f[1].download))==null?void 0:c[0];return u?{sourceIP:u[0],download:Gn(u[1].download)}:{sourceIP:"",download:0}}),a=xe(()=>{var c;const u=(c=Object.entries(n.value.sourceIPMap).sort((f,h)=>h[1].upload-f[1].upload))==null?void 0:c[0];return u?{sourceIP:u[0],upload:Gn(u[1].upload)}:{sourceIP:"",upload:0}}),s=xe(()=>{var c;const u=(c=Object.entries(n.value.proxyMap).sort((f,h)=>h[1].download-f[1].download))==null?void 0:c[0];return u?{proxy:u[0],download:Gn(u[1].download)}:{proxy:"",download:0}}),l=xe(()=>{var c;const u=(c=Object.entries(n.value.proxyMap).sort((f,h)=>h[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)=>(X(),q("div",rxe,[D("div",ixe,[qe(ne(u.$t("totalConnections"))+" ",1),D("span",oxe," ("+ne(t.value.length)+") ",1)]),D("div",axe,[D("div",sxe,[D("div",lxe,[D("div",uxe,ne(u.$t("mostDownloadHost")),1),D("div",cxe,ne(r.value.host)+" = "+ne(r.value.download),1)]),D("div",fxe,[D("div",dxe,ne(u.$t("mostDownloadSourceIP")),1),D("div",hxe,ne(o.value.sourceIP)+" = "+ne(o.value.download),1)]),D("div",pxe,[D("div",vxe,ne(u.$t("mostDownloadProxy")),1),D("div",gxe,ne(s.value.proxy)+" = "+ne(s.value.download),1)]),D("div",mxe,[D("div",yxe,ne(u.$t("mostUploadHost")),1),D("div",_xe,ne(i.value.host)+" = "+ne(i.value.upload),1)]),D("div",bxe,[D("div",Sxe,ne(u.$t("mostUploadSourceIP")),1),D("div",wxe,ne(a.value.sourceIP)+" = "+ne(a.value.upload),1)]),D("div",xxe,[D("div",Cxe,ne(u.$t("mostUploadProxy")),1),D("div",Txe,ne(l.value.proxy)+" = "+ne(l.value.upload),1)])])])]))}}),jc=Me({ip:[],ipWithPrivacy:[]}),Xc=Me({ip:[],ipWithPrivacy:[]}),m_=Me(""),y_=Me(""),__=Me(""),b_=Me(""),Axe={class:"bg-base-200/50 relative h-28 rounded-lg p-2 text-sm"},Ixe={class:"flex h-full flex-col justify-between"},YG=tt({__name:"ConnectionStatus",setup(e){const t=async()=>{fIe().then(n=>{m_.value=n.toFixed(0)}),lIe().then(n=>{b_.value=n.toFixed(0)}),cIe().then(n=>{y_.value=n.toFixed(0)}),uIe().then(n=>{__.value=n.toFixed(0)})};return Vo(()=>{N_.value&&[m_,b_,y_,__].some(n=>n.value==="")&&t()}),(n,r)=>(X(),q("div",Axe,[D("div",Ixe,[D("div",null,[r[0]||(r[0]=D("span",{class:"inline-block w-20"},"Baidu ",-1)),r[1]||(r[1]=qe(" : ")),D("span",{class:mt(B(Mu)(Number(B(m_))))},ne(B(m_))+"ms ",3)]),D("div",null,[r[2]||(r[2]=D("span",{class:"inline-block w-20"},"Cloudflare ",-1)),r[3]||(r[3]=qe(" : ")),D("span",{class:mt(B(Mu)(Number(B(b_))))},ne(B(b_))+"ms ",3)]),D("div",null,[r[4]||(r[4]=D("span",{class:"inline-block w-20"},"Github ",-1)),r[5]||(r[5]=qe(" : ")),D("span",{class:mt(B(Mu)(Number(B(y_))))},ne(B(y_))+"ms ",3)]),D("div",null,[r[6]||(r[6]=D("span",{class:"inline-block w-20"},"YouTube ",-1)),r[7]||(r[7]=qe(" : ")),D("span",{class:mt(B(Mu)(Number(B(__))))},ne(B(__))+"ms ",3)])]),D("button",{class:"btn btn-circle btn-sm absolute right-2 bottom-2",onClick:t},[z(B(Mm),{class:"h-4 w-4"})])]))}}),Rxe={class:"bg-base-200/50 relative flex h-28 flex-col gap-1 rounded-lg p-2"},Pxe={class:"tooltip tooltip-bottom text-left text-sm","data-tip":"ipip.net"},Mxe={key:0,class:"text-xs"},Oxe={class:"tooltip tooltip-bottom text-left text-sm","data-tip":"api.ip.sb"},Dxe={key:0,class:"text-xs"},Lxe={class:"absolute right-2 bottom-2 flex items-center gap-2"},KG=tt({__name:"IPCheck",setup(e){const{t}=Qr(),n=Me(!1),{showTip:r}=Ls(),i=a=>{r(a,t("ipScreenshotTip"))},o=()=>{uM().then(a=>{jc.value={ipWithPrivacy:[`${a.country} ${a.asn_organization}`,a.ip],ip:[`${a.country} ${a.asn_organization}`,"***.***.***.***"]}}),sIe().then(a=>{Xc.value={ipWithPrivacy:[a.data.location.join(" "),a.data.ip],ip:[`${a.data.location[0]} ** ** **`,"***.***.***.***"]}})};return Vo(()=>{L_.value&&[jc,Xc].some(a=>a.value.ip.length===0)&&o()}),(a,s)=>(X(),q("div",Rxe,[D("div",Pxe,[qe(ne(a.$t("chinaIP"))+" : "+ne(n.value?B(Xc).ipWithPrivacy[0]:B(Xc).ip[0])+" ",1),B(Xc).ip[1]?(X(),q("span",Mxe," ("+ne(n.value?B(Xc).ipWithPrivacy[1]:B(Xc).ip[1])+") ",1)):it("",!0)]),D("div",Oxe,[qe(ne(a.$t("globalIP"))+" : "+ne(n.value?B(jc).ipWithPrivacy[0]:B(jc).ip[0])+" ",1),B(jc).ip[1]?(X(),q("span",Dxe," ("+ne(n.value?B(jc).ipWithPrivacy[1]:B(jc).ip[1])+") ",1)):it("",!0)]),D("div",Lxe,[D("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?(X(),_t(B(II),{key:0,class:"h-4 w-4"})):(X(),_t(B(AI),{key:1,class:"h-4 w-4"}))],32),D("button",{class:"btn btn-circle btn-sm",onClick:o},[z(B(Mm),{class:"h-4 w-4"})])])]))}}),Nxe={class:"card w-full"},kxe={class:"card-title px-4 pt-4"},Fxe={class:"card-body gap-4"},$xe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Bxe=tt({__name:"NetworkCard",setup(e){return(t,n)=>(X(),q("div",Nxe,[D("div",kxe,ne(t.$t("networkInfo")),1),D("div",Fxe,[D("div",$xe,[z(KG),z(YG)])])]))}}),Vxe={class:"flex h-full flex-col gap-2 overflow-x-hidden overflow-y-auto p-2"},Uxe={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},Hxe=tt({__name:"OverviewPage",setup(e){return(t,n)=>(X(),q("div",Vxe,[z(nxe),z(Bxe),z(Exe),n[0]||(n[0]=D("div",{class:"flex-1"},null,-1)),D("div",Uxe,[qe(ne(B(qu)(B(Lo)))+" ",1),z(jR)])]))}});function rM(e,t){const n=xe(()=>yIe(e.value,t)),r=xe(()=>n.value.filter(o=>Nm(o,t)!==Fi).length),i=xe(()=>{const o=e.value.length;return eg.value===zg.FILTERED_TOTAL?n.value.length:eg.value===zg.TOTAL||r.value===o?o:`${r.value}/${o}`});return{renderProxies:n,proxiesCount:i}}const ZG=tt({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=xe({get(){return VE.value[t.name]},set(s){s&&(i.value=!1,r.value=!0),VE.value[t.name]=s}}),r=Me(n.value),i=Me(n.value),o=()=>{n.value?i.value=!0:r.value=!1},a=({open:s})=>{n.value=s};return NA.on(a),nd(()=>{NA.off(a)}),(s,l)=>(X(),q("div",{class:mt(`collapse ${n.value?"collapse-open":"collapse-close"}`)},[D("div",{class:"collapse-title cursor-pointer pr-4 select-none",onClick:l[0]||(l[0]=u=>n.value=!n.value)},[bf(s.$slots,"title"),n.value?it("",!0):bf(s.$slots,"preview",{key:0})]),D("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionend:o},[r.value?bf(s.$slots,"content",{key:0,showFullContent:i.value}):it("",!0)],32)],2))}});var Nb=function(){return Nb=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},Nb.apply(this,arguments)},zxe=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 h=3,d=0,v=0,m=s.length;v<m;++v)i.options.useIndianSeparators&&v===4&&(h=2,d=1),v!==0&&d%h==0&&(u=i.options.separator+u),d++,u=s[m-v-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(y){return i.options.numerals[+y]}),l=l.replace(/[0-9]/g,function(y){return i.options.numerals[+y]})),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=Nb(Nb({},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 Gxe={key:0,class:"loading loading-dots loading-xs text-base-content/80"},iM=tt({__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 h=document.createElement("div"),d=document.createElement("div"),v=document.createElement("div");d.textContent=po(f.time).format("YYYY-MM-DD HH:mm:ss"),v.textContent=f.delay+"ms",v.className=Mu(f.delay),h.classList.add("flex","items-center","gap-2"),h.append(d,v),c.append(h)}t(l,c,{delay:[1e3,0],trigger:"mouseenter",touch:!1})},r=e,i=Me(),o=xe(()=>Nm(r.name??"",r.groupName));let a=null;Vo(()=>{Bt(o,(l,u)=>{a?a==null||a.update(l):Qa(()=>{a=new zxe(i.value,o.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:u}),a==null||a.update(l)})})}),nd(()=>{a=null});const s=xe(()=>Mu(o.value));return(l,u)=>(X(),q("div",{class:mt(B(bi)("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?(X(),q("span",Gxe)):o.value===B(Fi)||!o.value?(X(),_t(B(Mm),{key:1,class:"text-base-content h-3 w-3"})):it("",!0),gt(D("div",{ref_key:"latencyRef",ref:i},ne(o.value),513),[[CI,o.value!==B(Fi)&&!l.loading]])],34))}}),Wxe={class:"flex w-full flex-1 items-center gap-1"},jxe={class:"flex h-4 w-full items-center justify-between select-none"},Xxe=tt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean},groupName:{}},setup(e){const t=e,{showTip:n}=Ls(),r=c=>{const f=c.target,{scrollWidth:h,clientWidth:d}=f;h>d&&n(c,f.innerText,{delay:[1e3,0],trigger:"mouseenter",touch:["hold",500]})},i=xe(()=>Jr.value[t.name]),o=Me(!1),a=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),s=xe(()=>nf.value===Dm.SMALL),l=xe(()=>{const c=a(i.value.type),f=Ef.value&&Moe(i.value.name)?"IPv6":"",h=i.value.xudp?"xudp":i.value.udp?"udp":"";return[c,h,f].filter(Boolean).join(s.value?"/":" / ")}),u=async()=>{if(!o.value){o.value=!0;try{await Ooe(t.name,JI(t.groupName)),o.value=!1}catch{o.value=!1}}};return(c,f)=>{var h;return X(),q("div",{ref:"cardRef",class:mt(B(bi)("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"])},[D("div",Wxe,[(h=i.value)!=null&&h.icon?(X(),_t(QI,{key:0,class:"shrink-0",size:"small",icon:i.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):it("",!0),D("span",{class:mt(B(bi)("text-sm",B(F_)&&"truncate")),onMouseenter:r},ne(i.value.name),35)]),D("div",jxe,[D("span",{class:mt(`truncate text-xs tracking-tight ${c.active?"text-primary-content":"text-base-content/60"}`),onMouseenter:r},ne(l.value),35),z(iM,{class:mt([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)}}}),qG=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},oM=qG(Xxe,[["__scopeId","data-v-1823b9a3"]]),JG=tt({__name:"ProxyNodeGrid",setup(e){return(t,n)=>(X(),q("div",{class:"grid max-h-96 gap-2 overflow-x-hidden overflow-y-auto",style:lr(`grid-template-columns: repeat(auto-fill, minmax(${B(Jv)}px, 1fr));`)},[bf(t.$slots,"default")],4))}}),Yxe=["onMouseenter","onClick"],Kxe={key:0,class:"h-2 w-2 rounded-full bg-white"},Zxe={key:1,class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl *:h-2"},qxe=tt({__name:"ProxyPreview",props:{nodes:{},now:{},groupName:{}},setup(e){const t=e,{showTip:n}=Ls(),r=Me(null),{width:i}=$I(r),o=xe(()=>i.value>20*t.nodes.length),a=(v,m)=>{const y=document.createElement("div"),_=document.createElement("div");if(_.textContent=m.name,y.append(_),m.latency!==Fi){const b=document.createElement("div");b.textContent=`${m.latency}ms`,b.classList.add(Mu(m.latency)),y.append(b)}y.classList.add("flex","items-center","gap-2"),n(v,y)},s=xe(()=>qv.value===Ug.DOTS||qv.value===Ug.AUTO&&o.value),l=xe(()=>t.nodes.map(v=>({latency:Nm(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=xe(()=>l.value.filter(v=>v.latency<wu.value&&v.latency>Fi).length),f=xe(()=>l.value.filter(v=>v.latency>=wu.value&&v.latency<ul.value).length),h=xe(()=>l.value.filter(v=>v.latency>=ul.value).length),d=xe(()=>l.value.filter(v=>v.latency===Fi).length);return(v,m)=>(X(),q("div",{ref_key:"previewRef",ref:r,class:mt(["flex flex-wrap",[s.value?"gap-1 pt-3":"gap-2 pt-4 pb-1"]])},[s.value?(X(!0),q(Ge,{key:0},qt(l.value,y=>(X(),q("div",{key:y.name,class:mt(["flex h-4 w-4 items-center justify-center rounded-full transition hover:scale-110",u(y.latency)]),ref_for:!0,ref:"dotsRef",onMouseenter:_=>a(_,y),onClick:gr(_=>v.$emit("nodeclick",y.name),["stop"])},[v.now===y.name?(X(),q("div",Kxe)):it("",!0)],42,Yxe))),128)):(X(),q("div",Zxe,[D("div",{class:mt(u(B(wu)-1)),style:lr({width:`${c.value*100/v.nodes.length}%`})},null,6),D("div",{class:mt(u(B(ul)-1)),style:lr({width:`${f.value*100/v.nodes.length}%`})},null,6),D("div",{class:mt(u(B(ul)+1)),style:lr({width:`${h.value*100/v.nodes.length}%`})},null,6),D("div",{class:mt(u(B(Fi))),style:lr({width:`${d.value*100/v.nodes.length}%`})},null,6)]))],2))}}),QG=qG(qxe,[["__scopeId","data-v-51b6cabc"]]),Jxe={class:"flex flex-1 items-center gap-1"},Qxe={class:"text-base-content/60 text-xs"},eCe={class:"flex flex-1 items-center gap-1 text-sm"},tCe={class:"min-w-12 shrink-0 text-right text-xs"},nCe=tt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=xe(()=>Jr.value[t.name]),r=xe(()=>n.value.all??[]),{proxiesCount:i,renderProxies:o}=rM(r,t.name),a=Me(!1),s=async()=>{if(!a.value){a.value=!0;try{await uU(t.name),a.value=!1}catch{a.value=!1}}},l=xe(()=>bs.value.filter(y=>y.chains.includes(t.name)).reduce((y,_)=>y+_.downloadSpeed,0)),u=()=>{_l.value[t.name]=!_l.value[t.name]},{showTip:c}=Ls(),f=m=>{const y=Vf(t.name);!y||y===n.value.now||c(m,y,{delay:[500,0]})},{t:h}=Qr(),d=m=>{c(m,h("tipForFixed"),{delay:[500,0]})},v=async m=>{n.value.type.toLowerCase()!==Yr.LoadBalance&&(n.value.now===m&&(await Sa(),n.value.now===m)||oU(t.name,m))};return(m,y)=>(X(),_t(ZG,{name:n.value.name},{title:jn(()=>[D("div",{class:"relative flex items-center gap-2",onContextmenu:gr(s,["prevent","stop"])},[D("div",Jxe,[z(Uf,{name:n.value.name,size:"large"},null,8,["name"]),D("span",Qxe," : "+ne(n.value.type)+" ("+ne(B(i))+") ",1),B(Wg)?(X(),q("button",{key:0,class:"btn btn-circle btn-xs z-10 ml-1",onClick:gr(u,["stop"])},[B(_l)[n.value.name]?(X(),_t(B(AI),{key:1,class:"h-3 w-3"})):(X(),_t(B(II),{key:0,class:"h-3 w-3"}))])):it("",!0)]),z(iM,{class:mt(B(bi)("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),D("div",{class:"text-base-content/80 mt-[2px] flex items-center gap-2",onContextmenu:gr(s,["prevent","stop"])},[D("div",eCe,[n.value.now?(X(),q(Ge,{key:0},[n.value.fixed===n.value.now?(X(),_t(B(sV),{key:0,class:"h-4 w-4 shrink-0",onMouseenter:d})):(X(),_t(B(Rl),{key:1,class:"h-4 w-4 shrink-0"})),z(Uf,{name:n.value.now,onMouseenter:f},null,8,["name"])],64)):n.value.type.toLowerCase()===B(Yr).LoadBalance?(X(),q(Ge,{key:1},[z(B(oV),{class:"h-4 w-4 shrink-0"}),qe(" "+ne(m.$t("loadBalance")),1)],64)):it("",!0)]),D("div",tCe,ne(B(Gn)(l.value))+"/s ",1)],32)]),preview:jn(()=>[z(QG,{nodes:B(o),now:n.value.now,groupName:n.value.name,onNodeclick:y[0]||(y[0]=_=>v(_))},null,8,["nodes","now","groupName"])]),content:jn(({showFullContent:_})=>[z(JG,null,{default:jn(()=>[(X(!0),q(Ge,null,qt(_?B(o):B(o).slice(0,B(Cf)?48:96),b=>(X(),_t(oM,{key:b,name:b,"group-name":n.value.name,active:b===n.value.now,onClick:S=>v(b)},null,8,["name","group-name","active","onClick"]))),128))]),_:2},1024)]),_:1},8,["name"]))}}),rCe={class:"flex h-20 shrink-0 flex-col gap-1 p-2"},iCe={class:"text-md truncate"},oCe={class:"text-base-content/80 flex h-4 gap-1 truncate text-xs"},aCe={class:"flex h-4 items-center justify-between gap-1"},sCe={class:"text-base-content/60 text-xs"},lCe={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)"}},uCe=tt({__name:"ProxyGroupForMobile",props:{name:{}},setup(e){const t=e,n=xe(()=>Jr.value[t.name]),r=xe(()=>n.value.all??[]),{proxiesCount:i,renderProxies:o}=rM(r,t.name),a=Me(!1),s=Me(!1),l=Me(s.value),u=Me(s.value),c=Me(),f=Me(0),h=Me(0),d=Me(!1),v=Me({}),m=I=>new Promise(P=>setTimeout(P,I)),y=Me(()=>{}),_=()=>{y.value()},b=async()=>{const{innerHeight:I,innerWidth:P}=window,{x:M,y:L,width:k,height:$}=c.value.getBoundingClientRect(),W=M<P/3?"left":"right",N=L<I/2?"top":"bottom",K=N==="top"?L:I-L-$;y.value=()=>{},u.value=!1,d.value=!1,s.value?(d.value=!0,l.value=!1,v.value={[W]:"0.5rem",[N]:K+"px"},y.value=async()=>{d.value=!1,s.value=!1}):(v.value={[W]:"0.5rem",[N]:K+"px"},f.value=k,h.value=$,s.value=!0,await m(50),d.value=!0,K<I*.15&&(v.value[N]=I*.15+"px"),l.value=!0,y.value=()=>{u.value=!0})},S=async()=>{if(!a.value){a.value=!0;try{await uU(t.name),a.value=!1}catch{a.value=!1}}},w=()=>{_l.value[t.name]=!_l.value[t.name]},T=I=>{n.value.type.toLowerCase()!==Yr.LoadBalance&&oU(t.name,I)},{showTip:C}=Ls(),{t:E}=Qr(),R=I=>{C(I,E("tipForFixed"),{delay:[500,0]})};return(I,P)=>{var M;return X(),q("div",{class:"relative h-20 cursor-pointer",ref_key:"cardRef",ref:c,onClick:b},[s.value?(X(),q("div",{key:0,class:mt(["fixed inset-0 z-40 transition-all duration-200",l.value&&"bg-black/30"])},null,2)):it("",!0),D("div",{class:mt(["card overflow-hidden will-change-[height,width,transform]",[s.value?"fixed z-50":"absolute top-0 left-0 h-auto w-full",d.value&&"transition-all duration-200",l.value&&"w-[calc(100vw-1rem)]"]]),style:lr([s.value&&{background:"var(--color-base-100)"},s.value&&v.value,s.value&&!l.value&&{width:f.value+"px",height:h.value+"px"}]),onContextmenu:gr(S,["prevent","stop"]),onTransitionend:_},[D("div",rCe,[(M=n.value)!=null&&M.icon?(X(),_t(QI,{key:0,icon:n.value.icon,size:"small",class:"absolute top-2 right-2 z-[-1] h-10 w-10!"},null,8,["icon"])):it("",!0),D("div",iCe,ne(n.value.name),1),D("div",oCe,[n.value.now?(X(),q(Ge,{key:0},[n.value.fixed===n.value.now?(X(),_t(B(sV),{key:0,class:"h-4 w-4 shrink-0",onMouseenter:R})):it("",!0),qe(" "+ne(n.value.now),1)],64)):n.value.type.toLowerCase()===B(Yr).LoadBalance?(X(),q(Ge,{key:1},[z(B(oV),{class:"h-4 w-4 shrink-0"}),qe(" "+ne(I.$t("loadBalance")),1)],64)):it("",!0)]),D("div",aCe,[D("span",sCe,ne(n.value.type)+" ("+ne(B(i))+") ",1),B(Wg)?(X(),q("button",{key:0,class:"btn btn-circle btn-xs z-10 ml-1",onClick:gr(w,["stop"])},[B(_l)[n.value.name]?(X(),_t(B(AI),{key:1,class:"h-3 w-3"})):(X(),_t(B(II),{key:0,class:"h-3 w-3"}))])):it("",!0),P[0]||(P[0]=D("div",{class:"flex-1"},null,-1)),z(iM,{class:mt(B(bi)("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"])])]),l.value?(X(),q("div",lCe,[(X(!0),q(Ge,null,qt(u.value?B(o):B(o).slice(0,16),L=>(X(),_t(oM,{key:L,name:L,"group-name":n.value.name,active:L===n.value.now,onClick:gr(k=>T(L),["stop"])},null,8,["name","group-name","active","onClick"]))),128))])):it("",!0)],38)],512)}}}),cCe={class:"flex items-center justify-between gap-2"},fCe={class:"text-xl font-medium"},dCe={class:"text-base-content/60 text-sm font-normal"},hCe={class:"flex gap-2"},pCe={key:0,class:"loading loading-spinner loading-xs"},vCe={class:"text-base-content/60 flex items-end justify-between text-sm max-sm:flex-col max-sm:items-start"},gCe={key:0},mCe={key:1},yCe=tt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=xe(()=>Af.value.find(f=>f.name===t.name)),r=xe(()=>n.value.proxies.map(f=>f.name)??[]),{renderProxies:i,proxiesCount:o}=rM(r),a=xe(()=>{const f=n.value.subscriptionInfo;if(f){const{Download:h=0,Upload:d=0,Total:v=0,Expire:m=0}=f;if(h===0&&d===0&&v===0&&m===0)return null;const{t:y}=Qr(),_=Gn(v,{binary:!0}),b=Gn(h+d,{binary:!0}),S=mr.toFinite(((h+d)/v*100).toFixed(2)),w=m===0?`${y("expire")}: ${y("noExpire")}`:`${y("expire")}: ${po(m*1e3).format("YYYY-MM-DD")}`,T=`${b} / ${_} ( ${S}% )`;return{expireStr:w,usageStr:T}}return null}),s=Me(!1),l=Me(!1),u=async()=>{if(!l.value){l.value=!0;try{await j2e(t.name),await Sa(),l.value=!1}catch{l.value=!1}}},c=async()=>{if(!s.value){s.value=!0;try{await E7(t.name),await Sa(),s.value=!1}catch{s.value=!1}}};return(f,h)=>(X(),_t(ZG,{name:n.value.name},{title:jn(()=>[D("div",cCe,[D("div",fCe,[qe(ne(n.value.name)+" ",1),D("span",dCe," ("+ne(B(o))+") ",1)]),D("div",hCe,[D("button",{class:mt(B(bi)("btn btn-circle btn-sm z-30")),onClick:gr(u,["stop"])},[l.value?(X(),q("span",pCe)):(X(),_t(B(Mm),{key:1,class:"h-4 w-4"}))],2),n.value.vehicleType!=="Inline"?(X(),q("button",{key:0,class:mt(B(bi)("btn btn-circle btn-sm z-30",s.value?"animate-spin":"")),onClick:gr(c,["stop"])},[z(B(Rm),{class:"h-4 w-4"})],2)):it("",!0)])]),D("div",vCe,[D("div",null,[a.value?(X(),q("div",gCe,ne(a.value.expireStr),1)):it("",!0),a.value?(X(),q("div",mCe,ne(a.value.usageStr),1)):it("",!0)]),D("div",null,ne(f.$t("updated"))+" "+ne(B(Tw)(n.value.updatedAt)),1)])]),preview:jn(()=>[z(QG,{nodes:B(i)},null,8,["nodes"])]),content:jn(({showFullContent:d})=>[z(JG,null,{default:jn(()=>[(X(!0),q(Ge,null,qt(d?B(i):B(i).slice(0,B(Cf)?48:96),v=>(X(),_t(oM,{key:v,name:v},null,8,["name"]))),128))]),_:2},1024)]),_:1},8,["name"]))}}),_Ce={key:0,class:"grid grid-cols-2 gap-1"},bCe={key:1,class:"grid grid-cols-1 gap-1"},SCe=tt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=bm(),r=Me(),{width:i}=$I(r),o=xe(()=>i.value<640),a=xe(()=>i.value>720),s=xe(()=>t.value===fa.PROVIDER?yCe:o.value&&l.value?uCe:nCe),l=xe(()=>(a.value||o.value&&t.value===fa.PROXIES)&&Cf.value&&n.value.length>1),u=(c,f)=>c.filter((h,d)=>d%2===f);return Sa(),(c,f)=>(X(),q("div",{class:"max-sm:scrollbar-hidden h-full overflow-y-scroll p-2 sm:pr-1",ref_key:"proxiesRef",ref:r},[l.value?(X(),q("div",_Ce,[(X(),q(Ge,null,qt([0,1],h=>D("div",{key:h,class:"flex flex-1 flex-col gap-1"},[(X(!0),q(Ge,null,qt(u(B(n),h),d=>(X(),_t(ml(s.value),{key:d,name:d},null,8,["name"]))),128))])),64))])):(X(),q("div",bCe,[(X(!0),q(Ge,null,qt(B(n),h=>(X(),_t(ml(s.value),{key:h,name:h},null,8,["name"]))),128))]))],512))}}),wCe={class:"card gap-2 p-2 text-sm"},xCe={class:"mr-2"},CCe={class:"mr-2 capitalize"},TCe={key:0,class:"text-main mr-2"},ECe={key:1,class:"badge badge-sm bg-base-200"},ACe={class:"text-base-content/80 flex items-center gap-1"},E4=tt({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,n=xe(()=>Jr.value[t.rule.proxy]),r=xe(()=>Nm(t.rule.proxy,t.rule.proxy)),i=xe(()=>Mu(Number(r.value))),o=xe(()=>{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 X(),q("div",wCe,[D("div",null,[D("span",xCe,ne(a.index)+".",1),D("span",CCe,ne(a.rule.type),1),a.rule.payload?(X(),q("span",TCe,ne(a.rule.payload),1)):it("",!0),typeof o.value=="number"&&o.value!==-1?(X(),q("span",ECe,ne(o.value),1)):it("",!0)]),D("div",ACe,[z(Uf,{name:a.rule.proxy,class:"text-xs"},null,8,["name"]),(l=n.value)!=null&&l.now&&B(GE)?(X(),q(Ge,{key:0},[z(B(Rl),{class:"h-4 w-4"}),z(Uf,{name:B(Vf)(a.rule.proxy),class:"text-xs"},null,8,["name"])],64)):it("",!0),r.value!==B(Fi)&&B(WE)?(X(),q("span",{key:1,class:mt([i.value,"ml-1 text-xs"])},ne(r.value),3)):it("",!0)])])}}}),ICe={class:"card w-full gap-2 p-2 text-sm"},RCe={class:"flex flex-1 items-center gap-2"},PCe={class:"text-main"},MCe={class:"badge badge-sm bg-base-200"},OCe={class:"text-base-content/80 flex h-4 items-center gap-2 text-xs"},DCe=tt({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=Me(!1),n=e,r=async()=>{t.value||(t.value=!0,await A7(n.ruleProvider.name),qh(),t.value=!1)};return(i,o)=>(X(),q("div",ICe,[D("div",RCe,[D("span",null,ne(i.index)+".",1),D("span",PCe,ne(i.ruleProvider.name),1),D("span",MCe,ne(i.ruleProvider.ruleCount),1)]),D("div",OCe,[D("span",null,ne(i.ruleProvider.behavior),1),D("span",null,ne(i.ruleProvider.vehicleType),1),D("span",null,ne(i.$t("updated"))+" "+ne(B(Tw)(i.ruleProvider.updatedAt)),1),i.ruleProvider.vehicleType!=="Inline"?(X(),q("button",{key:0,class:mt(B(bi)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:r},[z(B(Rm),{class:"h-4 w-4"})],2)):it("",!0)])]))}}),LCe=tt({__name:"RulesPage",setup(e){return qh(),(t,n)=>(X(),q("div",{class:mt(["flex flex-col gap-1 overflow-x-hidden",B(O0).length<200&&"p-2"])},[B(Iu)===B(fl).PROVIDER?(X(!0),q(Ge,{key:0},qt(B(Zde),(r,i)=>(X(),_t(DCe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128)):B(O0).length<200?(X(!0),q(Ge,{key:1},qt(B(O0),r=>(X(),_t(E4,{key:r.payload,rule:r,index:B(Kh).indexOf(r)+1},null,8,["rule","index"]))),128)):(X(),_t(ZI,{key:2,data:B(O0),size:64,class:"p-2"},{default:jn(({item:r})=>[(X(),_t(E4,{class:"mb-1",key:r.payload,rule:r,index:B(Kh).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))],2))}}),NCe={class:"join w-96 max-sm:w-full"},kCe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},FCe={key:0,class:"flex gap-1"},$Ce=tt({__name:"DnsQuery",setup(e){const t=_a({name:"www.google.com",type:"A"}),n=Me(null),r=Me([]),i=async()=>{var a;const{data:o}=await eIe(t);r.value=o.Answer,(a=r.value)!=null&&a.length?n.value=await uM(r.value[0].data):n.value=null};return(o,a)=>{var s,l,u,c;return X(),q(Ge,null,[D("div",NCe,[z(Cr,{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=f=>t.name=f),placeholder:"Domain Name",clearable:!0},null,8,["modelValue"]),gt(D("select",{"onUpdate:modelValue":a[1]||(a[1]=f=>t.type=f),class:"join-item select select-sm"},a[2]||(a[2]=[D("option",{value:"A"},"A",-1),D("option",{value:"AAAA"},"AAAA",-1),D("option",{value:"MX"},"MX",-1)]),512),[[ur,t.type]]),D("button",{class:"btn join-item btn-sm",onClick:i},ne(o.$t("DNSQuery")),1)]),D("div",kCe,[(X(!0),q(Ge,null,qt(r.value,f=>(X(),q("div",{class:"flex gap-1",key:f.data},[D("div",null,ne(f.name),1),a[3]||(a[3]=qe(" : ")),D("div",null,ne(f.data),1)]))),128))]),n.value?(X(),q("div",FCe,ne((s=n.value)==null?void 0:s.ip)+": AS"+ne((l=n.value)==null?void 0:l.asn)+" "+ne((u=n.value)==null?void 0:u.asn_organization)+" "+ne((c=n.value)==null?void 0:c.country),1)):it("",!0)],64)}}}),BCe={class:"card"},VCe={class:"card-title px-4 pt-4"},UCe={class:"indicator"},HCe={key:0,class:"indicator-item top-1 -right-1 flex"},zCe=["href"],GCe={class:"card-body gap-4"},WCe={class:"grid max-w-3xl grid-cols-2 gap-2 lg:grid-cols-3"},jCe={class:"shrink-0"},XCe=["onUpdate:modelValue","onChange"],YCe={class:"grid max-w-3xl grid-cols-2 gap-2 lg:grid-cols-4"},KCe={key:0,class:"flex items-center gap-2"},ZCe={class:"flex items-center gap-2"},qCe={class:"flex items-center gap-2"},JCe={key:0,class:"flex items-center gap-2"},QCe={key:1,class:"grid max-w-4xl grid-cols-2 gap-2 md:grid-cols-3 lg:grid-cols-5"},eTe=tt({__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=()=>{cM(),qh(),Sa()},r=Me(!1),i=async()=>{if(!r.value){r.value=!0;try{await Q2e(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=Me(!1),a=async()=>{if(!o.value){o.value=!0;try{await R7(),n(),o.value=!1}catch{o.value=!1}}},s=Me(!1),l=async()=>{if(!s.value){s.value=!0;try{await q2e(),n(),s.value=!1}catch{s.value=!1}}},u=Me(!1),c=async()=>{if(!u.value){u.value=!0;try{await J2e(),n(),u.value=!1}catch{u.value=!1}}},f=()=>{qd.value||(Cv.value=!1,$b.value=!1)},h=async()=>{var v;await E1({tun:{enable:(v=Br.value)==null?void 0:v.tun.enable}})},d=async()=>{var v;await E1({"allow-lan":(v=Br.value)==null?void 0:v["allow-lan"]})};return(v,m)=>{var y,_,b;return X(),q("div",BCe,[D("div",VCe,[D("div",UCe,[B($b)?(X(),q("span",HCe,m[5]||(m[5]=[D("span",{class:"bg-secondary absolute h-2 w-2 animate-ping rounded-full"},null,-1),D("span",{class:"bg-secondary h-2 w-2 rounded-full"},null,-1)]))):it("",!0),D("a",{class:"flex cursor-pointer items-center gap-2",href:B(Tl)?"https://github.com/sagernet/sing-box":"https://github.com/metacubex/mihomo",target:"_blank"},[qe(ne(v.$t("backend"))+" ",1),z(jR,{class:"text-sm font-normal"})],8,zCe)])]),D("div",GCe,[z(C6),!B(Tl)&&B(Br)?(X(),q(Ge,{key:0},[m[6]||(m[6]=D("div",{class:"divider"},null,-1)),D("div",WCe,[(X(),q(Ge,null,qt(t,S=>D("div",{class:"flex items-center gap-2",key:S.key},[D("span",jCe,ne(v.$t(S.label)),1),gt(D("input",{class:"input input-sm w-20 sm:w-24",type:"number","onUpdate:modelValue":w=>B(Br)[S.key]=w,onChange:w=>B(E1)({[S.key]:Number(B(Br)[S.key])})},null,40,XCe),[[vi,B(Br)[S.key]]])])),64))]),D("div",YCe,[(y=B(Br))!=null&&y.tun?(X(),q("div",KCe,[qe(ne(v.$t("tunMode"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[0]||(m[0]=S=>B(Br).tun.enable=S),onChange:h},null,544),[[En,B(Br).tun.enable]])])):it("",!0),D("div",ZCe,[qe(ne(v.$t("allowLan"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[1]||(m[1]=S=>B(Br)["allow-lan"]=S),onChange:d},null,544),[[En,B(Br)["allow-lan"]]])]),(_=B(Lo))!=null&&_.disableUpgradeCore?it("",!0):(X(),q(Ge,{key:1},[D("div",qCe,[qe(ne(v.$t("checkUpgrade"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[2]||(m[2]=S=>pt(qd)?qd.value=S:null),onChange:f},null,544),[[En,B(qd)]])]),B(qd)?(X(),q("div",JCe,[qe(ne(v.$t("autoUpgrade"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":m[3]||(m[3]=S=>pt(Cv)?Cv.value=S:null)},null,512),[[En,B(Cv)]])])):it("",!0)],64))])],64)):it("",!0),B(np)?(X(),q("div",QCe,[B(Tl)?it("",!0):(X(),q(Ge,{key:0},[(b=B(Lo))!=null&&b.disableUpgradeCore?it("",!0):(X(),q("button",{key:0,class:mt(B(bi)("btn btn-primary btn-sm",o.value?"animate-pulse":"")),onClick:a},ne(v.$t("upgradeCore")),3)),D("button",{class:mt(B(bi)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},ne(v.$t("restartCore")),3),D("button",{class:mt(B(bi)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},ne(v.$t("reloadConfigs")),3),D("button",{class:mt(B(bi)("btn btn-sm",u.value?"animate-pulse":"")),onClick:c},ne(v.$t("updateGeoDatabase")),3)],64)),D("button",{class:"btn btn-sm",onClick:m[4]||(m[4]=(...S)=>B(G4)&&B(G4)(...S))},ne(v.$t("flushFakeIP")),1)])):it("",!0),m[7]||(m[7]=D("div",{class:"divider"},null,-1)),z($Ce)])])}}}),tTe={class:"flex flex-col gap-2 p-1 pr-0"},nTe=["onClick"],rTe={class:"flex w-full items-center gap-2"},iTe=tt({__name:"SourceIPLabels",setup(e){const t=xe(()=>mr.uniq(gh.value.map(a=>a.metadata.sourceIP)).filter(Boolean).filter(a=>!ia.value.find(s=>s.key===a)).sort()),n=_a({key:"",label:""}),r=()=>{!n.key||!n.label||(ia.value.push({key:n.key,label:n.label,id:gS()}),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)=>(X(),q(Ge,null,[D("div",null,ne(a.$t("sourceIPLabels")),1),D("div",tTe,[z(B(Xh),{class:"flex flex-1 flex-col gap-2",modelValue:B(ia),"onUpdate:modelValue":s[0]||(s[0]=l=>pt(ia)?ia.value=l:null),group:"list",animation:150,handle:".drag-handle","item-key":"uuid",onStart:s[1]||(s[1]=l=>B2.value=!0),onEnd:s[2]||(s[2]=l=>B2.value=!1)},{item:jn(({element:{id:l,key:u,label:c}})=>[(X(),q("div",{key:l,class:"flex items-center gap-2"},[z(B(aV),{class:"drag-handle h-4 w-4 shrink-0 cursor-grab"}),z(Cr,{class:"w-36 max-w-64 flex-1",modelValue:u,menus:t.value,onChange:f=>o(l,"key",f)},null,8,["modelValue","menus","onChange"]),z(B(Rl),{class:"h-4 w-4 shrink-0"}),z(Cr,{class:"w-28 sm:w-40",modelValue:c,onChange:f=>o(l,"label",f)},null,8,["modelValue","onChange"]),D("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:()=>i(l)},[z(B(PI),{class:"h-4 w-4"})],8,nTe)]))]),_:1},8,["modelValue"]),D("div",rTe,[z(B(cte),{class:"h-4 w-4 shrink-0"}),z(Cr,{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"]),z(B(Rl),{class:"h-4 w-4 shrink-0"}),z(Cr,{class:"w-28 sm:w-40",modelValue:n.label,"onUpdate:modelValue":s[4]||(s[4]=l=>n.label=l),placeholder:a.$t("label"),onKeypress:EI(r,["enter"])},null,8,["modelValue","placeholder"]),D("button",{class:"btn btn-circle btn-sm",onClick:r},[z(B(cS),{class:"h-4 w-4"})])])])],64))}}),oTe={class:"card"},aTe={class:"card-title px-4 pt-4"},sTe={class:"card-body"},lTe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},uTe={class:"flex items-center gap-2"},cTe={class:"whitespace-nowrap"},fTe={value:!1},dTe={value:!0},hTe={class:"flex items-center gap-2"},pTe=["value"],vTe={key:0,class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},gTe={class:"flex items-center gap-2"},mTe=["value"],yTe={class:"flex items-center gap-2"},_Te=["value"],bTe=tt({__name:"ConnectionsSettings",setup(e){return(t,n)=>(X(),q("div",oTe,[D("div",aTe,ne(t.$t("connections")),1),D("div",sTe,[D("div",lTe,[D("div",uTe,[D("span",cTe,ne(t.$t("connectionStyle")),1),gt(D("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[0]||(n[0]=r=>pt(Mo)?Mo.value=r:null)},[D("option",fTe,ne(t.$t("table")),1),D("option",dTe,ne(t.$t("card")),1)],512),[[ur,B(Mo)]])]),D("div",hTe,[qe(ne(t.$t("proxyChainDirection"))+" ",1),gt(D("select",{class:"select select-sm w-24","onUpdate:modelValue":n[1]||(n[1]=r=>pt(ph)?ph.value=r:null)},[(X(!0),q(Ge,null,qt(Object.values(B(ip)),r=>(X(),q("option",{key:r,value:r},ne(t.$t(r)),9,pTe))),128))],512),[[ur,B(ph)]])])]),B(Mo)?it("",!0):(X(),q("div",vTe,[D("div",gTe,[D("div",null,ne(t.$t("tableWidthMode")),1),gt(D("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[2]||(n[2]=r=>pt(U_)?U_.value=r:null)},[(X(!0),q(Ge,null,qt(Object.values(B(pS)),r=>(X(),q("option",{key:r,value:r},ne(t.$t(r)),9,mTe))),128))],512),[[ur,B(U_)]])]),D("div",yTe,[D("div",null,ne(t.$t("tableSize")),1),gt(D("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[3]||(n[3]=r=>pt(V_)?V_.value=r:null)},[(X(!0),q(Ge,null,qt(Object.values(B(Hg)),r=>(X(),q("option",{key:r,value:r},ne(t.$t(r)),9,_Te))),128))],512),[[ur,B(V_)]])])])),n[4]||(n[4]=D("div",{class:"divider"},null,-1)),z(iTe)])]))}}),STe={class:"card"},wTe={class:"card-title px-4 pt-4"},xTe={class:"card-body"},CTe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},TTe={class:"flex w-full items-center gap-2"},ETe={class:"flex w-full items-center gap-2"},ATe={class:"flex items-center gap-2"},ITe={class:"flex items-center gap-2"},RTe={class:"flex w-full items-center gap-2"},PTe={class:"flex items-center gap-2"},MTe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},OTe={class:"flex items-center gap-2"},DTe={class:"flex items-center gap-2"},LTe=["value"],NTe={class:"flex items-center gap-2"},kTe=["value"],FTe={class:"flex items-center gap-2"},$Te=["value"],BTe={class:"flex items-center gap-2"},VTe={class:"flex items-center gap-2"},UTe={class:"flex items-center gap-2"},HTe={class:"flex items-center gap-2"},zTe=tt({__name:"ProxiesSettings",setup(e){const{showTip:t}=Ls(),{t:n}=Qr(),r=a=>t(a,n("independentLatencyTestTip")),i=xe(()=>Object.values(Jr.value).some(a=>!!a.icon)),o=()=>{Jv.value=BI(nf.value)};return(a,s)=>(X(),q("div",STe,[D("div",wTe,ne(a.$t("proxies")),1),D("div",xTe,[D("div",CTe,[D("div",TTe,[D("span",null,ne(a.$t("speedtestUrl")),1),z(Cr,{class:"w-36 flex-1 sm:max-w-80",modelValue:B(Tf),"onUpdate:modelValue":s[0]||(s[0]=l=>pt(Tf)?Tf.value=l:null),clearable:!0},null,8,["modelValue"])]),D("div",ETe,[D("span",null,ne(a.$t("speedtestTimeout")),1),gt(D("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[1]||(s[1]=l=>pt(ku)?ku.value=l:null)},null,512),[[vi,B(ku)]]),s[14]||(s[14]=qe(" ms "))]),D("div",ATe,[D("span",null,ne(a.$t("lowLatencyDesc")),1),gt(D("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[2]||(s[2]=l=>pt(wu)?wu.value=l:null)},null,512),[[vi,B(wu)]]),s[15]||(s[15]=qe(" ms "))]),D("div",ITe,[D("span",null,ne(a.$t("mediumLatencyDesc")),1),gt(D("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[3]||(s[3]=l=>pt(ul)?ul.value=l:null)},null,512),[[vi,B(ul)]]),s[16]||(s[16]=qe(" ms "))]),D("div",RTe,[D("span",null,ne(a.$t("independentLatencyTest")),1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=l=>pt(hh)?hh.value=l:null)},null,512),[[En,B(hh)]]),z(B(RI),{class:"h-4 w-4",onMouseenter:r})]),D("div",PTe,[qe(ne(a.$t("ipv6Test"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[5]||(s[5]=l=>pt(Ef)?Ef.value=l:null)},null,512),[[En,B(Ef)]])])]),s[17]||(s[17]=D("div",{class:"divider"},null,-1)),D("div",MTe,[D("div",OTe,[qe(ne(a.$t("twoColumnProxyGroup"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[6]||(s[6]=l=>pt(Cf)?Cf.value=l:null)},null,512),[[En,B(Cf)]])]),D("div",DTe,[qe(ne(a.$t("proxyPreviewType"))+" ",1),gt(D("select",{class:"select select-sm min-w-24","onUpdate:modelValue":s[7]||(s[7]=l=>pt(qv)?qv.value=l:null)},[(X(!0),q(Ge,null,qt(Object.values(B(Ug)),l=>(X(),q("option",{key:l,value:l},ne(a.$t(l)),9,LTe))),128))],512),[[ur,B(qv)]])]),D("div",NTe,[qe(ne(a.$t("proxyCountMode"))+" ",1),gt(D("select",{class:"select select-sm min-w-24","onUpdate:modelValue":s[8]||(s[8]=l=>pt(eg)?eg.value=l:null)},[(X(!0),q(Ge,null,qt(Object.values(B(zg)),l=>(X(),q("option",{key:l,value:l},ne(a.$t(l)),9,kTe))),128))],512),[[ur,B(eg)]])]),D("div",FTe,[qe(ne(a.$t("proxyCardSize"))+" ",1),gt(D("select",{class:"select select-sm min-w-24","onUpdate:modelValue":s[9]||(s[9]=l=>pt(nf)?nf.value=l:null),onChange:o},[(X(!0),q(Ge,null,qt(Object.values(B(Dm)),l=>(X(),q("option",{key:l,value:l},ne(a.$t(l)),9,$Te))),128))],544),[[ur,B(nf)]])]),D("div",BTe,[qe(ne(a.$t("truncateProxyName"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[10]||(s[10]=l=>pt(F_)?F_.value=l:null)},null,512),[[En,B(F_)]])]),D("div",VTe,[qe(ne(a.$t("displayGlobalByMode"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[11]||(s[11]=l=>pt($_)?$_.value=l:null)},null,512),[[En,B($_)]])]),i.value?(X(),q(Ge,{key:0},[D("div",UTe,[qe(ne(a.$t("iconSize"))+" ",1),gt(D("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[12]||(s[12]=l=>pt(Qv)?Qv.value=l:null)},null,512),[[vi,B(Qv)]])]),D("div",HTe,[qe(ne(a.$t("iconMarginRight"))+" ",1),gt(D("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":s[13]||(s[13]=l=>pt(B_)?B_.value=l:null)},null,512),[[vi,B(B_)]])])],64)):it("",!0)])])]))}}),GTe={class:"flex items-center gap-2"},WTe=["value"],V2=tt({__name:"LanguageSelect",setup(e){const t={[_s.EN_US]:"English",[_s.ZH_CN]:"简体中文",[_s.RU_RU]:"Русский"};return(n,r)=>(X(),q("div",GTe,[qe(ne(n.$t("language"))+" ",1),gt(D("select",{class:"select select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>pt(Su)?Su.value=i:null),onChange:r[1]||(r[1]=()=>B(Lm).global.locale=B(Su))},[(X(!0),q(Ge,null,qt(Object.values(B(_s)),i=>(X(),q("option",{key:i,value:i},ne(t[i]||i),9,WTe))),128))],544),[[ur,B(Su)]])]))}}),U2=tt({__name:"ImportSettings",setup(e){const t=Me(),n=()=>{var i;(i=t.value)==null||i.click()},r=()=>{var s,l;const{showNotification:i}=rd();i({content:Lm.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)=>(X(),q(Ge,null,[D("button",{class:"btn btn-sm",onClick:n},ne(i.$t("importSettings")),1),D("input",{ref_key:"inputRef",ref:t,type:"file",accept:".json",class:"hidden",onChange:r},null,544)],64))}}),jTe={class:"grid grid-cols-4 gap-2"},XTe={class:"flex cursor-pointer flex-col items-center gap-1"},YTe={class:"flex h-6 items-center justify-center text-xs"},KTe=["onUpdate:modelValue"],ZTe={class:"grid grid-cols-1 gap-2 md:grid-cols-3"},qTe={class:"grid grid-cols-1 gap-2 md:grid-cols-3"},JTe={class:"flex items-center gap-2"},QTe={class:"grid grid-cols-1 gap-2 pb-12 md:grid-cols-3"},eEe={class:"bg-base-100 border-base-200 absolute right-0 bottom-0 left-0 flex gap-2 border-t p-2 pt-2"},tEe=["value"],nEe={class:"btn btn-sm",href:"https://daisyui.com/theme-generator/",target:"_blank"},rEe=tt({__name:"CustomTheme",props:{value:{type:Boolean,default:!1},valueModifiers:{}},emits:["update:value"],setup(e){const t=oS(e,"value"),n=Me(U1[0]),r=_a({...Gg.value[0]||XL}),i=xe(()=>Object.keys(r).filter(h=>h.startsWith("--color-"))),o=xe(()=>Object.keys(r).filter(h=>h.startsWith("--radius-"))),a=xe(()=>Object.keys(r).filter(h=>h.startsWith("--size-"))),s=xe({get:()=>r["--depth"]==="1",set:h=>{r["--depth"]=h?"1":"0"}}),l=xe({get:()=>r["--noise"]==="1",set:h=>{r["--noise"]=h?"1":"0"}}),u=xe({get:()=>r["color-scheme"]==="dark",set:h=>{r["color-scheme"]=h?"dark":"light"}}),c=async()=>{Gg.value=[{...r,id:gS()}],Lu.value="",Nu.value="",await Qa(),Lu.value=r.name,Nu.value=r.name,F7()},f=()=>{const h=document.createElement("div");h.dataset.theme=n.value,h.style.display="none",document.body.appendChild(h);const d=getComputedStyle(h);Object.keys(XL).forEach(v=>{const m=d.getPropertyValue(v).trim();m&&(r[v]=m)}),h.remove(),c()};return(h,d)=>(X(),_t(id,{modelValue:t.value,"onUpdate:modelValue":d[5]||(d[5]=v=>t.value=v)},{default:jn(()=>[d[11]||(d[11]=D("div",{class:"divider"},"Color",-1)),D("div",jTe,[(X(!0),q(Ge,null,qt(i.value,v=>(X(),q("div",{key:v},[D("label",XTe,[D("div",YTe,ne(v.replace("--color-","")),1),D("div",{class:"border-base-content h-6 w-6 rounded border-2",style:lr(`background-color: ${r[v]};`)},null,4),gt((X(),q("input",{class:"h-1 w-1 opacity-0",key:v,type:"color","onUpdate:modelValue":m=>r[v]=m},null,8,KTe)),[[vi,r[v]]])])]))),128))]),d[12]||(d[12]=D("div",{class:"divider"},"Radius",-1)),D("div",ZTe,[(X(!0),q(Ge,null,qt(o.value,v=>(X(),q("div",{key:v,class:"flex items-center gap-2"},[qe(ne(v.replace("--radius-",""))+" ",1),z(Cr,{class:"w-20",modelValue:r[v],"onUpdate:modelValue":m=>r[v]=m},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),d[13]||(d[13]=D("div",{class:"divider"},"Size",-1)),D("div",qTe,[(X(!0),q(Ge,null,qt(a.value,v=>(X(),q("div",{key:v,class:"flex items-center gap-2"},[qe(ne(v.replace("--size-",""))+" ",1),z(Cr,{class:"w-20",modelValue:r[v],"onUpdate:modelValue":m=>r[v]=m},null,8,["modelValue","onUpdate:modelValue"])]))),128)),D("div",JTe,[d[6]||(d[6]=qe(" border ")),z(Cr,{class:"w-20",modelValue:r["--border"],"onUpdate:modelValue":d[0]||(d[0]=v=>r["--border"]=v)},null,8,["modelValue"])])]),d[14]||(d[14]=D("div",{class:"divider"},"Effect",-1)),D("div",QTe,[D("div",null,[d[7]||(d[7]=qe(" depth ")),gt(D("input",{class:"toggle","onUpdate:modelValue":d[1]||(d[1]=v=>s.value=v),type:"checkbox"},null,512),[[En,s.value]])]),D("div",null,[d[8]||(d[8]=qe(" noise ")),gt(D("input",{class:"toggle","onUpdate:modelValue":d[2]||(d[2]=v=>l.value=v),type:"checkbox"},null,512),[[En,l.value]])]),D("div",null,[d[9]||(d[9]=qe(" dark ")),gt(D("input",{class:"toggle","onUpdate:modelValue":d[3]||(d[3]=v=>u.value=v),type:"checkbox"},null,512),[[En,u.value]])])]),D("div",eEe,[gt(D("select",{class:"select select-sm w-26","onUpdate:modelValue":d[4]||(d[4]=v=>n.value=v)},[(X(!0),q(Ge,null,qt(B(U1),v=>(X(),q("option",{key:v,value:v},ne(v),9,tEe))),128))],512),[[ur,n.value]]),D("button",{class:"btn btn-sm",onClick:f},ne(h.$t("reset")),1),d[10]||(d[10]=D("div",{class:"flex-1"},null,-1)),D("a",nEe,ne(h.$t("moreDetails")),1),D("button",{class:"btn btn-sm btn-primary",onClick:c},ne(h.$t("save")),1)])]),_:1},8,["modelValue"]))}}),iEe={class:"card"},oEe={class:"card-title px-4 pt-4"},aEe={class:"indicator"},sEe={key:0,class:"indicator-item top-1 -right-1 flex"},lEe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},uEe={class:"text-sm font-normal"},cEe={class:"card-body gap-4"},fEe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},dEe={class:"flex items-center gap-2"},hEe={class:"flex items-center gap-2"},pEe={class:"join"},vEe=["value"],gEe={key:0,class:"flex items-center gap-2"},mEe=["value"],yEe={class:"flex items-center gap-2"},_Ee=["value"],bEe={class:"flex items-center gap-2"},SEe={class:"shrink-0"},wEe={class:"join"},xEe={key:1,class:"flex items-center gap-2"},CEe={class:"flex items-center gap-2 md:hidden"},TEe={key:0,class:"flex items-center gap-2"},EEe={class:"grid max-w-3xl grid-cols-2 gap-2 sm:grid-cols-4"},AEe=tt({__name:"ZashboardSettings",setup(e){const t=Me(!1),n=Me(),r=()=>{var f;(f=n.value)==null||f.click()},i=()=>{Wa.value.includes(H1)||Wne()},o=f=>{var v;const h=(v=f.target.files)==null?void 0:v[0];if(!h)return;const d=new FileReader;d.onload=()=>{Wa.value=H1+"-"+Date.now(),zne(d.result)},d.readAsDataURL(h)},{isUIUpdateAvailable:a}=XG(),s=Me(!1),l=async()=>{if(!s.value){s.value=!0;try{await I7(),s.value=!1,window.location.reload()}catch{s.value=!1}}},u=xe(()=>Gg.value.length?[...U1,...Gg.value.map(f=>f.name)]:U1),c=async()=>{const f=await navigator.serviceWorker.getRegistrations();for(const h of f)h.unregister();window.location.reload()};return(f,h)=>(X(),q("div",iEe,[D("div",oEe,[D("div",aEe,[B(a)?(X(),q("span",sEe,h[14]||(h[14]=[D("span",{class:"bg-secondary absolute h-2 w-2 animate-ping rounded-full"},null,-1),D("span",{class:"bg-secondary h-2 w-2 rounded-full"},null,-1)]))):it("",!0),D("a",lEe,[h[15]||(h[15]=D("span",null," zashboard ",-1)),D("span",uEe,ne(B(T7)),1)])]),B($E)?(X(),q("button",{key:0,class:"btn btn-sm absolute top-2 right-2",onClick:c},[qe(ne(f.$t("refresh"))+" ",1),z(B(Rm),{class:"h-4 w-4"})])):it("",!0)]),D("div",cEe,[D("div",fEe,[z(V2),D("div",dEe,[qe(ne(f.$t("autoSwitchTheme"))+" ",1),gt(D("input",{type:"checkbox","onUpdate:modelValue":h[0]||(h[0]=d=>pt(xv)?xv.value=d:null),class:"toggle"},null,512),[[En,B(xv)]])]),D("div",hEe,[qe(ne(f.$t("defaultTheme"))+" ",1),D("div",pEe,[gt(D("select",{class:"select select-sm join-item w-48","onUpdate:modelValue":h[1]||(h[1]=d=>pt(Lu)?Lu.value=d:null)},[(X(!0),q(Ge,null,qt(u.value,d=>(X(),q("option",{key:d,value:d},ne(d),9,vEe))),128))],512),[[ur,B(Lu)]]),D("button",{class:"btn btn-sm join-item",onClick:h[2]||(h[2]=d=>t.value=!t.value)},[z(B(cS),{class:"h-4 w-4"})])]),z(rEe,{value:t.value,"onUpdate:value":h[3]||(h[3]=d=>t.value=d)},null,8,["value"])]),B(xv)?(X(),q("div",gEe,[qe(ne(f.$t("darkTheme"))+" ",1),gt(D("select",{class:"select select-sm w-48","onUpdate:modelValue":h[4]||(h[4]=d=>pt(Nu)?Nu.value=d:null)},[(X(!0),q(Ge,null,qt(u.value,d=>(X(),q("option",{key:d,value:d},ne(d),9,mEe))),128))],512),[[ur,B(Nu)]])])):it("",!0),D("div",yEe,[qe(ne(f.$t("fonts"))+" ",1),gt(D("select",{class:"select select-sm w-48","onUpdate:modelValue":h[5]||(h[5]=d=>pt(Zv)?Zv.value=d:null)},[(X(!0),q(Ge,null,qt(Object.values(B(mu)),d=>(X(),q("option",{key:d,value:d},ne(d),9,_Ee))),128))],512),[[ur,B(Zv)]])]),D("div",bEe,[D("span",SEe,ne(f.$t("customBackgroundURL")),1),D("div",wEe,[z(Cr,{class:"join-item max-w-64 flex-1",modelValue:B(Wa),"onUpdate:modelValue":[h[6]||(h[6]=d=>pt(Wa)?Wa.value=d:null),i],clearable:!0},null,8,["modelValue"]),D("button",{class:"btn join-item btn-sm",onClick:r},[z(B(Pm),{class:"h-4 w-4"})])]),D("input",{ref_key:"inputFileRef",ref:n,type:"file",accept:"image/*",class:"hidden",onChange:o},null,544)]),B(Wa)?(X(),q("div",xEe,[qe(ne(f.$t("transparent"))+" ",1),gt(D("input",{type:"range",min:"0",max:"100","onUpdate:modelValue":h[7]||(h[7]=d=>pt(M_)?M_.value=d:null),class:"range max-w-64",onTouchstart:h[8]||(h[8]=gr(()=>{},["stop"])),onTouchmove:h[9]||(h[9]=gr(()=>{},["stop"])),onTouchend:h[10]||(h[10]=gr(()=>{},["stop"]))},null,544),[[vi,B(M_)]])])):it("",!0),D("div",CEe,[qe(ne(f.$t("swipeInTabs"))+" ",1),gt(D("input",{type:"checkbox","onUpdate:modelValue":h[11]||(h[11]=d=>pt(D_)?D_.value=d:null),class:"toggle"},null,512),[[En,B(D_)]])])]),B(Tl)?it("",!0):(X(),q("div",TEe,[qe(ne(f.$t("autoUpgrade"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":h[12]||(h[12]=d=>pt(O_)?O_.value=d:null)},null,512),[[En,B(O_)]])])),D("div",EEe,[B(Tl)?it("",!0):(X(),q(Ge,{key:0},[D("button",{class:mt(B(bi)("btn btn-primary btn-sm",s.value?"animate-pulse":"")),onClick:l},ne(f.$t("upgradeUI")),3),h[16]||(h[16]=D("div",{class:"sm:hidden"},null,-1))],64)),D("button",{class:"btn btn-sm",onClick:h[13]||(h[13]=(...d)=>B(K4)&&B(K4)(...d))},ne(f.$t("exportSettings")),1),z(U2)])])]))}}),IEe={class:"grid grid-cols-1 gap-2 overflow-x-hidden p-2"},REe={key:0,class:"card"},PEe={class:"card-title px-4 pt-4"},MEe={class:"card"},OEe={class:"card-title px-4 pt-4"},DEe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},LEe={class:"flex items-center gap-2"},NEe={key:0,class:"flex items-center gap-2"},kEe={class:"flex items-center gap-2"},FEe={class:"flex items-center gap-2"},$Ee={class:"flex items-center gap-2 max-md:hidden"},BEe=tt({__name:"SettingsPage",setup(e){return(t,n)=>(X(),q("div",IEe,[z(AEe),B(Jd)?it("",!0):(X(),q("div",REe,[D("div",PEe,ne(t.$t("overview")),1),D("div",{class:mt(["card-body grid grid-cols-1 gap-2",B(za)?["md:grid-cols-2",B(Td)?"lg:grid-cols-3":"xl:grid-cols-4"]:["lg:grid-cols-2",B(Td)?"xl:grid-cols-3":"2xl:grid-cols-4"]])},[z(XR,{type:"settings"}),B(Td)?(X(),q(Ge,{key:0},[z(KG),z(YG)],64)):it("",!0),z(nM),z(tM),z(eM)],2)])),z(eTe),z(zTe),z(bTe),D("div",MEe,[D("div",OEe,ne(t.$t("overview")),1),D("div",DEe,[D("div",LEe,[qe(ne(t.$t("splitOverviewPage"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>pt(Jd)?Jd.value=r:null)},null,512),[[En,B(Jd)]])]),B(Jd)?it("",!0):(X(),q("div",NEe,[qe(ne(t.$t("showIPAndConnectionInfo"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>pt(Td)?Td.value=r:null)},null,512),[[En,B(Td)]])])),D("div",kEe,[qe(ne(t.$t("autoIPCheckWhenStart"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=r=>pt(L_)?L_.value=r:null)},null,512),[[En,B(L_)]])]),D("div",FEe,[qe(ne(t.$t("autoConnectionCheckWhenStart"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=r=>pt(N_)?N_.value=r:null)},null,512),[[En,B(N_)]])]),D("div",$Ee,[qe(ne(t.$t("showStatisticsWhenSidebarCollapsed"))+" ",1),gt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=r=>pt(k_)?k_.value=r:null)},null,512),[[En,B(k_)]])])])])]))}}),VEe={class:"absolute top-4 right-4 max-sm:hidden"},UEe={class:"absolute right-4 bottom-4 max-sm:hidden"},HEe={class:"card mx-auto w-96 max-w-[90%] gap-3 px-6 py-2 max-sm:my-4"},zEe={class:"text-2xl font-semibold"},GEe={class:"flex flex-col gap-1"},WEe={class:"text-sm"},jEe={class:"flex flex-col gap-1"},XEe={class:"text-sm"},YEe={class:"flex flex-col gap-1"},KEe={class:"text-sm"},ZEe={class:"flex flex-col gap-1"},qEe={class:"flex items-center gap-1 text-sm"},JEe=["data-tip"],QEe={class:"flex flex-col gap-1"},eAe={class:"text-sm"},tAe={class:"flex flex-col gap-1"},nAe={class:"text-sm"},rAe={class:"btn btn-circle btn-ghost btn-sm"},iAe=["onClick"],oAe=["onClick"],aAe={class:"absolute top-2 right-2 sm:hidden"},sAe=tt({__name:"SetupPage",setup(e){var a,s;const t=_a({protocol:"http",host:"127.0.0.1",port:"9090",secondaryPath:"",password:"",label:""}),{showNotification:n}=rd(),r=l=>{gi.value=l,Ds.push({name:jt.proxies})},i=async(l,u=!1)=>{const{protocol:c,host:f,port:h,password:d}=l;if(!c||!f||!h){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(`${qu(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(v.status!==200){u||alert(v.statusText);return}const{version:m,message:y}=await v.json();if(!m){u||alert(y);return}hoe(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"}):ha.value.length===0&&i(t,!0),(l,u)=>(X(),q("div",{class:"bg-base-200/50 h-full w-full items-center justify-center overflow-auto sm:flex",onKeydown:u[8]||(u[8]=EI(c=>i(t),["enter"]))},[D("div",VEe,[z(U2)]),D("div",UEe,[z(V2)]),D("div",HEe,[D("h1",zEe,ne(l.$t("setup")),1),D("div",GEe,[D("label",WEe,[D("span",null,ne(l.$t("protocol")),1)]),gt(D("select",{class:"select select-sm w-full","onUpdate:modelValue":u[0]||(u[0]=c=>t.protocol=c)},u[9]||(u[9]=[D("option",{value:"http"},"HTTP",-1),D("option",{value:"https"},"HTTPS",-1)]),512),[[ur,t.protocol]])]),D("div",jEe,[D("label",XEe,[D("span",null,ne(l.$t("host")),1)]),z(Cr,{class:"w-full",name:"username",autocomplete:"username",modelValue:t.host,"onUpdate:modelValue":u[1]||(u[1]=c=>t.host=c)},null,8,["modelValue"])]),D("div",YEe,[D("label",KEe,[D("span",null,ne(l.$t("port")),1)]),z(Cr,{class:"w-full",modelValue:t.port,"onUpdate:modelValue":u[2]||(u[2]=c=>t.port=c)},null,8,["modelValue"])]),D("div",ZEe,[D("label",qEe,[D("span",null,ne(l.$t("secondaryPath"))+" ("+ne(l.$t("optional"))+")",1),D("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[z(B(RI),{class:"h-4 w-4"})],8,JEe)]),z(Cr,{class:"w-full",modelValue:t.secondaryPath,"onUpdate:modelValue":u[3]||(u[3]=c=>t.secondaryPath=c)},null,8,["modelValue"])]),D("div",QEe,[D("label",eAe,[D("span",null,ne(l.$t("password")),1)]),gt(D("input",{type:"password",class:"input input-sm w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.password=c)},null,512),[[vi,t.password]])]),D("div",tAe,[D("label",nAe,[D("span",null,ne(l.$t("label"))+" ("+ne(l.$t("optional"))+")",1)]),z(Cr,{class:"w-full",modelValue:t.label,"onUpdate:modelValue":u[5]||(u[5]=c=>t.label=c)},null,8,["modelValue"])]),D("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>i(t))},ne(l.$t("submit")),1),z(B(Xh),{class:"flex flex-1 flex-col gap-2",modelValue:B(ha),"onUpdate:modelValue":u[7]||(u[7]=c=>pt(ha)?ha.value=c:null),group:"list",animation:150,"item-key":"uuid"},{item:jn(({element:c})=>[(X(),q("div",{key:c.uuid,class:"flex items-center gap-2"},[D("button",rAe,[z(B(aV),{class:"h-4 w-4 cursor-grab"})]),D("button",{class:"btn btn-sm flex-1",onClick:f=>r(c.uuid)},ne(c.label||B(qu)(c)),9,iAe),D("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:()=>B(tU)(c.uuid)},[z(B(PI),{class:"h-4 w-4"})],8,oAe)]))]),_:1},8,["modelValue"]),z(V2,{class:"mt-4 sm:hidden"}),D("div",aAe,[z(U2)])])],32))}}),lAe=[{path:"proxies",name:jt.proxies,component:SCe},{path:"overview",name:jt.overview,component:Hxe},{path:"connections",name:jt.connections,component:vle},{path:"logs",name:jt.logs,component:qwe},{path:"rules",name:jt.rules,component:LCe},{path:"settings",name:jt.settings,component:BEe}],Ds=hne({history:zte("./"),routes:[{path:"/",redirect:jt.proxies,component:Wwe,children:lAe},{path:"/setup",name:jt.setup,component:sAe},{path:"/:catchAll(.*)",redirect:jt.proxies}]}),A4=Vne("zashboard"),e7=e=>{typeof e=="string"&&Lo.value?A4.value=`zashboard | ${Lm.global.t(e)}`:A4.value="zashboard"};Ds.beforeEach((e,t)=>{const n=df.value.findIndex(i=>i===e.name),r=df.value.findIndex(i=>i===t.name);n===0&&r===df.value.length-1?e.meta.transition="slide-left":n===df.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=>{e7(e.name)});Bt(Su,()=>{e7(Ds.currentRoute.value.name)});function t7(e,t){return function(){return e.apply(t,arguments)}}const{toString:uAe}=Object.prototype,{getPrototypeOf:aM}=Object,gw=(e=>t=>{const n=uAe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ts=e=>(e=e.toLowerCase(),t=>gw(t)===e),mw=e=>t=>typeof t===e,{isArray:gp}=Array,_m=mw("undefined");function cAe(e){return e!==null&&!_m(e)&&e.constructor!==null&&!_m(e.constructor)&&ko(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n7=ts("ArrayBuffer");function fAe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n7(e.buffer),t}const dAe=mw("string"),ko=mw("function"),r7=mw("number"),yw=e=>e!==null&&typeof e=="object",hAe=e=>e===!0||e===!1,w1=e=>{if(gw(e)!=="object")return!1;const t=aM(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pAe=ts("Date"),vAe=ts("File"),gAe=ts("Blob"),mAe=ts("FileList"),yAe=e=>yw(e)&&ko(e.pipe),_Ae=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ko(e.append)&&((t=gw(e))==="formdata"||t==="object"&&ko(e.toString)&&e.toString()==="[object FormData]"))},bAe=ts("URLSearchParams"),[SAe,wAe,xAe,CAe]=["ReadableStream","Request","Response","Headers"].map(ts),TAe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jm(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),gp(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 i7(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 cf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,o7=e=>!_m(e)&&e!==cf;function H2(){const{caseless:e}=o7(this)&&this||{},t={},n=(r,i)=>{const o=e&&i7(t,i)||i;w1(t[o])&&w1(r)?t[o]=H2(t[o],r):w1(r)?t[o]=H2({},r):gp(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Jm(arguments[r],n);return t}const EAe=(e,t,n,{allOwnKeys:r}={})=>(Jm(t,(i,o)=>{n&&ko(i)?e[o]=t7(i,n):e[o]=i},{allOwnKeys:r}),e),AAe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IAe=(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)},RAe=(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&&aM(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},PAe=(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},MAe=e=>{if(!e)return null;if(gp(e))return e;let t=e.length;if(!r7(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},OAe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&aM(Uint8Array)),DAe=(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])}},LAe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},NAe=ts("HTMLFormElement"),kAe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),I4=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),FAe=ts("RegExp"),a7=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Jm(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},$Ae=e=>{a7(e,(t,n)=>{if(ko(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ko(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+"'")})}})},BAe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return gp(e)?r(e):r(String(e).split(t)),n},VAe=()=>{},UAe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function HAe(e){return!!(e&&ko(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const zAe=e=>{const t=new Array(10),n=(r,i)=>{if(yw(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=gp(r)?[]:{};return Jm(r,(a,s)=>{const l=n(a,i+1);!_m(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},GAe=ts("AsyncFunction"),WAe=e=>e&&(yw(e)||ko(e))&&ko(e.then)&&ko(e.catch),s7=((e,t)=>e?setImmediate:t?((n,r)=>(cf.addEventListener("message",({source:i,data:o})=>{i===cf&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),cf.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ko(cf.postMessage)),jAe=typeof queueMicrotask<"u"?queueMicrotask.bind(cf):typeof process<"u"&&process.nextTick||s7,be={isArray:gp,isArrayBuffer:n7,isBuffer:cAe,isFormData:_Ae,isArrayBufferView:fAe,isString:dAe,isNumber:r7,isBoolean:hAe,isObject:yw,isPlainObject:w1,isReadableStream:SAe,isRequest:wAe,isResponse:xAe,isHeaders:CAe,isUndefined:_m,isDate:pAe,isFile:vAe,isBlob:gAe,isRegExp:FAe,isFunction:ko,isStream:yAe,isURLSearchParams:bAe,isTypedArray:OAe,isFileList:mAe,forEach:Jm,merge:H2,extend:EAe,trim:TAe,stripBOM:AAe,inherits:IAe,toFlatObject:RAe,kindOf:gw,kindOfTest:ts,endsWith:PAe,toArray:MAe,forEachEntry:DAe,matchAll:LAe,isHTMLForm:NAe,hasOwnProperty:I4,hasOwnProp:I4,reduceDescriptors:a7,freezeMethods:$Ae,toObjectSet:BAe,toCamelCase:kAe,noop:VAe,toFiniteNumber:UAe,findKey:i7,global:cf,isContextDefined:o7,isSpecCompliantForm:HAe,toJSONObject:zAe,isAsyncFn:GAe,isThenable:WAe,setImmediate:s7,asap:jAe};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 l7=zt.prototype,u7={};["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=>{u7[e]={value:e}});Object.defineProperties(zt,u7);Object.defineProperty(l7,"isAxiosError",{value:!0});zt.from=(e,t,n,r,i,o)=>{const a=Object.create(l7);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 XAe=null;function z2(e){return be.isPlainObject(e)||be.isArray(e)}function c7(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function R4(e,t,n){return e?e.concat(t).map(function(i,o){return i=c7(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function YAe(e){return be.isArray(e)&&!e.some(z2)}const KAe=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function _w(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,y){return!be.isUndefined(y[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,y){let _=v;if(v&&!y&&typeof v=="object"){if(be.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&YAe(v)||(be.isFileList(v)||be.endsWith(m,"[]"))&&(_=be.toArray(v)))return m=c7(m),_.forEach(function(S,w){!(be.isUndefined(S)||S===null)&&t.append(a===!0?R4([m],w,o):a===null?m:m+"[]",u(S))}),!1}return z2(v)?!0:(t.append(R4(y,m,o),u(v)),!1)}const f=[],h=Object.assign(KAe,{defaultVisitor:c,convertValue:u,isVisitable:z2});function d(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(_,b){(!(be.isUndefined(_)||_===null)&&i.call(t,_,be.isString(b)?b.trim():b,m,h))===!0&&d(_,m?m.concat(b):[b])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return d(e),t}function P4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sM(e,t){this._pairs=[],e&&_w(e,this,t)}const f7=sM.prototype;f7.append=function(t,n){this._pairs.push([t,n])};f7.toString=function(t){const n=t?function(r){return t.call(this,r,P4)}:P4;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function ZAe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d7(e,t,n){if(!t)return e;const r=n&&n.encode||ZAe;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 sM(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class M4{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 h7={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qAe=typeof URLSearchParams<"u"?URLSearchParams:sM,JAe=typeof FormData<"u"?FormData:null,QAe=typeof Blob<"u"?Blob:null,e2e={isBrowser:!0,classes:{URLSearchParams:qAe,FormData:JAe,Blob:QAe},protocols:["http","https","file","blob","url","data"]},lM=typeof window<"u"&&typeof document<"u",G2=typeof navigator=="object"&&navigator||void 0,t2e=lM&&(!G2||["ReactNative","NativeScript","NS"].indexOf(G2.product)<0),n2e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r2e=lM&&window.location.href||"http://localhost",i2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lM,hasStandardBrowserEnv:t2e,hasStandardBrowserWebWorkerEnv:n2e,navigator:G2,origin:r2e},Symbol.toStringTag,{value:"Module"})),yi={...i2e,...e2e};function o2e(e,t){return _w(e,new yi.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return yi.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function a2e(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function s2e(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 p7(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]=s2e(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,i)=>{t(a2e(r),i,n,0)}),n}return null}function l2e(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 Qm={transitional:h7,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(p7(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 o2e(t,this.formSerializer).toString();if((s=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _w(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),l2e(t)):t}],transformResponse:[function(t){const n=this.transitional||Qm.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:yi.classes.FormData,Blob:yi.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=>{Qm.headers[e]={}});const u2e=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"]),c2e=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]&&u2e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},O4=Symbol("internals");function _v(e){return e&&String(e).trim().toLowerCase()}function x1(e){return e===!1||e==null?e:be.isArray(e)?e.map(x1):String(e)}function f2e(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 d2e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uE(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 h2e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function p2e(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 ho=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=_v(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]=x1(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())&&!d2e(t))a(c2e(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=_v(t),t){const r=be.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return f2e(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=_v(t),t){const r=be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||uE(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=_v(a),a){const s=be.findKey(r,a);s&&(!n||uE(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||uE(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]=x1(i),delete n[o];return}const s=t?h2e(o):String(o).trim();s!==o&&delete n[o],n[s]=x1(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[O4]=this[O4]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=_v(a);r[s]||(p2e(i,a),r[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}};ho.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(ho.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(ho);function cE(e,t){const n=this||Qm,r=t||n,i=ho.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 v7(e){return!!(e&&e.__CANCEL__)}function mp(e,t,n){zt.call(this,e??"canceled",zt.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(mp,zt,{__CANCEL__:!0});function g7(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 v2e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function g2e(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,h=0;for(;f!==i;)h+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a<t)return;const d=c&&u-c;return d?Math.round(h*1e3/d):void 0}}function m2e(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 kb=(e,t,n=3)=>{let r=0;const i=g2e(50,250);return m2e(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)},D4=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},L4=e=>(...t)=>be.asap(()=>e(...t)),y2e=yi.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yi.origin),yi.navigator&&/(msie|trident)/i.test(yi.navigator.userAgent)):()=>!0,_2e=yi.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 b2e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function S2e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function m7(e,t,n){let r=!b2e(t);return e&&r||n==!1?S2e(e,t):t}const N4=e=>e instanceof ho?{...e}:e;function Qf(e,t){t=t||{};const n={};function r(u,c,f,h){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:h},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,h){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f,h)}else return r(u,c,f,h)}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(N4(u),N4(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,h=f(e[c],t[c],c);be.isUndefined(h)&&f!==s||(n[c]=h)}),n}const y7=e=>{const t=Qf({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=ho.from(a),t.url=d7(m7(t.baseURL,t.url,t.allowAbsoluteUrls),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(yi.hasStandardBrowserEnv||yi.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(yi.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&y2e(t.url))){const u=i&&o&&_2e.read(o);u&&a.set(i,u)}return t},w2e=typeof XMLHttpRequest<"u",x2e=w2e&&function(e){return new Promise(function(n,r){const i=y7(e);let o=i.data;const a=ho.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,v;function m(){d&&d(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function _(){if(!y)return;const S=ho.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};g7(function(E){n(E),m()},function(E){r(E),m()},T),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(r(new zt("Request aborted",zt.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new zt("Network Error",zt.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||h7;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),r(new zt(w,T.clarifyTimeoutError?zt.ETIMEDOUT:zt.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&be.forEach(a.toJSON(),function(w,T){y.setRequestHeader(T,w)}),be.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([h,v]=kb(u,!0),y.addEventListener("progress",h)),l&&y.upload&&([f,d]=kb(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=S=>{y&&(r(!S||S.type?new mp(null,e,y):S),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=v2e(i.url);if(b&&yi.protocols.indexOf(b)===-1){r(new zt("Unsupported protocol "+b+":",zt.ERR_BAD_REQUEST,e));return}y.send(o||null)})},C2e=(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 mp(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}},T2e=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},E2e=async function*(e,t){for await(const n of A2e(e))yield*T2e(n,t)},A2e=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()}},k4=(e,t,n,r)=>{const i=E2e(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 h=o+=f;n(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},bw=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_7=bw&&typeof ReadableStream=="function",I2e=bw&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),b7=(e,...t)=>{try{return!!e(...t)}catch{return!1}},R2e=_7&&b7(()=>{let e=!1;const t=new Request(yi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),F4=64*1024,W2=_7&&b7(()=>be.isReadableStream(new Response("").body)),Fb={stream:W2&&(e=>e.body)};bw&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fb[t]&&(Fb[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 P2e=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(yi.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 I2e(e)).byteLength},M2e=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??P2e(t)},O2e=bw&&(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:h}=y7(e);u=u?(u+"").toLowerCase():"text";let d=C2e([i,o&&o.toAbortSignal()],a),v;const m=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let y;try{if(l&&R2e&&n!=="get"&&n!=="head"&&(y=await M2e(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]=D4(y,kb(L4(l)));r=k4(T.body,F4,E,R)}}be.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...h,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:_?f:void 0});let b=await fetch(v);const S=W2&&(u==="stream"||u==="response");if(W2&&(s||S&&m)){const T={};["status","statusText","headers"].forEach(I=>{T[I]=b[I]});const C=be.toFiniteNumber(b.headers.get("content-length")),[E,R]=s&&D4(C,kb(L4(s),!0))||[];b=new Response(k4(b.body,F4,E,()=>{R&&R(),m&&m()}),T)}u=u||"text";let w=await Fb[be.findKey(Fb,u)||"text"](b,e);return!S&&m&&m(),await new Promise((T,C)=>{g7(T,C,{data:w,headers:ho.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new zt("Network Error",zt.ERR_NETWORK,e,v),{cause:_.cause||_}):zt.from(_,_&&_.code,e,v)}}),j2={http:XAe,xhr:x2e,fetch:O2e};be.forEach(j2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $4=e=>`- ${e}`,D2e=e=>be.isFunction(e)||e===null||e===!1,S7={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,!D2e(n)&&(r=j2[(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($4).join(`
`):" "+$4(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:j2};function fE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mp(null,e)}function B4(e){return fE(e),e.headers=ho.from(e.headers),e.data=cE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),S7.getAdapter(e.adapter||Qm.adapter)(e).then(function(r){return fE(e),r.data=cE.call(e,e.transformResponse,r),r.headers=ho.from(r.headers),r},function(r){return v7(r)||(fE(e),r&&r.response&&(r.response.data=cE.call(e,e.transformResponse,r.response),r.response.headers=ho.from(r.response.headers))),Promise.reject(r)})}const w7="1.8.3",Sw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const V4={};Sw.transitional=function(t,n,r){function i(o,a){return"[Axios v"+w7+"] 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&&!V4[a]&&(V4[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}};Sw.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function L2e(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 C1={assertOptions:L2e,validators:Sw},ds=C1.validators;let Nf=class{constructor(t){this.defaults=t,this.interceptors={request:new M4,response:new M4}}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=Qf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&C1.assertOptions(r,{silentJSONParsing:ds.transitional(ds.boolean),forcedJSONParsing:ds.transitional(ds.boolean),clarifyTimeoutError:ds.transitional(ds.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:C1.assertOptions(i,{encode:ds.function,serialize:ds.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),C1.assertOptions(n,{baseUrl:ds.spelling("baseURL"),withXsrfToken:ds.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=ho.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,h;if(!l){const v=[B4.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),h=v.length,c=Promise.resolve(n);f<h;)c=c.then(v[f++],v[f++]);return c}h=s.length;let d=n;for(f=0;f<h;){const v=s[f++],m=s[f++];try{d=v(d)}catch(y){m.call(this,y);break}}try{c=B4.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Qf(this.defaults,t);const n=m7(t.baseURL,t.url,t.allowAbsoluteUrls);return d7(n,t.params,t.paramsSerializer)}};be.forEach(["delete","get","head","options"],function(t){Nf.prototype[t]=function(n,r){return this.request(Qf(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(Qf(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Nf.prototype[t]=n(),Nf.prototype[t+"Form"]=n(!0)});let N2e=class x7{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 mp(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 x7(function(i){t=i}),cancel:t}}};function k2e(e){return function(n){return e.apply(null,n)}}function F2e(e){return be.isObject(e)&&e.isAxiosError===!0}const X2={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(X2).forEach(([e,t])=>{X2[t]=e});function C7(e){const t=new Nf(e),n=t7(Nf.prototype.request,t);return be.extend(n,Nf.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return C7(Qf(e,i))},n}const Ut=C7(Qm);Ut.Axios=Nf;Ut.CanceledError=mp;Ut.CancelToken=N2e;Ut.isCancel=v7;Ut.VERSION=w7;Ut.toFormData=_w;Ut.AxiosError=zt;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=k2e;Ut.isAxiosError=F2e;Ut.mergeConfig=Qf;Ut.AxiosHeaders=ho;Ut.formToJSON=e=>p7(be.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=S7.getAdapter;Ut.HttpStatusCode=X2;Ut.default=Ut;const{Axios:CIe,AxiosError:TIe,CanceledError:EIe,isCancel:AIe,CancelToken:IIe,VERSION:RIe,all:PIe,Cancel:MIe,isAxiosError:OIe,spread:DIe,toFormData:LIe,AxiosHeaders:NIe,HttpStatusCode:kIe,formToJSON:FIe,getAdapter:$Ie,mergeConfig:BIe}=Ut;var T1={exports:{}},$2e=T1.exports,U4;function B2e(){return U4||(U4=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})($2e,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(d){s.onopen(d)}),f.addEventListener("close",function(d){s.onclose(d)}),f.addEventListener("connecting",function(d){s.onconnecting(d)}),f.addEventListener("message",function(d){s.onmessage(d)}),f.addEventListener("error",function(d){s.onerror(d)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function h(d,v){var m=document.createEvent("CustomEvent");return m.initCustomEvent(d,!1,!1,v),m}this.open=function(d){if(l=new WebSocket(s.url,r||[]),d){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(h("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(y){clearTimeout(m),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var _=h("open");_.isReconnect=d,d=!1,f.dispatchEvent(_)},l.onclose=function(y){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(h("close"));else{s.readyState=WebSocket.CONNECTING;var _=h("connecting");_.code=y.code,_.reason=y.reason,_.wasClean=y.wasClean,f.dispatchEvent(_),!d&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(h("close")));var b=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},b>s.maxReconnectInterval?s.maxReconnectInterval:b)}},l.onmessage=function(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,y.data);var _=h("message");_.data=y.data,f.dispatchEvent(_)},l.onerror=function(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,y),f.dispatchEvent(h("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(d){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,d),l.send(d);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(d,v){typeof d>"u"&&(d=1e3),u=!0,l&&l.close(d,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})}(T1)),T1.exports}var V2e=B2e();const U2e=Sm(V2e);Ut.interceptors.request.use(e=>{var t;return e.baseURL=qu(Lo.value),e.headers.Authorization="Bearer "+((t=Lo.value)==null?void 0:t.password),e});Ut.interceptors.response.use(null,e=>(e.status===401&&gi.value&&(tU(gi.value),gi.value=null,Ds.push({name:jt.setup}),Qa(()=>{const{showNotification:t}=rd();t({content:"unauthorizedTip"})})),e));const np=Me(),$b=Me(!1),H2e=()=>Ut.get("/version"),Tl=xe(()=>{var e;return(e=np.value)==null?void 0:e.includes("sing-box")}),T7=Me("1.75.2");Bt(Lo,async e=>{var t;if(e){const{data:n}=await H2e();if(np.value=n.version,Tl.value||!qd.value||(t=Lo.value)!=null&&t.disableUpgradeCore)return;$b.value=await aIe(),$b.value&&Cv.value&&R7()}},{immediate:!0});const z2e=()=>Ut.get("/proxies"),G2e=(e,t)=>Ut.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),H4=(e,t,n)=>Ut.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),z4=(e,t,n)=>Ut.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),W2e=()=>Ut.get("/providers/proxies"),E7=e=>Ut.put(`/providers/proxies/${encodeURIComponent(e)}`),j2e=e=>Ut.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),X2e=()=>Ut.get("/rules"),Y2e=()=>Ut.get("/providers/rules"),A7=e=>Ut.put(`/providers/rules/${encodeURIComponent(e)}`),ww=e=>Ut.delete(`/connections/${e}`),K2e=()=>Ut.get("/configs"),Z2e=e=>Ut.patch("/configs",e),G4=()=>Ut.post("/cache/fakeip/flush"),q2e=()=>Ut.put("/configs?reload=true",{path:"",payload:""}),I7=()=>Ut.post("/upgrade/ui"),J2e=()=>Ut.post("/configs/geo"),R7=()=>Ut.post("/upgrade"),Q2e=()=>Ut.post("/restart"),eIe=e=>Ut.get("/dns/query",{params:e}),xw=(e,t)=>{const n=Lo.value,r=new URL(`${qu(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=Me(),o=new U2e(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}},tIe=()=>xw("connections"),nIe=(e={})=>xw("logs",e),rIe=()=>xw("memory"),iIe=()=>xw("traffic"),W4=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${qu(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},oIe=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${T7.value}`},j4=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))},aIe=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(np.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(np.value)}const t=e[1],n=e[2];return t==="meta"?await j4("/releases/latest",n):t==="alpha"?await j4("/releases/tags/Prerelease-Alpha",n):!1},uM=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:""))).json(),sIe=async()=>await(await fetch("https://myip.ipip.net/json")).json(),Cw=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)}),lIe=()=>Cw("https://www.cloudflare.com/favicon.ico"),uIe=()=>Cw("https://yt3.ggpht.com/favicon.ico"),cIe=()=>Cw("https://github.githubassets.com/favicon.ico"),fIe=()=>Cw("https://apps.bdimg.com/favicon.ico"),Br=Me({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}}),cM=async()=>{Br.value=(await K2e()).data},E1=async e=>{await Z2e(e),cM()},Bb=Me(""),X4=e=>Wg.value?e:e.filter(t=>!_l.value[t]),P7=Me(fa.PROXIES),dIe=xe(()=>{var e;return mr.isEmpty(Jr.value)?[]:P7.value===fa.PROVIDER?Af.value.map(t=>t.name):$_.value?((e=Br.value)==null?void 0:e.mode.toUpperCase())===ng?[ng]:X4(j1.value):X4([...j1.value,ng])}),bm=()=>({proxiesTabShow:P7,renderGroups:dIe}),hIe=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],pIe=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],vIe=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],gIe=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Y4=(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 mIe(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?gIe:vIe:t.binary?pIe:hIe,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=Y4(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=Y4(Number(e),t.locale,a),u=n[s];return o+l+r+u}const Gn=(e,t)=>mIe(e,{binary:!1,...t}),Tw=e=>po(e).locale(Su.value).fromNow(),Y2=e=>{const t=Jr.value[e];return t?[Yr.Dns,Yr.Compatible,Yr.Direct,Yr.Reject,Yr.RejectDrop,Yr.Pass,Yr.Fallback,Yr.URLTest,Yr.LoadBalance,Yr.Selector].includes(t.type.toLowerCase()):!1},yIe=(e,t)=>{const n=new Map,r=i=>{if(Y2(i))return-1;const o=n.get(i);return o===0?1/0:o};switch(e=[...e],e.forEach(i=>{n.set(i,Nm(i,t))}),zE.value&&(e=e.filter(i=>Y2(i)||n.get(i)>0)),Bb.value&&(e=e.filter(i=>i.toLowerCase().includes(Bb.value.toLowerCase()))),UE.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))}},_Ie=256,ff=new Map,Ag=new Map,K2=[],bIe=()=>{ff.clear(),Ag.clear(),K2.length=0;for(const{key:e,label:t}of ia.value)e.startsWith("/")?K2.push({regex:new RegExp(e.slice(1),"i"),label:t}):Ag.set(e,t)},S_=(e,t)=>{if(ff.set(e,t),ff.size>_Ie){const n=ff.keys().next().value;n&&ff.delete(n)}return t};Bt(ia,bIe,{immediate:!0,deep:!0});const Vb=e=>{if(!e)return e===""?"Inner":"";if(ff.has(e))return ff.get(e);if(e.includes(":")){for(const[n,r]of Ag.entries())if(e.endsWith(n))return S_(e,r)}else if(Ag.has(e))return S_(e,Ag.get(e));for(const{regex:n,label:r}of K2)if(n.test(e))return S_(e,r);return S_(e,e)},M7=e=>`${e.metadata.host||e.metadata.sniffHost||e.metadata.destinationIP}:${e.metadata.destinationPort}`,O7=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",D7=e=>e.metadata.destinationIP||e.metadata.host,L7=e=>{const t=e.metadata.destinationIP;return t?t.includes(":")?"IPv6":"IPv4":"FQDN"},Z2=e=>{const t=[...e.chains];return ph.value===ip.NORMAL&&t.reverse(),t.join("")},N7=e=>`${e.metadata.type} | ${e.metadata.network}`,k7=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name<af+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>`},K4=()=>{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)},qu=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,Mu=e=>e===Fi?"":e<wu.value?"text-green-500":e<ul.value?"text-yellow-500":"text-red-500",df=xe(()=>Object.values(jt).filter(e=>![jt.setup,!Jd.value&&jt.overview].includes(e))),F7=()=>{document.querySelectorAll(".custom-theme").forEach(e=>{e.remove()}),Gg.value.forEach(e=>{const t=document.createElement("style"),n=Object.entries(e).filter(([r])=>!["prefersdark","default","name","type","id"].includes(r)).map(([r,i])=>`${r}:${i}`).join(";");t.innerHTML=`[data-theme="${e.name}"] {
${n}
}`,t.className=`custom-theme ${e.name}`,document.head.appendChild(t)})};F7();{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 fM=V1(doe);po.extend(QZ);po.extend(rq);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"}});fM.use(Ds);fM.use(Lm);fM.mount("#app");